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.

Medicare Part D Drug Spending & Utilization History, 2020–2024 · first three rows
brand_namegeneric_nameyeartotal_spending_usdtotal_claims
1st Tier Unifine PentipsPen Needle, Diabetic2020118923.244457
1st Tier Unifine PentipsPen Needle, Diabetic2021102280.763708
1st Tier Unifine PentipsPen Needle, Diabetic202270039.612501

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 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 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 →

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

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.
Data preparation

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.

All 22 fields in CSV order
FieldTypeMeaning
brand_namestringExact CMS Brnd_Name, including generic marketed names and any asterisk. Not exclusively trademarked brands.
generic_namestringExact CMS Gnrc_Name. Together with brand_name identifies a drug group in this edition, not an NDC, RxCUI or stable identifier across future editions.
yearintegerCalendar benefit year, 2020–2024.
total_spending_usdnumberGross 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_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
total_dosage_unitsnumberDispensed 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_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
total_claimsintegerPrescription fills, including original prescriptions and refills; not standardized 30-day fills. Unit: prescription_fills. Blank is never zero.
total_claims_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
total_beneficiariesintegerUnique 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_statusstringreported 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_usdnumberCMS 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_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
spending_per_claim_usdnumberCMS 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_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
spending_per_beneficiary_usdnumberCMS published gross spending divided by unique beneficiaries within this drug/year/scope. Unit: USD_per_person. Blank is never zero.
spending_per_beneficiary_usd_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
outlier_flagintegerCMS 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_statusstringreported or not_reported. A blank source cell has no cell-specific reason code; do not infer no use or a discontinuation.
annual_statusstringreported when all eight annual cells are present; partial when some are blank; not_reported when all are blank.
beneficiary_claim_checkstringconsistent 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_rowintegerOne-based data row in retained spending.csv.

Files included in the download

One ZIP · 3.4 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 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 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.

383946b3a8fc5ae150100eb59f9870a3f5d4f1f509f994e827383d6027ca794c

Complete dataset

Medicare Part D Drug Spending & Utilization History, 2020–2024

$29 USD · one time · 18,125 drug / year records

Get the full dataset