HSA Calculator

The HSA is the only account with a triple tax break: deductible going in, tax-free growth, tax-free withdrawals for medical costs. See exactly how much that beats a plain taxable account over time.

Your inputs

$
%
%
HSA value
—
tax-free for medical costs
Taxable account value
—
same money, no tax shelter
Extra wealth from HSA
—

HSA vs taxable account, year by year

HSA (triple tax-free) Taxable brokerage

Year-by-year comparison

YearHSA valueTaxable valueHSA edge

The triple tax advantage

An HSA (Health Savings Account) gets three tax breaks that no other account combines:

  1. Tax-deductible going in. Contributions reduce your taxable income (or skip income and payroll tax entirely via payroll deduction).
  2. Tax-free growth. Interest, dividends, and gains compound untouched, year after year.
  3. Tax-free going out — for qualified medical expenses, at any age. After 65, non-medical withdrawals are taxed like a Traditional IRA (no penalty), so even "misused" HSA money isn't wasted.

The classic strategy: max the HSA, invest it, pay medical bills out of pocket, save the receipts, and reimburse yourself decades later — letting the full balance compound tax-free the whole time.

The math behind this calculator

The HSA compounds the full pre-tax contribution at your expected return. The taxable account starts smaller (you've already paid income tax on the contribution) and grows slower (taxes drag on the return each year):

HSA value = C × [((1 + r)n − 1) / r]
Taxable value = C × (1 − t) × [((1 + r(1 − t))n − 1) / (r(1 − t))]
where C = annual contribution, r = return, t = marginal tax rate, n = years.

Contributions are modeled annually at year-end. The taxable model is simplified — real tax drag depends on turnover and asset location — but it captures the direction and rough size of the advantage.

Worked example

Contribute $4,000/year for 20 years at 7% with a 24% marginal tax rate. The HSA grows to roughly $164,000, all of it available tax-free for medical costs. The same $4,000 in a taxable account — $3,040 after paying 24% tax, growing at an after-tax ~5.3% — reaches only about $104,000. The triple tax break is worth roughly $60,000 here, and the gap widens every year.

Caveats worth knowing

HSA rules: IRS Publication 969 (Health Savings Accounts). Contribution limits and HDHP definitions are updated annually by the IRS.

Educational purposes only — not financial advice. Tax rules change; confirm current HSA eligibility and limits with the IRS or a tax professional.