Medicare Part D Drug Spending by Drug and Manufacturer (CMS), 2020-2024

Gross spending, dosage units, claims and beneficiaries for drugs included in CMS's 2024 Medicare Part D release, retaining years with reported spending, by brand name, generic name and manufacturer, for each benefit year in CMS's current five-year release (2020-2024), with CMS's claim-weighted average spending per dosage unit, average spending per claim and per beneficiary, and outlier flags. Spending is the gross drug cost (ingredient cost, dispensing fees, sales tax and vaccine administration fees, paid by plans and beneficiaries) before manufacturer rebates and other price concessions, which CMS is prohibited from disclosing: it is not the net cost to Medicare. One tidy table in long format; CMS's 'Overall' row for each drug (all manufacturers combined) is kept and flagged. Source: Centers for Medicare & Medicaid Services (CMS), Medicare Part D Spending by Drug, data.cms.gov. Updated annually. The spending-only filter omits 237 Overall drug-year records that contain beneficiary counts but no spending; those counts remain available in the archived source. Blank spending must not be interpreted as zero spending or fewer than 11 beneficiaries.

Report an issue
Downloads
7
Last updated
Data file
1
Size
8.12 MB
Format
csv
License
US-PD

Medicare Part D gross spending by drug, manufacturer and year

What Medicare's prescription drug program (Part D) spends on each drug, year by year, from the Centers for Medicare & Medicaid Services (CMS) "Medicare Part D Spending by Drug" release: total gross spending, dosage units, prescription fills (claims) and beneficiaries for 3,625 drugs by brand name, generic name and manufacturer, 2020 to 2024, with CMS's average spending per dosage unit, per claim and per beneficiary. Spending here is gross, before manufacturer rebates: CMS is prohibited from publishing rebates, so these figures are not what Medicare finally pays.

What stands out

Ozempic (semaglutide) went from 20th to 2nd among Part D drugs with reported spending in this release, by gross spending, in four years: $1.46 billion in 2020, $12.97 billion in 2024, 8.9 times as much, as the number of beneficiaries using it rose from about 270,000 to 1.95 million. Only Eliquis (apixaban), the top drug in each year from 2020 through 2024 among drugs with reported spending in this release, cost more in 2024: $20.77 billion. All figures are gross spending before manufacturer rebates, which CMS does not disclose.

Data

data/drug-spending.csv: one row per drug (brand name and generic name), manufacturer and year, for every year in which CMS reports spending (61,405 rows: 10,303 for 2020 rising to 14,536 for 2024). The spending-only filter omits 237 Overall drug-year records that contain beneficiary counts but no spending; those counts remain available in the archived source. Blank spending must not be interpreted as zero spending or fewer than 11 beneficiaries.

  • year, brand_name, generic_name, manufacturer.
  • is_overall: true for CMS's "Overall" row, all manufacturers of that brand and generic name combined (3,625 drugs in 2024). To total or rank drugs, use only these rows; summing everything double counts. Manufacturer spending, claims and dosage units sum to the Overall figures within source rounding; beneficiary counts and averages are not additive. manufacturer_count is CMS's number of manufacturers (Overall rows only).
  • multiple_routes: true where CMS marks the brand name with *: the average spending per dosage unit mixes routes of administration (e.g. intravenous and subcutaneous) with different unit prices. The * is kept in brand_name as CMS publishes it.
  • total_spending_usd, total_dosage_units, total_claims, total_beneficiaries.
  • avg_spending_per_dosage_unit_weighted_usd: CMS's claim-weighted average across strengths, forms, routes and manufacturers (not simply spending divided by units); avg_spending_per_claim_usd; avg_spending_per_beneficiary_usd.
  • outlier_flag: CMS sets 1 when the year's average spending per dosage unit is substantially affected by outlier records (likely misreported dosage units); treat that unit price with caution.

Retained values are copied exactly as CMS publishes them. The two source change columns are omitted: the 2023-2024 change and the CAGR over available years within 2020-2024. These can be approximately recomputed from the published weighted unit-spending values; for CAGR, use the first available year through 2024 and the corresponding number of annual intervals. Source rounding can cause small differences.

Caveats

  • Gross, not net. CMS: spending "is based on the gross drug cost, which includes ingredient cost, dispensing fees, sales tax, and applicable vaccine administration fees", paid by Part D plans and beneficiaries, and does "not reflect any manufacturers' rebates or other price concessions as CMS is prohibited from publicly disclosing such information". Rankings by net cost can differ.
  • The release is built around the latest year. CMS excludes over-the-counter drugs and applies an exclusion threshold of fewer than 11 claims in 2024 at the brand-name/generic-name/manufacturer level; it also redacts earlier-year information below that threshold. Rankings and totals therefore cover only reported records in this release, not complete historical Part D spending.
  • Beneficiary counts are sometimes blank. total_beneficiaries and avg_spending_per_beneficiary_usd are empty in 2,000 retained rows; no published beneficiary count is below 11. Small-count suppression is our inference from this pattern, not a rule stated in the archived CMS dictionary or methodology. Separately, 37 retained Overall rows have exactly 11 claims and a blank outlier flag.
  • Drugs are grouped by name. CMS links the National Drug Codes on claims to a commercial drug database and adds up all strengths, forms and routes under each brand and generic name. The same molecule can appear under several brand names (Ozempic, Rybelsus and Wegovy are all semaglutide), and dosage units differ between drugs, so do not add units across drugs.
  • Five years at a time. Each annual release covers five years and can revise earlier years; this dataset follows CMS's current release, so when CMS publishes 2025 the 2020 rows will drop out.
  • About 81% of Medicare beneficiaries are enrolled in Part D (CMS methodology). Drugs given in a doctor's office or hospital outpatient department are mostly paid under Part B and are not here.

Source and licence

Centers for Medicare & Medicaid Services (CMS), Office of Enterprise Data and Analytics: Medicare Part D Spending by Drug, annual release with data to 2024 (CSV published June 2026), https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug/medicare-part-d-spending-by-drug. Methodology: https://data.cms.gov/resources/medicare-part-d-spending-by-drug-methodology. Data dictionary: https://data.cms.gov/resources/medicare-part-d-spending-by-drug-data-dictionary.

Licence: public domain. This is a work of the US federal government, and data.cms.gov's catalog (data.json) labels every distribution of the dataset with the licence https://www.usa.gov/government-works. Please cite CMS as the source. The archive, terms and checks are described in archive/PROVENANCE.md in the GitHub repository.

This dataset is updated annually: a scheduled job checks CMS's release every month, rebuilds the CSV with scripts/build.mjs when CMS publishes a new year, and fails if manufacturer rows stop adding up to CMS's Overall rows. Data in this version are from the 2024 release, retrieved 29 November 2026.

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/medicare-part-d-drug-spending/4 files
  • README.mddocumentationhttps://datahub.io/core/medicare-part-d-drug-spending/_r/-/README.md
  • config.jsonhttps://datahub.io/core/medicare-part-d-drug-spending/_r/-/config.json
  • data/drug-spending.csvhttps://datahub.io/core/medicare-part-d-drug-spending/_r/-/data/drug-spending.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/medicare-part-d-drug-spending/_r/-/datapackage.json