HSA contributions reduce your taxable income
Money you put into a Health Savings Account (HSA) is not counted as income on your federal tax return. When you contribute to an HSA through your employer's payroll, the amount comes out before taxes are calculated—this is called a pre-tax contribution. If you open an HSA on your own and contribute directly, you can deduct those contributions on your tax return using IRS Form 8889.
The deduction applies only to contributions you make in the calendar year you claim them. If you contribute $2,000 to your HSA in 2024, you deduct $2,000 from your 2024 taxable income. You cannot deduct contributions made in a previous year, even if you deposit them late.
There is an annual limit on how much you can contribute and deduct. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change each year, and your employer or HSA provider will tell you the current year's amount when you enroll.
Key Takeaways
- HSA contributions reduce your taxable income whether they come from your paycheck or you deposit them yourself.
- You can only deduct contributions made in the tax year you claim them, and the deduction cannot exceed the annual limit set by the IRS.
- Money you withdraw from an HSA to pay for may have access to medical expenses is not taxed at all—neither when you contribute nor when you spend it.
- If you withdraw HSA money for non-medical expenses before age 65, you owe income tax plus a 20 percent penalty on the amount withdrawn.
- After age 65, you can withdraw HSA money for any reason without the penalty, though non-medical withdrawals are still taxed as income.
How the tax benefit works across your entire HSA
An HSA gives you a three-part tax advantage. First, contributions are not taxed. Second, the money inside the account grows without being taxed—if you invest your HSA balance, any interest or gains are not reported to the IRS. Third, withdrawals for may have access to medical expenses are not taxed.
This means if you contribute $4,150, invest it, and it grows to $5,000, then withdraw $3,000 to pay for dental work, you owe no tax on any of it: not on the original contribution, not on the $850 in growth, and not on the $3,000 withdrawal. That is the full tax benefit of an HSA.
The tax-free withdrawal rule applies only to may have access to medical expenses. These include doctor visits, prescriptions, dental work, vision care, mental health treatment, and many other health-related costs. The IRS publishes a full list, and your HSA provider can tell you whether a specific expense qualifies.
What happens if you withdraw money for non-medical reasons
If you take money out of your HSA for something that is not a may have access to medical expense, you owe income tax on that amount. You also owe a 20 percent penalty on top of the income tax. For example, if you withdraw $1,000 to pay for groceries and you are in the 22 percent tax bracket, you would owe $220 in income tax plus $200 in penalty—a total of $420 on the $1,000 withdrawal.
The penalty applies only if you are under age 65. Once you turn 65, you can withdraw HSA money for any reason without the 20 percent penalty. You will still owe income tax on non-medical withdrawals after age 65, but the penalty goes away.
Keep receipts for any medical expenses you pay with HSA funds. If the IRS audits your return, you may need to show that the money went to may have access to expenses. Some people use their HSA as a retirement savings account by not withdrawing anything and paying medical expenses out of pocket, then reimbursing themselves from the HSA years later—this is allowed as long as you have the receipts.
HSA may be able to access and the tax deduction
You can only deduct HSA contributions if you are covered by a high-deductible health plan (HDHP). An HDHP is a health insurance plan with a higher deductible than a standard plan—for 2024, the minimum deductible is $1,600 for individual coverage and $3,200 for family coverage. If your health insurance does not meet these requirements, you cannot open an HSA and cannot claim the deduction.
You must be covered by an HDHP for the entire month in which you make a contribution in order to deduct it. If you switch to a different type of health plan mid-year, you can only deduct contributions made while you were on the HDHP. Your employer or insurance company can confirm whether your plan qualifies.
You also cannot claim an HSA deduction if you are claimed as a dependent on someone else's tax return, or if you are covered by Medicare. Some people are covered by both an HDHP and Medicare at the same time—in that case, you cannot make new contributions, though you can still withdraw from an existing HSA for medical expenses.
Employer contributions and your tax return
If your employer contributes money to your HSA, that money is not counted as taxable income to you. Your employer can contribute up to the annual limit, and those contributions do not reduce the amount you can contribute yourself—you can each contribute up to the limit in the same year.
Employer contributions do not appear on your tax return as income, and you do not need to report them separately. They straightforward reduce your taxable wages on your W-2 form. If you also make your own contributions, you report those on Form 8889 when you file your taxes.
Reporting HSA activity on your tax return
If you contribute to an HSA through your employer's payroll, the contribution is already deducted from your taxable income on your W-2, and you do not need to do anything else on your tax return. The deduction is automatic.
If you make contributions directly to your HSA—for example, you open an HSA with a bank or investment company and deposit money yourself—you must report those contributions on IRS Form 8889 when you file your taxes. This form asks for the total amount you contributed, the total amount you withdrew, and whether the withdrawals were for may have access to medical expenses. You attach Form 8889 to your main tax return (Form 1040).
Your HSA provider sends you a statement each year showing contributions and withdrawals. Keep this statement with your tax records. If you withdraw money for non-medical expenses, Form 8889 is where you report that, and the form calculates the penalty automatically.
State tax treatment of HSAs
Most states follow the federal tax treatment of HSAs—contributions are deductible and may have access to withdrawals are not taxed. However, a few states tax HSA contributions or withdrawals differently. California, New Jersey, and Tennessee have their own rules that may differ from federal law.
If you live in one of these states, check your state tax form or contact your state's tax authority to see how HSA contributions and withdrawals are treated. In most cases, you will still get a federal deduction even if your state taxes the contribution, but the rules vary.
Frequently Asked Questions
Can I deduct HSA contributions if I did not use the money for medical expenses?
Yes. The deduction applies to the contribution itself, not to how you spend the money. You can deduct $4,150 contributed to your HSA even if you never withdraw it or withdraw it for non-medical reasons. However, if you withdraw it for non-medical expenses before age 65, you will owe income tax and a 20 percent penalty on the withdrawal.
What if my employer and I both contribute to my HSA in the same year?
Both contributions count toward the annual limit. If your employer contributes $2,000 and you contribute $2,000, that is $4,000 total, which is within the 2024 individual limit. You cannot exceed the limit between the two of you. Your employer's contribution is not taxed to you, and you deduct your own contribution on Form 8889.
Do I have to spend my HSA money in the same year I contribute it?
No. You can contribute in one year and withdraw in a later year. The deduction applies in the year you contribute, regardless of when you spend the money. You can also let the money grow in your HSA for years and withdraw it whenever you need it for may have access to medical expenses.
What if I leave my job—can I still deduct my HSA contributions?
Yes. Your HSA belongs to you, not your employer. If you contributed through payroll before you left, that deduction is already taken. If you make contributions after you leave, you can still deduct them on your tax return using Form 8889, as long as you remain covered by an HDHP.
Can I deduct HSA contributions if I am self-employed?
Yes, if you have an HDHP. You deduct contributions on Form 8889 just like anyone else. Self-employed people can also deduct the HSA contribution as a business expense on Schedule C if they choose, though most people report it on Form 8889 instead. Check with a tax professional about which method works best for your situation.