Healthcare in Retirement Calculator
Estimate lifetime healthcare costs in retirement, calculate the pre-65 insurance gap before Medicare, and project your HSA growth with the triple tax advantage. Based on Fidelity's 2026 estimate of $365,000 for a couple.
Try another scenario
How to Use This Calculator
Lifetime Healthcare Cost tab
The default tab. Enter your current age, retirement age, and expected lifespan. The calculator estimates total healthcare spending from retirement through end of life, broken into pre-65 (no Medicare) and post-65 (Medicare) periods. Expand "More options" to adjust health status, chronic conditions, current spending, medical inflation rate (default 5.5%), and single vs couple coverage. Results are benchmarked against Fidelity's 2026 estimate of $365,000 for a 65-year-old couple.
Pre-65 Gap tab
For early retirees who retire before Medicare at 65. Enter your retirement age, COBRA monthly cost, and ACA marketplace premium estimate. The calculator computes your total pre-65 insurance cost, shows the COBRA-to-ACA-to-Medicare transition timeline, and estimates ACA premium tax credits based on your income relative to the Federal Poverty Level. Expand "More options" to adjust employer cost, COBRA duration, dependents, income, and state.
HSA Strategy tab
Project your HSA balance at retirement and see how many years of healthcare it covers. Enter your current age, current HSA balance, and HDHP coverage type. The calculator shows the power of the triple tax advantage (deductible contributions + tax-free growth + tax-free medical withdrawals) and compares HSA vs a taxable investment account.
Share your result
Every input is encoded in the URL. Click Share to send your exact scenario to a spouse, financial advisor, or benefits coordinator.
The Formula
Healthcare in retirement involves multiple cost layers that compound differently before and after Medicare eligibility:
Year N Cost = Annual Cost × (1 + Medical Inflation Rate)^N
Pre-65 Annual = Year N Cost + Insurance Premium (COBRA or ACA)
Post-65 Annual = (Year N Cost × 20%) + Medicare Premiums + Medigap Premium
Total Lifetime = ∑ Pre-65 Annual Costs + ∑ Post-65 Annual Costs
HSA at Retirement = Current Balance × (1 + Return)^Years + ∑ Annual Contributions × (1 + Return)^(Years − N)
Years of Coverage = HSA Balance at Retirement ÷ Expected Annual Healthcare Cost
Medical inflation has averaged 5-6% per year over the past two decades — roughly double general inflation. This means healthcare costs double roughly every 13 years. A $6,000 annual cost at age 55 becomes $16,000+ by age 75 and $43,000+ by age 95.
Medicare covers approximately 80% of approved costs, but the remaining 20% plus premiums, dental, vision, hearing, and long-term care can still be substantial. Medigap or Medicare Advantage plans help cover the gap but add their own premiums.
Example
Maria and James — retiring at 60, covering the 5-year gap before Medicare
Maria (60) and James (60) plan to retire together. James has employer coverage costing $500/month for their share. COBRA would cost $2,100/month for couple coverage. They expect $60,000/year in retirement income from 401(k) withdrawals. Their current annual healthcare spending is $8,000 combined, and James has one chronic condition (Type 2 diabetes).
Lifetime Healthcare Cost tab
Pre-65 Gap tab
Maria and James will pay $71,400 in health insurance premiums alone during the 5-year gap. Using COBRA for the first 18 months keeps their doctors, then they transition to an ACA marketplace Silver plan with partial subsidies.
HSA Strategy tab
Their HSA, invested and compounding at 7%, could cover 13+ years of healthcare costs and save $26,700 in taxes vs a regular investment account.