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.
Medicare Part D gross spending by drug, manufacturer and year
Field
Type
Description
Constraints
year
integer
Benefit (calendar) year.
brand_name
string
Brand name of the drug as CMS publishes it (generic drugs carry their generic name here). A trailing '*' means the average spending per dosage unit combines several routes of administration (e.g. intravenous and subcutaneous) with different unit prices; see multiple_routes.
generic_name
string
Generic name (active ingredient), as CMS publishes it.
manufacturer
string
Manufacturer name as CMS publishes it, or 'Overall' for CMS's row combining all manufacturers of this brand name and generic name.
is_overall
boolean
true for CMS's 'Overall' row (all manufacturers combined). Sum or rank only these rows to avoid double counting; Manufacturer spending, claims and dosage units sum to the Overall figures within source rounding; beneficiary counts and averages are not additive.
manufacturer_count
integer
Number of manufacturers of this drug in the release (CMS Tot_Mftr), on Overall rows only; empty on manufacturer rows.
multiple_routes
boolean
true when brand_name ends in '*' (CMS: average spending per dosage unit reflects multiple routes of administration).
total_spending_usd
number
Total gross Part D drug spending in the year, US dollars (CMS Tot_Spndng): gross drug cost including ingredient cost, dispensing fees, sales tax and vaccine administration fees, paid by Part D plans and beneficiaries. Before manufacturer rebates and other price concessions; not the net cost.
total_dosage_units
number
Dosage units dispensed in the year (tablets, grams, millilitres or other units, the lowest dispensable amount) (CMS Tot_Dsg_Unts). Units differ between drugs, so do not add across drugs.
total_claims
integer
Prescription fills, original and refills (CMS Tot_Clms). CMS applies its fewer-than-11-claims exclusion and earlier-year redaction rules at the brand-name/generic-name/manufacturer level.
total_beneficiaries
integer
Number of Part D beneficiaries who used the drug in the year (CMS Tot_Benes). Empty where CMS left it blank: in this release no published count is below 11, consistent with suppression of small counts. The suppression explanation is our inference. Beneficiaries can use several drugs, so do not add across drugs.
avg_spending_per_dosage_unit_weighted_usd
number
CMS's claim-weighted average spending per dosage unit, US dollars (Avg_Spnd_Per_Dsg_Unt_Wghtd): spending per unit at each strength, form, route and manufacturer, weighted by claims. Not generally equal to total_spending_usd / total_dosage_units.
avg_spending_per_claim_usd
number
Total spending divided by total claims, US dollars (CMS Avg_Spnd_Per_Clm).
avg_spending_per_beneficiary_usd
number
Total spending divided by the number of beneficiaries, US dollars (CMS Avg_Spnd_Per_Bene). Empty where CMS leaves total_beneficiaries blank.
outlier_flag
integer
CMS outlier flag: 1 when the drug's average spending per dosage unit is substantially affected by outlier records (likely wrong dosage unit values) in the year; use that value with caution. Empty where CMS left it blank (a few Overall rows with 11 claims).
enum [0,1]
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.
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.
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.