The basic answer: contributions and growth are tax-free, withdrawals for medical expenses are tax-free, but withdrawals for anything else are taxed
A Health Savings Account (HSA) gets three separate tax breaks, and understanding which one applies to your money at any given moment is what makes the tax picture clear. Money you put in is not taxed. Money that grows inside the account is not taxed. And money you take out to pay for medical expenses is not taxed. The catch is that money you withdraw for non-medical reasons gets taxed as ordinary income, plus you pay a penalty on top.
The reason HSAs have this structure is that they were designed to let you save for healthcare costs without the government taking a cut at every step. But that tax advantage only applies when you use the money for what the account was meant for.
Key Takeaways
- Contributions you make to your HSA are not subject to federal income tax, whether you deduct them yourself or your employer puts money in.
- Interest, dividends, and investment gains inside your HSA account are not taxed while the money stays in the account.
- Withdrawals to pay for may have access to medical expenses — doctor visits, prescriptions, dental work, and many others — are never taxed.
- Withdrawals for non-medical reasons are taxed as regular income plus a 20 percent penalty, except after age 65 when the penalty goes away but income tax remains.
- You report HSA tax information on your federal tax return using Form 8889, which your HSA provider will help you gather.
Why contributions are not taxed
When you put money into an HSA, that money does not count as taxable income for the year you contribute it. This works two different ways depending on how the money gets there.
If your employer puts money into your HSA as part of your benefits package, that money is not added to your taxable wages. Your paycheck is smaller by that amount, but your income for tax purposes is also smaller by that amount, so you pay no tax on it. If you contribute the money yourself — by writing a check or transferring from your bank account — you deduct it on your tax return, which lowers your taxable income for that year. Either way, the contribution itself is not taxed.
This is different from a regular savings account, where money you put in has already been taxed as income before it went in. With an HSA, you get to set aside pre-tax dollars specifically for medical costs.
How investment growth inside the account stays tax-free
Many HSAs let you invest the money in mutual funds, stocks, or bonds rather than leaving it in a cash account. Any interest, dividends, or gains from those investments are not taxed while the money is in the HSA.
If you had the same investments in a regular brokerage account, you would owe tax on the dividends each year and on any gains when you sold. In an HSA, that tax is deferred indefinitely as long as the money stays in the account. This is one reason HSAs can be powerful long-term savings tools — the money compounds without being reduced by taxes along the way.
Withdrawals for medical expenses: the tax-free part
When you take money out of your HSA to pay for a may have access to medical expense, that withdrawal is not taxed. The IRS has a specific list of what counts, and it is broader than many people expect.
may have access to expenses include doctor visits, hospital stays, surgery, prescription medications, dental work, vision care, hearing aids, and mental health treatment. They also include medical equipment like crutches or wheelchairs, and even some over-the-counter items like pain relievers and bandages if you have a prescription or doctor's note for them. You can use HSA money to pay your health insurance premiums in certain situations, such as if you are receiving unemployment benefits.
The key is that you must have a genuine medical reason for the expense, and it must be for you, your spouse, or your dependents. You keep receipts and documentation in case the IRS asks, but you do not need to submit them when you withdraw the money.
Withdrawals for non-medical reasons: income tax plus penalty
If you withdraw money from your HSA for something that is not a may have access to medical expense, two things happen: you pay income tax on the amount withdrawn, and you pay a 20 percent penalty on top of that.
For example, if you withdraw $1,000 for a vacation and you are in the 22 percent tax bracket, you would owe $220 in income tax plus $200 in penalty, for a total of $420 in taxes and penalties on that $1,000. That is a significant cost, which is why HSAs are not meant to be treated like regular savings accounts.
The one exception is after you turn 65. At that age, the 20 percent penalty goes away, and non-medical withdrawals are taxed only as regular income. This is the IRS's way of acknowledging that at 65 you can use Medicare, so the account becomes more like a traditional retirement account. You still pay income tax on non-medical withdrawals, but not the penalty.
How to report HSA taxes on your return
At the end of each year, your HSA provider sends you a Form 1099-SA, which shows how much you withdrew from the account. You report this on your federal tax return using Form 8889, which is the IRS form specifically for HSA tax reporting.
On Form 8889, you report your contributions, the total amount you withdrew, and how much of that withdrawal was for may have access to medical expenses versus non-medical reasons. If all your withdrawals were for may have access to medical expenses, the form shows that and you owe no additional tax. If some were non-medical, you calculate the tax and penalty on that portion.
Your HSA provider usually gives you a worksheet or online tool to help you gather this information, and many tax software programs walk you through Form 8889 step by step. If you use a tax preparer, bring your Form 1099-SA and any records of non-medical withdrawals.
Keeping records of what you spent
You do not have to submit receipts to your HSA provider or the IRS when you make a withdrawal, but you should keep them. The IRS can audit your HSA account at any time and ask you to prove that your withdrawals were for may have access to medical expenses.
Keep receipts, explanation of benefits statements from your insurance, and any documentation from your doctor or pharmacy for at least three years after you file the tax return for the year in which you made the withdrawal. If you cannot prove that a withdrawal was for a may have access to expense, the IRS can treat it as a non-medical withdrawal and assess income tax and penalty retroactively, even years later.
Frequently Asked Questions
Do I have to report my HSA on my taxes if I only used it for medical expenses?
You still report it on Form 8889, but if all your withdrawals were for may have access to medical expenses, you will not owe any additional tax. The form straightforward documents that your HSA activity was tax-compliant. Your HSA provider sends you Form 1099-SA, which triggers the requirement to file Form 8889.
What happens if I withdraw money and later find out it was not a may have access to expense?
You can put the money back into the HSA within a certain timeframe to correct the mistake. If you do not correct it, that withdrawal is treated as non-medical and you owe income tax plus the 20 percent penalty. Keep documentation of any corrective deposits you make.
Can my employer contribute to my HSA without it being taxed?
Yes. Employer contributions to your HSA are not added to your taxable wages. They do not count as income, so you pay no federal income tax, Social Security tax, or Medicare tax on them. This is one of the biggest tax advantages of HSAs.
If I am over 65 and withdraw money for non-medical reasons, do I still pay income tax?
Yes, you pay income tax on non-medical withdrawals at any age. After 65, the 20 percent penalty is removed, but the income tax remains. This makes HSAs function more like traditional retirement accounts once you reach 65.
Does my HSA count as income for purposes of means-tested programs like Medicaid?
The money in your HSA account itself is usually not counted as income for Medicaid or other means-tested programs, but withdrawals you take out may be counted depending on the program's rules. Check with your state Medicaid office or the program administrator if you are concerned about how your HSA affects your benefits.