Health savings account

HSA Calculator

See what a health savings account is worth at 65 when you use it as a retirement account: the tax it saves each year and the balance, against the same pay in a taxable account.

  • No sign-up
  • Runs in your browser
  • No tracking
Contributions and assumptions
$
$
$

Tax saved each year
Tax saved by 65
Taxable account at 65

HSA balancetaxable accountwhat you paid in

Your numbers never leave this browser.

How an HSA saves tax

Three breaks

Contributions are not taxed as income, the money grows without tax, and withdrawals for medical bills are tax-free. A 401(k) gives you the first two, and a Roth account the last two. Contributions through payroll also skip the 7.65% Social Security and Medicare tax (IRS Publication 969).

2026 limits

$4,400 for self-only coverage and $8,750 for family coverage, plus $1,000 from age 55 (Rev. Proc. 2025-19). Your plan must have a deductible of at least $1,700 (self-only) or $3,400 (family). Employer contributions count toward the limit.

Pay now or reimburse later

You can pay a medical bill from your own pocket, keep the receipt and let the HSA money keep growing. Later you take the same amount out tax-free against the receipt. Set "You pay the bills from" to your own pocket to see it.

A worked example

You are 35 with a self-only plan and put in $4,400 a year through payroll until 65. You are in the 22% bracket in a state with no income tax. Each year the contribution saves $1,305: 22% income tax and 7.65% payroll tax. At 5% a year after inflation the account reaches $298,971 in today's dollars, from $132,000 paid in. The same pay in a taxable account, with 15% tax on its growth, reaches $184,080. The tax saved over the 30 years is $55,235.

Contribute on your own and deduct it on your return, and the payroll saving disappears: $968 a year, and a taxable comparison of $204,098. With $1,000 of medical bills a year paid from your pocket for those 30 years, you hold $30,000 of receipts, and the money you left in the account grows to $67,948.

Where your state matters

Most states follow the federal rule. California does not: it does not conform to the federal HSA law, so your contribution is added back to your California income (Office of Tax Appeals decision). The calculator drops the state saving when you pick California, and it does not model California tax on the account's earnings. Other states may differ too, so check yours. Set the state rate to 0 to see the result without a state saving.

Limits of this calculator

  1. The yearly contribution stays at today's amount, in today's dollars. The $1,000 catch-up from 55 is not added to a younger person's contribution.
  2. Withdrawals for medical bills are tax-free. After 65 other withdrawals are taxed as income, with no 20% additional tax (Publication 969). That is not modeled.
  3. Once you enroll in Medicare you can no longer contribute. Set the stopping age to match.

Three ways to hold the same money

HSATraditional 401(k)Taxable account
Income tax on contributionsnonenone (deferred)yes
Payroll tax on contributionsnone through payrollyesyes
Tax on growthnonenone until withdrawalyearly on dividends, and on gains when you sell
Tax on withdrawalsnone for medical bills; income tax otherwise, plus 20% before 65income tax, plus 10% before 59½only on the gains

A simplified view of the federal rules. State rules and the exceptions differ.

Keep the calculator in your toolbar

The free Coast FIRE Calculator extension puts the Coast FIRE calculator one click away in Chrome, remembers your numbers in your browser and shows on its icon how many years are left until you can stop saving.

  1. Open Coast FIRE Calculator in the Chrome Web Store and click Add to Chrome.
  2. Click the puzzle piece next to the address bar and pin Coast FIRE Calculator.

Install guide, also for Edge, Brave and Opera

What next

Questions

Can an HSA work as a retirement account?

It can be used that way. Medical bills tend to rise with age, so money left to grow can pay them tax-free. Money you do not spend on medical care is taxed as income after 65, the same as a traditional 401(k) withdrawal.

What happens to the balance at 65?

It stays yours. Medical withdrawals stay tax-free. Other withdrawals are taxed as income, and the 20% additional tax that applies before 65 is gone.

Why is the limit $4,400 here when I saw $4,300?

$4,300 was the limit for 2025. The 2026 limit for self-only coverage is $4,400.

Is the saving the same through payroll and on my own?

No. Through your employer's plan the contribution also skips the 7.65% payroll tax. A contribution you make yourself and deduct on your return does not.

How is the taxable account worked out?

It takes the same pay after income tax (and payroll tax, if you contribute through payroll), pays your medical bills the same way, and loses the tax rate you set on its growth every month.