We use privacy-friendly analytics to learn which calculators help, and nothing loads until you agree. Read our privacy policy.
Insurance
How a health savings account produces three separate tax exemptions, who is eligible, and the receipt method that turns it into a retirement account.
By FreeCalculators Editorial · Published 2026-09-01 · Updated 2026-09-04 · 4 min read · 963 words
A health savings account is the only account in the tax code carrying three separate exemptions: contributions reduce taxable income, growth inside the account is untaxed, and withdrawals for qualified medical expenses are untaxed as well. The entry requirement is enrolment in a plan the IRS recognises as a high deductible health plan, with no other disqualifying coverage in place.
The deduction is worth your marginal rate. At a 22 percent federal marginal rate a 4,000 dollar contribution cuts the tax bill by 880 dollars. Contributions routed through payroll also avoid Social Security and Medicare payroll tax, which adds another 7.65 percent for most employees and is the reason payroll beats a direct deposit made later.
The growth exemption is the one most account holders never use, because they treat the balance as a spending account. Money invested inside an HSA compounds untaxed and nothing expires at year end, unlike a flexible spending account. The account belongs to you rather than the employer, so it moves between jobs intact.
| Feature | HSA | Health FSA |
|---|---|---|
| Contribution treatment | Deductible, and payroll tax free via payroll | Pre-tax through payroll only |
| Unused balance at year end | Rolls over in full, indefinitely | Forfeited beyond a limited carryover or grace period |
| Ownership when you change jobs | Yours, fully portable | Generally forfeited with the plan |
| Investment options | Usually available above a cash threshold | None |
| Health plan requirement | Must be enrolled in a qualifying HDHP | None |
| Treatment from age 65 | Non-medical withdrawals taxed as income, no penalty | Not applicable |
Qualified expenses can be reimbursed from the account at any point after the account was established, with no deadline attached. That allows a different strategy: pay medical costs from ordinary cash, keep the receipts, and leave the HSA invested. Years later those accumulated receipts support a tax-free withdrawal of the same amount, by which time the balance has compounded untaxed.
Two conditions make it work. The expense must have been incurred after the account was opened, and it must not have been reimbursed elsewhere or claimed as an itemised deduction. Keep the records in a form that survives a decade, because the burden of proving the expense sits entirely with you.
Investing rather than spending the balance (2026)
Annual contribution 4,000 for 20 years Assumed return 6% / yr HSA balance after 20 years ~156,000 Same contributions, 15% drag on returns ~140,000 Value of the growth exemption alone ~16,000 Qualified withdrawals taxed at 0% Assumption: level contributions, nothing withdrawn
Withdrawals for anything other than qualified medical expenses are taxed as income and carry a 20 percent penalty before age 65. From 65 the penalty falls away and non-medical withdrawals are simply taxable, which is why the account is often described as a traditional retirement account with a medical exemption bolted on.
State treatment can differ from federal. A small number of states do not follow the federal deduction, so the contribution may be added back on the state return and account earnings may be taxable at state level. Check the state instructions, because the federal exemption does not guarantee the state one.
Comprehensive Guide
Read our comprehensive insurance guide for life, health, auto, and home coverage.
Try the calculatorWas this page helpful?
How this guide was created
This guide was written and reviewed by FreeCalculators Editorial, drawing on published formulas, official government sources, and real calculator outputs from our 4 calculators in this category. Every claim is sourced; every formula is auditable. Read our review policy.