HSA Retirement Strategy Calculator

Model using your HSA as a retirement account. See how paying medical costs out of pocket now builds a massive tax-free fund for retirement healthcare.

HSA Retirement Strategy

0
helpful
Create a free account to save and compare your results across devices.

This calculator is for informational and educational purposes only. Results are estimates based on the information you provide and standard financial formulas. This is not financial advice. Consult a qualified financial advisor for decisions specific to your situation. Full Disclaimer

Advanced HSA Retirement Strategy FIDELITY 2025

Single 65yo healthcare est: $172,500 Couple est: $345,000 Healthcare inflation: 5-6%/yr Medicare Part B 2026: $202.90/mo Fidelity 2025 RHCCE · CMS
PERSONALIZED FOR YOU

Personalized strategy projection appears after you Calculate

The Stealth Retirement Strategy — Pay Out-of-Pocket Now, Reimburse Later

Most people use the HSA as a checking account for medical expenses. But the maximum value comes from a different approach: pay current medical expenses out-of-pocket from your bank account, save the receipts, and let the HSA invest and compound for decades. There's no time limit on reimbursement — receipts from age 35 can be reimbursed tax-free at age 75.

HSA eligible until Medicare
2026 max: $4,400 self / $8,750 family
What you'd otherwise spend from HSA
7% = typical 60/40 portfolio
Two strategies, two outcomes (median scenario, age 35 → 65 with $8,550/yr contributions):
Strategy A — Pay from HSA: Contributes $8,550, withdraws $2,500/yr for medical. Net invested = $6,050/yr. After 30 years at 7%: ~$571,000
Strategy B — Pay out-of-pocket: Contributes $8,550 fully invested. After 30 years at 7%: ~$808,000
Strategy B advantage: ~$237,000

Why this works mechanically

  • No time limit on reimbursement. The IRS allows you to reimburse yourself for any qualified medical expense incurred AFTER you opened the HSA — even decades later. Save receipts in a folder or cloud drive.
  • 30 years of tax-free compounding. Every dollar you reimburse later is paid back in current dollars (no inflation adjustment), so the receipt's value stays constant while the HSA grows 7%/yr.
  • Built-in retirement flexibility. If you don't need the receipts, the HSA functions as a retirement account. After 65, non-medical withdrawals are taxed as ordinary income (no penalty) — same as a Traditional IRA.
  • Estate planning quirk. Inherited HSAs (non-spouse) are fully taxable in the year of death. So plan to spend it down — a benefit, not a bug, since there's $172,500+ in projected medical to apply it against.

This strategy was popularized by financial planners after 2010 IRS guidance confirmed receipts have no expiration date. Note: state tax treatment varies — California and New Jersey treat HSAs as taxable for state purposes, though the federal tax-free reimbursement still applies.

For Healthcare Spending in Retirement, HSA Beats 401(k) Every Time

When you withdraw $1 from a Traditional 401(k) to pay a medical bill in retirement, you owe ordinary income tax. The $1 from an HSA is tax-free. The math is unambiguous: fund medical expenses from HSA before 401(k), every time.

Scenario401(k) WithdrawalHSA Withdrawal (Medical)HSA Advantage
$10K medical bill, 22% bracketWithdraw $12,820 (gross-up for tax)Withdraw $10,000$2,820 saved
$25K medical bill, 24% bracketWithdraw $32,895Withdraw $25,000$7,895 saved
$50K medical bill, 32% bracketWithdraw $73,529Withdraw $50,000$23,529 saved
$100K LTC bill, 32% bracketWithdraw $147,059Withdraw $100,000 (LTC qualifies)$47,059 saved
Lifetime $172,500 (Fidelity est)Withdraw ~$253,676 @ 32%Withdraw $172,500~$81,176 saved
Beyond the income tax: IRMAA effect. Withdrawing $50K extra from a 401(k) to pay a medical bill could push you over an IRMAA threshold ($109K single / $218K MFJ for Tier 1) — adding $974/yr per person in extra Medicare premiums for the next 2 years. HSA withdrawals don't count toward MAGI for IRMAA. See IRMAA tax cliffs →

Qualifying medical expenses (often broader than people realize)

  • Long-term care insurance premiums (age-based limits: $5,960/yr at age 71+ in 2026)
  • Medicare premiums (Parts B, D, Medicare Advantage — but NOT Medigap)
  • COBRA premiums (if you're between jobs)
  • Long-term care services (nursing home, in-home care, assisted living for medically necessary care)
  • Dental, vision, hearing aids (typically not covered by Medicare)
  • Mental health, prescriptions, copays, deductibles, even some travel for medical care

See IRS Publication 502 for the complete list. Notably, Medigap (Medicare Supplement) premiums are NOT qualified — only Parts B, D, and Medicare Advantage. This is a common error.

Healthcare Cost Trajectory — Fidelity 2025 Estimate, Projected to Your Retirement

Fidelity's annual Retiree Health Care Cost Estimate has tracked retirement healthcare costs for 24 years. The 2025 estimate of $172,500 per single retiree at age 65 is up 4.5% from 2024's $165,000. Since 2002, the estimate has grown from $80,000 — a 115% increase in 23 years. Healthcare inflation outpaces general CPI by roughly 2 percentage points annually.

Retire In YearSingle Lifetime HealthcareCouple LifetimeSource / Projection Method
2002 (historical)$80,000~$160,000Fidelity inaugural estimate
2024 (historical)$165,000$330,000Fidelity 2024 RHCCE
2025 (latest)$172,500$345,000Fidelity 2025 RHCCE — most recent
2030 (projected)~$220,000~$440,0005% annual healthcare inflation
2035 (projected)~$281,000~$562,0005% annual healthcare inflation
2045 (projected)~$457,000~$914,0005% annual healthcare inflation
2055 (projected)~$745,000~$1,490,0005% annual healthcare inflation
The HSA-as-stealth-retirement framing: If you're 35 today and contribute $8,750/yr to a family HSA invested at 7%, you'd have ~$825,000 at age 65 — covering nearly all of your projected $914K couple healthcare cost in 2055. Without an HSA, that healthcare is funded from after-tax 401(k) withdrawals at ordinary income rates, requiring you to withdraw $1.2M+ to net $914K.

What's NOT included in the $172,500 estimate

  • Long-term care — Genworth 2024 puts national median nursing home at $111,325/yr; ~70% of 65-year-olds will need some LTC. Average lifetime LTC: $235,000.
  • Dental, vision, hearing beyond what Medicare covers (Medicare covers very little of these).
  • Pre-Medicare bridge if retiring before 65 (premium costs $15K-$25K/yr per person on the ACA marketplace).
  • Out-of-network specialists, alternative medicine, concierge medicine, etc.

Sources: Fidelity 2025 Retiree Health Care Cost Estimate (24th annual). Genworth Cost of Care Survey 2024. HHS ACL — LTC Need Statistics. Healthcare inflation projections at 5% reflect the long-term average; recent years have run higher (5.5-6.5%).

Medicare Enrollment Permanently Stops HSA Contributions

The single most important HSA-retirement rule: once you enroll in any part of Medicare, you can no longer contribute to an HSA. Existing HSA balances continue to grow tax-free and can still be used for qualified expenses (including Medicare premiums) — but no new contributions. This affects strategy for everyone working past 65.

ActionEffect on HSA ContributionsEffect on HSA Withdrawals
Enroll in Medicare Part A (auto at 65 if claim SS)STOP contributions month of enrollmentContinue tax-free for medical
Enroll in Medicare Part BSTOP contributionsUse HSA to pay Part B premiums tax-free
Enroll in Medicare Part DSTOP contributionsUse HSA for Part D premiums tax-free
Enroll in Medicare Advantage (Part C)STOP contributionsUse HSA for Part C premiums tax-free
Stay on employer HDHP past 65Continue, IF you delay MedicareSame
Take Social Security at 65+Auto-enrolls Part A → STOP HSA
The 6-month lookback trap: Medicare Part A enrollment is RETROACTIVE up to 6 months before your application date (if you're already 65+). To avoid excess HSA contributions, stop HSA contributions 6 months before applying for Medicare or Social Security. Excess contributions face a 6% annual excise tax until corrected.

Pre-Medicare bridge planning (early retirees 60-64)

  • Use HSA aggressively for COBRA/ACA premiums — fully qualified expense, tax-free withdrawal.
  • Roth conversion gap years — IRMAA looks back 2 years, so 60-62 is the optimal Roth conversion window. HSA helps cover the medical layer of the bridge expenses.
  • Last full-year HSA contribution if retiring at 64 — contribute the full $4,400/$8,750 limit even if you only have HDHP coverage part of the year (last-month rule).

Source: IRS Publication 969 on HSAs and Medicare. Last-month rule per IRC §223. The 6-month Medicare retroactive rule is documented in SSA enrollment guidelines.

HSA Drawdown Sequencing — When To Use It

In retirement, the optimal withdrawal sequence isn't intuitive. Most retirees default to Traditional 401(k) first, but that triggers ordinary income tax + IRMAA risk. The HSA should be used STRATEGICALLY — for medical expenses (always) and for IRMAA-management years.

Years 65-72 (pre-RMD) HSA

Use HSA aggressively for medical expenses. No RMDs forced yet. Reimburse old receipts to fund non-medical lifestyle expenses (the receipts are tax-free withdrawals). Roth conversions optimal in 60-72 gap years.

Years 73+ (RMDs begin) RMD First

RMDs are mandatory — meet them first. Layer HSA withdrawals on TOP for medical expenses (which RMDs would otherwise force you to pay from after-tax dollars). HSA never has RMDs.

IRMAA spike years HSA

If a one-time event (capital gains, Roth conversion, home sale) pushes income near IRMAA thresholds, tilt medical spending to HSA — those withdrawals don't count toward MAGI, while 401(k) does.

LTC needs HSA

LTC is qualified. Long-term care insurance premiums (age-limited) and direct care costs both qualify. For a 71+ retiree, up to $5,960/yr of LTC insurance premium is tax-free from HSA.

Inheritance consideration: If your spouse inherits the HSA, it remains tax-free in their hands. If a non-spouse inherits (children, etc.), the entire HSA balance becomes taxable income to them in the year of death. This makes HSAs LESS efficient as legacy vehicles than Roth IRAs (which inherited tax-free) — so plan to spend it down rather than pass it on.

Drawdown sequencing follows the consensus from financial planners (Pfau, Kitces, Bogleheads). The key insight: HSA tax-advantaged status is wasted if you die with a large balance. Spend it for medical (which you'll have plenty of) before non-medical use after 65 (which is taxable like a 401(k) anyway).

Things to Know

Essential concepts for understanding your results

The Strategy
How do you use an HSA as a retirement account?

The HSA retirement strategy: contribute the maximum, invest aggressively, pay all current medical costs out-of-pocket, and save every receipt. At age 65+, reimburse yourself tax-free for decades of accumulated medical expenses — or withdraw for any purpose (taxed as income, no penalty). $8,550/year (family) invested at 8% for 25 years grows to approximately $680,000. No other account offers a tax deduction going in, tax-free growth, AND tax-free withdrawals for medical expenses.

Receipt Vault
Why should you save medical receipts for decades?

There is no time limit on HSA reimbursement. A $500 dental bill paid out-of-pocket in 2026 can be reimbursed from your HSA in 2056 — tax-free. Meanwhile, that $500 stayed invested and grew for 30 years. Save receipts digitally (photograph and store in organized folders by year). Over 20-30 years, accumulated unreimbursed medical expenses can total $50,000-150,000 — all available as a tax-free lump withdrawal whenever you choose.

After 65
What changes about the HSA at age 65?

After 65: non-medical withdrawals are taxed as ordinary income but no 20% penalty — identical to a traditional IRA. Medical withdrawals remain completely tax-free. Medicare enrollment triggers: you can no longer contribute to an HSA once enrolled in Medicare Part A (which is automatic at 65 if receiving Social Security). Stop HSA contributions the month before Medicare starts. Existing HSA funds can still be used and invested indefinitely regardless of Medicare status.

Medicare Premiums
Can you use HSA funds to pay Medicare premiums?

Yes — HSA funds can pay Medicare Part B premiums, Part D premiums, and Medicare Advantage premiums tax-free. This is one of the most underutilized HSA benefits. If your Part B premium is $185/month ($2,220/year), paying from the HSA saves $488-822 in annual taxes (22-37% bracket) compared to paying with after-tax dollars. Medigap (supplemental) premiums are NOT an HSA-qualified expense. Set up automatic premium payments from your HSA for maximum convenience.

Why Your HSA Beats a 401(k) for Healthcare in Retirement

The average 65-year-old couple will spend approximately $315,000 on healthcare throughout retirement, according to Fidelity's annual estimate. Medicare premiums, supplemental insurance, dental, vision, prescriptions, and long-term care costs add up relentlessly — and these expenses are largely unavoidable.

A 401(k) or traditional IRA requires you to pay income tax on every withdrawal used for healthcare. A Roth IRA avoids income tax but still ties up contributions that could go toward the tax deduction. The HSA is the only account that provides a tax deduction going in AND tax-free withdrawals for medical costs — both benefits simultaneously.

If you contribute $4,300/year (individual) for 25 years at a 7% average return, your HSA grows to approximately $290,000. At the family rate of $8,550/year, it reaches roughly $575,000. That is enough to cover the majority — or all — of a couple's lifetime healthcare costs, completely tax-free.

The Pay-Out-of-Pocket Strategy

The most powerful HSA strategy is counterintuitive: never use your HSA for current medical expenses. Instead, pay everything out of pocket and let your HSA balance grow undisturbed.

Here is why this works: A $500 doctor visit paid from your HSA costs you $500 in lost tax-free growth. That same $500 left invested for 25 years at 7% becomes $2,714 — all available tax-free for future medical costs. Paying $500 out of pocket today and keeping $500 invested is equivalent to getting $2,214 in free money.

Save every medical receipt. The IRS places no time limit on reimbursements. You can reimburse yourself for a 2026 doctor visit in 2046 — the withdrawal is still tax-free. This effectively creates a parallel tax-free account you can tap at any time for any reason (medical) while your balance compounds.

HSA in Retirement: Your Drawdown Plan

Before 65: HSA funds can only be withdrawn tax-free for qualified medical expenses. Non-medical withdrawals face income tax plus a 20% penalty. Use your HSA exclusively for medical costs during this period, or let it grow.

After 65: The 20% penalty disappears. Medical withdrawals remain tax-free, and non-medical withdrawals are taxed as ordinary income (identical to a traditional IRA). This gives you complete flexibility — use the HSA for Medicare premiums, long-term care costs, dental work, prescriptions, or any other expense.

Optimal drawdown sequence: In retirement, use your HSA first for all healthcare costs (tax-free). Use Roth funds for additional spending (tax-free). Use taxable accounts next (capital gains rates). Draw from traditional IRA/401(k) last or strategically to stay within lower tax brackets. This sequence minimizes lifetime taxes.

Medicare Premiums and Your HSA

After enrollment in Medicare, you can no longer contribute to your HSA, but you can continue spending the balance tax-free on qualified medical expenses — including Medicare Part B and Part D premiums, Medicare Advantage premiums, and long-term care insurance premiums (up to age-based limits).

Medicare Part B premiums are approximately $185/month in 2026. Using HSA funds to pay these premiums saves you the income tax you would otherwise pay on IRA/401(k) withdrawals used for the same purpose. Over 20 years of retirement, this can save $15,000-$30,000 in taxes compared to paying premiums from pre-tax retirement accounts.

Frequently Asked Questions

How much could my HSA be worth at retirement?
Contributing $4,300/year (individual) at 7% returns for 30 years grows to approximately $430,000. Family contributions of $8,550/year reach roughly $860,000. Even 20 years of individual contributions reaches about $190,000 — all available tax-free for medical expenses.
Can I use my HSA to pay Medicare premiums?
Yes. Medicare Part B, Part D, and Medicare Advantage premiums are qualified medical expenses. You can pay them tax-free from your HSA. However, Medigap (Medicare Supplement) premiums do not qualify for tax-free HSA withdrawals.
What happens to my HSA when I die?
If your spouse is the beneficiary, they inherit the HSA as their own — maintaining all tax benefits. If a non-spouse inherits, the account loses its tax-advantaged status and the entire balance becomes taxable income to the beneficiary in the year of death.
Should I use my HSA or pay out of pocket?
If you can afford to pay out of pocket, keeping funds invested in your HSA is almost always better. Every dollar left invested grows tax-free. Save your receipts — you can reimburse yourself at any future date. The longer the money compounds, the greater the benefit.
Can I contribute to an HSA after age 65?
Only if you are not enrolled in any part of Medicare and are still covered by a qualifying HDHP. Once you enroll in Medicare, contributions must stop — but you can continue spending and investing the existing balance indefinitely.