Yes, contributions to a health savings account are tax deductible
Money you put into a health savings account (HSA) lowers your taxable income in the year you contribute it. If you contribute $4,000 to an HSA, you subtract that $4,000 from your gross income before calculating what you owe in federal income tax. The IRS treats HSA contributions the same way it treats traditional 401(k) contributions or traditional IRA contributions — as pre-tax dollars.
The tax break applies whether your employer contributes to your HSA, you contribute yourself, or both of you do. The only requirement is that you are enrolled in a high-deductible health plan (HDHP) at the time you make the contribution. If you stop being enrolled in an HDHP, you cannot contribute to an HSA that year, though money already in the account stays there and keeps growing tax-free.
Key Takeaways
- HSA contributions reduce your taxable income dollar-for-dollar, lowering your federal income tax bill in the year you contribute.
- You must be enrolled in a high-deductible health plan to contribute to an HSA; if you switch to a regular health plan mid-year, you can only contribute a prorated amount.
- Employer contributions to your HSA are not counted as taxable income to you, and employee contributions are deducted before payroll taxes are calculated.
- Money withdrawn from an HSA for may have access to medical expenses is never taxed, and unused contributions roll over to the next year with no time limit.
How the deduction works on your tax return
If you contribute to an HSA yourself (not through payroll), you report the deduction on your federal tax return using Form 1040 and Schedule 1. You list the contribution amount on the line for HSA deductions. This reduces your adjusted gross income (AGI), which can lower your tax bill and may also lower the amount you owe on other tax credits or deductions that depend on your income level.
If your employer deducts HSA contributions from your paycheck, the money never appears on your W-2 as taxable wages in the first place. Your employer reports the contribution separately, and you do not need to claim it again on your tax return — it is already excluded from your income. This is the most common setup and requires no extra paperwork on your part.
Contribution limits and what counts as deductible
The IRS sets annual limits on how much you can contribute to an HSA and still receive the tax deduction. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. If you are 55 or older, you can contribute an additional $1,000 per year (called a catch-up contribution). These limits change each year, and your employer or HSA provider will tell you the current year's limit.
You can only deduct contributions made during the tax year itself. If you contribute in January 2025 for the 2024 tax year, you cannot deduct it on your 2024 return — it counts toward 2025. The one exception is a short window after the tax year ends: you can contribute to an HSA for the prior year until the tax filing important date (usually April 15), and some HSA providers allow you to designate those contributions as going toward the previous year.
When you lose the deduction
If you are not enrolled in an HDHP for the entire month in which you contribute, you cannot deduct that contribution. If you switch from an HDHP to a regular health plan on June 15, you can only deduct contributions made through May. Any contributions made in June onward that year are not deductible, though you can still withdraw them without penalty — you straightforward do not get the tax break.
If you contribute more than the annual limit, the excess amount is not deductible. You may also owe a 6% excise tax on the overage unless you withdraw it by the tax filing important date. Your HSA provider should track your contributions and alert you if you are approaching the limit, especially if both you and your employer are contributing.
The three-way tax advantage of HSAs
HSAs offer a rare tax benefit that applies at three different stages. First, contributions are deductible, lowering your income tax. Second, the money inside the account grows tax-free — any interest, dividends, or investment gains are not taxed. Third, withdrawals for may have access to medical expenses (doctor visits, prescriptions, dental work, vision care, and many other health costs) are never taxed.
This is different from a regular savings account or even a flexible spending account (FSA). With an FSA, contributions are also pre-tax, but unused money is forfeited at the end of the year. With an HSA, unused money rolls over indefinitely, and you can invest it like a retirement account. Some people use HSAs as a long-term savings tool for retirement health expenses rather than spending the money when ready.
Reporting HSA contributions on your tax return
If your employer deducted HSA contributions from your paycheck, check your W-2 form in Box 12 — it should show code W with the amount contributed. You do not claim this on your return; it is already excluded from your taxable wages shown in Box 1.
If you contributed to an HSA outside of payroll (for example, you are self-employed or you made an additional contribution after the year ended), you report it on Form 1040, Schedule 1, line 12 (HSA deduction). Write the total amount you contributed and subtract it from your income. Keep records of your contributions — bank statements, HSA provider statements, or receipts — in case the IRS asks.
What happens if you use HSA money for non-medical expenses
If you withdraw money from an HSA for something that is not a may have access to medical expense, you owe income tax on that amount plus a 20% penalty. For example, if you withdraw $1,000 to pay rent, you owe income tax on the $1,000 plus $200 in penalties. The contribution itself was still deductible, but the withdrawal triggers the tax and penalty.
After age 65, the 20% penalty goes away — you can withdraw money for any reason and only owe income tax on it, similar to a traditional IRA. Medical expenses remain tax-free at any age. Keep receipts for medical expenses you pay from your HSA in case you need to prove they were may have access to.
Frequently Asked Questions
Can I deduct HSA contributions if I have a spouse with a regular health plan?
Yes, as long as you are enrolled in an HDHP yourself. Your spouse's plan does not affect your HSA status. If you are married and both enrolled in HDHPs, you can each contribute to separate HSAs up to the family coverage limit combined, or you can choose individual coverage limits if that is what your plans offer.
What if my employer contributes to my HSA — do I have to count that as income?
No. Employer contributions to your HSA are not taxable income to you. They reduce your taxable wages and do not appear on your W-2 as income. You can still make your own contributions up to the annual limit, and those are also deductible.
Can I deduct HSA contributions if I am self-employed?
Yes. You report the deduction on Schedule 1 of your Form 1040, the same as an employee would. You must be enrolled in an HDHP to contribute. Self-employed people cannot deduct HSA contributions as a business expense on Schedule C — the deduction goes on your personal return.
Do I lose the deduction if I withdraw money for a medical expense?
No. The deduction applies to the contribution, not the withdrawal. You get the tax break when you put money in. When you take it out for a may have access to medical expense, that withdrawal is also tax-free. You only owe taxes and penalties if you withdraw for a non-medical reason.
What if I contributed too much to my HSA by mistake?
You can withdraw the excess contribution and any earnings on it by the tax filing important date without penalty, though you will owe income tax on the earnings. The excess contribution itself is not deductible. After the important date, you owe a 6% excise tax on the overage each year it remains in the account. Contact your HSA provider when ready if you discover an overage.