Yes, HSA contributions are pre-tax, which means the money you put in reduces your taxable income for the year

A Health Savings Account (HSA) is one of the few places where you can set aside money and have it treated as if you never earned it in the first place — at least for federal income tax purposes. When you contribute to an HSA, that money comes out of your paycheck before income tax is calculated. If you earn $50,000 and contribute $4,000 to an HSA, your employer reports only $46,000 as your taxable income to the IRS.

This is different from putting money into a regular savings account, where you pay income tax on the $50,000 first and then save what's left. The pre-tax treatment is why HSAs are valuable: you get a tax deduction without having to itemize deductions on your tax return, and you get it automatically.

The pre-tax benefit applies only if you have a high-deductible health plan (HDHP) — a specific type of health insurance with a higher deductible and lower premiums than traditional plans. You cannot open or contribute to an HSA without one. The IRS sets the minimum deductible each year; for 2024, it is $1,600 for individual coverage and $3,200 for family coverage, though these amounts change annually.

Key Takeaways

  • HSA contributions reduce your taxable income dollar-for-dollar, so a $3,000 contribution lowers your reported income by $3,000.
  • You must be enrolled in a high-deductible health plan to open or contribute to an HSA; without one, you cannot use this account.
  • The IRS sets annual contribution limits — $4,150 for individual coverage and $8,300 for family coverage in 2024 — and these limits change each year.
  • Money withdrawn from an HSA for may have access to medical expenses is not taxed at all, making it the only account with both pre-tax contributions and tax-free withdrawals.

How the pre-tax deduction actually works on your paycheck

If your employer offers an HSA, you typically enroll during open enrollment and choose how much to contribute per paycheck. Your employer deducts that amount before calculating federal income tax, Social Security tax, and Medicare tax — though HSA contributions are still subject to Social Security and Medicare (FICA) taxes. This is an important distinction: you save on income tax, but not on FICA.

For example, if you contribute $200 per paycheck and earn $3,000 that week, your employer withholds income tax on $2,800 instead of $3,000. However, Social Security and Medicare taxes are still calculated on the full $3,000. This is why HSAs are less valuable for FICA purposes than some other pre-tax benefits like traditional 401(k) contributions, which reduce both income tax and FICA.

At the end of the year, your employer reports your HSA contributions on your W-2 form in Box 12 with code W. This tells the IRS that you made pre-tax HSA contributions, and you do not report them again on your tax return — the deduction is already taken.

The difference between pre-tax contributions and tax-free withdrawals

HSAs have two separate tax advantages that work together. The first is the pre-tax contribution: money going in is not subject to income tax. The second is the tax-free withdrawal: money coming out for may have access to medical expenses is not taxed either. Together, these mean an HSA dollar can avoid taxation entirely.

This is unusual. A traditional 401(k) is pre-tax going in but taxed when you withdraw it in retirement. A Roth IRA is taxed going in but tax-free coming out. An HSA is the only mainstream account that offers both. However, the tax-free withdrawal only applies to may have access to medical expenses — things like copays, deductibles, prescription drugs, dental work, vision care, and medical equipment. If you withdraw money for non-medical reasons, you pay income tax on the withdrawal plus a 20 percent penalty (unless you are over 65, in which case the penalty does not explore but income tax still does).

Because of this dual advantage, HSAs are sometimes called the best retirement savings account available, even though they are technically health accounts. Many people who can afford to pay medical expenses out of pocket choose to leave their HSA contributions invested and growing, withdrawing only in retirement when they can use the money for Medicare premiums, long-term care insurance, or accumulated medical bills.

Annual contribution limits and who can contribute

The IRS sets a maximum amount you can contribute to an HSA each year. For 2024, the limit is $4,150 for self-only coverage and $8,300 for family coverage. These limits increase most years to account for inflation, so you should check the current year's limit before you contribute. If you contribute more than the limit, the excess is taxed and you may owe a penalty.

You can contribute through payroll deductions (the most common method), through direct deposits to your HSA, or by depositing a check yourself. If you contribute through payroll, your employer may match your contribution, though this is less common than with 401(k) plans. Any employer contribution counts toward your annual limit, so if your employer contributes $1,000 and you contribute $2,000, you have used $3,000 of your $4,150 limit.

You can only contribute to an HSA during the months you are enrolled in a high-deductible health plan. If you switch to a traditional health plan mid-year, you can no longer contribute to your HSA for the remainder of that year, though you can still withdraw money for medical expenses. If you lose HSA may be able to access and then regain it later, you can resume contributions in the month you re-enroll.

What happens if you do not use the money in the same year

Unlike a flexible spending account (FSA), which is a different pre-tax health account, HSA money does not disappear at the end of the year. Any balance you do not spend rolls over indefinitely. This is why HSAs can function as retirement accounts: you can accumulate thousands of dollars over decades and use them whenever you need medical care, even in retirement.

The money in your HSA can be invested in mutual funds, stocks, or bonds (depending on your HSA provider), which means it can grow beyond the amount you contribute. If you invest your HSA balance and it earns interest or gains, that growth is also tax-free as long as you eventually use the money for may have access to medical expenses.

Because HSA money rolls over, there is no tax penalty for not spending it in the year you contribute. This is a major advantage over FSAs, where unspent money is forfeited. However, you still cannot deduct the contribution twice — once you have claimed the pre-tax deduction, that money is yours to use whenever you choose, but you cannot get another tax benefit from it.

How HSAs interact with other tax situations

If you are self-employed, you can open an HSA if you have a high-deductible health plan, but you cannot deduct your contribution through payroll because you do not have an employer. Instead, you deduct HSA contributions on your tax return as an adjustment to income (on Form 1040, line 13). This gives you the same pre-tax benefit as an employee, but you have to claim it yourself rather than having your employer handle it.

If you are married and both spouses have HSAs, each person has a separate account and a separate contribution limit. You cannot combine limits or transfer money between spouses' accounts. However, spouses can be named as beneficiaries of each other's HSAs, which means if one spouse dies, the surviving spouse can continue using the account without tax consequences.

HSA contributions do not affect your ability to claim other health-related tax benefits like the premium tax credit (which helps pay for health insurance) or the dependent care credit. However, you cannot use HSA money to pay for health insurance premiums, with narrow exceptions for COBRA continuation coverage, long-term care insurance, and Medicare premiums after age 65.

Frequently Asked Questions

Can I contribute to an HSA if I have a spouse on my health plan but they do not have their own HSA?

No. If you have family coverage, both you and your spouse must be enrolled in the same high-deductible health plan to both contribute. If only one of you contributes, you can only use family-level contribution limits, not individual limits. If your spouse is not enrolled in the HDHP, they cannot have an HSA at all.

Do I have to contribute the full annual limit?

No. You can contribute any amount up to the limit. Many people contribute smaller amounts throughout the year based on what they can afford. You can also change your contribution amount during open enrollment or if you have a may have access to life event like a change in health coverage.

What if I leave my job — can I keep my HSA?

Yes. Your HSA belongs to you, not your employer. When you leave your job, you can roll your HSA balance to a new HSA at a different bank or provider, or you can keep it where it is. You can continue to withdraw money for medical expenses, but you cannot make new contributions unless you enroll in a new high-deductible health plan with a new employer or through the individual market.

Is the HSA pre-tax benefit the same as a tax deduction?

It functions the same way — it reduces your taxable income — but it is technically an adjustment to income rather than a deduction. This means you get the benefit whether you itemize deductions or take the standard deduction. You do not have to choose between the HSA deduction and the standard deduction; you get both.

Can I use HSA money to pay for my spouse's medical expenses?

Yes. HSA money can be used for may have access to medical expenses of you, your spouse, and any dependent you claim on your tax return, regardless of whose name is on the HSA account. The account owner does not have to be the person receiving the medical care.