Yes, HSA contributions come out before taxes
Money you put into a Health Savings Account is pre-tax, meaning it reduces your taxable income for the year. If you contribute $3,000 to your HSA, you report $3,000 less in income to the IRS. This lowers the amount of federal income tax you owe.
The tax break applies only to contributions you make yourself. If your employer puts money into your HSA on your behalf, that money is also pre-tax — it never shows up in your taxable wages in the first place. Either way, you save on income tax in the year you contribute.
This is different from a regular savings account or a flexible spending account (FSA). With an FSA, contributions are also pre-tax, but with an HSA you keep the money year to year. With a regular savings account, you contribute after-tax dollars and get no tax break at all.
Key Takeaways
- HSA contributions reduce your taxable income, so you pay less federal income tax in the year you contribute.
- Both your own contributions and employer contributions to your HSA are pre-tax, though employer contributions never appear on your paycheck in the first place.
- You report HSA contributions on your tax return using Form 8889, which the IRS uses to verify the deduction.
- The pre-tax benefit applies only to contributions, not to the interest or investment gains your HSA balance earns over time.
- If you withdraw HSA money for non-medical expenses before age 65, you owe income tax on the withdrawal plus a 20 percent penalty.
How the pre-tax deduction works on your paycheck
If your employer offers an HSA and you enroll, the money is usually deducted from your paycheck before taxes are calculated. Your employer sends that amount directly to the HSA custodian (the bank or financial company holding the account). Your W-2 form at the end of the year will show a lower gross income because the HSA contribution was removed first.
This means you see the tax savings immediately — your take-home pay is lower by the amount you contribute, but your federal income tax withholding is also lower. You do not have to wait until tax time to benefit.
If you contribute on your own (not through payroll), you still get the tax break, but you claim it on your tax return instead. You file Form 8889 with your return and deduct the contribution amount. The IRS then reduces your taxable income by that amount when calculating what you owe.
State income tax and HSA contributions
HSA contributions are pre-tax for federal purposes in all 50 states. However, three states — Alabama, New Jersey, and Tennessee — do not recognize the federal HSA deduction for state income tax purposes. If you live in one of these states, your HSA contribution reduces your federal taxable income but not your state taxable income.
In all other states, the contribution lowers both your federal and state income tax. If you move to a different state during the year, the rules of the state where you lived when you made the contribution typically apply, though you should check with your state's tax authority if the timing is close.
What happens to earnings inside the HSA
The pre-tax benefit covers only the money you put in. If your HSA balance grows because of interest, dividends, or investment gains, that growth is not subject to income tax as long as you use the money for medical expenses. This is a significant advantage over a regular savings account, where you pay tax on interest earned.
However, if you withdraw money from your HSA for a non-medical reason, you owe income tax on the entire withdrawal — both the contributions and any earnings. If you are under 65, you also owe a 20 percent penalty on top of the income tax. After age 65, the penalty goes away, but you still owe income tax on non-medical withdrawals.
Reporting your HSA on your tax return
If you contribute through payroll, your employer reports the contribution on your W-2 in Box 12 with code W. You do not need to do anything else — the IRS already knows about it. Your tax software or preparer will see this and adjust your taxable income automatically.
If you contribute on your own, you must file Form 8889 (Contributions to an HSA) with your tax return. This form tells the IRS how much you contributed and asks you to calculate the deduction. You attach it to your Form 1040. Without this form, the IRS will not recognize your deduction.
If you receive distributions from your HSA during the year, you should receive a Form 1099-SA from the HSA custodian. This reports the total amount withdrawn. You use Form 8889 again to reconcile the distributions and show which ones were for medical expenses (and therefore not taxable) and which were not.
The contribution limits and how they affect your tax savings
The IRS sets annual limits on how much you can contribute to an HSA. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change each year. If you are 55 or older, you can contribute an additional $1,000 per year (called a catch-up contribution).
Your actual tax savings depends on your tax bracket. If you are in the 22 percent federal tax bracket and contribute $4,150, you save roughly $912 in federal income tax. If you are in the 12 percent bracket, you save about $498. State taxes vary, but in most states you save an additional 3 to 10 percent depending on where you live.
You can only contribute up to the limit, even if you want to contribute more. If you contribute more than the limit, the excess is subject to a 6 percent excise tax and is also taxable income to you — meaning you lose the tax benefit and pay a penalty on top.
When you lose the pre-tax benefit
If you withdraw HSA money for something that is not a may have access to medical expense, you owe income tax on the withdrawal. The IRS has a specific list of what counts: doctor visits, prescriptions, dental work, vision care, mental health treatment, and many other health-related costs. Cosmetic surgery, gym memberships, and over-the-counter vitamins (unless prescribed by a doctor) do not count.
If you are unsure whether an expense qualifies, the IRS publishes Publication 502, which lists hundreds of medical expenses. You can also ask your HSA custodian, though they may direct you to a tax professional for a final answer.
After age 65, you can withdraw HSA money for any reason without the 20 percent penalty, but you still owe income tax on non-medical withdrawals. This makes an HSA similar to a traditional IRA after 65 — you get the tax-free growth as long as you use it for medical expenses, but you can access the money for anything if you are willing to pay income tax.
Frequently Asked Questions
Do I have to contribute the maximum amount to get the tax break?
No. You get the pre-tax benefit on any amount you contribute, up to the annual limit. If you contribute $1,000, you save on taxes for $1,000. If you contribute $4,150, you save on taxes for $4,150. There is no minimum contribution required.
What if my employer contributes to my HSA — do I still get a tax break?
Yes. Employer contributions are pre-tax and reduce your taxable income. They also do not count toward your annual contribution limit, so if your employer puts in $2,000 and you put in $2,150, you are within the $4,150 individual limit. The employer contribution appears on your W-2 in Box 12 with code W.
Can I deduct HSA contributions if I take the standard deduction?
Yes. The HSA deduction works whether you take the standard deduction or itemize. If you contribute through payroll, it reduces your gross income before the standard deduction is applied. If you contribute on your own, you claim it on Form 8889 and it lowers your taxable income after the standard deduction.
What if I contribute to an HSA but then switch to a health plan that does not may have access to?
You keep the pre-tax benefit on contributions you made while you were may be able to access. However, you cannot make new contributions once you switch to a non-may have access to plan. Any money already in the HSA stays there and can still be used for medical expenses tax-free, but you cannot add to it.
Do I owe taxes on HSA interest if I use the money for medical expenses?
No. Interest, dividends, and investment gains in an HSA are not taxed as long as you withdraw the money for may have access to medical expenses. This is one of the major advantages of an HSA over a regular savings account — you get tax-free growth on top of the pre-tax contribution.