HSA contributions reduce your taxable income
Money you put into an HSA is tax-deductible, which means it lowers the amount of income you owe federal income tax on. If you contribute $3,000 to your HSA in a year, you report $3,000 less as taxable income on your tax return. This applies whether you contribute through payroll deduction (the most common route) or by depositing money yourself.
The deduction happens automatically if your employer takes HSA contributions from your paycheck before taxes are calculated. If you contribute on your own, you claim the deduction when you file your tax return using IRS Form 8889. Either way, the contribution itself is not subject to federal income tax, Social Security tax, or Medicare tax.
Key Takeaways
- HSA contributions lower your taxable income dollar-for-dollar, reducing the federal income tax you owe that year.
- Employer payroll deductions happen before taxes are calculated, so the tax benefit is automatic.
- Withdrawals for may have access to medical expenses are not taxed, but withdrawals for other purposes are taxed as income plus a 20 percent penalty.
- The tax deduction applies only to contributions, not to the interest or investment gains your HSA balance earns.
- You report HSA activity on Form 8889 when you file your tax return if you made contributions outside of payroll.
Withdrawals for medical expenses are tax-free
When you withdraw money from your HSA to pay for a may have access to medical expense, that withdrawal is not taxed. may have access to expenses include doctor visits, prescriptions, dental work, vision care, mental health treatment, and many other healthcare costs. The IRS publishes a full list, but the basic rule is: if it is a healthcare cost your insurance would normally cover, it counts.
This tax-free withdrawal is separate from the tax deduction on contributions. You get the deduction when the money goes in, and you get the tax-free withdrawal when the money comes out for medical care. Over time, this creates a significant tax advantage compared to paying medical expenses with after-tax dollars.
Non-medical withdrawals are taxed and penalized
If you withdraw money from your HSA for something other than a may have access to medical expense, the withdrawal is treated as taxable income. You owe federal income tax on the amount withdrawn, plus an additional 20 percent penalty. This penalty is separate from the income tax and applies only to the non-may have access to portion.
For example, if you withdraw $1,000 for a non-medical purpose, you owe income tax on $1,000 plus a $200 penalty. The exact income tax depends on your tax bracket. After age 65, the 20 percent penalty no longer applies, but the withdrawal is still taxed as income if it is not for a medical expense.
Investment earnings in your HSA have tax treatment that depends on how you use them
If your HSA allows you to invest the balance (rather than keeping it in a cash account), any interest, dividends, or capital gains you earn are not taxed while they stay in the account. This is different from a regular investment account, where you owe tax on earnings each year.
When you withdraw those earnings to pay for a may have access to medical expense, they come out tax-free. If you withdraw them for a non-medical purpose, the earnings portion is taxed as income plus the 20 percent penalty. The contribution portion of the withdrawal is already tax-deducted, so only the earnings are subject to the penalty.
Your employer's HSA contributions are not taxable income to you
If your employer contributes money to your HSA as part of your benefits package, that contribution does not count as taxable wages. You do not owe income tax, Social Security tax, or Medicare tax on employer contributions. This is true whether the contribution is made as a lump sum at the start of the year or spread across pay periods.
Employer contributions do count toward the annual contribution limit set by the IRS. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. If your employer contributes $2,000 and you contribute $2,000, you have reached the individual limit and cannot contribute more that year.
Form 8889 is where you report HSA activity to the IRS
When you file your federal tax return, you use IRS Form 8889 to report any HSA contributions you made outside of payroll, any non-may have access to withdrawals, and any distributions you took. If your employer handled all contributions through payroll deduction and you took no withdrawals, you may not need to file this form, but you should check your specific situation.
Form 8889 asks for the total contributions you made, the total distributions you took, and whether any distributions were for non-may have access to expenses. If you took a non-may have access to withdrawal, you report it on this form and calculate the 20 percent penalty. The form is filed with your main tax return (Form 1040) and is available on the IRS website.
State taxes may treat HSA contributions differently
Most states follow federal tax rules and allow you to deduct HSA contributions from your state taxable income. However, a few states do not recognize the HSA deduction or treat it differently. If you live in one of these states, you may owe state income tax on contributions even though they are deductible federally.
Check your state's tax agency website or speak with a tax preparer to confirm how your state treats HSA contributions. The difference is usually small, but it matters if you live in a high-tax state or contribute a large amount to your HSA.
Frequently Asked Questions
Do I have to report my HSA on my tax return?
If your employer made all contributions through payroll deduction and you took no withdrawals, you typically do not need to file Form 8889. However, if you made any contributions on your own or took any distributions, you must file the form with your tax return. Check with a tax preparer if you are unsure.
What happens if I withdraw money from my HSA and do not use it for medical expenses?
The withdrawal is taxed as ordinary income, and you owe an additional 20 percent penalty on top of the income tax. After age 65, the penalty no longer applies, but the withdrawal is still taxed as income unless it is for a may have access to medical expense.
Can I deduct HSA contributions if I am self-employed?
Yes. Self-employed people can deduct HSA contributions on their tax return using Form 8889. The contribution is deducted from your gross income, which also reduces your self-employment tax. You must have a may have access to high-deductible health plan to contribute.
Does my HSA balance carry over to the next year, and does that affect my taxes?
Yes, HSA balances roll over indefinitely with no "use it or lose it" rule. The carryover does not affect your taxes. You only owe tax on withdrawals, not on the balance you keep in the account.
If my employer contributes to my HSA, do I still get a tax deduction?
Employer contributions are not taxable to you, so you do not need a deduction — the tax benefit is automatic. You only claim a deduction for contributions you make yourself outside of payroll. Both count toward the annual contribution limit.