Your HSA contributions reduce your taxable income, and withdrawals for medical expenses come out tax-free

An HSA works like a tax shelter for medical costs. Money you put into the account lowers your taxable income for the year, the money grows without being taxed, and you withdraw it tax-free as long as you spend it on medical expenses. This three-layer tax advantage is why an HSA is more powerful than a regular savings account for healthcare costs.

The tax benefit starts the moment you contribute. If you put $4,000 into an HSA in 2024, you subtract that $4,000 from your gross income before calculating what you owe in federal income tax. Some states also let you deduct HSA contributions from state income tax, though a few do not. Your employer may contribute to your HSA too—those contributions are not counted as income to you, so they also reduce your taxable income.

Key Takeaways

  • HSA contributions lower your taxable income dollar-for-dollar, which means you pay less in federal income tax that year.
  • Money you withdraw from an HSA for may have access to medical expenses—copays, deductibles, prescriptions, dental work, vision care—is never taxed.
  • If you withdraw money for something other than a may have access to medical expense, you pay income tax on that amount plus a 20 percent penalty, unless you are over 65.
  • You report HSA contributions and withdrawals on your tax return using Form 8889, which the IRS requires even if you had no taxable HSA activity.
  • An HSA is yours to keep even if you change jobs or health plans, so the tax benefits continue as long as you stay enrolled in a high-deductible health plan.

How the tax deduction works when you contribute

When you contribute to an HSA, you are reducing the amount of income the IRS considers taxable. The IRS sets annual contribution limits—for 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. If you contribute the full amount, you subtract that from your income before calculating your tax bill.

If your employer deducts HSA contributions from your paycheck before taxes are withheld, the tax benefit happens automatically. Your W-2 will show a lower gross income because the HSA contribution was taken out first. If you contribute on your own—say, you deposit money into your HSA after you have already been paid—you claim the deduction on your tax return using Form 8889.

Self-employed people and those without employer coverage can still deduct HSA contributions. You report them on Schedule C (if you are self-employed) or on Form 8889 when you file your return. The deduction works the same way: it lowers your taxable income.

Tax-free withdrawals for medical expenses

Once money is in your HSA, you can withdraw it to pay for may have access to medical expenses without owing any income tax on that withdrawal. may have access to expenses include copays, coinsurance, deductibles, prescription drugs, dental work, vision care, hearing aids, and many other treatments and supplies. The IRS publishes a full list, but the basic rule is: if it is a medical expense your health insurance would normally cover or that a doctor prescribed, it counts.

You do not have to withdraw the money in the same year you spent it. You can pay a medical bill out of pocket and then reimburse yourself from your HSA months or years later. This flexibility means you can let your HSA grow and use it as a long-term medical savings account. The money you withdraw is never taxed, no matter how long it has been sitting in the account.

Keep receipts and documentation for every withdrawal. The IRS does not require you to submit them with your tax return, but you must be able to prove that the money went toward may have access to medical expenses if you are audited. A receipt from your pharmacy, a bill from your doctor, or an explanation of benefits from your insurance all count as proof.

Penalties and taxes on non-may have access to withdrawals

If you withdraw money from your HSA for something that is not a may have access to medical expense, you owe income tax on that amount plus a 20 percent penalty. For example, if you withdraw $1,000 to pay rent, you pay income tax on the $1,000 (at your marginal tax rate) plus $200 in penalties. This makes non-may have access to withdrawals expensive and is why HSAs are not a good place to park money you might need for non-medical reasons.

The penalty drops to zero if you are over 65, but you still owe income tax on non-may have access to withdrawals after age 65. At that point, an HSA works more like a traditional IRA—you can withdraw money for any reason, but you pay tax on non-medical withdrawals. This is actually a useful feature: if you have not spent all your HSA money by retirement, you can use it for living expenses without the penalty.

If you withdraw money for a medical expense but do not have a receipt or cannot prove it was may have access to, the IRS treats it as a non-may have access to withdrawal. This is why documentation matters. Keep records for at least three years after you file the return in which you claimed the withdrawal.

Reporting your HSA on your tax return

You report HSA activity using Form 8889, which you file with your federal income tax return. This form asks for your contributions, the interest or investment gains your HSA earned, and any withdrawals you made. Even if you made no withdrawals and your HSA earned no interest, you still file Form 8889 if you contributed to the account.

If your employer contributed to your HSA, that amount appears on your W-2 in box 12 with code W. You do not report it as income—it is already excluded—but you do list it on Form 8889 so the IRS knows the total contributions for the year. If you contributed on your own, you report that separately on the form.

The form also asks whether you had a may have access to high-deductible health plan for the entire year. If you dropped HSA-may be able to access coverage partway through the year, you may have to recalculate your contribution limit or face penalties. This is one of the few ways people accidentally run into HSA tax problems, so be honest about when your coverage started and stopped.

How investment gains in your HSA are taxed

Many HSAs let you invest the money in mutual funds or other securities, not just keep it in a cash account. Any interest, dividends, or capital gains your HSA earns are not taxed while the money stays in the account. This is another tax advantage: your money grows tax-free, unlike a regular brokerage account where you owe tax on dividends and gains every year.

When you withdraw money from your HSA to pay for medical expenses, you do not owe tax on the gains either. If you invested $5,000 and it grew to $6,000, and then you withdrew the full $6,000 to pay a medical bill, none of that $1,000 gain is taxed. This tax-free growth is one reason HSAs are powerful for people who can afford to leave money in the account and let it compound over time.

If you withdraw money for a non-may have access to expense, you owe tax on the gains as well as the contributions. The 20 percent penalty applies to the entire withdrawal, not just the gains.

HSA tax benefits when you change jobs or health plans

Your HSA belongs to you, not your employer. If you leave your job, you keep the HSA and all the money in it. You can continue to use it for medical expenses and continue to get the tax benefits as long as you stay enrolled in a high-deductible health plan. If you switch to a different high-deductible plan, your HSA comes with you.

If you drop HSA-may be able to access coverage—for example, you switch to a traditional PPO or HMO—you can no longer contribute to your HSA. Money already in the account stays there and you can still withdraw it tax-free for medical expenses, but you cannot add new money. Once you re-enroll in a high-deductible plan, you can start contributing again.

This portability is a major tax advantage. You do not lose the HSA or its tax benefits when your life changes, the way you might lose a flexible spending account (FSA) if you leave your job. An HSA can follow you through multiple jobs and health plans over decades, accumulating tax-free growth the whole time.

Frequently Asked Questions

Do I have to report my HSA on my taxes even if I did not withdraw any money?

Yes. You file Form 8889 with your tax return if you contributed to an HSA during the year, even if you made no withdrawals and earned no interest. The form tells the IRS how much you contributed and confirms you had a may have access to high-deductible health plan. Filing it is required, not optional.

What happens if I use my HSA debit card to buy something that is not a medical expense?

You owe income tax on that amount plus a 20 percent penalty. The IRS does not care how you withdrew the money—debit card, check, or transfer. If it is not a may have access to medical expense, it is taxable. Keep your receipts so you can prove what the money was actually spent on if you are audited.

Can I deduct HSA contributions on my taxes if my employer already took them out of my paycheck?

No. If your employer deducted the contributions before taxes were withheld, the tax benefit already happened—your W-2 shows a lower gross income. You do not deduct them again on your return. You only deduct contributions you made on your own, outside of payroll.

Does my spouse's HSA activity affect my taxes if we file jointly?

Only if you are both covered under the same family HSA plan. If you each have separate HSAs under individual or different family plans, you each report your own on Form 8889. If you share one family HSA, you combine the contributions and withdrawals on a single Form 8889 when you file jointly.

What if I withdraw money from my HSA for a medical expense but lose the receipt?

You can still withdraw the money tax-free, but keep any documentation you have—a credit card statement, bank transfer record, or explanation of benefits from your insurance. If the IRS audits you, you need to prove the withdrawal was for a may have access to expense. Without documentation, the IRS may treat it as a non-may have access to withdrawal and assess tax and penalties.