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

Compare five years of Medicare Part B drug spending and billed quantities using HCPCS codes. Prepared annual records preserve reporting gaps and CMS flags, with a separate payment-benchmark table.

2020–2024 service 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 23 fields. The free download contains the first five rows and all 23 fields; it is a format sample, not a coverage test.

Medicare Part B Drug Spending & Utilization History, 2020–2024 · first three rows
hcpcs_codebrand_nameyeartotal_spending_usdtotal_dosage_units
90371HyperHEP B*202082202.82856
90371HyperHEP B*202163082.52566
90371HyperHEP B*202276696.89565

What’s in the Medicare Part B download

Uses

Prepare a drug-spending brief, compare billed quantities over time, or enrich a HCPCS-coded research portfolio. Start with annual records and explicit units instead of reshaping source columns for every year.

Row definition

drug_years.csv has one HCPCS code per service year. drugs.csv supplies code attributes; drug_trends.csv preserves CMS change measures; payment_benchmarks.csv holds the annual 2024 payment amount separately. source_row_status.csv accounts for every input row.

Unique key
hcpcs_code + year

Join keys and usage

Match hcpcs_code as text, plus year for a single annual observation. A code-only join returns five year slots, including unreported years. Names describe this edition and are not independently verified historical labels. No NDC, RxCUI or Part D crosswalk is inferred. Beneficiaries cannot be added across codes or years.

Compare Medicare Part B spending and billing units in Python →

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

Coverage

All 799 unique codes and original source rows are retained, producing 3,995 annual slots. The source is the annual 2024 reporting cohort; 673 earlier-year slots have no annual measures, and 110 other slots have partial reporting.

Limitations

  • Fee-for-service Part B only, excluding Medicare Advantage. CMS selects its latest-year ASP-file cohort with at least 11 claims. This is not the entire historical universe of drugs billed in 2020–2023.
  • Spending includes Medicare payments and beneficiary deductible/coinsurance in nominal dollars. It is not Medicare payments alone, a net manufacturer price, an acquisition cost or a clinical recommendation.
  • Dosage units follow each HCPCS billing description; they are not standardized patient doses. Claims are Part B claims, not prescription fills. Preserve the 277 annual CMS outlier flags when interpreting unit spending.
  • The average 2024 payment benchmark includes the applicable add-on and may use another statutory payment basis. It is not raw ASP, observed spending or a current quarterly rate.
  • Blank measures and 74 missing generic labels remain unreported. Single stars denote multiple names. Four CSV/workbook name differences are documented; CSV labels are retained. No scheduled refresh is promised.
Data preparation

Retains the original CSV, metadata, dictionary, methodology and companion reports. Lossless staging preserves source cells. Preparation reshapes annual columns, documents units, retains numeric precision, converts growth fractions to percentages and separates the annual payment benchmark. Independent acceptance compares every prepared cell with the original CSV; all 34,357 source measure cells reconcile with the annual workbook within source-rounding tolerance. 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 23 fields in CSV order
FieldTypeMeaning
hcpcs_codestringExact five-character HCPCS source code, stored as text. Includes numeric codes; no inferred NDC or RxCUI mapping.
hcpcs_descriptionstringExact CMS billing description from this edition, including the billing-unit quantity where given. Not an independently verified historical description for each year.
brand_namestringExact CMS brand label; * denotes multiple brand names, not administration routes. ** denotes unavailable names in the source dictionary.
generic_namestringExact CMS generic label; * denotes multiple generic names. Blank remains unreported; never inferred from brand or description.
yearintegerCalendar service year, 2020–2024.
total_spending_usdnumberFull claim spending including Medicare payments and beneficiary deductible/coinsurance; nominal dollars, not acquisition cost or net manufacturer revenue. Unit: USD. Blank is never zero.
total_spending_usd_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
total_dosage_unitsnumberQuantity defined by this HCPCS billing description. Not a standardized patient dose or comparable unit across codes. Unit: HCPCS_billing_units. Blank is never zero.
total_dosage_units_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
total_claimsintegerCMS Part B drug claims; not prescription fills or unique people. Unit: claims. Blank is never zero.
total_claims_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
total_beneficiariesintegerUnique fee-for-service beneficiaries for this code/year; not additive across codes or years. Unit: people. Blank is never zero.
total_beneficiaries_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
spending_per_dosage_unit_usdnumberCMS published spending divided by billed dosage units. Preserve the associated outlier flag. Not a dose price or current payment limit. Unit: USD_per_HCPCS_billing_unit. Blank is never zero.
spending_per_dosage_unit_usd_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
spending_per_claim_usdnumberCMS published spending divided by claims; not a fixed-duration price. Unit: USD_per_claim. Blank is never zero.
spending_per_claim_usd_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
spending_per_beneficiary_usdnumberCMS published spending divided by beneficiaries within this code/year. 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.
outlier_flaginteger1: spending per dosage unit affected by anomalous claim data; 0: not flagged; blank: not reported. A zero does not certify source accuracy. Unit: indicator. Blank is never zero.
outlier_flag_statusstringreported or not_reported; a blank source cell has no cell-specific reason code.
annual_statusstringreported: all eight annual cells present; partial: some blank; not_reported: all blank.
source_rowintegerOne-based data row in retained spending.csv.

Files included in the download

One ZIP · 230 KB · 19 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

Service years
2020–2024, from one annual 2024 edition
CMS metadata / dictionary
June 25, 2026
CMS linked methodology
January 2023 document retained as supplied
ACD capture / preparation
October 20, 2026 UTC · processing revision 1
Package prepared (UTC)

Source: Centers for Medicare & Medicaid Services, annual 2024 Medicare Part B 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 service-year window, June 2026 source metadata and October 2026 preparation are separate. Same-source processing improvements are included; later publisher editions may be sold separately.

Medicare Part B: 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.

1da147f81ccf09a341e05c3cfb294506ee6d0347f44431fe1b981fa9d82111ce

Complete dataset

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

$29 USD · one time · 3,995 HCPCS / year records

Get the full dataset