The tax advantage of an HSA

A Health Savings Account gives you three separate tax breaks that regular savings accounts do not. Money you put into an HSA is not taxed as income. The money grows without being taxed each year. And when you spend it on medical bills, you do not pay taxes on that withdrawal either. This three-part tax shelter is what makes an HSA different from straightforward saving money in a checking account.

The catch is that these tax breaks only work if you meet two conditions: you must be enrolled in a high-deductible health plan (a specific type of health insurance), and you cannot use the HSA money for non-medical expenses without paying taxes and a penalty. If you follow those rules, the tax savings can be substantial over time.

Key Takeaways

  • Money you deposit into an HSA reduces your taxable income for the year, just like a traditional retirement account contribution.
  • Interest and investment gains inside the HSA are never taxed, even as the account grows year after year.
  • Withdrawals for may have access to medical expenses—doctor visits, prescriptions, dental work, vision care—are tax-free.
  • If you withdraw HSA money for non-medical reasons before age 65, you owe income tax plus a 20 percent penalty on that amount.
  • After age 65, you can withdraw money for any reason without the penalty, though non-medical withdrawals are still taxed as income.

How the deposit tax break works

When you put money into an HSA, that amount comes off the top of your taxable income. If you earn $50,000 a year and deposit $3,000 into an HSA, you only report $47,000 as income to the IRS. This is the same principle as a traditional 401(k) or traditional IRA—you reduce your tax bill by reducing your reported income.

The amount you can deposit each year has a limit set by the IRS. For 2024, the limit is $4,150 if you have individual coverage or $8,300 if you have family coverage. These limits change slightly each year. You can only make deposits during the months you are actually enrolled in a high-deductible health plan, so if you switch to a different type of insurance mid-year, your deposit window closes.

How the growth tax break works

Once money sits in your HSA, it can earn interest or be invested in mutual funds, depending on what your HSA provider offers. Unlike a regular savings account, you never pay taxes on those earnings—not when they happen, and not when you withdraw them, as long as you use the money for medical expenses.

This compounding effect means an HSA can grow significantly over decades. Someone who deposits $3,000 a year for 30 years and earns 5 percent annual returns would have roughly $180,000 in the account, with the investment gains completely tax-free. A regular taxable savings account earning the same returns would owe taxes on those gains each year, leaving less money to reinvest.

How the withdrawal tax break works

When you spend HSA money on a may have access to medical expense, that withdrawal is tax-free. may have access to expenses include doctor visits, hospital stays, prescription medications, dental work, vision care, mental health treatment, and many medical devices and supplies. You do not need to report these withdrawals to the IRS or pay any tax on them.

The IRS publishes a detailed list of what counts as a may have access to medical expense. Some items surprise people—for example, over-the-counter pain relievers and allergy medicines count, but only if you have a prescription from a doctor. Cosmetic procedures do not count unless they treat an injury or illness. If you are unsure whether something qualifies, your HSA provider can usually tell you, or you can check IRS Publication 502.

What happens if you use the money for non-medical reasons

If you withdraw HSA money before age 65 and spend it on something that is not a may have access to medical expense, you owe income tax on that amount plus a 20 percent penalty. So if you withdraw $1,000 for a non-medical reason and you are in the 22 percent tax bracket, you would owe $220 in taxes plus $200 in penalty—a total of $420 on that $1,000 withdrawal.

This penalty is steeper than the 10 percent early-withdrawal penalty on a traditional IRA, which is why HSAs are meant to be long-term medical savings accounts, not emergency funds. However, after you turn 65, the penalty goes away. You can withdraw money for any reason without the 20 percent penalty, though non-medical withdrawals are still taxed as regular income.

Keeping records for tax-free withdrawals

The IRS does not require you to submit receipts when you withdraw HSA money, but you must keep records showing that your withdrawals match may have access to medical expenses. If the IRS audits you, you need to prove that the money went to legitimate medical bills. Many people keep receipts, explanation of benefits documents from their insurance, and invoices from doctors and pharmacies in a folder or digital file.

Some HSA providers offer a debit card that you can use at pharmacies and medical offices, which creates an automatic record. Others require you to reimburse yourself from a separate bank account and then withdraw from the HSA—a slower process, but one that creates a clear paper trail. Either way, the burden is on you to document that the money was spent correctly.

How HSA taxes differ from other health accounts

An HSA is not the only tax-advantaged health account. A Flexible Spending Account (FSA) also lets you set aside pre-tax money for medical expenses, but FSAs have stricter rules: you cannot carry money over from year to year (with a small exception), and you lose any unspent balance. An HSA lets you keep the money indefinitely and invest it for growth.

A Dependent Care FSA works similarly to a health FSA but covers childcare and elder care expenses instead of medical bills. Neither FSAs nor Dependent Care FSAs offer the investment growth that an HSA does, and neither one lets you keep unused money. This makes HSAs the most tax-efficient health savings tool if you are may be able to access to open one.

Frequently Asked Questions

Can I claim the HSA deposit as a deduction on my tax return?

If your employer contributes to your HSA, that money is not taxed as income and you do not need to do anything on your tax return. If you contribute your own money, you report it on Form 8889 when you file taxes, and it reduces your taxable income. Either way, you get the tax break—you just report it differently depending on who made the deposit.

Do I have to spend all my HSA money by the end of the year?

No. Unlike a Flexible Spending Account, an HSA has no "use it or lose it" rule. Money rolls over year after year, and you can let it grow indefinitely. You can spend it whenever you need it, even decades later, as long as you use it for may have access to medical expenses.

What if I leave my job—do I lose the HSA tax benefits?

Your HSA stays with you even if you change jobs or leave the workforce. The account and all its tax benefits continue as long as you remain enrolled in a high-deductible health plan. If you switch to a different type of health insurance, you can no longer make new deposits, but the money already in the account keeps its tax-free status for medical withdrawals.

Can I invest HSA money in stocks or mutual funds?

It depends on your HSA provider. Some providers offer only savings accounts or money market funds. Others let you invest in mutual funds, index funds, or brokerage accounts once your balance reaches a certain amount, often $1,000 or $2,000. Check with your provider about what investment options are available and whether there are any fees.

If I am married, can my spouse and I each have an HSA?

Yes, if you both have individual high-deductible health plans. If you have family coverage together, only one of you can open an HSA in that person's name, and the annual deposit limit is $8,300 for the whole family, not per person. You cannot split a family HSA between two accounts.