HSA Tax Savings Calculator

See what a year of HSA contributions saves you in tax, and what the money in the account really cost you once that saving is counted.

$

What you plan to put in this year. The IRS resets the ceiling every year by coverage type and age, so checkthe current IRS figure before you aim for the maximum.

%

Use your marginal rate, the rate on your last dollar of income, not your average rate. A contribution comes off the top of your income, so the top rate is the one it saves you. Your average rate is lower and would understate the answer.

%

Several states have no income tax at all, so enter 0. A couple of states do tax HSA contributions even though the federal government does not, in which case enter 0 as well. Check your own state before counting this saving.

%

FICA is the Social Security and Medicare tax taken out of your pay, commonly quoted at 7.65% for the employee share. It is saved only on money contributed through your employer’s payroll deduction. Contributing straight from your bank account saves no FICA, so set this to 0.

Tax saved this year

$1,386

$4,000 of contributions cuts your tax bill by $1,386, so the money really costs you $2,614. $306 of that is FICA, which only payroll deductions save.

  • Annual contribution$4,000
  • Federal income tax saved (22%)$880
  • State income tax saved (5%)$200
  • FICA saved (7.65%)$306
  • Total tax saved$1,386
  • Net cost of contributing$2,614

Private by design: this runs entirely in your browser. Nothing you type is stored or sent anywhere.

Advertisement
Ad space · responsive

How it works

An HSA contribution comes off the income you are taxed on, so what it saves you is simply your own tax rates applied to the amount you put in. What makes it unusual is how many taxes it dodges at once. Income tax is the obvious one, your state may be a second, and money routed through your employer’s payroll deduction skips the payroll tax as well:

Tax saved = contribution × (federal % + state % + FICA %)
  • contribution — what you put into the HSA over the year
  • federal % — your marginal federal rate, the rate on your last dollar of income
  • state % — your state income tax rate, and 0 if your state has none
  • FICA % — the payroll tax you skip, and 0 unless the money goes in through payroll

With the defaults above, $4,000 at a 22% marginal federal rate saves $880. A 5% state rate adds $200. Because the money leaves your paycheck before payroll tax is figured, 7.65% of FICA saves another $306.

Stack the three and the year is worth $1,386 to you, which means the $4,000 now sitting in your HSA really cost you $2,614. Every rate here is yours to set, because none of them is the same for everybody.

Every result is checked against independent reference math. See how we test the calculators →

A worked example: $4,000 into an HSA through payroll

Say you put $4,000 into an HSA this year through your employer’s payroll deduction. Your marginal federal rate is 22%, your state takes 5%, and 7.65% of your pay goes to FICA. At those rates, the contribution cuts your tax bill by $1,386.

The three pieces: $4,000 at 22% federal is $880, the state’s 5% adds $200, and because the money left your paycheck before payroll tax was calculated, skipping FICA is worth another $306. Net it all out and funding the account only reduced your take-home pay by $2,614.

Now change one thing and move the same $4,000 from your checking account instead of through payroll. The income tax deductions still apply, so you save $1,080, but the FICA is gone for good and the net cost climbs to $2,920. Same account, same balance, same year, $306 worse off purely because of the route the money took to get there.

Enter your own contribution and your own rates above to see what your year is worth.

The triple tax advantage no other account has

Most tax-advantaged accounts give you one break. A traditional 401(k) or IRA lets money in untaxed and taxes it on the way out. A Roth does the reverse: taxed going in, free coming out.

An HSA does both ends, and skips the tax on the growth in between. Money goes in untaxed, compounds untaxed, and comes out untaxed as long as you spend it on qualified medical expenses. Nothing else does all three.

The figure at the top of this page only measures the first leg, the deduction. The second leg is where the account gets genuinely interesting, and it is the one most people never collect. Spend the balance every year on this year’s prescriptions and the account is a useful discount on care, nothing more.

Invest the balance instead, pay small medical bills from ordinary cash, and leave the HSA alone for decades, and that untaxed growth compounds into something hard to beat.

That is the opinionated take worth stating plainly: an HSA left to grow is one of the strongest retirement vehicles available to most people. Unlike an FSA, it never expires, and it stays yours through a job change, a plan change, or retirement.

Contribute through payroll, not from your bank

Here is the detail that quietly decides how much your HSA is worth, and it is the one most people miss.

  • Through payroll. The money leaves your pay before FICA is calculated, so you skip the Social Security and Medicare tax on it as well as income tax.
  • Direct from your bank. You still claim the income tax deduction on your return, but the FICA has already been taken out of that paycheck. You cannot get it back.

That is the whole difference between the two chips above, and it is not small. At the defaults, routing $4,000 through payroll saves $306 more than sending the same $4,000 from your checking account. Same account, same balance, same year, better outcome, purely because of the route the dollar took to get there.

So if your employer offers an HSA payroll deduction, use it, and set the amount at open enrollment rather than making one-off transfers later in the year. If you have already contributed directly, the income tax deduction still works, you have just left the FICA saving on the table. Two honest caveats: FICA is only saved on earned income while you are working, and the Social Security portion of it stops applying above an annual wage cap that changes each year.

What this number does not tell you

This calculator answers exactly one question: what a contribution saves you in tax this year. It says nothing about whether an HSA is right for you, and there are real conditions attached.

  • You need an eligible high-deductible health plan. An HSA is not an account you can just open. It rides on a specific kind of coverage, and that coverage is not free.
  • A high deductible is a real cost. It is paid in the year something goes wrong, and no tax saving is worth choosing a plan that leaves you exposed to a bill you cannot cover.
  • Non-qualified spending is punished. Take money out for anything other than qualified medical expenses before a certain age and it is taxed as income with a penalty on top. Past that age the penalty falls away but ordinary income tax still applies.

Which plan to carry is a separate question from what a contribution saves, and it is the one to settle first. The site’s High vs. Low Deductible calculator weighs premiums against likely claims and answers it directly. This page assumes you have already decided, and simply prices the tax side.

One last thing: contribution limits are set annually and depend on your coverage and your age, so check the current IRS figure rather than a number you saw in an article. This calculator does not enforce a limit and will happily compute a saving on more than you are allowed to put in.

Advertisement
Ad space · responsive

Common questions

Why does it ask for my marginal rate and not my average rate?

Because a contribution comes off the top of your income, not off the average of it. The last dollars you earn are taxed at your highest rate, and those are the dollars an HSA contribution shelters. Using your average rate, which is lower, would understate what the account saves you.

Why does contributing through payroll save more?

Because payroll deductions come out before FICA, the Social Security and Medicare tax, is calculated, so you skip that too. A contribution made from your bank account still gets the income tax deduction, but the FICA on that pay has already gone and cannot be recovered.

Does everyone get the state saving?

No, which is why it is an input rather than a fixed number. Several states have no income tax, so there is nothing to save. A couple of states tax HSA contributions even though the federal government does not.

Enter 0 in either case and check your own state before counting on it.

How much am I allowed to contribute?

The limit is set annually and depends on whether your coverage is for you alone or a family, with an extra allowance once you reach a certain age. Because it changes, this page does not quote it. Look up the current IRS figure, since the calculator will not stop you entering more than you can legally contribute.

Do my employer’s contributions count here?

Enter only what you put in. Employer contributions count against the same annual limit, but they were never part of your taxable income in the first place, so there is no tax for you to save on them. Counting them would inflate the result.

Do I lose the money if I do not spend it this year?

No, and this is the key difference from an FSA. An HSA rolls over in full every year and stays yours permanently, through job changes and into retirement. That is exactly what makes leaving it invested and untouched a viable long-term strategy.

Is the growth inside the account really untaxed?

Yes, as long as withdrawals go to qualified medical expenses. Interest, dividends, and gains inside an HSA are not taxed, and neither is the withdrawal. That combination is why the account is worth more than the one-year deduction shown above.

Sources & further reading

Spot an error in the math or the wording? Tell us and we'll fix it, usually within a day.

Put this calculator on your site

Free to embed, with a link back to us. Paste this into any web page: