HSA contributions reduce your taxable income, and may have access to medical withdrawals are tax-free

An HSA (Health Savings Account) works differently from regular savings because the money you put in lowers your federal income taxes. When you contribute to an HSA through payroll deduction, that money never shows up as taxable wages. If you contribute outside of payroll, you can deduct those contributions on your tax return. Withdrawals for may have access to medical expenses are also tax-free — you do not pay income tax or the 3.8% net investment income tax on that money when you use it for healthcare.

The tax advantage only applies to may have access to medical expenses. If you withdraw HSA money for non-medical reasons, you owe income tax on the withdrawal plus a 20% penalty (except after age 65, when the penalty drops but income tax remains). This is the core trade-off: the account gives you a tax break, but only if you spend the money on healthcare or let it sit unused.

Key Takeaways

  • Contributions made through payroll deduction are not counted as taxable income, and contributions made outside payroll can be deducted on your tax return.
  • Withdrawals for may have access to medical expenses — doctor visits, prescriptions, dental work, vision care, and many other healthcare costs — are completely tax-free.
  • Non-medical withdrawals are taxed as ordinary income plus a 20% penalty before age 65, making early withdrawal expensive.
  • HSA funds roll over year to year with no "use it or lose it" rule, so unused money stays in the account and keeps its tax advantages.

How payroll contributions reduce your taxes

If your employer offers an HSA and you enroll through payroll deduction, the contribution amount is taken from your paycheck before taxes are calculated. This means your employer does not withhold federal income tax, Social Security tax, or Medicare tax on that money. A $200 monthly HSA contribution reduces your gross income by $200, which lowers your federal tax bill at the end of the year.

Your employer reports the contribution to the IRS on your W-2 form in Box 12 with code W. The IRS knows the money went into an HSA and does not tax it. You do not need to do anything on your tax return to claim this deduction — it is already handled.

How to deduct HSA contributions made outside payroll

If you contribute to an HSA on your own — by writing a check, making a bank transfer, or sending money directly to the HSA trustee — you can deduct that amount on your federal tax return. You claim the deduction on Form 1040 as an adjustment to income, not as an itemized deduction. This means you get the tax break whether you itemize or take the standard deduction.

You must contribute the money during the tax year or by the tax filing deadline (usually April 15 of the following year) to deduct it for that year. Keep records of your contribution — a bank statement, cancelled check, or receipt from the HSA trustee. The HSA trustee will send you a Form 5498-SA showing your contributions, which you keep for your records but do not file with your return.

What counts as a may have access to medical expense

may have access to medical expenses include most healthcare costs: doctor and dentist visits, prescriptions, eyeglasses and contact lenses, hearing aids, mental health treatment, physical therapy, and hospital stays. The IRS publishes a long list, but the basic rule is that the expense must be for diagnosis, treatment, or prevention of disease or injury. Over-the-counter medications count only if you have a prescription. Cosmetic procedures do not count unless they treat an injury or disease.

You can withdraw HSA money for your own medical expenses, your spouse's, or your dependents' — even if they are not covered by your health insurance. You do not need to submit receipts to the HSA trustee to make a withdrawal, but you should keep them for your records in case the IRS asks. If you cannot prove an expense was medical, the IRS may treat the withdrawal as non-medical and assess the 20% penalty plus income tax.

Tax penalties for non-medical withdrawals

If you withdraw HSA money for something other than a may have access to medical expense, you owe income tax on the withdrawal at your regular tax rate, plus a 20% penalty. For example, if you withdraw $1,000 for a non-medical expense and you are in the 22% federal tax bracket, you owe $220 in income tax plus $200 in penalty — a total of $420 in taxes on a $1,000 withdrawal. State income tax may also apply.

The 20% penalty stops applying after you turn 65. At that point, non-medical withdrawals are still taxed as ordinary income, but the penalty disappears. This is why HSAs are sometimes called "retirement accounts" — after 65, they function like traditional IRAs for non-medical spending, though the tax-free medical withdrawal benefit continues for life.

How HSA funds roll over and grow tax-free

Unlike a Flexible Spending Account (FSA), an HSA has no "use it or lose it" rule. Money you do not spend in one year stays in the account and carries forward to the next year. You can accumulate HSA funds over decades if you do not need them for medical expenses. This makes the HSA a long-term savings tool, not just a way to pay this year's medical bills.

Investment earnings inside an HSA are also tax-free. If you invest your HSA balance in mutual funds or stocks, any gains, dividends, or interest are not taxed as long as the money stays in the account. When you withdraw for a may have access to medical expense, the earnings come out tax-free too. This tax-free growth is another reason HSAs are valuable — the longer you hold the money, the more it can compound without tax drag.

Reporting HSA activity on your tax return

If you made contributions outside of payroll, you report them on Form 1040 as an adjustment to income. You do not need to file any HSA-specific form unless you had a non-medical withdrawal. The HSA trustee sends you a Form 5498-SA each year showing contributions and account value, but you do not file this form with the IRS — you keep it for your records.

If you took a non-medical withdrawal, the HSA trustee reports it on Form 1099-SA. You must report this on your tax return and calculate the taxable amount and the 20% penalty. If the withdrawal was actually medical and you can prove it, you can exclude it from income by filing Form 8889 with your return. Keeping receipts and records is critical because the burden is on you to prove the expense was may have access to.

Frequently Asked Questions

Can I deduct HSA contributions if my employer already deducted them from my paycheck?

No. Payroll deductions are already tax-free — the money never counts as taxable income. You cannot deduct them again on your tax return. Only contributions you make outside of payroll can be deducted on Form 1040.

What happens if I withdraw HSA money and later find out the expense was not may have access to?

You owe income tax plus the 20% penalty on that withdrawal. If you discover this after filing your return, you can file an amended return (Form 1040-X) to report the correction and pay the tax and penalty owed. Keep documentation of the expense to show the IRS if they question it.

Do I have to spend my HSA money on medical expenses, or can I just save it?

You can save it indefinitely with no penalty. The tax deduction applies to the contribution regardless of whether you spend it. However, if you withdraw money for non-medical reasons, you pay income tax and a 20% penalty, so the account is designed to encourage medical spending or long-term savings.

Are HSA contributions deductible if I am self-employed?

Yes. Self-employed people can deduct HSA contributions on Form 1040 as an adjustment to income, the same way employees do. The contribution must be made by the tax filing deadline to be deductible for that year.