Money in your HSA is taxed only when you withdraw it for non-medical expenses
An HSA itself is not taxable. The account grows tax-free. But what you do with the money determines whether you owe tax on it. Withdraw funds to pay for may have access to medical expenses—copays, deductibles, prescriptions, dental work, vision care—and you pay no tax on that withdrawal. Withdraw the same amount for groceries or rent, and you owe income tax on it plus a 20 percent penalty, unless you are over 65.
The three moments that matter are when money goes in, when it grows, and when it comes out. Understanding which of those three are taxable—and which are not—is what separates an HSA from a regular savings account.
Key Takeaways
- Contributions you make to your HSA are deductible from your income, meaning you do not pay federal income tax on that money.
- Investment earnings inside the account—interest, dividends, capital gains—are never taxed, as long as the money stays in the account.
- Withdrawals for may have access to medical expenses are tax-free; withdrawals for anything else are taxed as income plus a 20 percent penalty.
- After age 65, you can withdraw money for any reason without the 20 percent penalty, though non-medical withdrawals are still taxed as income.
- If your employer contributes to your HSA, that contribution is not counted as taxable income to you.
How contributions reduce what you owe in taxes
Money you put into your HSA lowers your taxable income for that year. If you earn $60,000 and contribute $4,000 to your HSA, the IRS treats your income as $56,000 for tax purposes. You do not pay federal income tax on that $4,000, and in most states you do not pay state income tax on it either.
This works whether you contribute through payroll deduction—where your employer takes the money before calculating your taxes—or whether you contribute on your own and deduct it when you file. The tax savings depend on your tax bracket. Someone in the 22 percent bracket saves $880 on a $4,000 contribution. Someone in the 12 percent bracket saves $480 on the same contribution.
Employer contributions work the same way. If your employer puts $3,000 into your HSA, you do not report that $3,000 as wages. It is not taxable income to you. This is one of the few places where employer-paid money truly avoids income tax entirely.
Investment growth inside the account is never taxed
Once money is in your HSA, you can invest it—in mutual funds, stocks, bonds, or money market accounts, depending on what your HSA provider offers. Any earnings from those investments are not taxed while the money stays in the account. If you invest $5,000 and it grows to $6,200, that $1,200 gain is not taxable income in the year it happens. It is not taxable the next year either, as long as you do not withdraw it.
This is different from a regular brokerage account, where you owe tax on investment gains each year. It is also different from a 401(k), where you pay tax when you withdraw the money but not on the growth itself. In an HSA, the growth is never taxed at all—as long as you eventually use the money for medical expenses.
This tax-free growth is one reason HSAs can function as retirement accounts. Someone who never touches their HSA and lets it grow for 30 years will have accumulated decades of untaxed investment returns. The catch is that if you withdraw that money for non-medical reasons before age 65, you owe income tax on all the growth plus the 20 percent penalty.
Withdrawals for medical expenses carry no tax
The IRS publishes a list of may have access to medical expenses. The list is long and includes obvious things—hospital bills, surgery, prescription drugs, dental work, vision care, hearing aids—and less obvious things like crutches, bandages, acupuncture, and certain over-the-counter medications (but only if you have a prescription). You can also use HSA money to pay insurance premiums in specific situations: COBRA premiums, long-term care insurance, and health insurance while you are unemployed.
When you withdraw money from your HSA to pay for a may have access to expense, that withdrawal is not taxable income. You do not report it on your tax return. You do not owe federal or state income tax on it. This is true whether you withdraw $50 for a copay or $5,000 for surgery.
Keep receipts and records. The IRS does not require you to submit them when you withdraw the money, but if you are audited, you need to show that the withdrawal was for a may have access to expense. If you cannot prove it was may have access to, the IRS will tax it as income and add the 20 percent penalty.
Non-medical withdrawals trigger income tax plus a penalty
If you withdraw money from your HSA for something other than a may have access to medical expense—to pay rent, buy a car, take a vacation—you owe income tax on that withdrawal at your regular tax rate, plus a 20 percent penalty. If you withdraw $2,000 for a non-medical reason and you are in the 22 percent tax bracket, you owe $440 in income tax plus $400 in penalty, for a total of $840 out of the $2,000.
This penalty applies to the withdrawal itself, not to any investment gains. If you invested $5,000 in your HSA and it grew to $6,200, and you withdraw the full $6,200 for a non-medical reason, you owe income tax and the 20 percent penalty on the entire $6,200, including the $1,200 in gains.
The one exception is if you are over 65. After age 65, you can withdraw money from your HSA for any reason without the 20 percent penalty. You still owe income tax on non-medical withdrawals, but the penalty goes away. This is why some people treat an HSA as a retirement account: after 65, it functions like a traditional IRA, where you can withdraw for any reason and only pay income tax.
What happens if you use HSA money and then get reimbursed
Suppose you pay a medical bill out of pocket, and later your insurance reimburses you. Can you then withdraw that same amount from your HSA tax-free? No. The IRS does not allow double-dipping. Once the expense is paid—whether by you, your insurance, or your HSA—you cannot withdraw HSA money for it again.
The rule is that you can only withdraw HSA money for expenses that have not been paid by another source. If your insurance covers the bill, you cannot use HSA money for it. If you pay it yourself and then get reimbursed, you cannot withdraw HSA money for it after the reimbursement arrives.
This matters most when you are coordinating between your HSA and your insurance. If you are unsure whether an expense will be covered, it is safer to pay out of pocket first, wait to see if insurance reimburses you, and only then withdraw from your HSA if the expense is not covered.
Reporting HSA activity on your tax return
Your HSA provider sends you a Form 8889 each January, which reports contributions, withdrawals, and any earnings. You attach this form to your tax return. If all your withdrawals were for may have access to medical expenses, the form is straightforward: you report the contributions as a deduction and the withdrawals do not create any tax liability.
If you made non-medical withdrawals, you report those on Form 8889 and they are added to your taxable income. The 20 percent penalty is calculated and reported on the same form. Your tax software will usually walk you through this, but it is worth understanding what is happening: the form is telling the IRS that you withdrew money for non-medical reasons and owe both income tax and penalty on it.
Keep your own records separate from what the provider reports. If you withdraw $3,000 and use $2,500 for medical expenses and $500 for something else, your HSA provider might report the full $3,000 as a withdrawal. You need to track which part was medical and which was not, so you can report the non-medical portion correctly on Form 8889.
Frequently Asked Questions
Do I have to pay taxes on my HSA if I do not withdraw anything?
No. As long as money stays in your HSA, it is not taxable. Contributions are deductible, investment earnings are not taxed, and the account balance does not create any tax liability. You only owe tax when you withdraw money for non-medical reasons.
What if I withdraw HSA money and later find out the expense was not may have access to?
You owe income tax and the 20 percent penalty on that withdrawal, even if you did not know at the time. The IRS does not care about intent. If the expense does not meet the definition of a may have access to medical expense, the withdrawal is taxable. You can amend your tax return if you discover this after filing.
Can I withdraw HSA money to pay for my spouse's medical expenses?
Yes. may have access to medical expenses include those of you, your spouse, and your dependents, regardless of whether they are covered under your health plan. You can withdraw HSA money to pay for your spouse's dental work, prescriptions, or surgery without any tax consequences.
Is HSA money taxable if I change jobs?
No. Your HSA belongs to you, not to your employer. When you leave a job, the money in your HSA stays yours. You can take it with you, invest it, and use it whenever you need it for may have access to medical expenses. There is no tax on the transfer or on keeping the account open.
What if my employer and I both contribute to my HSA—do I pay tax on both?
No. Employer contributions are not taxable income to you, and your own contributions are deductible. The combined total—employer plus employee—is not taxed as long as it does not exceed the annual limit set by the IRS. For 2024, that limit is $4,150 for individual coverage and $8,300 for family coverage.