How HSA Contributions and Withdrawals Get Tax Treatment
HSA contributions reduce your taxable income, and withdrawals for may have access to medical expenses are tax-free
Yes, Health Savings Account contributions are tax-deductible — but the mechanics depend on how you contribute. If your employer deducts contributions from your paycheck before taxes, those amounts never show up on your taxable income in the first place. If you contribute on your own, you deduct the amount on your tax return using Form 8889. Either way, the contribution itself lowers what the IRS taxes you on.
The tax benefit extends to the money your HSA earns. Interest, dividends, and investment gains inside the account are not taxed as long as the money stays in the account. When you withdraw funds to pay for may have access to medical expenses — doctor visits, prescriptions, dental work, vision care, and many others — that withdrawal is also tax-free. This combination of a deductible contribution, tax-free growth, and tax-free withdrawals for medical costs is what makes HSAs powerful for long-term health savings.
Key Takeaways
- Employer payroll deductions bypass income tax automatically; self-contributions are deducted on Form 8889 when you file your tax return.
- Money your HSA earns through interest or investment gains is never taxed as long as it stays in the account.
- Withdrawals for may have access to medical expenses — including insurance premiums, copays, deductibles, and dental and vision care — are completely tax-free.
- Withdrawals for non-medical expenses are taxed as ordinary income plus a 20 percent penalty if you are under 65; after 65, the penalty disappears but income tax remains.
- You must have an HSA-may be able to access health plan to contribute, and contribution limits change each year based on whether your coverage is individual or family.
How the tax deduction works when your employer contributes
When your employer takes HSA contributions directly from your paycheck, those amounts are withheld before federal income tax, Social Security tax, and Medicare tax are calculated. You never report them on your tax return because they never entered your taxable income. This is the simplest route: the tax benefit is automatic and immediate.
Your pay stub will show the contribution separately from your regular wages. At the end of the year, your employer sends you a Form 1099-SA showing how much was contributed on your behalf. You do not need to do anything with this form for the employer contribution itself — it is informational. However, you will need it if you made any withdrawals during the year, because those withdrawals are reported on the same form.
How the tax deduction works when you contribute yourself
If you contribute to your HSA outside of payroll — by depositing money directly from your bank account or by mailing a check — you claim the deduction on your tax return. You use Form 8889, which is filed with your Form 1040. On this form, you report the total amount you contributed during the year and subtract it from your income.
You can only deduct contributions you actually made. If your employer contributed $2,000 and you contributed $1,500, you deduct only the $1,500 on Form 8889. The employer contribution is already excluded from your taxable income through payroll, so you do not claim it twice. The deadline to contribute and claim the deduction for a given tax year is typically April 15 of the following year, though some HSA providers allow contributions until your tax filing deadline if you request it in writing.
Tax-free growth inside the account
Once money is in your HSA, any earnings it generates are not subject to income tax. If your HSA balance is invested in a money market fund, stocks, or bonds, the interest, dividends, and capital gains accumulate tax-free. This is different from a regular savings account or taxable investment account, where you owe tax on earnings each year.
This tax-free growth compounds over time, especially if you do not withdraw the money immediately. Someone who contributes $4,000 per year for 30 years and earns an average of 5 percent annually will see the account grow to roughly $300,000 — far more than the $120,000 in contributions alone. The difference is tax-free growth. You only pay tax on earnings if you withdraw them for a non-medical expense.
Tax-free withdrawals for may have access to medical expenses
Withdrawals from your HSA are completely tax-free as long as you use the money for may have access to medical expenses. These include copays, coinsurance, deductibles, and out-of-pocket costs for doctor visits, hospital care, surgery, and prescription drugs. Dental work, vision care, hearing aids, and mental health treatment also count. Many over-the-counter items — bandages, pain relievers, allergy medicine, and first-aid supplies — are may have access to if you have a prescription or a doctor's order.
You do not need to submit receipts to your HSA provider when you withdraw money, though you should keep them for your records. The IRS can audit your HSA and ask you to prove that withdrawals were for may have access to expenses. If you cannot document a withdrawal as may have access to, it is treated as a non-medical withdrawal and becomes taxable income plus a 20 percent penalty (if you are under 65).
One common mistake is withdrawing money and then reimbursing yourself years later. You can do this — you can withdraw $500 today for a medical expense and reimburse yourself from other funds, then withdraw from your HSA years later to cover that same expense. However, you can only reimburse yourself once per expense, and you must keep the original receipt to prove the expense was may have access to and the amount is correct.
What happens if you withdraw for non-medical reasons
If you withdraw money from your HSA for something other than a may have access to medical expense, the withdrawal is taxed as ordinary income. On top of that, you owe a 20 percent penalty on the amount withdrawn — but only if you are under 65 years old. After you turn 65, the penalty disappears, and non-medical withdrawals are taxed as income only, just like withdrawals from a traditional IRA.
This penalty is reported on Form 8889 when you file your tax return. If you withdrew $1,000 for a non-medical expense and you are 45 years old, you owe income tax on the $1,000 plus $200 in penalties. The tax rate depends on your overall income and tax bracket. Some people use this flexibility intentionally: they treat the HSA as a retirement savings account after age 65, knowing they can withdraw for any reason without penalty, though they will still owe income tax on non-medical withdrawals.
HSA contribution limits and tax deduction caps
The amount you can contribute and deduct each year depends on your coverage type and changes annually. 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 as a catch-up contribution. These limits are set by the IRS and typically increase by $50 to $100 each year to account for inflation.
You cannot deduct more than the annual limit, even if you contribute more. If you contribute $5,000 in a year when the limit is $4,150, you can only deduct $4,150. The excess $850 is not deductible and is not penalized, but it sits in your account and can be withdrawn tax-free for medical expenses (the excess contribution itself is not taxed, only the earnings on it). To avoid this, track your contributions carefully if you have both employer and personal contributions.
Frequently Asked Questions
Can I deduct HSA contributions on my tax return if my employer already contributed?
No. Your employer's contribution is already excluded from your taxable income through payroll. You only deduct your own contributions on Form 8889. If you deduct the employer contribution as well, you are claiming the same deduction twice, which triggers an audit.
Do I have to report HSA withdrawals on my tax return?
You report all HSA activity on Form 8889, which you file with your 1040. The form asks for total contributions, total withdrawals, and the amount of withdrawals that were for non-medical expenses. If all your withdrawals were for may have access to medical expenses, you do not owe additional tax, but you still report the withdrawals on the form.
What counts as a may have access to medical expense for tax-free withdrawals?
may have access to expenses include copays, deductibles, coinsurance, prescriptions, dental work, vision care, mental health treatment, and many over-the-counter items if you have a prescription. Insurance premiums for Medicare, COBRA, and long-term care also count. Cosmetic procedures, gym memberships, and vitamins without a prescription do not.
Can I use my HSA to pay for my spouse's medical expenses?
Yes. As long as your spouse is a dependent on your tax return or you are married filing jointly, withdrawals to pay for their may have access to medical expenses are tax-free. You do not need to be on the same health plan.
What is the penalty for withdrawing HSA money for non-medical reasons?
If you are under 65, you owe income tax on the withdrawal plus a 20 percent penalty. After 65, the penalty is waived and you only owe income tax. For example, a $1,000 non-medical withdrawal at age 50 costs you roughly $220 to $370 in taxes and penalties, depending on your tax bracket.