The three ways an HSA saves you money on taxes
A health savings account reduces your taxes in three separate ways, and they all work together. Money you put into the account is not counted as income, so you pay no federal income tax on it. The money grows without being taxed each year. And when you spend it on medical bills, you owe no tax on that money either. No other savings account gives you all three at once.
The catch is that the tax breaks only explore to money you use for may have access to medical expenses — the same list that counts for other tax deductions. If you withdraw money for something else, you pay income tax on it plus a 20 percent penalty, unless you are over 65 (then you just pay the income tax). This is why understanding what counts as may have access to is the real key to using an HSA's tax benefits.
Key Takeaways
- Money you deposit into an HSA reduces your taxable income for the year, lowering your federal income tax bill.
- Your HSA balance grows tax-free each year, meaning you pay no tax on interest, dividends, or investment gains.
- Withdrawals for may have access to medical expenses are not taxed, but non-medical withdrawals are taxed as income plus a 20 percent penalty before age 65.
- The IRS publishes a list of may have access to expenses that includes doctor visits, prescriptions, and dental work, but excludes things like gym memberships and cosmetic surgery.
- You can claim the tax deduction for HSA contributions on your tax return even if you do not itemize other deductions.
How the upfront deduction works
When you contribute money to an HSA, that amount comes off your taxable income for that year. If you earn $50,000 and put $3,000 into an HSA, the IRS treats your income as $47,000 for tax purposes. You then pay income tax only on the $47,000.
This deduction works whether you contribute the money yourself or your employer does. If your employer deducts HSA contributions directly from your paycheck, those contributions skip federal income tax, Social Security tax, and Medicare tax altogether — you never pay tax on that money at any stage. If you contribute on your own after receiving your paycheck, you claim the deduction when you file your tax return.
The IRS sets annual limits on how much you can contribute and still get the tax deduction. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change each year. If you contribute more than the limit, the excess does not get the tax deduction and you may owe a penalty.
Tax-free growth on money you do not spend
Unlike a regular savings account, an HSA can be invested in stocks, bonds, or mutual funds. Any interest, dividends, or gains from those investments are not taxed each year. If you invest $3,000 and it grows to $5,000 over five years, you owe no tax on that $2,000 gain — as long as you eventually spend the money on medical expenses.
This matters most if you do not plan to use your HSA when ready. Some people use their HSA like a retirement account: they pay medical bills out of pocket and let the HSA grow untouched. At retirement, they can withdraw the money tax-free for medical expenses, or after age 65 they can withdraw it for any reason (paying only income tax, not the 20 percent penalty). This turns an HSA into a second retirement savings tool.
What counts as a may have access to medical expense
The IRS maintains a specific list of medical expenses that you can withdraw from an HSA without owing taxes. The list includes doctor visits, hospital stays, prescription medications, dental work, vision care, mental health treatment, and medical equipment like crutches or hearing aids. It also covers insurance premiums for long-term care and, in some cases, health insurance while you are unemployed.
Things that do not count include gym memberships, cosmetic surgery (unless it is reconstructive after an injury), over-the-counter medications you buy without a prescription, and most wellness products. Vitamins and supplements do not count unless a doctor prescribes them for a specific medical condition. If you are unsure whether something qualifies, the IRS publishes Publication 502, which lists hundreds of expenses with explanations.
You do not have to spend the money in the same year you contribute it. You can contribute in 2024, spend the money in 2026, and still owe no tax on it. This flexibility is one reason HSAs are powerful: you can build up a balance over years and draw it down whenever you have large medical bills.
Non-medical withdrawals and the 20 percent penalty
If you withdraw money from your HSA for something that is not a may have access to medical expense, you owe federal income tax on that amount plus a 20 percent penalty. The penalty is separate from the income tax, not instead of it. If you withdraw $1,000 for a non-medical reason and you are in the 22 percent tax bracket, you owe $220 in income tax plus $200 in penalty, for a total of $420.
The 20 percent penalty disappears after you turn 65. At that point, you can withdraw money for any reason and owe only income tax on non-medical withdrawals, the same as you would with a traditional IRA. This is why some people treat an HSA as a retirement account: after 65, it becomes a flexible source of funds.
Reporting your HSA on your tax return
If your employer deducts HSA contributions from your paycheck, those contributions appear on your W-2 form in box 12 with code W. You do not need to do anything else — the deduction is already taken. If you contribute on your own, you claim the deduction on Form 8889 (Health Savings Accounts) and attach it to your tax return.
You do not have to itemize deductions to claim the HSA deduction. It is an "above-the-line" deduction, meaning it reduces your income before the standard deduction is applied. This makes it valuable even if you take the standard deduction instead of itemizing.
If you withdraw money from your HSA, your bank or HSA provider sends you a Form 1099-SA showing the total amount withdrawn. You report this on Form 8889 and indicate which withdrawals were for may have access to expenses and which were not. The IRS does not automatically know whether your withdrawal was may have access to — you are responsible for keeping receipts and records to prove it.
How an HSA affects other tax situations
Because an HSA reduces your taxable income, it can affect other tax benefits that phase out based on income. If you are close to the income limit for a tax credit or deduction, lowering your income with an HSA contribution might keep you under the limit and preserve that benefit. This is most common with the Earned Income Tax Credit or education credits.
An HSA also does not count as income for purposes of determining whether you owe the Net Investment Income Tax (a 3.8 percent tax on investment gains for high-income earners). This is another reason HSAs are valuable for people with significant investment income.
Frequently Asked Questions
Can I deduct HSA contributions if my employer already contributed?
No. The total of your contributions plus your employer's contributions cannot exceed the annual limit. If your employer contributed $2,000, you can only contribute $2,150 more (for individual coverage in 2024) and deduct that amount. Any contributions above the limit are not deductible and may trigger a penalty.
What happens if I use my HSA for something that is not medical?
You owe federal income tax on the withdrawal amount plus a 20 percent penalty. If you are over 65, you owe only the income tax, not the penalty. Keep receipts for all withdrawals in case the IRS asks you to prove they were for may have access to expenses.
Do I have to spend my HSA money in the same year I contribute it?
No. You can contribute in one year and spend the money in any future year. You can even save receipts from past medical expenses and reimburse yourself from your HSA years later, as long as the expenses were incurred after you opened the account.
Does my HSA count as income for Social Security or Medicare purposes?
No. HSA contributions deducted from your paycheck skip Social Security and Medicare taxes entirely. This is one of the largest tax advantages of an HSA compared to other savings accounts.
What if I lose my HSA-may be able to access health plan?
You can no longer make new contributions, but the money already in your account stays there and keeps growing tax-free. You can still withdraw it for may have access to medical expenses without owing taxes. You cannot contribute again until you re-enroll in an HSA-may be able to access plan.