HSA Calculator

Contributions plus tax-free growth can make an HSA a serious long-term account.

How this is calculated Embed on your site

Your numbers

$
$
%
%

At your horizon

Projected balance
,

Assumes contributions spread monthly and a constant return. Tax saved on contributions uses your combined federal and state rate (California and New Jersey tax HSA contributions). The taxable-account comparison applies a 15% long-term capital gains rate to the growth. HSA withdrawals are tax-free only for qualified medical expenses.
About this calculator

How an HSA grows, and what it saves in tax

Updated October 2026 · 2026 HSA limits

A health savings account is the only account with three tax breaks: contributions are tax-deductible, growth is tax-free, and withdrawals for qualified medical costs are tax-free too. If you can afford to pay current medical bills from your regular budget and leave the HSA invested, it becomes a powerful long-term account. With the defaults, a $5,000 balance plus $4,000 a year at a 6% return grows to about $170,565 in 20 years, and the contributions save about $20,800 in income tax at a 26% rate.

2026 HSA contribution limits

  • Self-only coverage: $4,400
  • Family coverage: $8,750
  • Catch-up at 55 or older: an extra $1,000

You must be covered by an HSA-eligible high-deductible health plan to contribute. Employer contributions count toward the same limit.

What maxing out an HSA can build

Contributing the 2026 self-only maximum of $4,400 a year from zero, invested at 6%:

YearsTotal contributedProjected balanceIncome tax saved at 26%
10$44,000$60,089$11,440
20$88,000$169,415$22,880
30$132,000$368,322$34,320

Contributions made through payroll also avoid the 7.65% Social Security and Medicare tax, which adds about $337 a year of savings at the self-only maximum. Contributions you make on your own are deductible for income tax but not for payroll tax.

The "invest and wait" strategy

There is no deadline for reimbursing yourself from an HSA. If you pay a medical bill out of pocket today and keep the receipt, you can withdraw that amount tax-free years later, after the money has grown. Many people use this to treat the HSA as a stealth retirement account:

  • Pay current medical costs from your checking account.
  • Invest the HSA in low-cost funds rather than leaving it in cash.
  • Save digital copies of medical receipts.
  • Reimburse yourself later, or use the money for medical costs in retirement, including Medicare premiums.

Rules to know

  • Before 65, withdrawals for non-medical expenses are taxed and hit with a 20% penalty.
  • After 65, non-medical withdrawals are taxed as income with no penalty, like a traditional IRA. Medical withdrawals stay tax-free.
  • Once you enroll in Medicare you can no longer contribute, but you can keep using the balance.
  • California and New Jersey don't recognize HSAs for state income tax, so residents of those states don't get the state deduction.
  • The money is yours: it stays with you if you change jobs or health plans.

Deciding whether a high-deductible plan is worth it? The HDHP vs PPO calculator compares the two. For other ways to cut your tax bill through payroll, see the paycheck calculator, which handles pre-tax HSA deductions.

Frequently asked questions

What is the HSA contribution limit for 2026?

$4,400 for self-only coverage and $8,750 for family coverage, plus a $1,000 catch-up contribution if you are 55 or older.

Is an HSA better than a 401(k)?

For money that will go to medical costs, yes: it is the only account that is tax-free going in and coming out. Many people capture their 401(k) employer match first, then fund the HSA, then add more to the 401(k).

Can I invest my HSA?

Most HSA providers let you invest the balance in mutual funds once it passes a minimum cash amount. Investing is what lets the account grow over decades.

What happens to my HSA at 65?

You can withdraw for any reason without the 20% penalty. Non-medical withdrawals are taxed as income; medical withdrawals, including Medicare premiums, remain tax-free.

Do HSA funds expire?

No. Unlike a flexible spending account, unused HSA money rolls over every year and stays yours.

Sources: IRS 2026 HSA limits (Rev. Proc. 2025-19); IRS Publication 969. Balance assumes monthly contributions and a steady return. Not tax advice.

Related calculators