The basic tax treatment: contributions, growth, and withdrawals
Health Savings Accounts receive three layers of tax advantage, and understanding which applies where matters for your money. Money you put into an HSA reduces your taxable income in the year you contribute it—the same way a 401(k) contribution does. The money then grows tax-free inside the account, meaning you pay no tax on interest, dividends, or investment gains. When you withdraw money to pay for may have access to medical expenses, you owe no tax on that withdrawal either.
This three-part structure is what makes HSAs different from a regular savings account or even a flexible spending account. You get a deduction going in, tax-free growth while it sits there, and tax-free withdrawal when you use it for the right purpose. If you contribute $4,150 to an HSA in 2024 and that money earns $200 in interest before you spend it on a doctor's visit, you report neither the $4,150 nor the $200 as taxable income.
Key Takeaways
- Contributions to an HSA reduce your taxable income for the year you make them, lowering the federal income tax you owe.
- Money inside an HSA grows tax-free, and you pay no tax when you withdraw it for may have access to medical expenses like deductibles, copays, and prescriptions.
- Withdrawals for non-medical purposes are taxed as ordinary income plus a 20 percent penalty, unless you are age 65 or older.
- If your employer contributes to your HSA, that money is not counted as wages and does not appear on your W-2 as taxable income.
- You must have a high-deductible health plan to own an HSA; losing that coverage ends your ability to contribute but does not affect money already in the account.
What counts as a may have access to medical expense
The tax-free withdrawal benefit only applies to specific expenses. The IRS maintains a list, and it includes the obvious ones: doctor visits, hospital stays, prescription drugs, dental work, vision care, and mental health treatment. It also includes medical equipment like crutches, wheelchairs, and hearing aids; insulin and diabetes supplies; and copays and coinsurance amounts you pay out of pocket.
What does not count: cosmetic procedures (unless medically necessary), over-the-counter drugs you buy without a prescription, gym memberships, vitamins, and most dental work that is purely cosmetic. If you withdraw money for something not on the list, the IRS taxes that withdrawal as ordinary income and adds a 20 percent penalty on top—so a $1,000 non-may have access to withdrawal costs you roughly $320 in taxes and penalty if you are in the 22 percent tax bracket.
Keep receipts and documentation for every withdrawal. The IRS does not require you to submit them when you file your tax return, but you must be able to prove the expense was may have access to if you are audited. Many people keep a separate file or spreadsheet tracking what they withdrew and what it was for.
Withdrawals after age 65 and the penalty exception
Once you turn 65, the 20 percent penalty disappears. You can still withdraw money for non-medical expenses, but you will owe ordinary income tax on that withdrawal—just no penalty. This makes an HSA function like a traditional IRA after 65: a tax-deferred savings account where you can eventually pull money out for any reason and only pay income tax, not a penalty.
Medical expenses remain tax-free at any age. So at 67, if you withdraw $5,000 for a hip replacement, you owe no tax. If you withdraw $5,000 to pay your mortgage, you owe income tax on that $5,000 but no 20 percent penalty. This flexibility is one reason HSAs can be powerful long-term savings vehicles—they function as both a medical fund and a retirement account.
Employer contributions and your tax bill
When your employer puts money into your HSA, that contribution does not count as wages. It does not appear on your W-2, does not reduce the amount your employer reports as your salary, and does not trigger payroll taxes. From a tax perspective, employer contributions are invisible—they lower your taxable income without you having to do anything.
If you contribute your own money through payroll deduction (money taken from your paycheck before taxes), that works the same way: the contribution comes out before federal income tax is calculated, so it reduces your taxable income automatically. If you contribute money after you have already been paid—writing a check or transferring from your bank account—you claim the deduction on your tax return using Form 8889.
Contribution limits and what happens if you exceed them
The IRS sets annual contribution limits, and they vary by whether you have individual or family coverage. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change most years, and your HSA provider should notify you of the new limit before the year begins.
If you contribute more than the limit, the excess is not deductible—you do not get the tax break on the overage. The excess also sits in your account earning money tax-free, but when you withdraw it, you owe tax on both the excess contribution and any earnings it generated. To correct an overcontribution, you can withdraw the excess and any earnings before your tax filing important date (usually April 15 of the following year) and avoid the tax hit. If you do not withdraw it, you report the excess on Form 8889 when you file your return.
Losing coverage and what happens to your HSA
Your HSA is tied to having a high-deductible health plan, but losing that coverage does not mean you lose the account. Once money is in an HSA, it stays there and remains tax-advantaged forever—you just cannot add new contributions once you are no longer enrolled in a may have access to plan. If you switch to a low-deductible plan, Medicare, or Medicaid, your contribution window closes, but your existing balance keeps growing tax-free and you can still withdraw from it for medical expenses without tax or penalty.
This is different from a flexible spending account, which operates on a use-it-or-lose-it basis. An HSA is yours to keep and use whenever you need it, even decades later. Some people use this to their advantage: they stay in a high-deductible plan for years, contribute the maximum each year, and let the balance grow. Then later in life, when medical expenses rise, they have a large tax-free pool to draw from.
State taxes and HSA treatment
Federal tax treatment is consistent across the country, but a handful of states tax HSA contributions or withdrawals differently. Most states follow federal rules and treat HSA contributions as deductible and withdrawals for medical expenses as tax-free. A few states—including California, New Jersey, and Tennessee—do not allow the state income tax deduction for HSA contributions, meaning you get the federal deduction but not the state one.
Check your state's tax rules if you live in a state with income tax. Your HSA provider or a tax professional can tell you whether your state follows federal treatment or has its own rules. This matters most if you are deciding whether to max out your HSA or put money elsewhere—the state tax treatment can shift the math slightly.
Frequently Asked Questions
Do I have to report my HSA on my tax return?
If you contribute through payroll deduction, your employer handles it and you do not need to report anything—the contribution is already excluded from your W-2. If you contribute money yourself after being paid, you report it on Form 8889 when you file your return. You do not report withdrawals for may have access to medical expenses, but you should keep documentation in case of an audit.
What happens if I withdraw money from my HSA for something that is not a medical expense?
You owe ordinary income tax on that withdrawal plus a 20 percent penalty, unless you are 65 or older (in which case you owe the tax but not the penalty). So a $2,000 non-may have access to withdrawal in the 24 percent tax bracket costs you roughly $680 in taxes and penalty combined.
Can I use my HSA to pay for my spouse's medical expenses?
Yes. You can withdraw money tax-free for medical expenses of your spouse and any dependent, even if they are not covered under your health plan. The expense must still be a may have access to medical expense—the relationship to you does not change what counts.
Is the money in my HSA protected if I declare bankruptcy?
HSA protection in bankruptcy varies by state and the specific circumstances of your case. Some states treat HSAs like retirement accounts and shield them from creditors; others do not. Speak with a bankruptcy attorney in your state if this is a concern.
Can I invest the money in my HSA?
Yes, most HSA providers let you invest your balance in mutual funds, stocks, or other securities. Any gains from those investments are tax-free as long as you eventually withdraw the money for may have access to medical expenses. This is one reason HSAs can work as long-term savings vehicles—you are not limited to keeping the money in a low-interest savings account.