The three ways an HSA saves you money on taxes

An HSA gives you three separate tax breaks, and they all work at the same time. Money you put into the account is not taxed as income. The money grows without being taxed each year. And when you pull it out to pay for medical expenses, you do not pay taxes on that withdrawal either. No other savings account works this way—not a regular savings account, not a 401(k), not an IRA.

The catch is that these tax breaks only explore when you use the money for may have access to medical expenses. The IRS has a specific list of what counts: doctor visits, prescriptions, dental work, vision care, mental health treatment, and many others. If you withdraw money for something not on that list—groceries, rent, a vacation—you owe income tax on that money plus a 20 percent penalty on top.

This is different from a flexible spending account (FSA), which also lets you set aside pre-tax money for medical costs but forces you to spend it or lose it each year. An HSA has no "use it or lose it" rule. Money you do not spend stays in the account and rolls forward indefinitely.

Key Takeaways

  • Contributions to an HSA reduce your taxable income for the year, lowering what you owe in federal income tax.
  • Interest and investment gains inside the account are never taxed, even as the balance grows year after year.
  • Withdrawals for may have access to medical expenses come out tax-free, with no income tax or penalty.
  • Withdrawals for non-medical expenses trigger income tax plus a 20 percent penalty, so the account is not a general savings tool.
  • You must be enrolled in a high-deductible health plan (HDHP) to open or contribute to an HSA—this is the one requirement you cannot work around.

How the income tax deduction works when you contribute

When you put money into an HSA, that amount comes off your taxable income. If you earn $60,000 and contribute $4,000 to an HSA, the IRS treats your income as $56,000 for tax purposes. You pay income tax only on the $56,000.

The size of the tax break depends on your tax bracket. If you are in the 22 percent federal tax bracket, a $4,000 contribution saves you roughly $880 in federal income tax. If you are in the 12 percent bracket, the same contribution saves you roughly $480. State income tax also applies in most states, so the total savings is usually higher than the federal number alone.

This deduction happens whether you contribute through your employer's payroll or on your own. If your employer takes the money directly from your paycheck before taxes are calculated, you see the benefit when ready in a smaller tax bill. If you contribute on your own after receiving your paycheck, you claim the deduction when you file your tax return.

Why growth inside the account is never taxed

If you do not spend your HSA balance right away, you can invest it. Many HSA providers let you put the money into mutual funds, stocks, or bonds. Any interest, dividends, or capital gains from those investments are not taxed while they sit in the account.

This is the part that makes an HSA powerful for long-term saving. A regular investment account taxes you on gains every year. An HSA lets those gains compound without any annual tax drag. Over 20 or 30 years, that difference becomes substantial.

You do not have to invest the money. You can leave it in a cash account earning a small interest rate. Either way, you owe no tax on whatever the balance earns.

What happens when you withdraw money for medical costs

When you take money out of an HSA to pay for a may have access to medical expense, that withdrawal is completely tax-free. You do not report it as income, you do not pay federal tax on it, and you do not pay state income tax on it (in most states). The money comes out clean.

may have access to expenses include a long list: doctor office visits, hospital stays, surgery, prescription drugs, dental cleanings and root canals, eyeglasses and contact lenses, mental health counseling, physical therapy, and many others. The IRS publishes a full list on its website, and you can also ask your HSA provider whether a specific expense qualifies.

You do not have to withdraw the money in the same year you spend it. You can pay a medical bill out of pocket and then reimburse yourself from the HSA months or years later. This flexibility is one reason some people use an HSA as a retirement savings tool—they pay medical bills as they come up and leave the HSA untouched to grow.

The penalty for withdrawing money that is not for medical expenses

If you withdraw money from an HSA for something that is not a may have access to medical expense, two things happen. First, you pay ordinary income tax on that amount. Second, you pay a 20 percent penalty on top of the tax.

The penalty is steep by design. It is meant to discourage people from treating an HSA like a regular savings account. If you are in the 22 percent tax bracket and withdraw $1,000 for a non-medical expense, you owe roughly $220 in income tax plus $200 in penalty—$420 total out of the $1,000.

There is one exception: after age 65, you can withdraw money from an HSA for any reason without the 20 percent penalty. You still owe income tax on non-medical withdrawals, but the penalty goes away. This is why some people view an HSA as a retirement account—it becomes like a traditional IRA once you turn 65.

The requirement that ties everything together: you must have an HDHP

You can only open an HSA if you are enrolled in a high-deductible health plan (HDHP). This is not optional. If you switch to a regular health plan or Medicare, you can no longer contribute to an HSA, though you can still withdraw money from it for medical expenses.

An HDHP has a higher deductible than a standard plan—meaning you pay more out of pocket before insurance kicks in—but the monthly premium is usually lower. The IRS sets minimum deductible amounts each year. For 2024, an HDHP deductible must be at least $1,600 for individual coverage or $3,200 for family coverage. These numbers change annually.

The trade-off is intentional: you accept a higher deductible in exchange for the ability to save money tax-free in an HSA. For people who are generally healthy and do not expect large medical bills, an HDHP plus an HSA often costs less than a traditional plan.

How HSA tax benefits compare to other savings accounts

Account TypeContribution Tax-FreeGrowth Tax-FreeWithdrawal Tax-FreeMain Requirement
HSAYesYesYes (medical only)Enrolled in HDHP
FSAYesNoYes (medical only)Employer plan available
Traditional IRAYesYesNo (taxed on withdrawal)Have earned income
Regular savings accountNoNoNoNone

Frequently Asked Questions

Do I have to report my HSA on my tax return?

If you contribute through your employer's payroll, the contribution is already deducted before taxes are calculated, so you do not need to do anything. If you contribute on your own, you report the contribution on Form 8889 when you file your tax return to claim the deduction. Your HSA provider sends you a statement showing what you contributed and withdrew during the year.

What if I use my HSA debit card for something that is not a medical expense by mistake?

You owe income tax plus the 20 percent penalty on that amount. Some HSA providers have dispute processes if the charge was truly accidental, but the safest approach is to keep receipts and track what you spend. If you realize you made a mistake, you can withdraw the money and put it back before the tax year ends to avoid the penalty.

Can I claim the same medical expense on my taxes and also withdraw it from my HSA?

No. You can either deduct the expense on your tax return or withdraw it from your HSA tax-free, but not both. Most people choose the HSA route because the withdrawal is completely tax-free, whereas the medical deduction on your tax return only helps if your total medical expenses exceed 7.5 percent of your adjusted gross income.

Does the 20 percent penalty explore if I am over 65?

No. After age 65, you can withdraw money from an HSA for any reason without the 20 percent penalty. You still owe income tax on non-medical withdrawals, but the penalty disappears. This makes an HSA function like a traditional IRA once you reach retirement age.

What happens to my HSA if I lose my HDHP coverage?

You can no longer contribute to the HSA, but the money already in it stays yours. You can still withdraw it for may have access to medical expenses without tax or penalty. If you switch to a different HDHP later, you can resume contributions. The account does not close just because your coverage changes.