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
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
- 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.
- 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.
- Once you enroll in Medicare you can no longer contribute. Set the stopping age to match.
Three ways to hold the same money
| HSA | Traditional 401(k) | Taxable account | |
|---|---|---|---|
| Income tax on contributions | none | none (deferred) | yes |
| Payroll tax on contributions | none through payroll | yes | yes |
| Tax on growth | none | none until withdrawal | yearly on dividends, and on gains when you sell |
| Tax on withdrawals | none for medical bills; income tax otherwise, plus 20% before 65 | income 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.
- Open Coast FIRE Calculator in the Chrome Web Store and click Add to Chrome.
- Click the puzzle piece next to the address bar and pin Coast FIRE Calculator.
What next
Can you stop saving yet?
Coast FIRE: the age when growth alone gets you to retirement.
Coast FIRE calculatorWhen can you stop working?
Your FIRE number and the year you reach it.
FIRE number and dateLeave full-time work sooner?
How much part-time income closes the gap.
Barista FIRE calculatorRetiring before 59½?
Penalty-free IRA payments with a 72(t) plan.
72(t) SEPP calculatorWill the plan survive bad markets?
Run the plan through thousands of random markets.
Monte Carlo retirement testHow long will it last?
Years until your savings run out at a set withdrawal.
How long will my money lastTaking money from a 401(k) early?
What you keep after the 10% tax and income tax.
401(k) early withdrawal calculatorQuestions
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.