Calculatorz

Free calculator — no sign-up

HSA Calculator

A Health Savings Account is the only account that is triple tax-advantaged: contributions are tax-deductible, growth is tax-free, and withdrawals for medical expenses are tax-free. Enter your contributions and return to see your balance at retirement and the tax you save along the way.

A white piggy bank with a 20 euro note inserted
A white piggy bank with a 20 euro note inserted — Photo by El Jundi on Pexels

Your numbers

Your result

HSA balance at retirement$290,781.91

Total contributed
$132,500.00
Tax saved each year
$1,166.00
Total tax saved over the periodon contributions, at your marginal rate
$29,150.00

Results update as you type. They are estimates for planning — see the disclaimer below.

How it works

Balance at retirement = total annual contribution × ((1 + r)^years − 1) ÷ r, where total annual contribution is your contribution plus your employer's. Tax saved each year = total annual contribution × your marginal tax rate. HSA contribution limits and rules follow IRS Publication 969. After age 65, non-medical withdrawals are taxed as ordinary income with no penalty, like a traditional IRA.

How to use it

  1. Enter your annual HSA contribution and any employer contribution.
  2. Set your expected annual return and the years until retirement.
  3. Enter your marginal tax rate to see the tax saving.
  4. Read your projected balance and total tax saved — the two halves of the HSA's value.

Worked example

Contributing $4,300 a year plus a $1,000 employer contribution for 25 years at a 6% return, with a 22% marginal tax rate.

Step 1 — total annual contribution: $4,300 + $1,000 = $5,300. Step 2 — growth factor: (1.06)^25 = 4.2919, so the annuity factor is (4.2919 − 1) ÷ 0.06 = 54.8645. Step 3 — balance: $5,300 × 54.8645 = $290,781.91. Step 4 — total contributed: $5,300 × 25 = $132,500, so growth adds $158,281.91. Step 5 — tax saved each year: $5,300 × 22% = $1,166, and over 25 years that is $1,166 × 25 = $29,150. The $29,150 of tax saved is on top of the balance — it is money that stayed in your pocket instead of going to tax.

Result: $290,781.91 at retirement, with $29,150 of tax saved on the contributions.

Try it yourself: enter the example numbers above and check you get the same answer.

What your result means

A $290,781 HSA at retirement is a powerful medical fund: withdrawals for qualified medical expenses are tax-free at any age, and after 65 you can also use it like a traditional IRA for anything else. The $29,150 of tax saved is the immediate benefit — no other account gives you a deduction going in, tax-free growth, and tax-free withdrawals for medical costs. If you can afford it, the best HSA strategy is to contribute the maximum, pay medical bills out of pocket while working, keep the receipts, and let the HSA compound untouched.

Frequently asked questions

Who can open an HSA?

Anyone enrolled in a high-deductible health plan (HDHP) with no other disqualifying coverage. For 2025 the IRS requires a minimum deductible of $1,650 for self-only coverage or $3,300 for family coverage. You cannot contribute once you enroll in Medicare. See IRS Publication 969 for the current limits.

What is the HSA contribution limit?

For 2025 the limit is $4,300 for self-only coverage and $8,550 for family coverage, with an extra $1,000 catch-up if you are 55 or older. Employer contributions count toward the same limit. The IRS adjusts the limits most years.

What can I spend HSA money on?

Qualified medical expenses: doctor visits, prescriptions, dental and vision care, and more (IRS Publication 502 lists them). Withdrawals for qualified expenses are tax-free at any age. Non-medical withdrawals before 65 are taxed plus a 20% penalty; after 65 the penalty disappears and they are taxed as ordinary income.

Does HSA money expire at the end of the year?

No — unlike a flexible spending account (FSA), HSA funds roll over year after year and stay with you even if you change jobs or health plans. That is what makes the HSA a retirement account as well as a medical account.

Should I invest my HSA or keep it in cash?

If you use the HSA for current medical bills, keep a cash buffer for the year's deductible. Money you will not need for years is usually better invested, like a retirement account — many HSA providers offer index funds once your balance passes a threshold.

Guides

More in Retirement calculators or all calculators.