HSA contributions lower your federal income tax when you put money in
Health Savings Account (HSA) contributions are tax-deductible on your federal return. The money you deposit into an HSA reduces your taxable income dollar-for-dollar, which means you pay less in federal income tax that year. This works whether you contribute through payroll deduction (the most common route) or deposit money yourself.
The tax break applies only to the money you put in, not to the growth or withdrawals. If you contribute $4,000 to an HSA in 2024, you report that $4,000 as a deduction, lowering your taxable income by $4,000. The investment earnings inside the account are not taxed, and withdrawals for may have access to medical expenses are not taxed either — but those are separate tax benefits from the initial deduction.
HSAs are only available if you are enrolled in a high-deductible health plan (HDHP). You cannot have an HSA and a traditional health plan at the same time, and you cannot have an HSA if you are covered by Medicare or claimed as a dependent on someone else's tax return.
Key Takeaways
- HSA contributions reduce your taxable income on your federal tax return, lowering the tax you owe that year.
- You must be enrolled in a high-deductible health plan to open or contribute to an HSA.
- Contributions made through payroll deduction avoid both income tax and payroll tax (Social Security and Medicare tax).
- The annual contribution limit is set by the IRS and varies depending on whether you have individual or family coverage; for 2024 the limit is $4,150 for individual coverage and $8,300 for family coverage.
- You report HSA contributions on your tax return using Form 8889, which calculates your deduction and tracks your account activity.
Payroll deduction saves you more tax than depositing money yourself
When your employer deducts HSA contributions from your paycheck, the money never appears as income on your W-2. This means you avoid federal income tax and payroll tax (Social Security and Medicare tax) on that amount. If you earn $50,000 and contribute $4,000 through payroll, your taxable income drops to $46,000, and you also skip the 7.65% payroll tax on that $4,000.
If you deposit money into an HSA yourself after receiving your paycheck, you still get the income tax deduction, but you have already paid payroll tax on that money. You cannot get the payroll tax back. This is why payroll deduction is the preferred route when your employer offers it.
Self-employed people and those whose employers do not offer HSA payroll deduction can still deduct contributions on their tax return, but they will have already paid self-employment tax on the income. They report the deduction on Form 1040 (Schedule 1 for self-employed filers).
You report the deduction using Form 8889
If you contributed to an HSA during the year, you must file Form 8889 with your tax return. This form calculates your HSA deduction, tracks distributions you took from the account, and determines whether any withdrawals were taxable.
Your HSA custodian (the bank or financial institution holding the account) sends you a statement showing contributions, earnings, and withdrawals. You use this information to complete Form 8889. If you contributed through payroll, your employer reports the amount on a separate box on your W-2, and you transfer that figure to Form 8889. If you made deposits yourself, you report the total amount you contributed.
The form also asks whether you had any non-may have access to withdrawals — money you took out for reasons other than medical expenses. Non-may have access to withdrawals are taxable income and subject to a 20% penalty (except after age 65, when the penalty goes away but the income tax remains). Reporting this correctly matters because the IRS cross-checks Form 8889 against reports from your HSA custodian.
Contribution limits change each year and depend on your coverage type
The IRS sets annual HSA contribution limits, and they vary by whether you have individual or family coverage under your HDHP. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits increase most years to account for inflation, so check the current year's limit before you contribute.
If you turn 55 during the year, you can make an additional "catch-up" contribution of $1,000 (this is separate from the main limit). You can continue making catch-up contributions each year until you enroll in Medicare.
Contributing more than the annual limit means the excess is not tax-deductible and is subject to a 6% excise tax. If you over-contribute, you can withdraw the excess and the earnings on it before your tax filing deadline (usually April 15 of the following year) to avoid the penalty, but you must report this on Form 8889.
You lose the deduction if you stop being HSA-may be able to access mid-year
If you leave your HDHP or become ineligible for an HSA during the year, you can only deduct contributions made while you were still may be able to access. If you contributed $4,000 for the full year but lost coverage in September, you can only deduct the contributions made through September.
There is one exception: if you lose coverage due to a may have access to event (job loss, divorce, loss of dependent status), you may be able to make a pro-rata contribution for the months you were covered. The rules here are strict, so contact your HSA custodian or a tax professional if this applies to you.
If you become ineligible and withdraw money from your HSA, non-may have access to withdrawals are taxable and subject to the 20% penalty. Withdrawals for may have access to medical expenses remain tax-free even after you lose HSA may be able to access.
HSA deductions work differently than health insurance premium deductions
HSA contributions are not the same as deducting health insurance premiums. If you are self-employed, you can deduct health insurance premiums as a business expense (or as an above-the-line deduction on Form 1040). HSA contributions are separate and are reported on Form 8889.
If you are an employee and your employer deducts both premiums and HSA contributions from your paycheck, the premiums reduce your taxable wages on your W-2, and the HSA contributions appear in a separate box. Both reduce your tax burden, but they are tracked differently.
Some people confuse HSAs with Flexible Spending Accounts (FSAs), which also allow pre-tax contributions for medical expenses. FSAs are also tax-deductible, but they have different rules: you cannot carry over unused money to the next year (with limited exceptions), and you do not file a separate form to claim the deduction if you contribute through payroll.
Frequently Asked Questions
Can I deduct HSA contributions if I did not use the money for medical expenses?
Yes. The contribution itself is deductible regardless of how you spend the money. However, if you withdraw money for non-medical reasons, that withdrawal is taxable income and subject to a 20% penalty (unless you are over 65). The deduction and the withdrawal are separate tax events.
What happens to my HSA deduction if I change jobs?
Your HSA stays with you. The account is yours, not your employer's. If your new employer offers an HSA, you can continue contributing to your existing account or open a new one. If your new employer does not offer an HDHP, you cannot make new contributions, but you can still withdraw money for medical expenses tax-free.
Do I have to itemize deductions to claim my HSA contribution?
No. HSA contributions are an "above-the-line" deduction, meaning you claim them whether you take the standard deduction or itemize. This is one reason HSAs are valuable — you get the tax break regardless of which deduction method you choose.
Can I deduct HSA contributions for my spouse?
Only if your spouse is also enrolled in an HDHP and you file a joint tax return. Each person with an HSA must have their own account and their own HDHP coverage. You cannot contribute to your spouse's HSA on their behalf, even if you are married.
What if my employer contributes to my HSA?
Employer contributions are not taxable income to you, and they do not count against your annual contribution limit. If your employer contributes $2,000 and you contribute $2,150, your total contributions are $4,150 (at the individual coverage limit for 2024), and you deduct only your $2,150 on Form 8889.