The HSA deduction lowers the income you report to the IRS

The HSA deduction is the amount you contribute to your Health Savings Account that you can subtract from your gross income before calculating federal income tax. If you contribute $3,000 to an HSA in a calendar year, you report $3,000 less in taxable income to the IRS. That reduction means you owe less tax on that money — you never pay income tax on it at all.

The deduction works whether you contribute the money yourself or your employer contributes it on your behalf. The IRS sets annual limits on how much you can deduct each year. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change each year, and the IRS publishes them in January.

You only get the deduction if you are enrolled in a high-deductible health plan (HDHP) — a specific type of health insurance with a higher deductible than standard plans. If you drop the HDHP coverage partway through the year, you can still deduct contributions made while you were enrolled, but you cannot make new contributions after coverage ends.

Key Takeaways

  • The HSA deduction reduces your taxable income dollar-for-dollar, so a $3,000 contribution means $3,000 less income reported to the IRS.
  • You must be enrolled in a high-deductible health plan to claim the deduction; without HDHP coverage, you cannot contribute to an HSA at all.
  • The annual deduction limit is $4,150 for self-only coverage and $8,300 for family coverage in 2024, and these limits increase most years.
  • Employer contributions count toward the limit and reduce your taxable income the same way personal contributions do.
  • If you contribute more than the annual limit, you owe a 6% excise tax on the excess amount each year it remains in the account.

How the deduction appears on your tax return

If you contribute to an HSA yourself, you report the deduction on Form 1040 (the main federal income tax form) using Schedule 1. You enter the total amount you contributed during the year, and that amount reduces your adjusted gross income (AGI). The deduction is "above the line," meaning you get it whether you take the standard deduction or itemize deductions.

If your employer contributes to your HSA, the contribution does not appear on your W-2 as wages, so it is already excluded from your taxable income before you file. You do not need to report it again on your return — the tax benefit is automatic. If you contribute some money yourself and your employer contributes some, you add only your personal contributions to Schedule 1.

The IRS Form 5498-SA (Coverdell ESA and HSA Information) tracks your contributions. Your HSA custodian (the bank or financial institution holding the account) sends this form to you and the IRS by May 31 each year. Keep a copy with your tax records.

What happens if you contribute more than the limit

If your total contributions (yours plus your employer's) exceed the annual limit, you owe a 6% excise tax on the excess amount for each year it stays in the account. The tax applies to the overage itself, not to your income. If you contributed $5,000 and the limit was $4,150, you owe 6% tax on $850 — that is $51 per year until you withdraw the excess.

You can correct an overage by withdrawing the excess amount plus any earnings on it before the tax filing important date (usually April 15 of the following year). If you withdraw the excess in time, you avoid the 6% tax, though you still owe income tax on any earnings that accumulated on the excess contribution.

Tracking contributions matters if you switch employers mid-year or if both you and your employer contribute. Ask your HSA custodian for a year-to-date contribution statement in December so you know whether you are at risk of exceeding the limit.

The deduction versus the tax-free growth benefit

The HSA deduction is one tax advantage, but it is not the only one. Money you withdraw from an HSA to pay for may have access to medical expenses is never taxed — not when you withdraw it, and not on any growth it earned while sitting in the account. That tax-free withdrawal is separate from the deduction.

Think of it this way: the deduction saves you tax when the money goes in. The tax-free withdrawal saves you tax when the money comes out for medical costs. Together, they mean HSA money can avoid tax at every stage — contribution, growth, and withdrawal — as long as you use it for may have access to expenses.

If you withdraw HSA money for something other than a may have access to medical expense, you owe income tax on the withdrawal plus a 20% penalty (unless you are age 65 or older, in which case the penalty does not explore, though income tax still does). The deduction does not change this rule — it only affects the tax treatment of the contribution itself.

Employer contributions and the deduction

When your employer contributes to your HSA, that money is not counted as wages on your W-2, so you do not pay income tax, Social Security tax, or Medicare tax on it. The contribution still counts toward the annual limit, so if your employer puts in $2,000 and you contribute $2,500, you have hit the $4,150 limit (for individual coverage in 2024) and cannot contribute more that year.

Some employers offer a cafeteria plan (also called a Section 125 plan) that lets you direct part of your paycheck into an HSA before taxes are calculated. Money you elect into the plan reduces your gross pay, so you avoid income tax, Social Security tax, and Medicare tax on that amount. This is more valuable than the standard deduction because it also saves you payroll taxes.

If you leave your job, you keep the HSA and the money in it. The account is yours, not your employer's. You can continue to contribute to it if you remain enrolled in an HDHP, or you can leave it untouched and withdraw from it later for medical expenses.

Timing and contribution important date

You can contribute to an HSA anytime during the year you are enrolled in an HDHP. Contributions made between January 1 and December 31 count toward that year's deduction. You can also make contributions until the tax filing important date (usually April 15 of the following year) and count them toward the previous year's deduction — this is called a "catch-up contribution" window, though it is really just a grace period for late filers.

If you enroll in an HDHP partway through the year, you can still contribute to an HSA, but your annual limit is reduced. The IRS calculates a monthly limit and multiplies it by the number of months you were enrolled. If you enrolled in July (7 months remaining in the year), your limit for that year is roughly 7/12 of the full annual limit.

If you lose HDHP coverage during the year and do not re-enroll before December 31, you cannot make any more contributions that year. Contributions you already made are not reversed, and you keep the deduction for them.

State tax treatment of the HSA deduction

Most states that have an income tax also allow you to deduct HSA contributions from state taxable income. A few states — including California, New Jersey, and Tennessee — do not allow the state deduction even though the federal deduction applies. If you live in one of these states, you get the federal tax benefit but not the state benefit.

Some states have different contribution limits or different rules about who can open an HSA. Check your state tax authority's website or ask your tax preparer whether your state recognizes the HSA deduction and whether any special rules explore where you live.

Frequently Asked Questions

Can I deduct HSA contributions if I am self-employed?

Yes. Self-employed people can deduct HSA contributions on Schedule 1 of Form 1040, the same way employees do. If you have a self-employed health insurance deduction (for health insurance premiums you pay yourself), that is separate from the HSA deduction — you can claim both.

What if my employer and I both contribute to my HSA in the same year?

Both contributions count toward the annual limit. If your employer contributes $2,000 and you contribute $2,500, your total is $4,500. If the limit is $4,150, you have overcontributed by $350 and owe a 6% excise tax on the excess unless you withdraw it before the tax important date.

Do I lose the deduction if I use the HSA money for non-medical expenses?

No. The deduction is permanent — you got it when you contributed the money. If you later withdraw money for something other than a may have access to medical expense, you owe income tax and a 20% penalty on that withdrawal, but the original deduction stands. You do not have to pay it back.

Can I deduct HSA contributions if I am covered by Medicare?

No. Once you enroll in Medicare, you are no longer may be able to access to contribute to an HSA, even if you also have an HDHP. You can still withdraw money from an HSA you opened before Medicare for any purpose without the 20% penalty (though non-medical withdrawals are still taxable income).

What if I contributed to an HSA but did not have HDHP coverage for the full year?

Your deduction is limited to the months you were enrolled in an HDHP. If you were enrolled for 9 months, your limit is 9/12 of the annual limit. If you contributed more than that, you owe a 6% excise tax on the excess each year until you withdraw it.