Medicaid Drug Spending & Utilization History, 2020–2024

Compare five years of Medicaid drug spending and prescription use. Prepared annual records, separate manufacturer detail and documented source discrepancies support a clearer spending analysis.

2020–2024 benefit years · CMS annual 2024 source edition

Preview the data and download a sample

These are the first three rows from the delivered CSV, showing 5 of 17 fields. The free download contains the first five rows and all 17 fields; it is a format sample, not a coverage test.

Medicaid Drug Spending & Utilization History, 2020–2024 · first three rows
brand_namegeneric_nameyeartotal_spending_usdtotal_claims
12 Hour Nasal DecongestantPseudoephedrine HCl20206249.21703
12 Hour Nasal DecongestantPseudoephedrine HCl20216021.91627
12 Hour Nasal DecongestantPseudoephedrine HCl20225355.45566

Coverage and how to use the data

Uses

Build a Medicaid drug-spending brief, compare reimbursement and prescription-fill growth, or examine manufacturer detail. Start with exact CMS drug-name pairs and annual measures, without reshaping year-suffixed columns or mixing detail with totals.

Row definition

drug_years.csv has one brand-name/generic-name pair per benefit year, aggregated across manufacturers. manufacturer_years.csv adds the manufacturer. drugs.csv describes each group; separate trend tables distinguish the published changes from changes calculated from annual values. source_row_status.csv accounts for every original row.

Unique key
brand_name + generic_name + year

Join keys and usage

Match exact brand_name and generic_name together, plus year for annual records. Preserve capitalization, punctuation and asterisks. Names are edition-specific keys, not NDCs or RxCUIs. Use manufacturer detail separately from drug totals; combining both scopes double counts.

Compare Medicaid drug spending and prescription use in Python →

Choosing drug-cost data: NADAC, Medicare and Medicaid →

Coverage

All 18,511 original rows: 4,774 drug groups and 13,737 drug/manufacturer groups. The prepared files retain 23,870 drug-year slots and 68,685 manufacturer-year slots, including years whose measures were not reported.

Limitations

  • History is limited to groups present in CMS’s annual 2024 edition. CMS describes OTC exclusions and a minimum of 11 claims in the latest year. The retained cohort is not an exhaustive roster of every drug used in earlier years.
  • Spending is pharmacy reimbursement by Medicaid and non-Medicaid entities, including federal/state payments and dispensing fees, before Medicaid rebates. These nominal dollars are not net program spending, acquisition costs or copays.
  • Claims count prescription fills and refills, not unique people or standardized 30-day prescriptions. Weighted unit spending reflects the mix of strengths, forms and routes; it is not total spending divided by total units. CMS outlier flags are retained.
  • For 2,341 drug groups, the CSV’s published 2023–2024 unit-spending change disagrees with its annual values. Separate source, calculated and discrepancy fields make this explicit. Two further CSV/workbook conflicts lack a 2023 endpoint and remain uncomputable.
  • Blank measures remain not_reported; the source does not identify the reason for each blank. No NDC, RxCUI, ATC, patient, beneficiary, state or plan-level mapping is included. No scheduled refresh is promised.
Data preparation

Retains the original sources and lossless staging. Preparation separates aggregation levels, reshapes annual columns, preserves exact numbers and name keys, documents units and distinguishes blanks from zero. Published growth and independently calculated annual-value changes remain separate. Independent acceptance checks every prepared cell; the companion workbook review records the source-growth conflicts. How we prepare and version our data →

Main table fields

The main table’s field dictionary from the current download. CSV has no built-in types; these are the intended import types.

All 17 fields in CSV order
FieldTypeMeaning
brand_namestringExact CMS brand label, including generic marketed names and any * for multiple administration routes.
generic_namestringExact CMS generic label. Together with brand_name identifies a name group in this edition, not an NDC, RxCUI or stable code across editions.
yearintegerCalendar benefit year, 2020–2024.
total_spending_usdnumberTotal pharmacy reimbursement by Medicaid and non-Medicaid entities, including federal/state reimbursement and applicable dispensing fees, before Medicaid rebates. Nominal dollars; not net program spending or pharmacy acquisition cost. Unit: USD. Blank is never zero.
total_spending_usd_statusstringreported or not_reported; source blanks have no individual reason code.
total_dosage_unitsnumberUnits in the lowest dispensable amount, such as tablets, grams or milliliters. Not standardized patient doses or comparable across drugs. Source unit-type inconsistencies can affect cost calculations. Unit: mixed_dosage_units. Blank is never zero.
total_dosage_units_statusstringreported or not_reported; source blanks have no individual reason code.
total_claimsintegerOriginal prescription fills and refills, not unique people or standardized 30-day fills. Unit: prescription_fills. Blank is never zero.
total_claims_statusstringreported or not_reported; source blanks have no individual reason code.
weighted_spending_per_dosage_unit_usdnumberCMS claim-weighted average across strengths, forms, routes and manufacturers. Not total spending divided by total units. Read with the annual outlier flag. Unit: USD_per_weighted_dosage_unit. Blank is never zero.
weighted_spending_per_dosage_unit_usd_statusstringreported or not_reported; source blanks have no individual reason code.
spending_per_claim_usdnumberPublished total reimbursement divided by prescription fills; not a retail price, copay or fixed-duration price. Unit: USD_per_prescription_fill. Blank is never zero.
spending_per_claim_usd_statusstringreported or not_reported; source blanks have no individual reason code.
outlier_flaginteger1: weighted unit spending substantially affected by anomalous records; 0: not flagged; blank: not reported. A zero is not a source-accuracy guarantee. Unit: indicator. Blank is never zero.
outlier_flag_statusstringreported or not_reported; source blanks have no individual reason code.
annual_statusstringreported: all six annual cells present; partial: some blank; not_reported: all blank.
source_rowintegerOne-based original data row in retained spending.csv.

Files included in the download

One ZIP · 3.7 MB · 20 files. No account or subscription required.

Sources, versions & changes

Source versions identify the inputs. Our processing revision describes how we prepare them. Either kind of change creates a new ACD release; the package date records when it was built.

Current source versions

Benefit years
2020–2024, from one annual 2024 edition
CMS metadata modified
June 25, 2026
CMS dictionary
June 5, 2026
ACD preparation
October 21, 2026 UTC · processing revision 1
Package prepared (UTC)

Source: Centers for Medicare & Medicaid Services, annual 2024 Medicaid Spending by Drug edition. Original data are freely available. ACD sells preparation, validation, documentation and delivery. No CMS endorsement.

Release history

Oct 21, 2026 · current package (UTC)

First ACD release of these retained CMS inputs. The 2020–2024 data window, June 2026 source metadata and October 2026 preparation are separate. Same-source processing improvements are included; later source editions may be sold separately.

Medicaid: source and preparation record

Our processing improvements and publisher error corrections to your purchased source edition are free. Genuinely new source editions may be sold separately. See the update policy and access instructions.

Check the downloaded CSV’s integrity

The metadata file inside the ZIP records this SHA-256 checksum for drug_years.csv. A matching checksum confirms identical CSV bytes.

84be8704f53e6c4cc2f5e59bcce6fc0b0d81be1e2b9df7e5e270ae2fe5aea3ce

Complete dataset

Medicaid Drug Spending & Utilization History, 2020–2024

$29 USD · one time · 23,870 drug / year records

Get the full dataset