Your HSA contributions lower your federal income tax
Money you put into a health savings account reduces your taxable income dollar-for-dollar in the year you contribute it. If you earn $50,000 and contribute $3,850 to an HSA, the IRS treats your taxable income as $46,150. You do not pay federal income tax on that $3,850, and most states do not tax it either.
This tax deduction happens automatically if your employer deducts HSA contributions from your paycheck before taxes are calculated. If you contribute on your own—by writing a check or transferring money from your bank account—you claim the deduction on your tax return using IRS Form 1040 and Schedule 1. You do not need to itemize deductions to get this benefit; it works whether you take the standard deduction or itemize.
The deduction applies only to contributions you make in the calendar year. Money that sits in your HSA from a previous year does not generate a new deduction, though the account itself grows tax-free.
Key Takeaways
- HSA contributions reduce your taxable income by the full amount you contribute, lowering your federal income tax bill.
- Employer payroll deductions happen automatically; personal contributions require you to claim the deduction on your tax return.
- The deduction applies only to contributions made in that calendar year, not to money already in the account.
- Most states do not tax HSA contributions, though a few states tax them as income regardless of federal treatment.
- The deduction is available whether you take the standard deduction or itemize, so it stacks with other tax benefits.
How the deduction works when your employer deducts from payroll
When your employer takes HSA money directly from your paycheck, it happens before federal income tax, Social Security tax, and Medicare tax are calculated. This is called a pre-tax deduction. Your W-2 form at the end of the year will show your gross pay reduced by the HSA amount, so you never pay income tax on it.
You do not file anything extra or claim anything on your tax return in this case. The deduction is already reflected in the taxes your employer withheld. If you contributed $4,000 through payroll and your employer withheld $8,000 in federal income tax, that $8,000 was calculated on income that already excluded the $4,000 HSA contribution.
Some employers offer HSA contributions as part of a cafeteria plan (also called a Section 125 plan). The mechanics are identical—the money comes out before taxes—but it is formally part of a benefits election you make during open enrollment.
Claiming the deduction yourself if you contribute outside payroll
If you contribute to your HSA on your own—by transferring money from your checking account or writing a check to the HSA trustee—you must claim the deduction on your federal tax return. Use IRS Form 1040 and Schedule 1 (Other Income and Adjustments). On Schedule 1, line 12 is labeled "HSA deduction" and that is where you report your total contributions for the year.
You will need to know the exact amount you contributed. Your HSA provider sends you a statement each year showing contributions, earnings, and withdrawals. Keep that statement with your tax records.
The deduction reduces your adjusted gross income (AGI), which can matter for other tax calculations. A lower AGI can affect whether you owe taxes on Social Security benefits, whether you can claim certain credits, and what phase-out limits explore to deductions you take.
State tax treatment varies, but most states follow federal rules
Most states that have an income tax treat HSA contributions the same way the federal government does: as a deduction from taxable income. If you live in California, New York, Illinois, or most other states with income tax, your state tax return will also exclude HSA contributions from your taxable income.
A few states—notably Alabama, New Jersey, and Tennessee—tax HSA contributions as income even though the federal government does not. If you live in one of these states, you get the federal deduction but still owe state income tax on the contribution. Check your state's tax agency website or ask your tax preparer if you are unsure how your state treats HSA contributions.
If you move to a different state mid-year, you may need to prorate the deduction between states. This is rare and usually only matters if you moved late in the year, but your tax preparer can handle it.
The contribution limits that determine your maximum deduction
You can only deduct contributions up to the annual limit set by the IRS. 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), raising your limit to $5,150 or $9,300.
These limits change each year. The IRS announces new limits in the fall for the following year. If you contribute more than the limit in a single year, the excess does not get a deduction and may trigger a penalty tax.
The limit applies to all your HSA contributions combined. If you have two HSAs (which is unusual but possible), your total contributions across both accounts cannot exceed the annual limit.
What happens to the tax deduction if you withdraw money
The deduction you received when you contributed does not disappear if you later withdraw the money. Once you have claimed the deduction, it is permanent. If you contributed $3,000 in 2024, claimed the deduction on your 2024 tax return, and then withdrew $3,000 in 2025 for a non-medical expense, you still got the 2024 deduction. You would owe income tax on the withdrawal itself (because it was not used for medical expenses), but the original contribution deduction stands.
This is different from a traditional IRA, where withdrawals before age 59½ can trigger penalties. HSA withdrawals for non-medical expenses are taxed as income but do not carry an automatic penalty—though the IRS may assess one if you cannot show the withdrawal was for a legitimate reason.
How the HSA deduction interacts with other tax benefits
The HSA deduction stacks with the standard deduction. You get both. If you take the standard deduction of $14,600 (for 2024, single filer) and contribute $3,850 to an HSA, your taxable income is reduced by $18,450 total.
The HSA deduction also stacks with other above-the-line deductions, such as student loan interest or educator expenses. It does not interact with itemized deductions because you are not itemizing—you are reducing your income before the standard deduction or itemization calculation happens.
If you are self-employed, you can deduct HSA contributions on Schedule C (your business tax form) or on Schedule 1 as an adjustment to income. The mechanics differ slightly, but the result is the same: the contribution reduces your taxable income.
Frequently Asked Questions
Do I have to claim the HSA deduction on my tax return?
If your employer deducted the contribution from your paycheck, no—it is already reflected in your W-2. If you contributed on your own, yes, you must claim it on Schedule 1 of your Form 1040 or the deduction is lost. The IRS will not automatically know about the contribution unless you report it.
Can I deduct HSA contributions if I take the standard deduction?
Yes. The HSA deduction is separate from and in addition to the standard deduction. You get both, which is why HSAs are valuable even if you do not itemize deductions.
What if I contributed more than the annual limit?
You can only deduct contributions up to the IRS limit for that year. Excess contributions do not get a deduction and may be subject to a 6% excise tax. You can withdraw the excess and any earnings on it before your tax return is due to avoid the penalty.
Does my HSA deduction affect my Medicare or Social Security taxes?
No. HSA contributions are deducted before federal income tax but they are still subject to Social Security and Medicare taxes (7.65% combined). Your employer pays the employer portion of these taxes on your full salary, including the HSA contribution amount.
If I move states, do I lose the HSA deduction?
No, but your state tax treatment may change. Most states follow federal rules, but a few tax HSA contributions anyway. If you move mid-year, you may need to prorate the deduction between your old and new state. Your tax preparer can handle this.