HSA contributions come out before income tax is calculated

Money you put into a Health Savings Account (HSA) is deducted from your paycheck before your employer calculates federal income tax, Social Security tax, and Medicare tax. This means the amount you contribute reduces your taxable income for the year.

If you earn $50,000 and contribute $4,000 to an HSA, your employer reports $46,000 as your taxable income to the IRS. You pay income tax on $46,000, not $50,000. This is why HSAs are called pre-tax accounts — the contribution happens before taxes are taken out.

The tax savings depend on your tax bracket. Someone in the 22% federal tax bracket saves $22 in federal tax for every $100 contributed. Someone in the 12% bracket saves $12. Your employer also saves on payroll taxes, which is why they often encourage HSA participation.

Key Takeaways

  • HSA contributions reduce your taxable income, so you pay less federal income tax, Social Security tax, and Medicare tax on the money you set aside.
  • You must be enrolled in a high-deductible health plan (HDHP) to open and contribute to an HSA — regular health insurance does not may have access to.
  • Money withdrawn from an HSA for may have access to medical expenses is not taxed, giving you a second tax advantage beyond the initial deduction.
  • If you withdraw HSA money for non-medical expenses before age 65, you pay income tax on the withdrawal plus a 20% penalty.
  • After age 65, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are still taxed as income.

Why the tax treatment matters for your budget

The pre-tax status of HSA contributions creates a real financial advantage. If you contribute the maximum amount allowed — $4,150 for individual coverage or $8,300 for family coverage in 2024 — you reduce your taxable income by that full amount.

This is different from a regular savings account, where you contribute money after taxes are already taken out. With an HSA, you avoid taxes on the contribution itself, then avoid taxes again when you spend the money on medical care. That double tax break is why HSAs are considered one of the most tax-efficient savings tools available.

The catch is that you can only contribute if your health insurance is a high-deductible plan (HDHP). Plans with lower deductibles do not may have access to, even if your employer offers them. You choose the HDHP during open enrollment, and your HSA may be able to access follows from that choice.

How payroll deduction works in practice

If your employer offers an HSA, you elect a contribution amount during open enrollment — usually a dollar amount per paycheck or a lump sum for the year. Your employer then deducts that amount from your gross pay before calculating taxes.

Your pay stub will show the HSA deduction separately from your other deductions. You will see your gross pay, then the HSA amount subtracted, then taxes calculated on the remaining amount. The HSA contribution does not appear on your W-2 as wages, which is how the IRS knows it was pre-tax.

If you do not have an employer HSA plan, you can open an individual HSA through a bank or financial institution and make contributions yourself. Those contributions are still pre-tax — you deduct them on your tax return (Form 8889) when you file, rather than having your employer deduct them from your paycheck.

What happens when you spend the money

Withdrawals from an HSA for may have access to medical expenses are not taxed at all. may have access to expenses include deductibles, copays, coinsurance, prescription drugs, dental work, vision care, and many other health-related costs. You can find the full list on the IRS website.

This is the second tax advantage: you avoid tax when the money goes in, and you avoid tax when it comes out (if spent on medical care). That combination makes HSAs more valuable than a regular deduction or tax credit.

You do not have to spend the HSA money in the same year you contribute it. Unlike a Flexible Spending Account (FSA), which has a "use it or lose it" rule, HSA money rolls over year to year. You can let it accumulate and spend it whenever you need medical care, even decades later.

Non-medical withdrawals and the 20% penalty

If you withdraw HSA money for something that is not a may have access to medical expense — groceries, rent, a vacation — you owe income tax on that amount plus a 20% penalty. The penalty applies only to the non-medical withdrawal, not to your entire HSA balance.

For example, if you withdraw $1,000 for a non-medical expense and you are in the 22% tax bracket, you owe $220 in income tax plus $200 in penalty, for a total of $420. That is why HSAs are best used as a savings tool for actual medical costs, not as a general emergency fund.

The 20% penalty does not explore after age 65. At that point, you can withdraw HSA money for any reason without penalty, though non-medical withdrawals are still taxed as regular income. This makes an HSA function like a traditional retirement account after you reach 65.

HSA vs. FSA: the tax difference

Both HSAs and FSAs are pre-tax accounts, but they work differently. An FSA is tied to your employer and has a "use it or lose it" rule — money you do not spend by the end of the year (or a short grace period) is forfeited. An HSA rolls over indefinitely and belongs to you, not your employer.

An FSA also has a lower contribution limit — $3,300 per year in 2024 — while an HSA allows $4,150 for individual coverage. If you have access to both, an HSA is usually the better choice because you keep the money and can invest it for growth.

Both reduce your taxable income in the same way: contributions come out before taxes are calculated. The difference is what happens to money you do not spend.

How to report HSA contributions on your taxes

If your employer deducts HSA contributions from your paycheck, you do not need to do anything on your tax return — the deduction is already reflected in your W-2. The amount withheld will not appear as wages.

If you made contributions yourself (through an individual HSA or catch-up contributions beyond what your employer deducted), you report those on Form 8889 when you file your tax return. You deduct them as an adjustment to income, which lowers your taxable income the same way an employer deduction does.

Keep records of all HSA withdrawals for medical expenses in case the IRS asks. You do not have to submit receipts with your tax return, but you should be able to show what the money was spent on if audited.

Frequently Asked Questions

Can I contribute to an HSA if my employer does not offer one?

Yes. You can open an individual HSA through a bank, credit union, or investment firm as long as you are enrolled in a high-deductible health plan. Contributions you make yourself are deducted on your tax return (Form 8889), giving you the same pre-tax benefit as employer contributions.

What if I change jobs — can I keep my HSA?

Yes. An HSA belongs to you, not your employer. When you leave a job, the account stays open and the money remains yours. You can continue to withdraw it for medical expenses or let it grow. If your new employer offers an HSA, you can contribute to the same account or open a new one.

Do HSA contributions reduce my Social Security and Medicare taxes?

Yes. HSA contributions are deducted before Social Security and Medicare taxes (FICA) are calculated, so you save on those taxes too. This is different from some other pre-tax deductions that only reduce income tax.

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. You can also use HSA money for medical expenses of any dependent, including children and parents, even if they are not covered by your health plan.

What counts as a may have access to medical expense for HSA withdrawals?

may have access to expenses include insurance deductibles, copays, coinsurance, prescription drugs, dental and vision care, mental health treatment, and many other health-related costs. Over-the-counter medications and medical equipment also may have access to. The IRS publishes a full list on its website, and your HSA provider usually has a searchable database of approved expenses.