HSA contributions lower your taxable income in the year you make them
Money you put into an HSA is not counted as income on your federal tax return. If you contribute $4,150 to an HSA in 2024, you report $4,150 less in taxable income. That reduction applies whether you take the standard deduction or itemize deductions—it happens before either calculation.
This is different from a regular savings account or a flexible spending account (FSA). With an FSA, your employer deducts contributions from your paycheck before taxes are calculated, which also lowers your taxable income. With an HSA, you get the same tax break whether your employer contributes, you contribute through payroll deduction, or you contribute on your own after taxes and then deduct it on your return.
The tax savings depend on your tax bracket. If you are in the 22% federal tax bracket and contribute $3,000 to an HSA, you save roughly $660 in federal income tax that year. If you are in the 24% bracket, the same contribution saves about $720. State income tax savings vary by state—some states do not tax HSA contributions at all, while others do.
Key Takeaways
- HSA contributions reduce your taxable income dollar-for-dollar, lowering your federal and (usually) state income tax bill in the year you contribute.
- Money that grows inside an HSA—through interest or investment gains—is never taxed, as long as you use it for may have access to medical expenses.
- Withdrawals for may have access to medical expenses are tax-free; withdrawals for any other reason are taxed as income plus a 20% penalty before age 65.
- After age 65, you can withdraw HSA funds for any reason without the 20% penalty, though non-medical withdrawals are still taxed as income.
- You must report HSA contributions and withdrawals on Form 8889 when you file your tax return; your HSA provider sends you a Form 1099-SA showing distributions.
Investment growth inside an HSA is never taxed
Once money is in your HSA, any interest, dividends, or capital gains it earns are tax-free. This is true whether you keep the money in a savings account earning interest or invest it in mutual funds or stocks through your HSA provider.
If you contribute $5,000 and it grows to $8,000 over five years through investment gains, you owe no tax on that $3,000 gain. You also owe no tax on the $5,000 original contribution. This tax-free growth is one of the largest financial advantages of an HSA—it is the only account type that offers a tax deduction for contributions, tax-free growth, and tax-free withdrawals for a specific purpose.
The catch is that the tax-free growth only applies if you eventually use the money for may have access to medical expenses. If you withdraw funds for non-medical reasons before age 65, you owe income tax on the entire withdrawal (including the growth) plus a 20% penalty.
Withdrawals for medical expenses are completely tax-free
When you take money out of your HSA to pay for a may have access to medical expense, you owe no federal income tax on that withdrawal. may have access to expenses include doctor visits, prescription drugs, dental work, vision care, mental health treatment, and many other healthcare costs. The IRS publishes a full list of what counts.
You do not need to report the withdrawal to the IRS if it matches your may have access to expenses. Your HSA provider will send you a Form 1099-SA at the end of the year showing how much you withdrew. If all your withdrawals were for may have access to expenses, you straightforward keep your receipts and do not report anything further on your tax return.
If you withdraw money for something that is not a may have access to medical expense—say, groceries or a gym membership—you owe income tax on that amount plus a 20% penalty. The penalty is steep, so it is important to keep receipts and know what counts.
Non-medical withdrawals before age 65 trigger income tax plus a penalty
If you withdraw HSA funds for a reason other than a may have access to medical expense and you are under 65, you owe two things: income tax on the withdrawal at your regular tax rate, plus a 20% penalty on top of that.
Example: You withdraw $2,000 from your HSA to pay for a vacation. You are in the 22% tax bracket. You owe $440 in income tax (22% of $2,000) plus $400 in penalty (20% of $2,000), for a total of $840. The HSA provider does not automatically withhold this—you owe it when you file your return.
This penalty is one reason many people treat an HSA as a long-term investment account rather than a spending account. If you have the money to pay medical expenses out of pocket, you can leave HSA funds invested and let them grow tax-free for years or decades.
After age 65, the penalty disappears but income tax remains
Once you turn 65, you can withdraw HSA funds for any reason without the 20% penalty. However, non-medical withdrawals are still taxed as ordinary income.
If you withdraw $5,000 for a non-medical reason after age 65 and you are in the 22% tax bracket, you owe $1,100 in income tax but no penalty. This makes an HSA similar to a traditional IRA after age 65—you can use it for anything, but you pay income tax on withdrawals.
Medical withdrawals remain tax-free at any age. So if you are 70 and withdraw $3,000 to cover a hospital bill, you owe no tax on that $3,000, even though you could withdraw $3,000 for a non-medical reason and owe tax on it.
How to report HSA activity on your tax return
You report HSA contributions and withdrawals using Form 8889, which you attach to your Form 1040 when you file. Your HSA provider sends you a Form 1099-SA showing the total amount you withdrew during the year.
On Form 8889, you report the total contributions you made (whether through payroll deduction, employer contribution, or your own deposit), the total distributions shown on the 1099-SA, and whether those distributions were for may have access to or non-may have access to expenses. The form calculates how much of your contribution reduces your taxable income and whether you owe tax or penalty on non-may have access to withdrawals.
If you made contributions through payroll deduction, your employer reports those on your W-2 in box 12 with code W. If you made contributions on your own after receiving your paycheck, you deduct them on Form 8889. Either way, the end result is the same: the contribution lowers your taxable income.
Keep receipts for all medical expenses you pay with HSA funds, even if you do not need to submit them with your return. The IRS can ask for proof that withdrawals were for may have access to expenses, and receipts are your only defense if you are audited.
State tax treatment varies—some states do not tax HSA contributions
Most states follow federal tax law and do not tax HSA contributions or withdrawals for may have access to medical expenses. However, a few states treat HSAs differently.
California and New Jersey tax HSA contributions as income, even though the federal government does not. This means residents of those states get a federal tax deduction but owe state income tax on the same contribution. New Hampshire taxes HSA withdrawals for may have access to expenses in some cases. If you live in one of these states, your state tax savings will be smaller or nonexistent.
Check your state's tax agency website or speak with a tax professional if you live in a state with an income tax and want to know the exact treatment. The difference can be significant if you are making large contributions.
Frequently Asked Questions
Can I deduct HSA contributions on my tax return if my employer already deducted them from my paycheck?
No. If your employer deducted contributions through payroll, those are already excluded from your taxable income—you do not deduct them again on your return. You only deduct contributions you made on your own after taxes were withheld. Your employer reports payroll contributions on your W-2.
What happens if I withdraw money from my HSA and later find out it was not a may have access to expense?
You owe income tax plus a 20% penalty on that withdrawal (if you are under 65). You report this on Form 8889 when you file your return. There is no grace period or way to correct it retroactively, so it is important to verify that an expense qualifies before you withdraw.
If I use my HSA to pay a medical bill from five years ago, is that withdrawal still tax-free?
Yes. You can withdraw HSA funds to reimburse yourself for may have access to medical expenses from any prior year, as long as the expense occurred after you opened the account. You do not have to pay for the expense at the time you withdraw—you just need proof that it was a may have access to expense.
Does my HSA count as income for Medicare or Medicaid purposes?
HSA balances do not count as income for Medicaid. For Medicare, the balance itself does not affect your premiums, but withdrawals for non-medical reasons are counted as income in the year you withdraw them. Consult a benefits counselor if you are close to Medicaid or Medicare thresholds.
Can I carry over unused HSA contributions to next year if I did not use the money?
Yes. Unlike a flexible spending account, HSA funds roll over year to year with no limit. You can contribute the maximum each year and let the balance grow indefinitely. However, you can only deduct contributions in the year you make them—you cannot carry forward unused deduction room to future years.