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.
| hcpcs_code | brand_name | year | total_spending_usd | total_dosage_units |
|---|---|---|---|---|
| 90371 | HyperHEP B* | 2020 | 82202.82 | 856 |
| 90371 | HyperHEP B* | 2021 | 63082.52 | 566 |
| 90371 | HyperHEP B* | 2022 | 76696.89 | 565 |
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 keyhcpcs_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 →
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.
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.
| Field | Type | Meaning |
|---|---|---|
hcpcs_code | string | Exact five-character HCPCS source code, stored as text. Includes numeric codes; no inferred NDC or RxCUI mapping. |
hcpcs_description | string | Exact CMS billing description from this edition, including the billing-unit quantity where given. Not an independently verified historical description for each year. |
brand_name | string | Exact CMS brand label; * denotes multiple brand names, not administration routes. ** denotes unavailable names in the source dictionary. |
generic_name | string | Exact CMS generic label; * denotes multiple generic names. Blank remains unreported; never inferred from brand or description. |
year | integer | Calendar service year, 2020–2024. |
total_spending_usd | number | Full 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_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
total_dosage_units | number | Quantity 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_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
total_claims | integer | CMS Part B drug claims; not prescription fills or unique people. Unit: claims. Blank is never zero. |
total_claims_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
total_beneficiaries | integer | Unique fee-for-service beneficiaries for this code/year; not additive across codes or years. Unit: people. Blank is never zero. |
total_beneficiaries_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
spending_per_dosage_unit_usd | number | CMS 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_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
spending_per_claim_usd | number | CMS published spending divided by claims; not a fixed-duration price. Unit: USD_per_claim. Blank is never zero. |
spending_per_claim_usd_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
spending_per_beneficiary_usd | number | CMS published spending divided by beneficiaries within this code/year. Unit: USD_per_person. Blank is never zero. |
spending_per_beneficiary_usd_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
outlier_flag | integer | 1: 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_status | string | reported or not_reported; a blank source cell has no cell-specific reason code. |
annual_status | string | reported: all eight annual cells present; partial: some blank; not_reported: all blank. |
source_row | integer | One-based data row in retained spending.csv. |
Files included in the download
One ZIP · 230 KB · 19 files. No account or subscription required.
README.mdImport guidance, method, attribution, and limitationsacceptance.json154,213 independent comparisons against original CSV cells and coverage reportall_tables_dictionary.jsonEvery field in all five tables: keys, units and meaningchecksums.jsonSHA-256 checksums for the release filesdata_dictionary.jsonTypes and definitions for every fielddrug_trends.csv799 code records · CMS unit-spending change and CAGR in percentdrug_years.csvMain prepared table · UTF-8 CSVdrugs.csv799 HCPCS codes · descriptions, exact names and name-availability flagsexample.pyNotebook-compatible spending and billing-unit comparisonexample_input.csvTwo selected real HCPCS codes matching the inline exampleexample_output.txtPrinted example resultsexample_result.csvExpected 2023–2024 comparison with outlier-review statusmetadata.jsonSource provenance, production time, counts, and CSV checksumpayment_benchmarks.csv799 code / year records · average 2024 payment amounts, including applicable add-onsprovenance.jsonRetained source identifiers, URLs and file checksumsquality_report.jsonCoverage, missingness, annual completeness and CMS outlier countsrevision.jsonChanges and free-upgrade eligibility for this ACD revisionsource_review.json34,357 CMS CSV/workbook measure comparisons and four reviewed name differencessource_row_status.csvEvery original CSV row · retained key and five annual destinations
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 recordOur 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.
1da147f81ccf09a341e05c3cfb294506ee6d0347f44431fe1b981fa9d82111ceComplete dataset
Medicare Part B Drug Spending & Utilization History, 2020–2024
$29 USD · one time · 3,995 HCPCS / year records