Stack Math

Learn · Retirement

How does an HSA work? The “triple tax break” explained

By Stack Math team · Updated

8 min read6 sources

The short answer

A health savings account (HSA) is a savings account for medical costs that you can open if you have a qualifying high-deductible health plan (HDHP). It has three tax breaks: contributions are tax-deductible or pre-tax, growth is tax-free, and withdrawals for qualified medical expenses are tax-free. For 2026 you can contribute up to $4,400 (self-only) or $8,750 (family); for 2027, $4,500 or $9,000.

Key points

Try it with your numbersRetirement calculatorFree, no sign-up

Most accounts give you one tax break: either on the way in or on the way out. An HSA gives you breaks at both ends and in the middle. If you are eligible, it is worth understanding.

What an HSA is

A health savings account is a personal account for paying medical costs, available to people covered by a qualifying high-deductible health plan. You (and sometimes your employer) put money in, use it for qualified medical expenses, and keep whatever is left from year to year. It is yours, even if you change jobs.

The triple tax break

  1. 1
    Money goes in tax-free

    Contributions through payroll are pre-tax; contributions you make yourself are generally tax-deductible.

  2. 2
    It grows tax-free

    Interest and investment growth inside the account are not taxed.

  3. 3
    It comes out tax-free

    Withdrawals for qualified medical expenses are not taxed.

Compare that with a traditional 401(k), which taxes withdrawals, or a Roth, which taxes contributions. An HSA used for medical costs skips taxes at all three stages.

2026 and 2027 HSA limits

Item20262027
Contribution limit, self-only coverage$4,400$4,500
Contribution limit, family coverage$8,750$9,000
Catch-up, age 55+$1,000$1,000
HDHP minimum deductible (self / family)-$1,750 / $3,500
HDHP out-of-pocket maximum (self / family)-$8,700 / $17,400

Employer contributions count toward the yearly limit. The 2027 figures come from IRS Revenue Procedure 2026-24.

$4,5002027 HSA limit, self-only coverageIRS
$9,0002027 HSA limit, family coverageIRS
3tax breaks: in, growing, and out for medical costsIRS Pub. 969

Who can open an HSA?

Quick answer for your situation

You have a qualifying high-deductible health plan
You can generally contribute, if you meet the other IRS rules.
You have a regular (low-deductible) plan
Generally not eligible to contribute.
You are enrolled in Medicare
You can no longer contribute, but can spend existing HSA money.
You are claimed as someone else’s dependent
You cannot contribute.
Your plan changed under the 2025 law
The IRS issued guidance expanding HSA eligibility in some cases; check whether your plan now qualifies.

Two ways to use an HSA

ApproachHow it worksGood for
Spend-as-you-goContribute and pay medical bills from the HSA during the yearCovering your deductible with pre-tax money
Save and investPay current medical bills from your regular budget, invest the HSA for the long term, keep receiptsBuilding a tax-free fund for future health costs, including in retirement

What research says about saving defaults

HSA myths

Myth vs fact

Myth HSA money disappears at year end.

Fact That is an FSA rule. HSA money rolls over and stays yours.

Myth An HSA is just a checking account for doctor bills.

Fact Many HSAs let you invest the balance for long-term growth.

Myth Anyone can open an HSA.

Fact You need a qualifying high-deductible health plan and must meet IRS rules.

See how tax-advantaged savings add up with the retirement calculator, and compare account types in Roth vs traditional IRA.

The bottom line

If you have a qualifying high-deductible plan, an HSA is one of the most tax-efficient accounts available. Contribute what you can, at least enough to cover your deductible, keep receipts, and consider investing the balance you will not need soon.

Common questions

What happens to my HSA if I change jobs?

It stays yours. An HSA belongs to you, not your employer, and the money carries over year to year.

Can I use my HSA for non-medical expenses?

You can, but withdrawals not used for qualified medical expenses are generally taxable and may carry an extra tax penalty before age 65. IRS Publication 969 has the rules.

HSA vs FSA: what is the difference?

An HSA requires a high-deductible plan, belongs to you and rolls over. A flexible spending account (FSA) is employer-owned and is generally use-it-or-lose-it, with limited carryover.

Sources

  1. IRS Rev. Proc. 2026-24: 2027 HSA limits ($4,500 / $9,000) and HDHP thresholds (checked November 11, 2026)
  2. IRS Rev. Proc. 2025-19: 2026 HSA limits ($4,400 / $8,750) (checked November 11, 2026)
  3. IRS Publication 969: Health Savings Accounts and Other Tax-Favored Health Plans (checked November 11, 2026)
  4. IRS (Dec 2025): Treasury, IRS provide guidance on new tax benefits for HSA participants under the One Big Beautiful Bill (checked November 11, 2026)
  5. Madrian, B. and Shea, D. (2001). The Power of Suggestion: Inertia in 401(k) Participation and Savings Behavior. Quarterly Journal of Economics, 116(4), 1149-1187 (checked November 5, 2026)
  6. Hershfield, H. et al. (2011). Increasing Saving Behavior Through Age-Progressed Renderings of the Future Self. Journal of Marketing Research, 48(SPL), S23-S37 (checked November 5, 2026)

Keep reading

Also worth knowing

General education, not financial, tax or legal advice. Rates and rules change, so check the sources above before you act. Disclaimers