Medication Cost Over Retirement Calculator: Project Prescription Spending
Use this guide to understand the assumptions, inputs, results, and next steps behind the calculator.
Created by Luis Gonzalez · Last updated June 28, 2026
Prescription costs can change substantially over a long retirement because drug prices, insurance premiums, and coverage limits do not necessarily rise at the same rate as general inflation. This calculator models annual medication out-of-pocket costs and Part D premiums from retirement age through the entered life expectancy. It reports projected nominal costs and inflation-adjusted costs so you can see both future-dollar spending and today-dollar equivalents.
The supplied default result has 25 years in retirement, with projection entries from age 65 through age 90. However, the precomputed output for total costs, average annual costs, the first-year cost, and individual projection values is null. Null is not the same as $0, so those results cannot support a trustworthy lifetime-dollar estimate. The calculator’s formulas and assumptions can still help identify which variables drive the projection, but verify that the displayed output returns numerical values before using it in a budget.
For context on other health spending, see the healthcare cost in retirement guide and the retirement healthcare cost calculator.
Inputs that shape the estimate
Enter current age, planned retirement age, and life expectancy. The calculator projects from retirement age through life expectancy, including both endpoints. That means the number of annual projection rows is life expectancy minus retirement age plus one. Its separate “years in retirement” result is calculated as life expectancy minus retirement age, so it is one less than the number of rows when both endpoints are included.
Enter current annual medication cost and an initial annual out-of-pocket maximum. The model increases medication costs by the medication-cost inflation rate and increases the assumed maximum by a separate rate. It caps annual drug out-of-pocket spending at the projected maximum. Enter the annual Part D premium separately; the model begins adding it at age 65 or the retirement age, whichever is later.
The remaining inputs separate medication inflation, general inflation, the annual increase in the assumed out-of-pocket maximum, and premium growth. These are planning assumptions, not forecasts of future law or actual insurance prices.
Default assumptions and output limitation
The default assumptions are age 55 now, retirement at 65, life expectancy 90, $3,000 current annual medication cost, $2,000 initial out-of-pocket maximum, 5% medication-cost growth, $480 annual Part D premium, 2.5% general inflation, 3% annual out-of-pocket maximum growth, and 4% Part D premium growth.
The precomputed output confirms 25 years in retirement and 26 projection rows, from age 65 through age 90. The monetary values are null in the supplied result, including the first-year retirement cost and both lifetime totals. Do not infer a cost from the “score” or substitute zero for a missing amount. If the live calculator also shows null values, treat the financial projection as unavailable until the calculation is corrected.
This limitation matters because the intended result depends on annual compounding and a cap applied at each age. Small changes in the assumed annual rates can compound over decades. The brand vs generic drug savings calculator and GoodRx vs insurance cost calculator can help examine near-term medication choices, but they do not replace a long-range projection.
What the model counts—and what it leaves out
The model’s annual medication cost is the lower of projected raw drug cost and projected out-of-pocket maximum. It then adds Part D premiums for years at or after its Medicare start age. This structure makes the estimate sensitive to whether the entered out-of-pocket maximum is realistic for the insurance coverage you expect.
The model is not a complete Part D plan analysis. Actual costs depend on whether each medication is covered, the plan’s deductible and cost-sharing, pharmacy network, formulary tier, and current benefit rules. The national annual out-of-pocket cap for covered Part D drugs is a statutory feature of current Medicare drug coverage; the model instead uses a user-entered starting cap and annual growth assumption. Verify current coverage rules at Medicare.gov’s prescription drug coverage pages.
The estimate also does not predict which medications you will take in future years. Health changes, generic availability, new treatments, dosage changes, and formulary changes can all affect actual spending. For an overall health budget, add costs beyond prescriptions using the retirement dental cost calculator and chronic illness retirement cost calculator.
Formula: projecting each year
The model first grows current medication costs to retirement age:
Medication cost at retirement = current annual medication cost × (1 + medication-cost inflation rate) ^ years until retirement
For each retirement year, it increases both the medication cost and the assumed out-of-pocket maximum:
Projected medication cost = medication cost at retirement × (1 + medication-cost inflation rate) ^ years since retirement
Projected out-of-pocket maximum = maximum at retirement × (1 + maximum growth rate) ^ years since retirement
It caps the annual drug spending estimate and adds the Part D premium when the projection reaches Medicare age:
Annual nominal cost = lower of (projected medication cost, projected out-of-pocket maximum) + applicable Part D premium
It then adjusts future costs for general inflation:
Annual real cost = annual nominal cost ÷ (1 + general inflation rate) ^ years from current age
The calculator sums annual nominal and real costs across the projection period, then divides each total by its reported years in retirement to calculate annual averages. Because the supplied monetary outputs are null, a numeric worked total would not match a verified screen result and should not be invented.
Test assumptions as planning scenarios
| Scenario | Medication growth | Maximum growth | Premium growth | Likely direction of modeled cost |
|---|---|---|---|---|
| Default assumptions | 5% | 3% | 4% | Baseline assumptions; supplied monetary result is null |
| Slower drug growth | 2.5% | 3% | 4% | Lower projected raw drug costs, all else equal |
| Faster drug growth | 7% | 3% | 4% | Raw medication costs reach the modeled cap sooner |
| Faster premium growth | 5% | 3% | 6% | Higher projected premium component after Medicare starts |
These rows describe the direction of the model’s formula, not calculated totals. To make the scenarios useful, the live calculator must produce numerical results for each one. Change only one assumption at a time so you can identify which input drives the difference.
A high medication growth rate does not necessarily cause out-of-pocket spending to rise without limit in this model, because spending is capped at the projected maximum. But the cap itself grows at its own rate. If the maximum rises more slowly than medication prices, the modeled out-of-pocket spending follows the maximum rather than the full retail drug cost.
Frequently asked questions
Why does the result show null instead of a dollar amount?
The supplied precomputed result has null values for all monetary totals and projection values. Null means the amount was not successfully calculated or supplied; it does not mean the cost is zero. Do not use a null lifetime total as a spending estimate.
Does the calculator include Part D premiums before age 65?
No. The model begins adding the annual Part D premium at the later of age 65 or the retirement age. It does project medication out-of-pocket costs for retirement years before that age if retirement starts earlier.
Why are there 26 annual rows but only 25 years in retirement?
The projection includes both the starting age and the ending age. Ages 65 through 90 create 26 rows, while subtracting 65 from 90 gives 25 years. The difference comes from inclusive endpoints.
Does the model include every Medicare prescription cost?
No. It applies a simplified medication-cost cap and premium assumption. It does not model each drug’s plan tier, pharmacy price, deductible timing, or formulary status. Check actual benefits using Medicare’s prescription drug coverage information.
Should I use general inflation or medication inflation for prescriptions?
They represent different assumptions in this calculator. Medication inflation increases projected raw drug costs, while general inflation converts future nominal costs to real-dollar values. Use separate assumptions and test a range rather than assuming prescription costs rise exactly with general prices.
Is a lower-premium Part D plan always the cheaper option?
No. A lower premium may be offset by higher deductibles or cost-sharing for your particular medications. Compare total expected costs and confirm that your prescriptions are covered, rather than selecting a plan by premium alone.
Can I rely on the result to choose a specific plan?
No. This is a long-term model, not a plan quote, and its supplied monetary results are null. Use current plan documents and Medicare’s plan comparison information to select coverage.
Next steps for planning medication costs
Build a current medication list with dosage and pharmacy, then compare plan coverage for those drugs. Test more than one medication-inflation and premium-growth assumption, but use the projection only after the calculator returns numeric totals. Add the estimate to your other retirement health expenses, including care, dental, and insurance costs.
For broader planning, estimate total medical expenses with the retirement healthcare cost calculator and explore care-related spending with the in-home caregiver cost calculator. Then compare projected expenses with your income and savings using a retirement needs calculator and a retirement withdrawal calculator.