You don't pay income tax on money you put into an HSA, and you don't pay tax when you withdraw it for may have access to medical expenses
An HSA is one of the few places where the IRS lets money sit without taxing it on the way in, while it grows, or on the way out—as long as you follow the rules. The money you contribute reduces your taxable income for that year. When you pull money out to pay for things like doctor visits, prescriptions, or dental work, there's no tax on that withdrawal. If you use the money for non-medical expenses after age 65, you pay income tax on the withdrawal but no penalty.
The catch is that the IRS has a specific list of what counts as a may have access to medical expense. If you withdraw money for something not on that list—say, cosmetic surgery or gym membership—you owe income tax on that amount plus a 20% penalty, unless you're over 65.
Key Takeaways
- Contributions you make to your HSA reduce your taxable income dollar-for-dollar, lowering your tax bill that year.
- Withdrawals for may have access to medical expenses—doctor visits, prescriptions, dental, vision, medical equipment—are never taxed.
- Non-may have access to withdrawals before age 65 trigger both income tax and a 20% penalty on the amount withdrawn.
- After age 65, you can withdraw money for any reason and pay only income tax, with no penalty.
- Your HSA balance rolls over year to year and is never "use it or lose it," so unused money stays in the account indefinitely.
How contributions reduce your taxes right now
When you contribute to an HSA, that money comes off the top of your taxable income. If you earn $50,000 and put $3,000 into an HSA, the IRS treats your income as $47,000 for tax purposes. This lowers your federal income tax, and in most states, your state income tax as well.
The contribution limits change each year. For 2024, you can contribute up to $4,150 if you have individual coverage or $8,300 if you have family coverage under an HSA-may be able to access health plan. If your employer contributes to your HSA, that money counts toward the limit but doesn't show up as taxable income to you. You can also make catch-up contributions of $1,000 extra per year once you turn 55.
You have until the tax filing deadline (usually April 15) of the following year to make contributions for the previous year and still get the tax deduction. If you contribute after that date, you can't deduct it retroactively.
What happens when you withdraw for medical expenses
The IRS publishes a list of may have access to medical expenses in Publication 502. The list is long and includes expected things like doctor visits, hospital stays, prescription drugs, and dental work. It also includes less obvious items: hearing aids, crutches, wheelchairs, insulin, and even some over-the-counter medications (but only if you have a prescription for them).
When you withdraw money from your HSA to pay for any of these expenses, you report nothing to the IRS. There's no tax form, no tax owed, and no penalty. The withdrawal is tax-free. You do need to keep receipts and records in case the IRS ever audits your HSA, but the money itself is clean.
One common mistake: buying over-the-counter pain relievers, allergy medicine, or cold medicine without a prescription and trying to pay with HSA funds. These don't count as may have access to expenses unless a doctor prescribed them. If you use your HSA debit card for them anyway, that's a non-may have access to withdrawal, and you'll owe tax and penalty on the amount.
Penalties and taxes for non-may have access to withdrawals
If you withdraw money from your HSA for something that isn't a may have access to medical expense, you owe income tax on that amount plus a 20% penalty. The penalty applies only before age 65. After 65, the penalty goes away, but the income tax remains.
Example: You withdraw $500 from your HSA to pay for cosmetic surgery. You owe income tax on $500 (at your marginal tax rate) plus $100 in penalties (20% of $500). If you're in the 22% federal tax bracket, that's $110 in federal tax plus $100 in penalties, totaling $210 on a $500 withdrawal.
The IRS doesn't always catch non-may have access to withdrawals immediately. Your HSA custodian (the bank or financial company holding the account) reports your total contributions and withdrawals on Form 5498-SA each year, but they don't verify whether each withdrawal was for a may have access to expense. However, if you're audited, the IRS will ask for receipts and documentation. If you can't prove the withdrawal was for a may have access to expense, you'll owe back taxes, penalties, and interest.
How HSA money grows without being taxed
Any interest, dividends, or investment gains your HSA earns are not taxed as long as the money stays in the account. If you invest your HSA balance in mutual funds or stocks through your HSA custodian, the growth is tax-free. This is different from a regular savings account or brokerage account, where you'd owe tax on the earnings each year.
This tax-free growth is one reason HSAs can become powerful long-term savings tools. Money you don't spend on medical expenses this year can stay invested and compound over decades. When you eventually withdraw it for a may have access to medical expense—even 20 or 30 years later—all that growth comes out tax-free.
What changes after you turn 65
At age 65, HSA rules shift. You can still withdraw money for may have access to medical expenses tax-free. But you can also withdraw money for any reason without the 20% penalty. You'll owe income tax on non-medical withdrawals, just as you would with a traditional IRA, but there's no extra penalty.
This makes an HSA a flexible retirement account after 65. Some people use it as a supplemental retirement savings vehicle, contributing the maximum each year while they're working and letting it grow. After 65, they can use it for medical expenses tax-free or for other living expenses at ordinary income tax rates.
Keeping records for the IRS
The IRS doesn't require you to submit receipts with your tax return, but you must keep them. If you're audited, you need to show that each withdrawal was for a may have access to medical expense. Keep receipts, invoices, and explanation of benefits (EOB) statements from your insurance company. If you paid out of pocket, keep the receipt from the provider.
Many people use their HSA debit card for medical expenses, which creates an automatic record. But if you reimburse yourself from your HSA months or years later—which is allowed—you need the original receipt to prove the expense was may have access to and when it occurred.
If you can't document a withdrawal, the IRS will treat it as non-may have access to, and you'll owe tax and penalties retroactively, plus interest on the unpaid tax from the year of the withdrawal.
Frequently Asked Questions
Do I have to pay taxes on my HSA if I don't use it?
No. Money that sits in your HSA and isn't withdrawn is never taxed. You get the tax deduction when you contribute, and the balance rolls over indefinitely. You only pay tax if you withdraw money for non-may have access to expenses or after age 65 for non-medical reasons.
Can my employer's HSA contribution be taxed?
No. Employer contributions to your HSA are not counted as taxable income to you. They reduce your taxable income just like your own contributions do. The total of your contributions plus your employer's contributions cannot exceed the annual limit.
What if I use my HSA debit card at a pharmacy but don't know if the item is may have access to?
Keep the receipt. If the IRS audits you, you'll need to prove the item was a may have access to medical expense. Over-the-counter items without a prescription are usually not may have access to. If you're unsure, ask the pharmacist or check IRS Publication 502 before you buy.
Can I withdraw money from my HSA to pay my health insurance premium?
Only in specific cases. You can use HSA funds to pay for COBRA continuation coverage, Medicare premiums (Part A, B, D, and some supplemental plans), and long-term care insurance premiums. You cannot use HSA funds to pay premiums for other health insurance while you're employed, even if you're paying out of pocket.
What happens to my HSA if I change jobs or leave my HSA-may be able to access plan?
Your HSA stays yours. The money doesn't disappear, and you don't lose the tax benefits. You can keep the account open and continue to withdraw for may have access to medical expenses. You just can't make new contributions unless you re-enroll in an HSA-may be able to access plan. If you switch to a non-HSA health plan, you become ineligible to contribute but can still use the balance.