Skip to content
Omnikalc

HSA calculator: how much does a health savings account save you?

Enter your yearly contribution, tax rates, years and return to see the tax you save, the account balance and the advantage over a taxable account.

Updated on
Your inputs
$

Value out of range

%

Value out of range

%

Value out of range

years

Value out of range

%

Value out of range

%

Value out of range

Results

HSA balance after the contributions, for medical costs

$161,857

Within the 2026 self-only contribution limit
Tax saved each year on the contribution
$1,525
Same savings in a taxable account, after tax
$98,533
Advantage of the HSA
$63,323
Total contributions
$88,000

A health savings account (HSA) is the only account with three tax benefits: contributions are tax-deductible, the money grows tax-free, and withdrawals for qualified medical costs are tax-free. This calculator shows the tax you save each year, what the account grows to over time, and how much better it does than putting the same money into a taxable account.

How the calculation works

  • Tax saved each year = contribution × (federal rate + state rate + 7.65 % if through payroll)
  • HSA balance = contribution × ((1 + return)^years − 1) ÷ return
  • Taxable account: the after-tax contribution is invested at the same return, and the gains are taxed at the capital gains rate
  • Advantage = HSA balance − the taxable account’s after-tax balance

The HSA balance is assumed to be spent on medical costs, so withdrawals are tax-free.

Example

You contribute $4,400 a year through payroll, at a 22 % federal rate, 5 % state rate and 7.65 % payroll tax, which saves $1,525 a year in tax. After 20 years at 6 %, the account holds $161,857. Putting the same take-home cost into a taxable account, after tax on the gains, gives $98,534. The HSA comes out $63,323 ahead.

Why it matters

An HSA is valuable beyond paying this year’s bills. Medical costs in retirement are large, and HSA money is usable tax-free for them. Some people treat the account as an extra retirement account: they pay today’s costs from cash, invest the HSA and keep the receipts, which can be reimbursed at any later date.

Good to know

You can only contribute with a qualifying high-deductible health plan, and not when you are enrolled in Medicare. The limits shown are for 2026 and change yearly. Employer contributions count toward the limit. Some states, such as California and New Jersey, do not give the state tax break. Keep receipts for qualified expenses. This tool is for education and is not tax advice.

The retirement savings calculator projects a nest egg, the insurance deductible calculator compares plans, and the Roth versus traditional calculator compares tax treatments.

Frequently asked questions

What is a health savings account?

An HSA is a tax-advantaged account for people with a high-deductible health plan. Contributions are deductible, growth is tax-free, and withdrawals for qualified medical expenses are tax-free: a triple tax advantage.

What are the contribution limits?

For 2026 they are $4,400 for self-only coverage and $8,750 for family coverage, with an extra $1,000 for people 55 or older. The limits change each year. Contributions through payroll also avoid Social Security and Medicare tax.

Can I invest the money?

Yes. Many HSAs let you invest the balance in funds once it passes a threshold. Because you can pay medical costs later and keep receipts, some people pay out of pocket today and let the account grow for decades.

What happens if I use it for something else?

Before 65, a non-medical withdrawal is taxed and carries a 20 percent penalty. After 65, it is taxed like a traditional IRA withdrawal with no penalty, and medical withdrawals stay tax-free.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.