HSAs lower your taxable income three ways: contributions come out before taxes, the money grows tax-free, and withdrawals for medical expenses are not taxed
A Health Savings Account works like a tax shelter specifically for medical costs. When you put money into an HSA, that amount does not count as income on your federal tax return. The money sits in the account earning interest or investment returns, and neither the growth nor the withdrawals for may have access to medical expenses trigger any tax bill. This triple tax advantage—no tax on the way in, no tax while it grows, and no tax on the way out—is what makes HSAs different from regular savings accounts or even other tax-advantaged accounts like 401(k)s.
The tax benefit only applies if you have a high-deductible health plan (HDHP). If you drop the HDHP or become ineligible—for example, by enrolling in Medicare or getting coverage through a spouse's plan—you can no longer contribute to the HSA, though you can keep the money already there and withdraw it tax-free for medical expenses.
Key Takeaways
- Contributions to an HSA reduce your taxable income dollar-for-dollar, lowering your federal income tax bill in the year you contribute.
- Money in an HSA grows tax-free, and you pay no tax on withdrawals used for may have access to medical expenses like deductibles, copays, prescriptions, and dental work.
- If you withdraw HSA money for non-medical expenses before age 65, you owe income tax on that amount plus a 20 percent penalty; after 65, the penalty disappears but income tax still applies.
- You report HSA contributions and withdrawals on your tax return using Form 8889, which the IRS uses to verify you stayed within annual contribution limits.
- An HSA is portable—you keep it even if you change jobs or health plans, and the tax benefits continue as long as you remain enrolled in an HDHP.
How contributions reduce your tax bill
When you contribute to an HSA, the IRS treats that money as a deduction from your gross income. If you contribute $3,000 in a year and your tax bracket is 22 percent, you save roughly $660 in federal income tax. The deduction applies whether you itemize deductions or take the standard deduction—HSA contributions are "above the line," meaning they reduce your taxable income before either choice is made.
The contribution limit changes each year. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. If your employer contributes to your HSA, that amount counts toward your limit. You can contribute the difference yourself. If you are 55 or older, you can add an extra $1,000 per year as a catch-up contribution.
You report your HSA contributions on Form 8889, which you file with your tax return. If you contributed through payroll deduction, your employer reports that on your W-2, and you do not need to report it again. If you contributed directly to the HSA yourself, you deduct it on Form 8889.
Tax-free growth and medical withdrawals
Money in an HSA can be invested in mutual funds, stocks, or bonds, depending on what your HSA provider offers. Any interest, dividends, or capital gains earned inside the account are not taxed. This is different from a regular brokerage account, where you owe tax on investment income each year.
When you withdraw money to pay for a may have access to medical expense, you owe no tax on any part of the withdrawal—not the original contribution, not the growth, nothing. may have access to expenses include deductibles, copays, coinsurance, prescription drugs, dental work, vision care, hearing aids, and many other costs. You do not need to submit receipts to the HSA provider when you withdraw, but you should keep them for your records in case the IRS asks.
If you withdraw money for something that is not a may have access to medical expense, you owe income tax on that amount. If you are under 65, you also owe a 20 percent penalty. After age 65, the penalty goes away, but income tax still applies. For example, if you withdraw $500 for a non-medical expense at age 45 and your tax bracket is 22 percent, you owe $110 in tax plus $100 in penalty, for a total of $210.
Reporting HSA activity on your tax return
You use Form 8889 to report HSA contributions and withdrawals to the IRS. Part I covers contributions: you list how much you or your employer put in, and the form calculates your deduction. Part II covers distributions: you report the total amount you withdrew and how much of that was for may have access to medical expenses.
If all your withdrawals were for may have access to medical expenses, the taxable amount is zero. If some withdrawals were not may have access to, you report the non-may have access to amount as income and calculate the 20 percent penalty (or zero if you are 65 or older). The form also tracks your HSA balance at year-end, which helps the IRS verify you did not exceed the annual contribution limit.
Your HSA provider sends you a Form 1099-SA each January, showing total distributions from the account in the prior year. You use this form to fill out Form 8889. If the 1099-SA shows distributions but you did not actually withdraw anything, contact your provider—they may have made an error, or a fee they charged might have been reported as a distribution.
Penalties for over-contributing and non-may have access to withdrawals
If you contribute more than the annual limit, the excess is subject to a 6 percent excise tax each year it stays in the account. For example, if the 2024 limit is $4,150 and you contribute $5,000, the $850 excess is taxed at 6 percent ($51) in 2024. If you do not withdraw the excess in 2024, it is taxed again at 6 percent in 2025, and so on until you remove it.
The IRS can waive the excise tax if the over-contribution was due to a reasonable error and you correct it by the tax filing deadline. If your employer made the error, ask them to file Form 5329 with an explanation.
Non-may have access to withdrawals before age 65 carry a 20 percent penalty on top of income tax. This penalty is separate from the income tax you owe—it is not a higher tax rate, it is an additional flat penalty. After age 65, you can withdraw for any reason without the 20 percent penalty, though you still owe income tax on non-medical withdrawals.
HSAs and Medicare may be able to access
Once you enroll in Medicare, you can no longer contribute to an HSA. However, you can keep the account and withdraw money tax-free for may have access to medical expenses, including Medicare premiums (Part B and Part D), Medicare Advantage premiums, and long-term care insurance premiums. You cannot use HSA money to pay for Medigap premiums.
If you are still working and covered by an employer plan when you turn 65, you may be able to delay Medicare enrollment and keep contributing to your HSA. Check with your employer and your HSA provider about the rules in your situation.
Coordination with other tax benefits
You cannot claim a tax deduction for a medical expense if you already paid for it with HSA money. For example, if you use your HSA to pay a $500 dental bill, you cannot also deduct that $500 on Schedule A as a medical expense. This prevents double-dipping.
HSA contributions do not affect your ability to claim other tax credits or deductions, such as the Earned Income Tax Credit or the Child and Dependent Care Credit. However, HSA withdrawals do not reduce your adjusted gross income, so they do not help you reach the income thresholds for certain credits or deductions that phase out at higher incomes.
Frequently Asked Questions
Do I have to use my HSA money for medical expenses in the same year I contribute?
No. You can contribute in one year and withdraw for medical expenses in any future year, even decades later. The money can sit in the account and grow tax-free indefinitely. There is no "use it or lose it" rule like there is for Flexible Spending Accounts (FSAs).
What happens to my HSA if I change jobs?
The HSA stays with you. It is your account, not your employer's. You can keep it at the same provider or transfer it to a new provider. You can continue to withdraw for medical expenses tax-free regardless of where you work or what health plan you have, as long as you remain enrolled in an HDHP.
Can I deduct HSA contributions if I take the standard deduction?
Yes. HSA contributions are deducted before you choose between the standard deduction and itemizing. You get the full HSA deduction plus the standard deduction (or your itemized deductions if that is higher).
What counts as a may have access to medical expense for HSA withdrawals?
may have access to expenses include insurance deductibles, copays, coinsurance, prescription drugs, dental and vision care, hearing aids, medical equipment, and many other costs. Over-the-counter medications count only if you have a prescription. Cosmetic procedures do not count unless they are medically necessary. Your HSA provider can give you a full list.
If I withdraw money for a non-medical expense, can I put it back to avoid the penalty?
No. Once you withdraw for a non-may have access to reason, you owe the income tax and penalty. You cannot undo it by recontributing the money. However, if you made a mistake and the withdrawal was actually for a may have access to expense, you can file an amended tax return to correct it.