The formula
Annual tax saving = your contribution × (federal rate + state rate + 7.65% FICA if via payroll)
2026 limit = $4,400 self-only or $8,750 family, + $1,000 if 55 or older
Each month until 65:
balance = balance × (1 + r) + (your contribution + employer contribution − medical spending) ÷ 12
r = (1 + return)^(1/12) − 1
Worked example
- You're 40 with self-only coverage, contribute $3,900 a year through payroll, and your employer adds $500. That's $4,400 in total, exactly the 2026 limit.
- Tax saved this year: 3,900 × (22% federal + 5% state + 7.65% FICA) = $1,351.35.
- You pay $1,500 of medical bills a year from the HSA and invest the rest at 6%.
- By 65 (25 years) the account holds $184,896 from $110,000 of contributions.
- Over those years you'd save about $33,784 in tax on your own contributions.
The triple tax advantage
A health savings account (HSA) is the only US account with three tax breaks: contributions are tax-deductible (or pre-tax through payroll), growth is tax-free, and withdrawals for qualified medical expenses are tax-free at any age. Payroll contributions also avoid Social Security and Medicare tax (7.65%), which even 401(k) contributions don't. That makes an HSA one of the most tax-efficient places to save, as long as you have an eligible high-deductible health plan (HDHP).
2026 limits and eligibility
- Self-only coverage: $4,400 a year. Family coverage: $8,750.
- Catch-up: an extra $1,000 from age 55.
- Employer contributions count toward the limit.
- You must be covered by an HSA-eligible HDHP, generally have no other health coverage and not be enrolled in Medicare.
- From 2026, bronze and catastrophic marketplace plans and certain direct primary care arrangements are also treated as HSA-compatible.
Contributions for a year can be made up to the tax filing deadline the following April.
Spend now or invest for later?
Many people use their HSA as a medical spending account, paying bills as they arise. If you can afford to pay current medical costs from your regular budget, you can instead invest the HSA and let it grow for decades. There's no deadline to reimburse yourself: keep receipts for qualified expenses, and you can withdraw that amount tax-free years later. The calculator lets you set how much you spend from the account each year to compare the two approaches.
HSA as a retirement account
After 65, you can withdraw HSA money for any purpose without penalty. Non-medical withdrawals are taxed as income, just like a traditional IRA, while medical withdrawals stay tax-free. Healthcare is one of the largest costs in retirement, including Medicare premiums, which qualify. So a well-funded HSA can work as a dedicated, tax-free healthcare fund alongside your 401(k) and IRA.
What counts as a qualified expense?
Doctor visits, prescriptions, hospital care, dental and vision care, mental health care, many over-the-counter medicines, menstrual care products, and Medicare premiums after 65 all qualify. General health items, gym memberships and cosmetic procedures usually don't. Before 65, non-qualified withdrawals are taxed as income and charged a 20% penalty, so keep good records.
Watch the fees and investment options
HSA providers vary a lot. Some charge monthly fees, require a minimum cash balance before you can invest, or offer only expensive funds. You can transfer your HSA to a different provider at any time, even while contributing through your employer's plan. A low-cost provider with index funds can make a big difference over 25 years. Also check whether your state taxes HSA contributions. California and New Jersey do, so set the state rate to 0% if you live there.
Is an HDHP right for you?
An HSA only makes sense if the high-deductible plan suits you. HDHPs have lower premiums but higher out-of-pocket costs before coverage kicks in. If you expect large medical bills, compare the total annual cost of each plan, including premiums, the deductible and the employer HSA contribution. Healthy people with an emergency fund to cover the deductible often come out ahead with an HDHP plus HSA. If you're not sure, run the numbers for both plans with your expected doctor visits and prescriptions, and remember that the HSA balance stays yours even if you switch plans later.