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.
| brand_name | generic_name | year | total_spending_usd | total_claims |
|---|---|---|---|---|
| 12 Hour Nasal Decongestant | Pseudoephedrine HCl | 2020 | 6249.21 | 703 |
| 12 Hour Nasal Decongestant | Pseudoephedrine HCl | 2021 | 6021.91 | 627 |
| 12 Hour Nasal Decongestant | Pseudoephedrine HCl | 2022 | 5355.45 | 566 |
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 keybrand_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 →
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.
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.
| Field | Type | Meaning |
|---|---|---|
brand_name | string | Exact CMS brand label, including generic marketed names and any * for multiple administration routes. |
generic_name | string | Exact CMS generic label. Together with brand_name identifies a name group in this edition, not an NDC, RxCUI or stable code across editions. |
year | integer | Calendar benefit year, 2020–2024. |
total_spending_usd | number | Total 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_status | string | reported or not_reported; source blanks have no individual reason code. |
total_dosage_units | number | Units 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_status | string | reported or not_reported; source blanks have no individual reason code. |
total_claims | integer | Original prescription fills and refills, not unique people or standardized 30-day fills. Unit: prescription_fills. Blank is never zero. |
total_claims_status | string | reported or not_reported; source blanks have no individual reason code. |
weighted_spending_per_dosage_unit_usd | number | CMS 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_status | string | reported or not_reported; source blanks have no individual reason code. |
spending_per_claim_usd | number | Published 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_status | string | reported or not_reported; source blanks have no individual reason code. |
outlier_flag | integer | 1: 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_status | string | reported or not_reported; source blanks have no individual reason code. |
annual_status | string | reported: all six annual cells present; partial: some blank; not_reported: all blank. |
source_row | integer | One-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.
README.mdImport guidance, method, attribution, and limitationsacceptance.jsonIndependent original-cell verification of every prepared tableall_tables_dictionary.jsonEvery field across all six tables: keys, units and interpretationchecksums.jsonSHA-256 checksums for the release filesdata_dictionary.jsonTypes and definitions for every fielddrug_trends.csv4,774 drug groups · source changes, calculated changes, comparison flags and source CAGRdrug_years.csvMain prepared table · UTF-8 CSVdrugs.csv4,774 exact name pairs · manufacturer count and multiple-route markerexample.pyCopyable notebook-compatible spending and prescription-use comparisonexample_input.csvThree real CMS name pairs matching the inline exampleexample_output.txtPrinted example resultsexample_result.csvExpected 2023–2024 change comparisonmanufacturer_trends.csv13,737 manufacturer groups · separate source and calculated changesmanufacturer_years.csv68,685 drug / manufacturer / year records · use separately from totalsmetadata.jsonSource provenance, production time, counts, and CSV checksumprovenance.jsonRetained source identifiers, URLs and file checksumsquality_report.jsonCounts, missingness, CMS outlier flags and source-change comparisonsrevision.jsonChanges and free-upgrade eligibility for this ACD revisionsource_review.jsonOriginal CSV/workbook reconciliation with 2,343 reviewed change-field conflictssource_row_status.csvEvery original CSV row · scope, keys and destination tables
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 recordOur 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.
84be8704f53e6c4cc2f5e59bcce6fc0b0d81be1e2b9df7e5e270ae2fe5aea3ceComplete dataset
Medicaid Drug Spending & Utilization History, 2020–2024
$29 USD · one time · 23,870 drug / year records