Medical savings accounts offer tax breaks, but only if you use them the right way

Contributions to a Health Savings Account (HSA) are tax deductible — meaning you don't pay federal income tax on the money you put in. The same applies to employer contributions: if your employer puts money into your HSA, that amount doesn't count as taxable income to you. Withdrawals for may have access to medical expenses also come out tax-free, which is the real advantage. But if you withdraw money for something that isn't a may have access to medical expense, you'll pay income tax on that amount plus a 20% penalty — unless you're over 65, in which case you pay the tax but not the penalty.

A Flexible Spending Account (FSA) works differently. Your contributions are made with pre-tax dollars, which means they reduce your taxable income, but you can't carry unused money forward to the next year — you lose it. An HSA lets you roll unused money over indefinitely, which is why it functions more like a savings account than FSA does.

Key Takeaways

  • HSA contributions reduce your federal taxable income dollar-for-dollar, whether you contribute yourself or your employer does.
  • Money withdrawn from an HSA for may have access to medical expenses — doctor visits, prescriptions, dental work, vision care — comes out completely tax-free.
  • Non-may have access to withdrawals from an HSA trigger both income tax and a 20% penalty, except for people over 65.
  • FSA contributions are also pre-tax, but unused money disappears at year-end rather than rolling over like HSA funds do.
  • To claim the tax deduction on your HSA, you report the contribution on your tax return even if your employer made the deposit.

How the tax deduction works for HSA contributions

When you contribute to an HSA, that money comes out of your paycheck before federal income tax is calculated. If you earn $50,000 and contribute $4,000 to an HSA, your taxable income for that year is $46,000. You pay income tax only on the $46,000, not the full $50,000. This applies whether the money comes from your own paycheck or from your employer.

If your employer makes the contribution, it doesn't show up as wages on your W-2, so there's nothing extra to report at tax time — the deduction is already built in. If you contribute on your own (outside of payroll), you report the contribution on Form 8889 when you file your taxes, and it reduces your taxable income there. Either way, you get the deduction.

The contribution limits change year to year. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. If you contribute more than the limit, the excess doesn't get the tax deduction, and you may owe a penalty. Check the current year's limit before you contribute.

Tax-free withdrawals for may have access to medical expenses

The real tax advantage of an HSA is that withdrawals for may have access to medical expenses are completely tax-free. may have access to expenses include doctor visits, hospital stays, prescription medications, dental work, vision care, hearing aids, and many other treatments. The IRS publishes a full list, but the basic rule is: if it's a medical expense your insurance wouldn't cover or your plan requires you to pay out of pocket, it probably qualifies.

You don't have to withdraw the money in the same year you incur the expense. You can pay a medical bill out of pocket, keep the receipt, and withdraw the same amount from your HSA years later — the withdrawal is still tax-free as long as you have documentation. This is why an HSA functions as a savings tool: you can let the money grow and use it whenever you need it.

Keep receipts and records of what you spent the money on. The IRS doesn't require you to submit them when you withdraw, but if you're audited, you need to show that the withdrawal matched a may have access to expense. Without documentation, the IRS will treat the withdrawal as non-may have access to and you'll owe tax plus penalty.

What happens when you withdraw for non-medical reasons

If you withdraw money from an HSA for something that isn't a may have access to medical expense — groceries, rent, a vacation — you pay income tax on that amount. On top of the income tax, you also pay a 20% penalty. So if you withdraw $1,000 for a non-may have access to expense and you're in the 22% tax bracket, you'd owe $220 in income tax plus $200 in penalty, for a total of $420 out of that $1,000.

The one exception is age 65 and older. Once you turn 65, you can withdraw money from your HSA for any reason without the 20% penalty. You still pay income tax on non-may have access to withdrawals, but the penalty goes away. This is why some people treat an HSA as a retirement account after 65 — it functions like a traditional IRA at that point, except the tax-free withdrawal option for medical expenses never expires.

How FSA contributions differ from HSA tax treatment

An FSA also uses pre-tax contributions, so the money you put in reduces your taxable income just like an HSA does. But FSAs have a critical difference: you lose any money you don't spend by the end of the plan year. There's a grace period in some plans (usually 2.5 months into the next year), but after that, unspent money is forfeited. This is called the "use-it-or-lose-it" rule.

Because of this rule, FSAs are riskier to fund heavily. If you contribute $2,500 and only spend $1,800, you lose $700. HSAs don't have this problem — unused money rolls over forever, which is why they're better for long-term savings. Both accounts reduce your current-year taxable income, but only the HSA lets you build a balance over time.

Reporting your HSA deduction on your tax return

If your employer deducts HSA contributions from your paycheck, you don't need to do anything special at tax time — the deduction is already applied. Your W-2 will show your wages minus the HSA contribution, and that's what you report.

If you made contributions on your own (not through payroll), you report them on Form 8889, which you file with your 1040. Line 1 of Form 8889 is where you enter your own contributions. If your employer contributed money outside of payroll, that goes on line 2. The form calculates your deduction and carries it to your main tax return. You can't deduct HSA contributions on a separate line of your 1040 — they have to go through Form 8889 first.

Keep records of all contributions you make, especially if they're not through payroll. A bank statement or receipt showing the deposit to your HSA account is enough. If you contributed more than the annual limit, Form 8889 will help you figure out the excess and any penalty owed.

State taxes and HSA contributions

Federal tax treatment is clear: HSA contributions are deductible. State tax treatment varies. Most states follow federal rules and let you deduct HSA contributions from state taxable income. But a few states — including California, New Jersey, and Tennessee — don't allow the state-level deduction even though the federal deduction applies. Check your state's tax rules or ask a tax preparer if you live in a state with its own income tax.

If you live in a state that doesn't allow the deduction, you still get the federal benefit, but you'll pay state tax on the contribution amount. This doesn't eliminate the advantage of an HSA, but it does reduce it slightly compared to states that allow both federal and state deductions.

Frequently Asked Questions

Can I deduct HSA contributions if I'm self-employed?

Yes. Self-employed people report HSA contributions on Form 8889 just like employees do. The contribution reduces your taxable income on your 1040, which also lowers your self-employment tax in some cases. You still have to be covered by a high-deductible health plan to contribute.

What if I contribute to an HSA but don't use it for medical expenses that year?

You still get the tax deduction on the contribution. The money stays in the account and rolls over to the next year. You can withdraw it for may have access to medical expenses anytime in the future, and it will still be tax-free. There's no important date to use the money.

Do HSA withdrawals for prescriptions count as tax-free?

Yes, as long as the prescription is for a medical condition. Over-the-counter medications like pain relievers or cold medicine don't may have access to unless you have a doctor's prescription for them. Vitamins and supplements generally don't may have access to either, even if recommended by a doctor, unless they're treating a specific medical condition.

If my employer contributes to my HSA, do I still get a tax deduction?

You get the benefit automatically — employer contributions don't count as taxable income to you, so you don't pay tax on them. You don't claim a separate deduction because the contribution never shows up as income in the first place. You can also contribute your own money on top of the employer contribution, up to the annual limit.

What if I withdraw from my HSA before I turn 65 for a non-medical reason?

You'll owe income tax on the withdrawal plus a 20% penalty. For example, a $2,000 non-may have access to withdrawal in the 24% tax bracket costs you $480 in tax plus $400 in penalty. The only way to avoid the penalty before 65 is if the withdrawal is for a may have access to medical expense.