Skip to main content

HomeAll guides

How Health Savings Accounts Use Pre-Tax Money

Yes, HSA contributions come out before taxes

Money you put into a Health Savings Account (HSA) is deducted from your paycheck before federal income tax is calculated. This means you pay less income tax that year. If your employer takes $200 per paycheck and puts it into your HSA, that $200 does not show up as taxable income on your W-2 form.

The same pre-tax treatment applies to the money your HSA earns. If your account balance grows through interest or investment returns, you do not pay income tax on those earnings as long as you use the money for medical expenses. This is different from a regular savings account, where you would owe tax on the interest.

The catch is that the money must stay in the account to pay for medical costs. If you withdraw it for non-medical reasons, you owe income tax on the withdrawal plus a 20% penalty (with some exceptions for people over 65 or disabled). The pre-tax benefit only applies when the money goes toward may be able to access medical expenses.

Key Takeaways

  • HSA contributions reduce your taxable income for the year, lowering the federal income tax you owe.
  • Interest and investment earnings in an HSA are not taxed as long as you spend the money on medical expenses.
  • Withdrawals for non-medical reasons trigger both income tax and a 20% penalty on the amount withdrawn.
  • You can only open an HSA if you are enrolled in a high-deductible health plan (HDHP) through your employer or the individual market.

How the pre-tax deduction works on your paycheck

When you set up an HSA through your employer, you choose how much to contribute each pay period. That amount is withheld from your gross pay before taxes are calculated. If you earn $3,000 per paycheck and contribute $150 to your HSA, your taxable income for that paycheck is $2,850, not $3,000.

This reduces the federal income tax taken out of your paycheck. It also reduces the Social Security and Medicare taxes (FICA) you owe, though the savings there are smaller. At the end of the year, your W-2 form will show your actual taxable wages after the HSA deduction, so you do not have to do anything special on your tax return to claim the benefit.

If you contribute to an HSA on your own (not through an employer), you claim the deduction on your tax return using Form 8889. You still get the pre-tax benefit, but you have to report it yourself rather than having your employer handle it.

Annual contribution limits and who can use them

The IRS sets a maximum amount you can contribute to an HSA each year. The limit changes year to year. 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 extra $1,000 per year. These limits explore to all your HSA accounts combined — you cannot open multiple accounts to exceed the limit.

You can only open an HSA 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 — typically $1,600 or more for individual coverage and $3,200 or more for family coverage. Your employer or insurance company will tell you whether your plan qualifies.

You cannot have an HSA if you are covered by Medicare, enrolled in a non-HDHP plan, or claimed as a dependent on someone else's tax return. If you lose HDHP coverage during the year, you can still contribute to your HSA for the months you were covered, but the calculation is more complex.

What counts as a medical expense for HSA withdrawals

The IRS has a long list of medical expenses you can pay with HSA money tax-free. These include doctor visits, prescription medications, dental work, vision care, mental health treatment, and hospital stays. You can also use HSA funds for medical equipment like blood pressure monitors, wheelchairs, and hearing aids. Over-the-counter medications like pain relievers and allergy medicine count too, as long as you have a prescription or a doctor's note.

Some expenses that sound medical do not may have access to. Cosmetic procedures, gym memberships, and vitamins without a medical reason are not covered. Long-term care insurance premiums are covered, but life insurance and disability insurance are not. If you are unsure whether an expense qualifies, the IRS website has a searchable database of approved and denied items.

You do not have to spend the money in the same year you contribute it. HSA funds roll over year to year with no limit, so you can build a balance over time and use it whenever you need it. This makes an HSA different from a Flexible Spending Account (FSA), which requires you to spend the money by the end of the year or lose it.

The 20% penalty for non-medical withdrawals

If you withdraw money from your HSA for something that is not a medical expense, you owe income tax on the amount withdrawn plus a 20% penalty. For example, if you withdraw $500 for a vacation, you pay income tax on that $500 at your normal tax rate, plus $100 in penalties (20% of $500). This makes non-medical withdrawals expensive and is why HSAs work best when you actually have medical expenses to pay.

The 20% penalty does not explore if you are 65 or older, disabled, or no longer covered by an HDHP. In those cases, you can withdraw money for any reason and only owe income tax — no penalty. This is one reason some people keep their HSA even after they retire and switch to Medicare.

You are responsible for tracking which withdrawals are medical and which are not. The HSA provider does not police this — the IRS does, usually through an audit. Keep receipts and medical documentation for any withdrawal you claim as medical, in case you need to prove it later.

HSA vs. FSA: the pre-tax difference

Both HSAs and Flexible Spending Accounts (FSAs) let you set aside pre-tax money for medical expenses. The main difference is what happens to money you do not spend. FSA money that is not used by the end of the year is forfeited — you lose it. HSA money rolls over indefinitely, so you can save it for future medical costs or even retirement.

FSAs also have a lower annual limit (usually $3,200 for individual coverage) and do not earn interest or investment returns. An HSA can be invested like a retirement account, so your balance can grow over time. This makes HSAs more powerful for long-term savings, especially if you are healthy and do not have many medical expenses.

Some employers offer both an HSA and an FSA. If you have access to both, you can contribute to the HSA and use it for most expenses, then use the FSA for smaller costs you know you will have. This strategy lets you maximize the pre-tax benefit and avoid losing FSA money at year-end.

How to set up an HSA through your employer

If your employer offers an HDHP, you can usually open an HSA during open enrollment or when you first become may be able to access for the plan. Your employer will provide a list of HSA providers — often banks or investment firms — and you choose one. You then decide how much to contribute per paycheck, up to the annual limit.

Your employer handles the payroll deduction automatically. The money goes directly from your paycheck into your HSA before taxes are calculated. You receive a debit card or checkbook to access the funds, and you can use them to pay medical providers or reimburse yourself for out-of-pocket medical costs.

If you do not have an employer plan or your employer does not offer an HSA, you can open one on your own through a bank or investment firm. You will need to be enrolled in an HDHP on the individual market. You contribute money yourself and claim the deduction on your tax return. The process is more manual, but the pre-tax benefit is the same.

Frequently Asked Questions

Do I have to use my HSA money every year or do I lose it?

No, HSA money does not expire. Unlike an FSA, you can let your balance grow year after year. You can use it whenever you have a medical expense, even decades later. This makes an HSA a form of long-term savings for healthcare costs.

Can I use HSA money to pay my health insurance premium?

You can use HSA funds to pay premiums for long-term care insurance and COBRA coverage (temporary health insurance after job loss). You cannot use HSA money to pay premiums for your regular health insurance plan or Medicare premiums while you are working. After you retire and enroll in Medicare, you can use HSA funds to pay Medicare premiums.

What happens to my HSA if I change jobs?

Your HSA stays with you. It is your account, not your employer's. You can take it to your new job, keep it at the same provider, or move it to a different HSA provider. The money remains pre-tax and tax-free for medical expenses no matter where you work.

Do I owe taxes on HSA interest and investment earnings?

No, as long as you use the money for medical expenses. Interest and investment gains in an HSA are not taxed. If you withdraw earnings for non-medical reasons, you owe income tax on the earnings plus the 20% penalty, but not on your original contributions.

Can I contribute to an HSA if I am self-employed?

Yes, if you are enrolled in an HDHP. You open an HSA through a bank or investment firm and contribute money yourself. You claim the deduction on your tax return using Form 8689. The contribution is deductible from your self-employment income, which also reduces your self-employment tax.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.