The tax deduction for HSA contributions works differently depending on who pays

If you contribute your own money to an HSA, you can deduct those contributions from your taxable income — but only up to the annual limit set by the IRS. For 2024, that limit is $4,150 for individual coverage and $8,300 for family coverage. The deduction happens on your tax return, not at the point of deposit.

If your employer contributes to your HSA instead, that money is not counted as taxable income to you at all. This is the more common arrangement. Your employer deposits funds, you never see them as wages, and there is no tax bill on that amount. You still get the benefit of the deduction — it just happens automatically through payroll rather than on your return.

The catch: you can only deduct contributions up to the annual limit, regardless of source. If your employer puts in $3,000 and you add $2,000 yourself, you have hit the family limit and cannot deduct anything beyond that total.

Key Takeaways

  • Your own HSA contributions reduce your taxable income dollar-for-dollar, up to the IRS annual limit of $4,150 (individual) or $8,300 (family) in 2024.
  • Employer contributions to your HSA are not taxed as income and do not count against your personal deduction limit in the same way — they are pre-tax from the start.
  • The deduction applies only to contributions, not to the money you withdraw and spend on medical expenses.
  • If you contribute more than the annual limit across all sources combined, the excess is taxed and subject to a 20 percent penalty.

How the deduction appears on your tax return

When you file taxes, you report HSA contributions on Form 1040 using Schedule 1. The deduction goes on line 21 as an "above-the-line" deduction, meaning you can claim it whether you itemize deductions or take the standard deduction. This is different from medical expenses, which only reduce your taxes if you itemize and exceed a threshold.

Your HSA provider — usually a bank or insurance company — sends you a Form 5498-SA each January showing how much you contributed the previous year. Use that figure when you file. If you contributed through payroll, your employer has already withheld taxes as if that money was never part of your wages, so the Form W-2 will reflect the reduction.

You do not need receipts or proof of medical expenses to claim the contribution deduction. The deduction is for putting money in, not for how you spend it.

Why employer contributions save you more in taxes

When your employer contributes to your HSA, the money avoids three layers of tax: federal income tax, state income tax (in most states), and payroll taxes including Social Security and Medicare. If you contribute your own money, you only avoid federal and state income tax — you still pay the 15.3 percent in payroll taxes on your wages before you set aside money for the HSA.

This is why employer HSAs are more valuable than individual contributions. A $3,000 employer contribution saves you roughly $900 in federal tax (at a 30 percent combined rate) plus $459 in payroll tax — $1,359 total. A $3,000 contribution from your own paycheck saves you only the $900 in income tax, because you already paid payroll tax on the wages you used to fund it.

The limits reset each year, and carryover works differently than other accounts

The annual contribution limit is per calendar year. In 2024 it is $4,150 for self-only coverage and $8,300 for family coverage. These limits change most years — the IRS adjusts them for inflation. If you change coverage mid-year (from individual to family, for example), your limit adjusts proportionally.

Unlike flexible spending accounts (FSAs), unused HSA money rolls over to the next year with no penalty. You can accumulate balances indefinitely. This means you can contribute the full limit every year and let the account grow, then use it for medical expenses whenever you choose — even decades later in retirement.

If you over-contribute — putting in more than the annual limit across all sources — the excess is taxed as income and hit with a 20 percent penalty. You have until your tax filing important date to withdraw the excess and avoid the penalty.

Withdrawals for medical expenses are not taxed

The tax benefit of an HSA extends beyond the contribution. When you withdraw money to pay for may have access to medical expenses, that withdrawal is not taxable income. You do not report it on your return, and it does not reduce the deduction you claimed for the contribution.

may have access to expenses include copays, deductibles, prescriptions, dental work, vision care, and many other costs. They do not include health insurance premiums (with narrow exceptions for COBRA, long-term care insurance, and Medicare premiums after age 65). The IRS publishes a full list in Publication 969.

You do not need to submit receipts to your HSA provider when you withdraw, but you should keep them for your records. If the IRS audits your return, you may need to prove that withdrawals matched may have access to expenses.

Non-medical withdrawals trigger income tax and a penalty

If you withdraw HSA money for something other than a may have access to medical expense, that withdrawal is taxed as ordinary income plus a 20 percent penalty — unless you are over 65 or disabled. At that point, non-medical withdrawals are taxed as income but the penalty goes away.

This makes an HSA different from a regular savings account. You cannot withdraw $2,000 for a vacation and treat it as a tax-free withdrawal. The $2,000 counts as income, you owe tax on it at your marginal rate, and you owe an additional 20 percent penalty on top.

The exception: once you turn 65, you can withdraw HSA money for any reason without the 20 percent penalty. You still owe income tax on non-medical withdrawals, but the penalty disappears. This is why some people use HSAs as retirement accounts — they can let the balance grow tax-free for decades, then use it for medical expenses in retirement tax-free, or for other expenses with only income tax (no penalty).

State tax treatment varies

Most states follow federal tax law and allow you to deduct HSA contributions. A few states — including California, New Jersey, and Tennessee — do not conform to the federal deduction. In those states, your HSA contribution reduces your federal taxable income but not your state taxable income, so you pay state tax on the contribution even though you do not pay federal tax.

If you live in one of these states, the tax benefit of an HSA is smaller than the federal deduction alone suggests. Check your state's tax authority website or ask your tax preparer whether your state allows the deduction.

Frequently Asked Questions

Can I deduct HSA contributions if I do not itemize deductions?

Yes. HSA contributions are an "above-the-line" deduction, meaning you can claim them on top of the standard deduction. You do not have to itemize to benefit from the deduction.

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

The contributions combine toward the annual limit. If your employer puts in $2,000 and you contribute $2,500, you have used $4,500 of the $8,300 family limit. Any amount over the limit is subject to tax and a 20 percent penalty unless you withdraw the excess by your tax filing important date.

Do I owe taxes on HSA interest and investment gains?

No. Interest, dividends, and capital gains inside an HSA are not taxed as long as the money remains in the account. You only pay tax when you withdraw for non-medical expenses.

If I leave my job, can I still deduct HSA contributions?

Yes. Your HSA belongs to you, not your employer. You can continue to contribute and deduct contributions even after you leave the job, as long as you remain enrolled in an HSA-may be able to access health plan.

Does the HSA deduction reduce my self-employment tax?

No. If you are self-employed, you deduct HSA contributions as an adjustment to income on your tax return, which reduces federal income tax but not self-employment tax. Only employer contributions avoid self-employment tax.