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.
