The basic calculation: your contribution limit minus what you've already set aside

Your HSA deduction is the amount you can subtract from your taxable income for the year. It equals your annual contribution limit minus any money you've already contributed to that HSA in the same calendar year. The contribution limit depends on your coverage type and changes each year—the IRS sets it annually, and it varies between self-only coverage and family coverage.

If you contribute $2,000 to your HSA in January and your annual limit is $4,150 for self-only coverage, your deduction for that year is $2,000. If you contribute another $1,000 in June, your total deduction becomes $3,000. You cannot deduct more than the annual limit, even if you have the money to contribute.

The deduction applies whether you contribute through payroll withholding (pre-tax) or make deposits yourself (post-tax). If you contribute pre-tax through your employer, the deduction happens automatically. If you contribute after taxes, you claim the deduction when you file your tax return.

Key Takeaways

  • Your HSA deduction cannot exceed the annual contribution limit set by the IRS, which differs for self-only and family coverage and changes each year.
  • Track all contributions you make during the calendar year—payroll deductions, employer contributions, and your own deposits all count toward the limit.
  • If you change coverage types mid-year (from self-only to family, for example), your limit adjusts based on the number of months you held each coverage type.
  • You can deduct contributions you made after taxes by reporting them on Form 8889 when you file your tax return.
  • Contributions made after December 31 for the prior year can be deducted on that prior year's return if made by the tax filing deadline, including extensions.

Finding your annual contribution limit

The IRS publishes the HSA contribution limit each year, usually in March or April. For 2024, the limit is $4,150 for self-only coverage and $8,300 for family coverage. These amounts increase most years to account for inflation, so check the current year's limit before calculating your deduction.

Your employer's benefits materials should state the current limit, or you can find it on the IRS website under HSA contribution limits. If you're self-employed or manage your own HSA, your bank or HSA custodian will also provide the limit in their annual statements and communications.

The limit applies to all contributions combined—yours, your employer's, and anyone else's contributions to your account. If your employer contributes $1,500 and you contribute $2,000, your total is $3,500, and that's what counts against the limit.

Adjusting for mid-year coverage changes

If you switched coverage types during the year—from self-only to family coverage, or vice versa—your limit changes based on the number of months you held each coverage. The IRS uses a "last-month rule": your coverage type for the last day of the month determines your coverage status for that entire month.

If you had self-only coverage for six months and family coverage for six months, you calculate a blended limit. For 2024, that would be six months at $4,150 (self-only) divided by 12, plus six months at $8,300 (family) divided by 12. The result is roughly $6,225 for the year. Your total contributions cannot exceed this blended amount.

If you lost HSA may be able to access during the year—because you enrolled in Medicare, switched to a non-HSA-compatible plan, or became a dependent on someone else's tax return—your limit stops on the last day of the month you were may be able to access. Contributions made after that date cannot be deducted.

Accounting for employer contributions

Your employer's contributions to your HSA count toward your annual limit and reduce the amount you can contribute yourself. If your employer contributes $2,000 and your limit is $4,150, you can contribute only $2,150 more without exceeding the limit.

Some employers contribute to HSAs as part of their benefits package. Others offer a high-deductible health plan (HDHP) but leave contributions to the employee. Check your benefits summary or payroll stub to see whether your employer is making contributions. If you're unsure, ask your benefits administrator or payroll department.

Employer contributions are not taxable to you and do not appear on your personal tax return. They simply reduce the amount available for your own deduction. If you contribute more than the remaining limit allows, the excess is subject to a 6% excise tax and cannot be deducted.

Tracking contributions throughout the year

Keep a record of every contribution you make to your HSA during the calendar year. If you contribute through payroll, your pay stub should show the amount withheld each pay period. Add these up to get your total payroll contributions.

If you make deposits directly to your HSA—by check, bank transfer, or credit card—save the confirmation or receipt. At the end of the year, your HSA custodian will send you a statement showing all contributions received. Compare this to your own records to catch any errors before tax time.

Do not assume your custodian's statement is complete. Some contributions, especially those made near year-end, may not appear on the statement you receive in January. If you made a contribution in December, verify it posted to your account before filing your tax return.

Claiming the deduction on your tax return

If you contributed pre-tax through payroll, your employer reports the deduction on your W-2 form, and you do not need to claim it again. The amount withheld reduces your taxable income automatically.

If you made contributions after taxes—by depositing your own money into the HSA—you claim the deduction on Form 8889 (Contributions to an HSA) when you file your tax return. You report the total amount you contributed, and the IRS allows you to deduct it from your income, subject to the annual limit.

Contributions made after December 31 can be deducted on the prior year's return if you make the deposit by the tax filing deadline (usually April 15, or later if you file an extension). The contribution is considered made in the prior year for tax purposes, even though the money leaves your account in the current year.

If you contributed more than the annual limit, the excess cannot be deducted. Report only the amount up to the limit on Form 8889. The excess is subject to a 6% excise tax each year it remains in the account, so consider withdrawing it to avoid the penalty.

What happens if you over-contribute

If your total contributions exceed the annual limit, the excess amount is not deductible and triggers a 6% excise tax. For example, if your limit is $4,150 and you contribute $4,500, the $350 excess is taxed at 6% ($21) and cannot be deducted from your income.

The excise tax applies each year the excess remains in the account. If you do not withdraw the $350, you owe another 6% tax the following year. To avoid this, withdraw the excess contribution plus any earnings on it before the tax filing deadline. Report the withdrawal on Form 8889 to show the IRS you corrected the over-contribution.

Some HSA custodians offer a correction process that allows you to withdraw excess contributions without penalty if you act quickly. Contact your custodian immediately if you realize you have over-contributed. The sooner you correct it, the less tax you will owe.

Frequently Asked Questions

Can I deduct contributions my spouse made to my HSA?

No. Only contributions made by you or your employer can be deducted on your tax return. If your spouse contributes to your HSA, that money counts toward your annual limit but is not deductible on your return. Your spouse would need their own HSA to deduct their contributions.

What if I contributed to my HSA but then lost HSA may be able to access mid-year?

You can deduct only the contributions made while you were may be able to access. If you lost may be able to access in June, you can deduct contributions made January through June. Contributions made after you lost may be able to access cannot be deducted and may trigger the 6% excise tax if they remain in the account.

Do catch-up contributions for people over 55 change how I calculate my deduction?

Yes. If you are 55 or older, you can contribute an additional $1,000 per year (for 2024). This increases your annual limit. If you are self-only coverage and 55+, your limit is $5,150 instead of $4,150. Add this catch-up amount to your total deduction if you made the contribution.

Can I deduct an HSA contribution I made in January for the prior year?

Yes, if you made the deposit by the tax filing deadline (usually April 15, or later with an extension). The contribution is treated as made in the prior year for tax purposes. Report it on the prior year's Form 8889, not the current year's return.

If my employer contributes to my HSA, do I report that on my tax return?

No. Employer contributions are not reported on your personal tax return. They reduce the amount you can contribute yourself without exceeding the annual limit. Your employer reports their contribution separately for payroll tax purposes.