Money in an HSA gets three layers of tax breaks, but only if you follow the rules
A Health Savings Account is tax-free in three separate ways: the money you put in is not taxed as income, the money grows without being taxed, and withdrawals for medical expenses are not taxed. But this only works if you stay enrolled in a high-deductible health plan, use the money for actual medical costs, and keep records to prove it. If you break these rules, you pay income tax on the withdrawal plus a 20 percent penalty—and the IRS can audit years back.
The tax benefit is real and substantial, but it is not automatic. You have to earn it by meeting three conditions: having the right insurance, spending on the right things, and documenting everything. This guide walks through what counts, what does not, and what happens when you get it wrong.
Key Takeaways
- Contributions to an HSA reduce your taxable income in the year you make them, whether you contribute through payroll or directly to the account.
- Interest and investment gains inside the HSA are never taxed, even if you hold the account for decades.
- Withdrawals for may have access to medical expenses—doctor visits, prescriptions, dental work, vision care, and some medical equipment—are tax-free with no time limit.
- If you withdraw money for non-medical reasons before age 65, you owe income tax plus a 20 percent penalty; after 65, you owe only income tax.
- The IRS requires receipts or other proof that your withdrawals were for medical expenses, and can request them years after you make the withdrawal.
How the three-part tax break works
Contributions are tax-deductible. When you put money into an HSA, that amount does not count as taxable income. If you earn $50,000 and contribute $4,000 to an HSA, you report $46,000 as taxable income. This works whether you contribute through payroll deduction (which skips income tax and payroll tax both) or deposit money directly to the account (which you deduct on your tax return). The contribution limits for 2024 are $4,150 for individual coverage and $8,300 for family coverage; these amounts change yearly.
Growth inside the account is tax-free. If you invest your HSA balance in stocks, bonds, or mutual funds, any gains are never taxed. If you deposit $4,000 and it grows to $12,000 over ten years, you owe no tax on that $8,000 gain. This is different from a regular savings account or brokerage account, where you would owe tax on the interest or investment income each year. An HSA can be held indefinitely—there is no requirement to spend it by a certain age or lose the tax benefit.
Withdrawals for medical expenses are tax-free. When you take money out to pay for a doctor visit, prescription medication, dental work, vision care, or other may have access to medical expenses, that withdrawal is not taxed. You do not report it as income. The IRS publishes a list of what counts as a may have access to medical expense; common examples include copays, deductibles, coinsurance, hearing aids, crutches, and insulin. Some items that seem medical—like cosmetic surgery or teeth whitening for appearance—do not count.
What counts as a may have access to medical expense
The IRS maintains a detailed list, but the practical rule is: if it treats or prevents a diagnosed medical condition, it usually counts. Expenses that count include doctor and dentist visits, prescription and over-the-counter medications (with a prescription), eyeglasses and contact lenses, hearing aids, crutches, wheelchairs, insulin, and many medical devices. Mental health treatment, including therapy and psychiatric medication, counts. Fertility treatment and certain contraceptives count. Long-term care insurance premiums count, up to an annual limit that changes yearly.
Expenses that do not count include cosmetic procedures (unless they repair an injury or birth defect), gym memberships, vitamins without a medical diagnosis, teeth whitening, and most over-the-counter medications without a prescription. Travel to receive medical care does not count, though the medical care itself does. If you are unsure whether a specific expense qualifies, the IRS website has a searchable database, or you can ask your HSA provider—they often have a list of common items and whether they have been approved.
You do not have to spend the money in the same year you contribute it. You can contribute in 2024, invest it, and withdraw it tax-free in 2030 to pay for a medical expense from 2030. The only requirement is that the expense happened after you opened the HSA, and that you have proof of it.
What happens if you withdraw money for non-medical reasons
If you take money out of an HSA and it is not for a may have access to medical expense, you owe income tax on that amount plus a 20 percent penalty. If you withdraw $1,000 for a non-medical reason and you are in the 24 percent tax bracket, you owe $240 in income tax plus $200 in penalty—$440 total on a $1,000 withdrawal. This penalty applies only to the non-may have access to portion; if you withdraw $1,000 and $600 is for medical expenses, you owe tax and penalty only on the $400.
The 20 percent penalty stops applying after age 65. At 65 or older, you can withdraw money for any reason and owe only income tax—no penalty. This makes an HSA similar to a traditional retirement account at that point. Many people use this feature to let their HSA grow as a retirement savings tool, knowing they can access it penalty-free after 65.
If you are no longer enrolled in a high-deductible health plan, you cannot contribute new money to the HSA, but the money already in it stays yours and keeps growing tax-free. You can still withdraw it for medical expenses without tax or penalty. You just cannot add to it unless you re-enroll in a may have access to plan.
Documentation: what the IRS expects you to keep
You must keep records showing that your withdrawals were for may have access to medical expenses. This means receipts, invoices, or statements from the provider showing the date, the provider's name, the service or item, and the amount. A credit card statement alone is not enough—you need the actual medical bill or receipt. The IRS can request these records years after you make a withdrawal, so keep them as long as you own the account.
If you cannot produce documentation when asked, the IRS will treat the withdrawal as non-may have access to, meaning you owe income tax and the 20 percent penalty retroactively. This can happen even if the expense genuinely was medical; the burden is on you to prove it. Many HSA providers offer tools to track and categorize expenses, and some let you upload receipts directly to the account. Using these tools makes an audit much easier to survive.
You do not have to submit receipts when you make a withdrawal—the HSA provider does not police this. But the IRS can audit your HSA at any time and demand proof. If you cannot show it, you pay.
The requirement to stay in a high-deductible health plan
The tax benefits only apply while you are enrolled in a high-deductible health plan (HDHP). An HDHP is a specific type of insurance with a higher deductible than a standard plan, but lower premiums. For 2024, an HDHP must have a deductible of at least $1,600 for individual coverage or $3,200 for family coverage. Your employer or insurance provider will tell you if your plan qualifies.
If you leave an HDHP and switch to a different type of insurance, you can no longer contribute to an HSA. The money already in the account stays yours and keeps growing tax-free, and you can still withdraw it for medical expenses without tax. But you cannot add new money. If you return to an HDHP later, you can resume contributions.
Some people switch plans temporarily—for example, if they need a specialist not covered by their HDHP. If you drop HDHP coverage even for one month, you cannot contribute to the HSA for that entire calendar year. This is a strict rule with no exceptions. Plan any coverage changes carefully if you want to keep contributing.
HSA vs. other tax-advantaged accounts
An HSA is more tax-efficient than a Flexible Spending Account (FSA) or a Health Reimbursement Arrangement (HRA). An FSA requires you to spend the money within the plan year or lose it (with a small carryover allowed in some plans). An HSA has no deadline—money rolls over indefinitely. An FSA is also tied to your employer; if you leave the job, the account closes. An HSA is yours to keep and take with you.
An HSA also offers more investment options than most FSAs. With an FSA, your money usually sits in a cash account earning little or no interest. With an HSA, you can invest in mutual funds, stocks, or bonds, letting your balance grow over time. This makes an HSA a powerful retirement savings tool if you can afford to leave the money untouched.
A regular savings account or taxable brokerage account offers no tax break on contributions, charges tax on interest and gains each year, and charges tax again when you withdraw. An HSA avoids all three layers of tax, making it the most tax-efficient way to save for medical expenses.
Frequently Asked Questions
Can I use HSA money to pay for my spouse's medical expenses?
Yes. HSA money can be used for may have access to medical expenses of you, your spouse, and your dependents, regardless of whether they are covered under your health plan. You do not have to be on a family plan; even if you have individual coverage, you can withdraw for your spouse's or child's medical bills.
What if I withdraw money and later find out it was not a may have access to expense?
You owe income tax and the 20 percent penalty on that withdrawal. You cannot undo it or reclassify it. The best protection is to check the IRS list or ask your HSA provider before you withdraw, especially for items you are unsure about.
Do I have to report HSA withdrawals on my tax return?
No, not if they are for may have access to medical expenses. You do not report them as income. If you withdraw for non-may have access to reasons, you report that amount on Form 8889 and pay the tax and penalty. Your HSA provider sends you a Form 1099-SA showing total withdrawals, but you only owe tax on the non-may have access to portion.
Can I carry over unused HSA money to next year?
Yes, indefinitely. Unlike an FSA, there is no "use it or lose it" rule. Money in an HSA rolls over every year and can be held for decades. This is one reason an HSA is valuable as a long-term savings tool.
What happens to my HSA if I turn 65?
The account stays yours and keeps growing tax-free. After 65, you can withdraw money for any reason and owe only income tax—no 20 percent penalty. You can still withdraw for medical expenses tax-free. Many people let their HSA grow as a retirement account and use it to pay for Medicare premiums and other health costs in retirement.