Coastline Open the calculator →
Health Savings Account

Free HSA retirement calculator

An HSA retirement calculator treats the Health Savings Account as what it quietly is: the most tax-advantaged retirement account in the US code. It's the only account that is triple tax-free — deductible going in, tax-free growth, and tax-free coming out for medical costs. Used deliberately (contribute the max, invest it, pay today's medical bills out of pocket), an HSA becomes a stealth IRA — and Coastline models the contributions, growth, and retirement drawdown inside your full plan.

$373,000 by 65 — in today's dollars
A 40-year-old family maxing the HSA ($8,750/yr, invested, medical paid out of pocket) reaches about $373,000 in real terms by 65 — while cutting roughly $1,925 off the household's tax bill in year one alone.

The triple tax advantage, spelled out

Tax treatment: HSA vs the other retirement accounts
AccountMoney inGrowthMoney out
HSA (medical)DeductibleTax-freeTax-free
Traditional 401(k)/IRADeductibleDeferredTaxed as income
Roth IRA/401(k)After-taxTax-freeTax-free
Taxable brokerageAfter-taxTaxed on gainsCapital gains

No other account wins all three columns. The 2026 contribution limits: $4,400 self-only coverage, $8,750 family, plus a $1,000 catch-up from age 55.

The strategy: invest it, don't spend it

How Coastline models it

Enter your balance, annual contribution, and coverage type; choose how much of each year's contribution is spent on current medical costs versus invested; and set the retirement drawdown. The projection applies the IRS cap (indexed, with the 55+ catch-up), deducts contributions from your taxable income, compounds the invested balance, and draws it in retirement — all visible in the year-by-year math and an optional HSA table column.

Why Coastline's version is different

Most free calculators hand you a single headline number with the assumptions hidden. Coastline is built the opposite way:

Educational, not tax advice. HSA eligibility requires a qualifying high-deductible health plan (HDHP); contributions stop at Medicare enrollment (65). State treatment varies (a few states tax HSA contributions or earnings). Figures: family coverage maxed from 40, invested at 7% nominal, 3% inflation, shown in today's dollars.

Run this with your real numbers
Add your HSA balance and contributions to a full plan — tax savings now, compounding in between, and the retirement draw.
Open the free calculator →

Common questions

Can an HSA really be used as a retirement account?

Yes — deliberately so. Contributions are deductible, growth is tax-free, and withdrawals for medical costs (of which retirement has plenty) are tax-free: the only triple-tax-free account in the code. After 65, non-medical withdrawals are taxed like a traditional 401(k) with no penalty, so the downside case is still a good retirement account.

How much can I contribute to an HSA?

For 2026: $4,400 with self-only HDHP coverage, $8,750 with family coverage, plus a $1,000 catch-up starting the year you turn 55. The limits are inflation-indexed, and you must be on a qualifying high-deductible plan to contribute.

Should I spend my HSA or invest it?

If cash flow allows, pay current medical bills out of pocket and leave the HSA invested — spending it each year forfeits decades of tax-free compounding. In this page’s example, a family maxing and investing from 40 reaches roughly a third of a million in today’s dollars by 65.

What happens to an HSA after 65?

It keeps working: medical withdrawals (including Medicare premiums, dental, hearing, long-term care) stay tax-free, non-medical withdrawals are taxed as ordinary income with no penalty, contributions end at Medicare enrollment, and there are no required minimum distributions.

Keep exploring