The short answer: contributions and growth are tax-free, but withdrawals for non-medical expenses are taxed
A health savings account itself is not taxable, but how you use it determines whether you pay taxes on the money inside. Money you put into an HSA reduces your taxable income for that year. The money grows tax-free. When you withdraw funds to pay for may have access to medical expenses, you owe no tax on that withdrawal. If you withdraw money for any other reason, you pay income tax on the amount withdrawn plus a 20 percent penalty—unless you are 65 or older, in which case you pay income tax only, with no penalty.
The tax treatment depends entirely on what the money is used for and when you use it. Understanding which withdrawals trigger taxes and which do not will help you plan how to spend from your HSA without unexpected tax bills.
Key Takeaways
- Contributions you make to an HSA reduce your taxable income in the year you make them, lowering your tax bill.
- Money inside an HSA grows tax-free, whether it sits in cash or is invested in mutual funds or other securities.
- Withdrawals for may have access to medical expenses—doctor visits, prescriptions, dental work, vision care—are never taxed.
- Withdrawals for non-medical expenses are taxed as income plus a 20 percent penalty, except after age 65 when only income tax applies.
- You do not have to spend your HSA money in the year you contribute it; unused balances roll forward indefinitely.
How contributions lower your tax bill
When you contribute money to an HSA, that amount is subtracted from your gross income before taxes are calculated. If you earn $50,000 and contribute $3,000 to an HSA, your taxable income becomes $47,000. You pay income tax only on the $47,000.
This reduction applies whether you contribute through payroll deduction (which is the most common route) or by depositing money yourself. If you contribute through your employer's payroll, the contribution is deducted before Social Security and Medicare taxes are calculated as well, so you save on those taxes too. If you contribute on your own after receiving your paycheck, you can deduct the contribution on your tax return when you file, though you will not save on payroll taxes.
The contribution limit varies by year and by whether you have self-only coverage or family coverage. Your HSA provider will tell you the current limit when you open the account, and you can also find it on the IRS website. If you contribute more than the limit, the excess is taxable and may trigger a penalty.
Tax-free growth inside the account
Once money is in your HSA, it can sit in a cash account earning interest, or you can invest it in mutual funds, stocks, or bonds. Any interest, dividends, or investment gains are not taxed while the money remains in the account. This is different from a regular savings account or brokerage account, where you owe tax on interest and investment gains each year.
Because of this tax-free growth, an HSA can function as a long-term retirement savings tool if you do not need to withdraw the money for medical expenses right away. Some people use their HSA as a supplemental retirement account, letting the balance grow for decades and only withdrawing for medical costs when they reach retirement age.
The tax-free growth applies only to the earnings inside the account. The contributions themselves were already deducted from your taxable income when you made them, so you do not get a second tax benefit there.
Withdrawals for medical expenses are never taxed
A may have access to medical expense is any cost related to diagnosing, treating, or managing a health condition. This includes doctor visits, hospital stays, surgery, prescription medications, dental work, vision care, hearing aids, and mental health treatment. It also includes some over-the-counter items like pain relievers and allergy medicine, as well as medical equipment like blood pressure monitors or glucose meters.
When you withdraw money from your HSA to pay for any of these expenses, you owe no income tax on the withdrawal. You do not have to report the withdrawal on your tax return if it matches your may have access to medical expenses for the year. Keep receipts and records of what you spent the money on, in case the IRS asks for proof later.
You do not have to spend the money in the same year you contribute it. If you contribute $3,000 in 2024 but do not have medical expenses until 2026, you can withdraw the money in 2026 tax-free. The money can sit in the account for as long as you need it.
Withdrawals for non-medical expenses trigger taxes and a penalty
If you withdraw money from your HSA for something that is not a may have access to medical expense—groceries, rent, a vacation, a car payment—you must pay income tax on the amount withdrawn. You also pay a 20 percent penalty on top of the income tax. So if you withdraw $1,000 for a non-medical expense and your tax bracket is 22 percent, you would owe $220 in income tax plus $200 in penalty, for a total of $420.
The penalty applies only to the amount withdrawn for non-medical use, not to your entire HSA balance. If your account has $10,000 and you withdraw $1,000 for a non-medical expense, the penalty applies only to that $1,000.
After you turn 65, the penalty goes away. You can still withdraw money for non-medical expenses and pay income tax on it, but the 20 percent penalty no longer applies. At that point, an HSA functions more like a traditional IRA—you can use it for any purpose, but you pay income tax on non-medical withdrawals.
Employer contributions and tax treatment
If your employer contributes money to your HSA as part of your benefits package, that money is not counted as taxable income to you. You do not pay income tax, Social Security tax, or Medicare tax on employer contributions. This is one reason HSAs are valuable: employers can put money in on your behalf without creating a tax bill for you.
Employer contributions count toward the annual contribution limit. If your employer contributes $1,500 and you contribute $1,500 yourself, you have reached the limit for that year and cannot contribute more without triggering taxes on the excess.
Reporting HSA activity on your tax return
If you contribute to an HSA through payroll deduction, your employer reports the contribution on your W-2 form in Box 12 with code W. You do not need to report it again on your tax return; the IRS already knows about it.
If you contribute money on your own after receiving your paycheck, you report the contribution on Form 8889 (Health Savings Accounts) when you file your tax return. This form also tracks any non-medical withdrawals you made during the year, so the IRS knows whether you owe the 20 percent penalty.
Your HSA provider sends you a statement each year showing contributions, withdrawals, and interest or investment gains. Keep this statement with your tax records. You do not have to attach receipts for medical expenses to your tax return, but you should keep them in case the IRS requests proof that your withdrawals were for may have access to expenses.
State taxes and HSA withdrawals
Federal tax treatment of HSAs is consistent across the country, but a few states have their own rules. Most states follow federal law and do not tax HSA contributions or may have access to withdrawals. However, some states do not recognize HSAs for state tax purposes, which means contributions may not reduce your state taxable income even though they reduce your federal taxable income.
Check with your state's tax authority or a tax professional if you live in a state with an income tax and want to know whether HSA contributions reduce your state tax bill. Your HSA provider may also have information about state tax treatment.
Frequently Asked Questions
Do I have to spend my HSA money every year or lose it?
No. Unlike a flexible spending account (FSA), an HSA has no "use it or lose it" rule. Money you do not spend in one year rolls forward to the next year and stays in the account indefinitely. You can let it accumulate for decades if you choose.
What happens if I withdraw money and later find out it was not a may have access to medical expense?
You owe income tax and the 20 percent penalty on that withdrawal. If you discover the mistake after filing your tax return, you can file an amended return (Form 1040-X) to report the additional tax owed. Keep documentation of what you spent the money on so you can explain the error if the IRS asks.
Can I use my HSA to pay for my spouse's medical expenses?
Yes, if your spouse is a dependent on your tax return. You can withdraw money from your HSA to pay for your spouse's may have access to medical expenses without owing tax on the withdrawal. You can also use it for your children's and other dependents' medical expenses.
Is the interest my HSA earns taxable?
No. Interest, dividends, and investment gains earned inside an HSA are tax-free. You do not report them on your tax return or pay tax on them in the year they are earned. This applies only while the money stays in the HSA; once you withdraw it, any future earnings on that money are taxed normally.
What if my employer contributes more than the annual limit?
The excess is taxable income to you. If the limit is $3,850 and your employer contributes $4,000, you owe income tax on the $150 overage. Your employer should correct this, but if they do not, you report the excess on Form 8889 when you file your tax return.