Medicare Part D State Drug Utilization History, 2020–2024
Compare prescription use and drug spending across states over five years. One prepared history brings together claims, standardized fills and gross costs, with national benchmarks and annual comparisons in separate tables.
2020–2024 observations · five CMS annual files · captured October 25, 2026
- Your starting data
- Two-character state FIPS codes, exact drug/generic names and calendar years from 2020 through 2024.
- The prepared result
- Eight CSV tables covering state history, national and other geography, annual comparisons, source accounting, geography, coverage and source editions.
Preview the data and download a sample
These are the first three rows from the delivered CSV, showing 7 of 37 fields. The free download contains the first five rows and all 37 fields; it is a format sample, not a coverage test.
| year | state_fips | geography_name | drug_name | generic_name | total_claims | total_drug_cost |
|---|---|---|---|---|---|---|
| 2020 | 01 | Alabama | 1st Tier Unifine Pentips | Pen Needle, Diabetic | 22 | 548.84 |
| 2020 | 01 | Alabama | 1st Tier Unifine Pentips Plus | Pen Needle, Diabetic | 31 | 694.26 |
| 2020 | 01 | Alabama | Abacavir | Abacavir Sulfate | 828 | 253807.04 |
Coverage and how to use the data
Uses
Build a state drug-market brief, compare a named drug’s growth across states, or study how prescription volume and gross spending move together. The annual comparisons retain missing endpoints, and national observations provide a separate published benchmark.
Row definition
One exact drug-name and generic-name pair, in one state or DC, in one calendar year. The main table contains 539,119 rows and 37 fields. Geography follows the prescriber’s NPPES location, not patient residence.
Unique keyyear + geography_id + drug_name + generic_name
Join keys and usage
Use year + geography_id + drug_name + generic_name. State FIPS codes are two-character text. Match both names exactly; 145 drug names have multiple generic-name pairings in the source history. No NDC, RxCUI, HCPCS or manufacturer crosswalk is inferred.
Coverage
2020–2024, with 539,119 state/DC observations, 17,972 separate national observations and 22,203 other-geography observations. The package also includes 462,407 adjacent-year comparisons, all 579,294 source-row outcomes, 63 geography definitions, a 315-row coverage grid and five source-edition records.
Limitations
- This covers Medicare Part D prescription events, including stand-alone drug plans and Medicare Advantage drug coverage. It is not all US prescribing, patient-residence utilization or a provider directory.
- Claims include fills and refills. Standardized 30-day fills are a separate measure. Beneficiary and prescriber counts overlap across drugs and years and must not be added as unique people.
- Costs are nominal gross drug costs before manufacturer rebates. They include multiple payer amounts, fees and applicable taxes; they are not net program spending, pharmacy acquisition costs or patient-specific prices.
- Suppressed numeric cells remain blank with status columns; original age-65 suppression flags are retained. An absent state/drug/year is not a zero-use observation, an approval or a discontinuation.
- National totals and territories, military, foreign, unknown and unreported locations remain separate. Use the published national table rather than treating a sum of state rows as the national total.
- Each annual file has its own observed drug roster. Exact-name changes can create gaps in a history, and no synonym reconciliation is inferred. CMS changed its long-acting-opioid category beginning in 2021.
What the prepared download adds
CMS publishes the original annual files free. The $29 download combines five years, separates geographic scopes, preserves suppression and includes checked annual comparisons and a working Python example.
| Task | Free source data | Included in this download |
|---|---|---|
| Compare the same drug across states and years | Five annual files use source-specific column names and mix national with state and other locations. | A consistent state/drug/year table keeps text FIPS and exact name pairs, with national and other geography in separate tables. |
| Measure annual changes without inventing missing observations | Each year has its own observed roster; a missing endpoint cannot be treated as zero. | 462,407 exact-name comparisons identify both observed endpoints, a missing prior row or a missing current row. |
| Explain the figures in a market brief | Claims, standardized fills, gross costs and beneficiary counts have different units and suppression rules. | Documented fields, status columns, original flags, coverage and source-row accounting accompany every observation. |
We retain the original annual files and documentation, stage every source cell without alteration, and prepare consistent state, national and other-geography tables. Text identifiers, original precision and suppression remain intact. Exact-name comparisons, coverage and complete source accounting are independently reconciled against the original files. Our preparation and versioning process →
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 |
|---|---|---|
year | number | Observation calendar year, distinct from capture, modified and preparation dates. |
geography_id | string | Source geography code; US for national and UNREPORTED for blank source geography. Not universally a FIPS code. |
geography_type | string | state (50 states/DC), territory, armed_forces, unknown, foreign, unreported or national. |
state_fips | string | Two-character text state/DC FIPS only; blank for every other geography. |
geography_name | string | Original NPPES prescriber-location label, not patient residence; unreported source remains blank. |
drug_name | string | Exact source Brnd_Name, including names used for generic products. Not a package identifier. |
generic_name | string | Exact source Gnrc_Name; use together with drug_name. No inferred NDC mapping. |
total_prescribers | number | Number of unique prescribers of Medicare Part D claims. |
total_prescribers_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
total_claims | number | The number of Medicare Part D claims. This includes original prescriptions and refills. Aggregated records based on total_claims fewer than 11 are not included in the data file. |
total_claims_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
total_30day_fills | number | Number of Standardized 30-Day Fills, Including Refills. |
total_30day_fills_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
total_drug_cost | number | The aggregate drug cost paid for all associated claims. This amount includes ingredient cost, dispensing fee, sales tax, and any applicable vaccine administration fees and is based on the amounts paid by the Part D plan, Medicare beneficiary, government subsidies, and any other third-party payers. |
total_drug_cost_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
total_beneficiaries | number | The total number of unique Medicare Part D beneficiaries with at least one claim for the drug. Counts fewer than 11 are suppressed and are indicated by a blank. |
total_beneficiaries_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
age65_claims | number | The number of Medicare Part D claims for beneficiaries age 65 and older. This includes original prescriptions and refills. A blank indicates the value is suppressed. See age65_utilization_suppression_flag regarding suppression of data. |
age65_claims_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
age65_30day_fills | number | The number of Medicare Part D standardized 30-day fills for beneficiaries age 65 and older.The standardized 30-day fill is derived from the number of days supplied on each Part D claim divided by 30. Standardized 30-day fill values less than 1.0 were bottom-coded with a value of 1.0 and standardized 30-day fill values greater than 12.0 were top-coded with a value of 12.0. If age65_claims is suppressed, this variable is suppressed. A blank indicates the value is suppressed. age65_utilization_suppression_flag regarding suppression of data. |
age65_30day_fills_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
age65_drug_cost | number | The aggregate total drug cost paid for all associated claims for beneficiaries age 65 and older. This amount includes ingredient cost, dispensing fee, sales tax, and any applicable vaccine administration fees and is based on the amounts paid by the Part D plan, Medicare beneficiary, government subsidies, and any other third-party payers. If age65_claims is suppressed, this variable is suppressed. A blank indicates the value is suppressed. See age65_utilization_suppression_flag regarding suppression of data. |
age65_drug_cost_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
age65_beneficiaries | number | The total number of unique Medicare Part D beneficiaries age 65 and older with at least one claim for the drug. A blank indicates the value is suppressed. See age65_beneficiary_suppression_flag regarding suppression of data. |
age65_beneficiaries_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
lis_beneficiary_cost_share | number | The aggregate total cost that beneficiaries using a drug, with a low-income subsidy, paid during the year. |
lis_beneficiary_cost_share_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
nonlis_beneficiary_cost_share | number | The aggregate total cost that beneficiaries using a drug, with no low-income subsidy, paid during the year. |
nonlis_beneficiary_cost_share_status | string | reported or suppressed; a blank numeric value is never filled with zero. |
age65_utilization_suppression_flag | string | Original CMS suppression flag GE65_Sprsn_Flag. Blank, * and # are preserved without assigning an undocumented symbol-specific meaning. |
age65_beneficiary_suppression_flag | string | Original CMS suppression flag GE65_Bene_Sprsn_Flag. Blank, * and # are preserved without assigning an undocumented symbol-specific meaning. |
opioid_flag | string | Original CMS Opioid_Drug_Flag classification: Y or N. No reclassification is inferred. |
long_acting_opioid_flag | string | Original CMS Opioid_LA_Drug_Flag classification: Y or N. No reclassification is inferred. |
antibiotic_flag | string | Original CMS Antbtc_Drug_Flag classification: Y or N. No reclassification is inferred. |
antipsychotic_flag | string | Original CMS Antpsyct_Drug_Flag classification: Y or N. No reclassification is inferred. |
source_file | string | Retained CSV filename alias; resolves through source_editions.csv. |
source_row | number | Logical CSV record number, with header numbered 1. |
Files included in the download
One ZIP · 83.2 MB · 22 files. No account or subscription required.
README.mdImport guidance, method, attribution, and limitationsacceptance.jsonIndependent reconciliation of all eight tables against original CMS filesannual_changes.csv462,407 adjacent-year exact-name comparisons with missing endpoints explicitchecksums.jsonSHA-256 checksums for the release filescoverage.csv315 geography/year coverage records, including three absent groupsdata_dictionary.jsonTypes and definitions for every fieldexample.pyNotebook-ready state drug comparisonexample_input.csvThree real state selectionsexample_output.txtExpected printed outputexample_result.csvThe three state comparison resultsgeographies.csv63 original geography codes and labels, with type and state FIPS where applicablemetadata.jsonSource provenance, production time, counts, and CSV checksumnational_drug_years.csv17,972 published national observations, separate from state sumsother_geography_drug_years.csv22,203 territory, military, foreign, unknown and unreported observationsprovenance.jsonRetained source identifiers, URLs and file checksumsquality_report.jsonCoverage, missingness and product-specific quality checksrevision.jsonChanges and free-upgrade eligibility for this ACD revisionsource_documentation_notes.jsonReviewed source dictionary, period-label and classification qualificationssource_editions.csvFive annual observation periods, CMS modified dates, URLs and retained hashessource_row_status.csvEvery one of the 579,294 original rows accounted for with a source-record hashstate_drug_years.csvMain prepared table · UTF-8 CSVtable_dictionary.jsonField definitions and exact keys for all eight CSV tables
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
- Observation years
- 2020–2024, five annual geography/drug files
- Source edition
- Available CMS annual-file versions retained October 25, 2026; individual modified dates in source_editions.csv
- Geography
- NPPES prescriber location, separate from patient residence
- ACD preparation
- October 25, 2026 UTC · processing revision 1
- Observation coverage (ISO 8601)
- 2020/2024
- Package prepared (UTC)
Source: Centers for Medicare & Medicaid Services, Medicare Part D Prescribers by Geography and Drug. Original government files are free. ACD sells preparation, documentation, validation and delivery. Independent preparation; no CMS endorsement.
Release history
Oct 25, 2026 · current package (UTC)
First ACD edition of these five retained annual files. Same-source processing improvements are included. Genuinely new source editions may be sold separately. No automatic refresh is promised.
Earlier years are observations in this purchase, not earlier ACD releases or guaranteed original-as-published CMS vintages. Adjacent-year differences are not publisher-revision counts.
Source editions, coverage 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 state_drug_years.csv. A matching checksum confirms identical CSV bytes.
894e93a996e4d782d536810848db2c70323ee175ab2715d143068bd942d634dfComplete dataset
Medicare Part D State Drug Utilization History, 2020–2024
$29 USD · one time · 539,119 state / drug / year records