Medicare Part D Drug Spending & Utilization History, 2020–2024
Compare five years of Medicare Part D drug spending and prescription use. Prepared annual tables separate drug totals from manufacturer detail, with missing values, source checks and a working Python guide.
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 22 fields. The free download contains the first five rows and all 22 fields; it is a format sample, not a coverage test.
| brand_name | generic_name | year | total_spending_usd | total_claims |
|---|---|---|---|---|
| 1st Tier Unifine Pentips | Pen Needle, Diabetic | 2020 | 118923.24 | 4457 |
| 1st Tier Unifine Pentips | Pen Needle, Diabetic | 2021 | 102280.76 | 3708 |
| 1st Tier Unifine Pentips | Pen Needle, Diabetic | 2022 | 70039.61 | 2501 |
Coverage and how to use the data
Uses
Build a drug-market brief, compare spending 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 manufacturer rows 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 to that key. drugs.csv describes each group; separate drug and manufacturer trend tables preserve CMS change measures. 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 the drug totals; combining both scopes double counts. Beneficiary counts are not additive across drugs or years.
Compare Medicare drug spending and prescription use in Python →
Coverage
All 14,536 original rows: 3,625 drug groups and 10,911 drug/manufacturer groups. The prepared files retain 18,125 drug-year slots and 54,555 manufacturer-year slots, including years whose measures were not reported.
Limitations
- History is limited to groups included in the annual 2024 edition. CMS excludes over-the-counter records and drug/manufacturer groups with fewer than 11 claims in the latest year. It is not an exhaustive roster of every drug used in earlier years.
- Gross nominal spending includes plan and beneficiary payments, fees and applicable tax, before manufacturer rebates and other price concessions. It is not net spending, an acquisition cost, a retail quote or a patient copay.
- Claims are prescription fills including refills, not standardized 30-day prescriptions. Weighted unit spending reflects the mix of strengths, forms, routes and manufacturers; it is not total spending divided by total units. CMS outlier flags are retained.
- Blank measures remain not_reported. The source does not identify the reason for each blank. There are 149 older drug-total records with more beneficiaries than claims; they agree with the CMS workbook and remain flagged. None occurs in 2024 or manufacturer detail.
- No NDC, RxCUI, ATC, patient, geography or plan-level mapping is included. Drug-use narratives and clinical recommendations are not included. No scheduled refresh is promised.
Retains source CSV, metadata, dictionaries, methodology and companion reports. Lossless staging preserves source cells. Preparation turns annual columns into records, separates overlapping scopes, documents units, preserves numeric precision, converts growth fractions to percentages and flags source discrepancies. Independent acceptance checks every prepared cell; all 610,512 source measures reconcile with the companion annual workbook. 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 Brnd_Name, including generic marketed names and any asterisk. Not exclusively trademarked brands. |
generic_name | string | Exact CMS Gnrc_Name. Together with brand_name identifies a drug group in this edition, not an NDC, RxCUI or stable identifier across future editions. |
year | integer | Calendar benefit year, 2020–2024. |
total_spending_usd | number | Gross claim spending including ingredient cost, dispensing fees, sales tax and applicable vaccine administration fees; excludes rebates and other price concessions. Nominal dollars. Unit: USD. Blank is never zero. |
total_spending_usd_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
total_dosage_units | number | Dispensed units as marketed (tablets, grams, milliliters or other units). Not a standardized dose or comparable unit across drugs. Unit: mixed_dosage_units. Blank is never zero. |
total_dosage_units_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
total_claims | integer | Prescription fills, including original prescriptions and refills; not standardized 30-day fills. Unit: prescription_fills. Blank is never zero. |
total_claims_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
total_beneficiaries | integer | Unique Part D beneficiaries using this drug in this year and scope. Not additive across drugs, manufacturers or years. Unit: people. Blank is never zero. |
total_beneficiaries_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
weighted_spending_per_dosage_unit_usd | number | CMS claim-weighted average across strengths, forms, routes and manufacturers. Not total spending divided by total units. Preserve CMS outlier warning. Unit: USD_per_weighted_dosage_unit. Blank is never zero. |
weighted_spending_per_dosage_unit_usd_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
spending_per_claim_usd | number | CMS published gross spending per prescription fill. Not a retail price or fixed-duration price. Unit: USD_per_prescription_fill. Blank is never zero. |
spending_per_claim_usd_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
spending_per_beneficiary_usd | number | CMS published gross spending divided by unique beneficiaries within this drug/year/scope. Unit: USD_per_person. Blank is never zero. |
spending_per_beneficiary_usd_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
outlier_flag | integer | CMS annual flag: 1 means weighted spending per dosage unit is substantially affected by anomalous records; 0 means not flagged; blank means not reported. Unit: indicator. Blank is never zero. |
outlier_flag_status | string | reported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation. |
annual_status | string | reported when all eight annual cells are present; partial when some are blank; not_reported when all are blank. |
beneficiary_claim_check | string | consistent when reported beneficiaries do not exceed claims; beneficiaries_exceed_claims flags a retained CMS source discrepancy; not_evaluable if either cell is blank. Agreement does not certify source accuracy. |
source_row | integer | One-based data row in retained spending.csv. |
Files included in the download
One ZIP · 3.4 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.csv3,625 drug-group records · CMS weighted unit-spending change and CAGR in percentdrug_years.csvMain prepared table · UTF-8 CSVdrugs.csv3,625 exact drug-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.csv10,911 manufacturer-level trend records · distinct scopemanufacturer_years.csv54,555 drug / manufacturer / year records · use separately from drug totalsmetadata.jsonSource provenance, production time, counts, and CSV checksumprovenance.jsonRetained source identifiers, URLs and file checksumsquality_report.jsonCounts, missingness, CMS outlier flags and beneficiary/claim discrepanciesrevision.jsonChanges and free-upgrade eligibility for this ACD revisionsource_review.json610,512 measure comparisons between the original CSV and CMS annual workbooksource_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 3, 2026
- ACD capture / preparation
- October 20, 2026 UTC · processing revision 1
- Package prepared (UTC)
Source: Centers for Medicare & Medicaid Services, annual 2024 Medicare Part D Spending by Drug edition. Original data are freely available. ACD sells preparation, validation, documentation and delivery. No CMS endorsement.
Release history
Oct 20, 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.
Medicare Part D: 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.
383946b3a8fc5ae150100eb59f9870a3f5d4f1f509f994e827383d6027ca794cComplete dataset
Medicare Part D Drug Spending & Utilization History, 2020–2024
$29 USD · one time · 18,125 drug / year records