Your HSA contributions reduce your taxable income

Yes — money you put into a health savings account is tax-deductible in the year you contribute it. The IRS treats HSA contributions as a deduction from your gross income, which means you pay federal income tax on less money. If you contribute $3,000 to your HSA in 2024, your taxable income drops by $3,000, lowering your tax bill for that year.

This works whether you contribute through your employer's payroll or deposit money yourself. Employer contributions (money your employer puts in on your behalf) are not counted as taxable income to you at all. Personal contributions you make yourself are deductible when you file your tax return, as long as you file Form 8889 with your return.

The tax break applies only to contributions, not to the money you earn inside the account. Interest, dividends, or investment gains in your HSA are not taxed while the money sits there, but that is a separate benefit from the deduction.

Key Takeaways

  • Contributions you make to an HSA reduce your taxable income dollar-for-dollar in the year you contribute.
  • Employer contributions through payroll are never taxed as income; personal contributions are deductible when you file Form 8889.
  • The annual contribution limit varies by coverage type (individual, family, or self-only) and changes each year — check your HSA provider or the IRS website for the current year's limit.
  • You must be enrolled in a high-deductible health plan (HDHP) to contribute to an HSA, and contributions made after you turn 65 or lose HDHP coverage are no longer deductible.

Contribution limits and who can claim the deduction

You can only deduct HSA contributions if you are enrolled in a high-deductible health plan (HDHP) during the months you contribute. If you drop your HDHP coverage mid-year, contributions made after that date are not deductible. The IRS has specific rules about timing: if you have other health coverage (like a spouse's plan or Medicare), you may not be able to contribute to an HSA at all, even if you also have an HDHP.

The amount you can contribute changes each year. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These numbers shift annually based on inflation. If you are 55 or older, you can contribute an extra $1,000 per year as a catch-up contribution, and that extra amount is also deductible.

If your employer contributes to your HSA, that money counts toward your annual limit. So if your employer puts in $2,000 and you contribute $2,000 yourself, you have used your full $4,150 limit for individual coverage. Any contributions beyond the limit are not deductible and may trigger a penalty.

How the deduction appears on your tax return

If your employer deducts HSA contributions from your paycheck before taxes, the deduction happens automatically — you do not need to do anything. Your W-2 form will show your gross pay reduced by the HSA contribution, and you will pay federal income tax on the lower amount.

If you contribute money yourself (from a personal bank account or after-tax income), you claim the deduction on your tax return using Form 8889, which you attach to your Form 1040. Line 12 of Form 8889 is where you enter your personal contributions. The form also tracks your HSA balance and any withdrawals, so the IRS can verify that money you took out was used for may have access to medical expenses.

You do not need receipts to claim the deduction itself, but you should keep records of what you spent the money on. If the IRS audits your HSA, they will ask for proof that withdrawals paid for may have access to medical expenses — not groceries, gas, or other non-medical costs.

What happens to the deduction after age 65

Once you turn 65, you can no longer make deductible contributions to an HSA. At that point, you become may be able to access for Medicare, and Medicare enrollment disqualifies you from HSA contributions. You can still withdraw money from your existing HSA balance without penalty, but new contributions are not deductible.

If you continue to work past 65 and remain on your employer's HDHP, check with your HSA provider about the exact cutoff date. Some employers allow contributions through the end of the month you turn 65; others stop contributions the month before. The IRS rule is that you cannot contribute for any month in which you are enrolled in Medicare, so timing matters.

Withdrawals and the tax picture

Money you withdraw from your HSA to pay for may have access to medical expenses is not taxed — neither the withdrawal itself nor any growth the money earned while in the account. This is different from the deduction: the deduction saves you taxes when you put money in, and the tax-free withdrawal saves you taxes when you take it out. Together, they create a powerful tax advantage.

If you withdraw money for non-medical expenses before age 65, you owe income tax on the withdrawal plus a 20% penalty. After age 65, the 20% penalty goes away, but you still owe income tax on non-medical withdrawals. The deduction you claimed when you contributed does not come back — you got that tax break already.

Coordinating HSA deductions with other tax situations

If you are self-employed, HSA contributions are deductible on Schedule C or Schedule 1 of your tax return, depending on your business structure. The deduction reduces your self-employment income, which lowers both your income tax and your self-employment tax (Social Security and Medicare taxes).

HSA deductions do not affect your ability to claim other medical deductions. However, the standard deduction (the flat amount most people deduct instead of itemizing) has become so large in recent years that most people do not itemize medical expenses anyway. The HSA deduction is separate and always available to you, regardless of whether you itemize.

If you are married and file jointly, both spouses can have HSAs and claim deductions for their contributions, as long as both are enrolled in HDHPs. The combined family contribution limit applies to both accounts together, not to each account separately.

Frequently Asked Questions

Can I deduct HSA contributions if I contribute after the tax year ends?

Yes, but only if you contribute by the tax filing deadline (usually April 15 of the following year). Contributions made after that date cannot be deducted for the prior year. Your HSA provider will report contributions to the IRS on Form 5498-SA, which shows the year the contribution was made.

What if I lose my HDHP coverage mid-year — can I still deduct contributions made before I lost coverage?

Yes. Contributions made while you were enrolled in an HDHP are deductible. Contributions made after you lose HDHP coverage are not deductible, even if you do not withdraw the money until later. The deduction depends on when you contributed, not when you spent the money.

Does the HSA deduction reduce my self-employment tax?

Yes, if you are self-employed. HSA contributions reduce your net self-employment income, which lowers the amount you owe in Social Security and Medicare taxes. This is a significant advantage for self-employed people compared to employees, who only save income tax on HSA contributions.

Can I deduct HSA contributions if I also have a Flexible Spending Account (FSA)?

No. You cannot contribute to both an HSA and an FSA in the same year. If you have an FSA through your employer, you are not may be able to access to contribute to an HSA, even if you are enrolled in an HDHP. This is an IRS rule designed to prevent double-dipping on tax-advantaged medical accounts.

What if my employer contributes more than the annual limit?

Contributions over the limit are taxable income to you and subject to a 6% excise tax. Your employer is responsible for catching this error, but if they do not, you will owe the penalty. You can request a refund of excess contributions from your HSA provider, and if you get the refund before filing your tax return, you can avoid the penalty.