190+ calculators  /  US · CA · IN   /  no sign-up · no lead forms
RealMoneyIQ
Home / Retirement / HSA Calculator

HSA Calculator

↻ Updated 2026

See how a Health Savings Account grows with its triple tax advantage — deductible contributions, tax-free growth and tax-free medical withdrawals — using the 2026 contribution limits.

Educational calculators — always consult a licensed professional before making financial decisions.

Your inputs
Coverage
Age 55 or older
Annual contribution
2026 cap: $4,400
Current HSA balance
Years to grow
Expected annual return
Invested HSA (not cash)
Marginal tax rate
Federal + state, for the deduction
Balance in 20 yr
$116,771
grows and withdraws tax-free
Tax saved on contributions
$14,400
$720/yr upfront
Tax-free growth
$54,771
never taxed for medical use
What builds your HSA
Current balance$2,000
Contributions$60,000
Tax-free growth$54,771
Triple tax advantage
Annual contribution (capped)$3,000
1. Tax deducted going in (per year)− $720
2. Growth compounds tax-free$54,771
3. Withdrawals for medical costs$0 tax
Projected balance in 20 years$116,771
ASSUMPTIONS 2026 HSA limits (IRS Notice 2025-67): $4,400 self-only and $8,750 family, plus a $1,000 catch-up at age 55+. Contributions are pre-tax (or above-the-line deductible), growth compounds tax-free, and withdrawals for qualified medical expenses are tax-free — the triple advantage. Returns are assumed constant; only the invested portion grows. Non-medical withdrawals before 65 face income tax plus a 20% penalty.

Runs entirely in your browser — nothing you enter is sent to us.How this works

How to read your HSA projection

Three tax breaks, and the page shows them separately because they arrive at different times. The deduction is cash this April. The growth is untaxed for as long as you hold it. The withdrawal is untaxed forever, provided it's for medical costs — which, over a long enough retirement, is a condition most people meet without trying.

The default $3,000 leaves $1,400 of allowance unused. Contributing the full $4,400 raises the 20-year balance from $116,771 to $168,271 and the total deduction from $14,400 to $21,120.
The tax-saved figure is the deduction, not a return. It's real money — $720 a year at the defaults — but it's the same break a traditional 401(k) gives you. The tax-free withdrawal is the part no other account offers.
An HSA only beats a Roth if the money leaves for medical costs. If it doesn't, after 65 it behaves like a traditional IRA — compare with the Roth IRA calculator.

How HSA growth and the triple tax advantage are calculated

The balance is a plain future-value calculation with contributions added at the end of each year. What makes an HSA an HSA isn't the compounding — it's that no tax is levied at any of the three points where other accounts take a bite.

The tax saving is calculated separately and deliberately kept out of the balance. Your deduction is money that stays in your pocket in April, not money that lands in the account — so adding it to the projection would be double-counting.

cap = (4,400 self-only | 8,750 family) + (1,000 if age 55+) contrib = min(your contribution, cap) balance = starting balance × (1 + return) ^ years + contrib × ((1 + return) ^ years − 1) ÷ return tax saved per year = contrib × marginal rate growth = balance − starting balance − contrib × years

cap
The 2026 HSA contribution limit for your coverage$4,400 self-only, $8,750 family, plus a $1,000 catch-up from age 55 (IRS Rev. Proc. 2025-19)
contrib
What actually goes in each yearyour figure, capped — the slider can't exceed the limit
starting balance
What your HSA holds todaycompounds for the whole horizon
return
Expected annual return on the invested portionmost HSAs hold a cash floor that earns far less — see the limitations
years
How long you leave it alonethe model assumes no withdrawals at all across the horizon
marginal rate
Your combined federal and state rate, for valuing the deductionHSA contributions through payroll also escape FICA — this model doesn't count that
growth
Compounding, net of what you and your balance put intax-free if withdrawn for qualified medical expenses

The triple advantage is genuinely unique in the US code — no other account is untaxed going in, growing and coming out. A 401(k) gives you the first two; a Roth gives you the last two. But the third leg has a condition attached, and the condition is that the money leaves for qualified medical expenses. The model assumes it does. It also assumes you're eligible to contribute for all 20 years, which requires being covered by a qualifying high-deductible health plan the entire time — a status this calculator never checks. For the workplace comparison, see the 401(k) calculator.

Worked examples

Example: $3,000 a year for 20 years at a 24% marginal rate

The calculator's defaults — self-only coverage, under 55, $2,000 in the account today, invested at 6%, nothing withdrawn.

2026 cap (self-only)your $3,000 is under it, so nothing is capped away$4,400
Tax saved per year$3,000 × 24% — cash back in April$720
Total tax saved, 20 years$720 × 20$14,400
Total contributed$3,000 × 20$60,000
Tax-free growth$116,771 − $2,000 − $60,000$54,771
Balance in 20 yearstax-free for medical costs$116,771

$116,771 of which $54,771 was never taxed at any stage, plus $14,400 of deductions collected along the way. Compare that $54,771 against a taxable account: at 24% the growth alone would owe roughly $13,145 in tax. The deduction is the visible break; the untaxed growth is the bigger one.

Example: the same person contributes the full $4,400

Everything else identical — 20 years, 6% return, 24% rate, $2,000 starting balance. Only the contribution moves, from $3,000 to the 2026 self-only limit.

Annual contributionup $1,400 — the unused allowance$4,400
Total contributedup $28,000$88,000
Total tax savedup $6,720$21,120
Tax-free growthup $23,500$78,271
Balance in 20 yearsup $51,500$168,271
Net cost of the extra$28,000 contributed − $6,720 of deductions$21,280

$21,280 of after-tax money bought $51,500 of tax-free balance. The unused $1,400 a year is the most expensive thing on this page — HSA room doesn't carry forward, so an allowance you don't use in 2026 is gone for good, unlike the balance itself.

Frequently asked questions

Can I use my HSA as a retirement account?

Yes, and the tax treatment is better than any account designed for the purpose — provided the money eventually leaves for medical costs. There are no required minimum distributions, so unlike a traditional IRA nothing forces the balance out in your seventies, and it can compound untouched indefinitely.

The strategy that makes the arithmetic work is paying current medical costs out of pocket and leaving the HSA invested. Receipts have no expiry under the rules: an expense incurred in 2026 can be reimbursed from the HSA in 2050, tax-free, provided the expense came after the account was opened and you never claimed it elsewhere. That turns a decades-old receipt into a tax-free withdrawal key. It requires keeping records for thirty years, which is the part the strategy write-ups tend to skate over.

What happens to my HSA after age 65?

The 20% penalty on non-medical withdrawals disappears. From 65 the account works like a traditional IRA for any non-medical spending — ordinary income tax, no penalty — while medical withdrawals stay entirely tax-free. That's the floor under the whole strategy: worst case, an HSA is a 401(k) with a wider deduction.

The list of qualified expenses also widens at 65 to include Medicare Part A, B, C and D premiums — though not Medigap. Long-term care insurance qualifies within age-based limits. What ends at 65 for most people is contributing, because enrolling in Medicare disqualifies you. If it becomes a de facto traditional IRA for you, the traditional vs Roth calculator is the right frame for what it's worth.

Do HSA funds expire at the end of the year?

No. This is the difference people most often get wrong, because they're thinking of an FSA. HSA balances roll over indefinitely, there's no use-it-or-lose-it rule, and the account is yours — it goes with you when you change jobs or health plans, unlike an FSA, which is your employer's.

One thing does expire: the contribution allowance. The $4,400 self-only limit is annual and doesn't carry forward, so an unused $1,400 in 2026 can't be added to 2027. That's the asymmetry the second example above prices — the money never expires, the room to add money does. You can also keep spending a balance after you stop being eligible to contribute; eligibility governs deposits only.

Can I contribute to an HSA if I'm on Medicare?

No. Enrolling in any part of Medicare — Part A alone is enough — ends your eligibility to contribute from that month. You can still spend the balance, tax-free, on qualified expenses including Medicare premiums. It's the deposits that stop, not the account.

The trap is retroactivity. Part A coverage can backdate up to six months when you enrol after 65, which can retroactively disqualify contributions you'd already made and turn them into excess contributions subject to tax. The widely-published guidance is to stop contributing six months before enrolling in Part A or claiming Social Security — because claiming benefits at 65 or later automatically enrols you in Part A. This calculator applies no eligibility test at all and will project a 40-year contribution stream regardless of your age.

What this HSA calculator doesn't check

The compounding is straightforward. Eligibility — which is the hard part of an HSA in practice — is entirely absent from the model.

  • Whether you're eligible at all Contributing requires coverage under a qualifying high-deductible health plan, with no other disqualifying coverage. The calculator never asks, and the HDHP deductible and out-of-pocket thresholds that define "qualifying" aren't in our data module — check IRS Rev. Proc. 2025-19 for the 2026 figures.
  • Medicare ends contributions The model will happily project 40 years of deposits from any starting point. Enrolling in Medicare stops eligibility, which for most people means contributions end around 65 — well before a long projection assumes.
  • The cash floor The return is applied to the whole balance. Most HSA providers require a minimum in cash before you can invest, and that portion earns close to nothing — so a real account compounds a bit slower than the projection.
  • It assumes you never spend it Not a dollar comes out across the horizon. An HSA used as a health account — paying this year's costs from this year's contributions — never builds the balance shown here, and that's the ordinary way to use one.
  • The deduction is undercounted Tax saved is contribution × marginal rate. Contributions made through payroll also escape Social Security and Medicare tax, which no other retirement account allows and this model doesn't credit — so the real saving is larger than $720.
  • Non-medical withdrawals before 65 The balance is labelled tax-free, which holds only for qualified medical expenses. Take it for anything else before 65 and it's ordinary income plus a 20% penalty — double the 401(k) penalty.
Related calculators
Sources & rate references

Rates, brackets and limits here are checked against primary sources. If a number still looks off, email support@realmoneyiq.com and we'll review and fix it.

RealMoneyIQ provides free educational calculators, not financial, tax, investment or legal advice. Results are estimates based on the assumptions you enter and publicly published rates; your actual outcome will differ. Always confirm decisions with a licensed professional who knows your full situation.