Home/Calculators/HSA calculator

HSA Calculator (US, 2026)

Work out what a health savings account contribution saves you in tax this year, how much more it saves when it runs through payroll, and what it grows to if you leave it invested.

How you contribute
Filing status
Self-only annual limit
$4,400
Published figure for self-only coverage
Projected balance
$248,646
after 25 years, with nothing withdrawn
Total tax saved this year$1,305
Federal income tax saved$968
Payroll tax saved$337
Total contributed$110,000
Investment growth$138,646
Tax saved over the whole period$32,615
Track the real numbers in Hunch

Balance over time

Contributions, growth and balance at five-year intervals, with the final year of the projection shown in full.

Projected health savings account balance contributing $4,400 a year at a 6.0% annual return.
YearContributedGrowthBalance
Year 5$22,000$3,547$25,547
Year 10$44,000$15,735$59,735
Year 15$66,000$39,487$105,487
Year 20$88,000$78,712$166,712
Year 25$110,000$138,646$248,646

Contributions are cumulative, as is the balance; growth is the balance less everything contributed to that point. Today’s dollars, no fees, no withdrawals.

Estimate only. Federal income tax and employee-side payroll tax only; state treatment of health savings accounts varies and is not modelled.
More free calculators
Good to know
  • A payroll-deducted contribution escapes Social Security and Medicare tax as well as income tax, which no other tax-advantaged account does.
  • The contribution field is not clamped to a limit, because only the self-only figure is available here — use your plan’s or the IRS’s published family figure if you have family coverage.
  • Paying current medical costs out of pocket and leaving the account invested is what turns a spending account into a retirement account.
  • Withdrawals for qualified medical expenses are never taxed, at any age — the account only behaves like an ordinary retirement account when you use it for something else.

How the HSA calculator works

A health savings account is the only account in the US system where the money can avoid tax three separate times: going in, while it compounds, and coming out again for qualified medical costs. Every other tax-advantaged account gives up one of those three. This calculator prices the first of them precisely for your own income, shows the second as a projected balance, and takes the third as a rule rather than a number, because it depends entirely on what you eventually spend the money on.

The annual contribution is a free input rather than a hard ceiling, and that is deliberate. The self-only annual limit is shown in the side panel and is the only health savings account limit this site holds. The family-coverage limit and the additional catch-up available once you reach 55 are not in this repository, so rather than print an approximate figure the calculator does not clamp your entry at all — take the family number off your own plan documents or the IRS’s published table and type it in. A tool that silently reduced a family contribution to the self-only limit would be wrong in the least visible way possible.

The route matters as much as the amount. A contribution made through your employer’s cafeteria plan comes out of pay before Social Security and Medicare tax as well as before income tax. A contribution you make yourself from a bank account is deductible against income tax but not against payroll tax, and you claim it back on your return rather than never paying it. Same dollars into the same account, materially different cost, which is why the route is a toggle and the two savings are shown on separate lines.

The math

The income tax saving is your contribution multiplied by your marginal federal rate, and that rate is read off the bracket table by finite difference rather than by looking up a bracket index — bump gross income by a small amount, re-subtract the standard deduction, and see what the extra tax was. That technique stays correct when the standard deduction shields the next dollar entirely, where a naive bracket lookup would report a rate on income that is not being taxed at all.

The payroll saving, when you choose the payroll route, is your contribution multiplied by the combined employee-side Social Security and Medicare rate. That rate is read from the same constants the payroll calculator uses, not typed in again here, so the two pages can never disagree. Above the Social Security wage base the Social Security half no longer applies and this figure overstates the saving slightly; the Medicare half has no ceiling and applies at every income.

The projection runs the balance forward one year at a time. Each year the opening balance earns a full year of return and that year’s contribution earns roughly half a year, the mid-year convention, because contributions arrive across twelve pay periods rather than on January the first. Contributions stay flat in today’s dollars and the limit is not indexed forward, so read the return as a real, above-inflation figure to keep the projection internally consistent. Nothing here is withdrawn: the projection assumes you pay current medical costs out of pocket and leave the account invested, which is the strategy the three-way tax treatment rewards.

Worked example

Take the self-only limit of $4,400, a $90,000 salary filing single, and the payroll route. Your marginal federal rate is 22%, so the income tax saving is $968. The employee-side payroll rate of 7.65% saves another $337. Total cost of putting $4,400 into the account: about $3,095. That is a 29.65% discount on money you were going to spend on healthcare anyway.

Now leave it invested. At a 6% return over 25 years, contributing $4,400 every year produces a balance of roughly $248,600, of which $110,000 is contributions and about $138,600 is growth. The tax saved across those 25 years comes to roughly $32,600 on its own. Switch the route from payroll to direct and the annual saving drops from $1,305 to $968 — the balance is identical, but you paid about $8,400 more in payroll tax over the same period for exactly the same account.

Key terms

High-deductible health plan
The kind of health coverage you must be enrolled in to contribute at all. The deductible and out-of-pocket thresholds that define it are published annually by the IRS and are not modelled here.
Cafeteria plan
The employer arrangement that lets a contribution come out of your pay before tax is calculated. It is what makes the payroll route escape Social Security and Medicare tax.
Qualified medical expense
A cost the IRS lists as eligible, which a withdrawal can cover entirely tax-free. Withdrawals for anything else are taxed as income, with a penalty before a threshold age.
Marginal rate
The federal rate applied to your next dollar of income. It is what sets the value of a deduction, and it is usually well above your average rate.

How much should I put into an HSA?

+

If you can pay current medical costs from cash flow, the contribution that is easiest to justify is the full limit for your coverage type, because no other account combines a deduction going in with tax-free growth and tax-free qualified withdrawals. If you cannot, contribute what you will actually spend on healthcare this year — the tax saving is real even when the money leaves again within months.

What is the limit for family coverage?

+

This page does not state one, because the family figure is not among the constants it holds and printing an approximation would be worse than printing nothing. The self-only limit shown in the panel is the anchor; take the family number from your plan documents or the IRS’s published table for the current year and enter it. The contribution field deliberately does not clamp, so a family figure will not be silently cut down.

Payroll deduction or contributing directly — does it matter?

+

It changes the cost by the combined employee-side payroll rate of 7.65%, which on a full self-only contribution is a few hundred dollars a year. A direct contribution is still deductible against income tax, so you get most of the benefit either way, but you claim it back on your return instead of never paying it. If your employer offers the payroll route, use it.

What happens to the money if I change jobs or plans?

+

It stays yours. Unlike a flexible spending arrangement, a health savings account has no use-it-or-lose-it deadline and is not tied to your employer — the balance follows you, keeps compounding, and stays spendable on qualified costs whether or not you are still covered by a qualifying plan. You just cannot make new contributions while you are not.

Can I invest the balance, or does it sit in cash?

+

That depends on the provider. Many hold the whole balance in cash by default and only open an investment option above a minimum. Since the projection here is entirely about compounding, check what your provider actually does before assuming the return you entered — a cash balance earns roughly nothing and the projection collapses to the contributions line.

What can I use it for in retirement?

+

Qualified medical costs remain tax-free at any age, and there is a lot of them in retirement, including certain premiums. Withdrawals for anything else are taxed as ordinary income once you pass the penalty threshold age, which makes the account behave like a traditional retirement account at worst and better than one at best.