HSAs reduce your taxable income three ways: the money you put in is not taxed, the interest or investment gains inside the account are not taxed, and withdrawals for medical expenses are not taxed
A Health Savings Account works like a tax shelter built into your paycheck. When you contribute money to an HSA, that money comes out before federal income tax, Social Security tax, and Medicare tax are calculated. If you earn $50,000 and put $4,150 into an HSA in 2024, your taxable income drops to $45,850. You pay income tax only on the smaller number.
The tax benefit does not stop when the money lands in the account. Any interest, dividends, or investment gains the account earns are also tax-free. If you invest your HSA balance in a mutual fund and it grows by $500, you owe no tax on that $500. When you withdraw money to pay for a doctor visit, prescription, or dental work, that withdrawal is tax-free too. No tax on the way in, no tax on the growth, no tax on the way out — but only if you spend it on a may have access to medical expense.
The tax savings depend on your income tax bracket. Someone in the 22% federal tax bracket saves $0.22 for every dollar contributed. Add state income tax (which varies from 0% to 13.3% depending on where you live) and the savings can reach 30% to 40% of what you put in. That is money that stays in your pocket instead of going to the IRS.
Key Takeaways
- Contributions to an HSA reduce your federal taxable income, and in most states, your state taxable income as well.
- Investment gains inside an HSA are never taxed, even if you hold the account for decades.
- Withdrawals for may have access to medical expenses — doctor visits, prescriptions, dental, vision, medical equipment — are tax-free.
- Withdrawals for non-medical expenses are taxed as income plus a 20% penalty, unless you are age 65 or older.
- You must be enrolled in a high-deductible health plan to open or contribute to an HSA.
How the tax deduction works on your tax return
If your employer deducts HSA contributions directly from your paycheck, the money never appears on your W-2 as wages. Your taxable income is already reduced before you file taxes. You do not need to do anything on your tax return — the tax savings happen automatically.
If you contribute to an HSA on your own (because you are self-employed or your employer does not offer one), you claim the deduction on your tax return using Form 1040, Line 13 (the HSA deduction line). You report the amount you contributed, and your taxable income drops by that amount. The IRS will send you a Form 1099-SA at the end of the year showing how much you withdrew; you use this to prove your contributions and withdrawals match.
The contribution limit for 2024 is $4,150 for self-only coverage and $8,300 for family coverage. If you are 55 or older, you can add an extra $1,000 per year. These limits reset each January. Contributions you make after December 31 count toward the next year's limit, not the current year.
Tax-free growth inside the account
An HSA is not just a savings account — it is an investment account. You can leave money in the account untouched and invest it in stocks, bonds, or mutual funds through the HSA custodian (usually a bank or investment firm). Any profit you make is tax-free. If you invest $4,150 and it grows to $6,000 over five years, you owe no capital gains tax on that $1,850 gain.
This is different from a regular savings account or brokerage account, where you would owe tax on the interest or gains. Over decades, this tax-free compounding can add up significantly. Someone who contributes the maximum every year from age 35 to 65 and invests conservatively could accumulate $150,000 to $200,000 tax-free — money that would have cost thousands more in taxes if held in a taxable account.
You do not have to use the HSA money in the same year you contribute it. There is no "use it or lose it" rule like there is with Flexible Spending Accounts (FSAs). Money rolls over indefinitely, and you can let it grow for years before touching it.
Tax-free withdrawals for medical expenses
Withdrawals are tax-free only when you use the money for a may have access to medical expense. The IRS has a long list: doctor and dentist visits, prescriptions, eyeglasses and contact lenses, hearing aids, crutches, wheelchairs, insulin, and many other items. You can also withdraw for health insurance premiums in specific situations: if you are unemployed and receiving unemployment benefits, if you are retired and over 65, or if you are paying for long-term care insurance.
Keep receipts and documentation. The IRS does not require you to submit them with your tax return, but if you are audited, you need to prove the withdrawal was for a may have access to expense. If you withdraw money for something that is not may have access to — say, a gym membership or cosmetic surgery — that withdrawal is taxed as ordinary income, and you also owe a 20% penalty on top of the tax. The penalty does not apply if you are 65 or older, but the income tax still does.
Some expenses are tricky. Over-the-counter medications are may have access to only if you have a prescription. Vitamins are not may have access to unless they treat a specific medical condition and you have a doctor's note. Cosmetic procedures are not may have access to, but reconstructive surgery after an injury or illness is. When in doubt, ask your HSA custodian or check IRS Publication 502.
What happens if you withdraw money for non-medical reasons
If you take money out of your HSA for something other than a may have access to medical expense before age 65, you pay income tax on the withdrawal plus a 20% penalty. If you withdraw $1,000 for a non-medical expense and you are in the 22% tax bracket, you owe $220 in income tax plus $200 in penalty — a total of $420 on top of the $1,000 you took out.
At age 65, the penalty disappears. You can withdraw money for any reason without the 20% penalty, though you still owe income tax on non-medical withdrawals. This makes an HSA a useful retirement savings tool: you get the tax deduction and tax-free growth while you are working, and after 65 you can use it like a traditional IRA if you want.
The IRS tracks HSA withdrawals through the Form 1099-SA your custodian sends you. If you withdraw more than you spent on medical expenses, you are responsible for reporting the non-medical portion and paying the tax and penalty. Keep records of what you spent on medical care so you can account for every withdrawal.
State tax treatment varies
Most states follow federal tax law and do not tax HSA contributions or withdrawals. However, a few states tax HSA contributions even though the federal government does not. New Jersey, Alabama, and Tennessee tax HSA contributions as income. If you live in one of these states and contribute $4,150 to an HSA, you get the federal tax deduction but still owe state income tax on that $4,150.
Some states also have different rules for what counts as a may have access to medical expense. Before opening an HSA, check your state's tax agency website or ask your tax preparer whether your state taxes HSA contributions or has special rules for withdrawals.
How HSAs compare to other tax-advantaged accounts
An HSA is more flexible than a Flexible Spending Account (FSA), which is the other common tax-advantaged health account. FSAs have a "use it or lose it" rule: money you do not spend by the end of the year is forfeited (though some plans allow a small carryover). HSAs have no time limit — money rolls over forever. FSAs also do not allow investment; your money just sits in a cash account. HSAs let you invest for growth.
HSAs are also different from 529 college savings plans, which are tax-free for education expenses only. HSA money can be used for any medical expense at any time, and after 65 it can be used for anything. A 529 plan has no penalty-free withdrawal option for non-education expenses.
The trade-off is that you must be enrolled in a high-deductible health plan to open or contribute to an HSA. If your employer offers a traditional PPO or HMO with a lower deductible, you cannot use an HSA. FSAs are available to anyone whose employer offers one, regardless of their health plan type.
Frequently Asked Questions
Do I have to use my HSA money in the same year I contribute it?
No. HSA money rolls over indefinitely with no expiration date. You can contribute in 2024 and withdraw for medical expenses in 2030 or later. This is different from FSAs, which have a use-it-or-lose-it deadline.
What happens to my HSA if I change jobs or lose my health insurance?
Your HSA stays yours. The account does not disappear when you leave your job or switch health plans. You can keep the HSA open and continue to use it for medical expenses, though you cannot make new contributions unless you are still enrolled in a high-deductible health plan.
Can I deduct HSA contributions twice — once on my taxes and once from my paycheck?
No. If your employer deducts contributions from your paycheck, you cannot claim the deduction again on your tax return. The deduction happens only once. If you contribute on your own outside of payroll, you claim it on Form 1040.
Are dental and vision expenses covered by HSA tax benefits?
Yes. Dental work, eyeglasses, contact lenses, and vision exams are all may have access to medical expenses. You can withdraw HSA money tax-free to pay for them. Cosmetic dental work is not covered, but necessary dental care is.
What if I withdraw more from my HSA than I spent on medical expenses?
You owe income tax and a 20% penalty on the excess amount, unless you are 65 or older (then only income tax applies). Keep receipts for all medical expenses so you can account for your withdrawals if audited.