upload Share

HSA Calculator

The HSA is the only account in the US tax code with a triple tax advantage — contributions are pre-tax, growth is tax-free, and withdrawals for medical expenses are tax-free. Calculate your projected HSA balance at retirement and the true value of investing versus spending your contributions.

Used strategically, an HSA is more tax-efficient than a 401(k) or Roth IRA for healthcare costs in retirement — one of the most powerful accounts available.

savings Contributions
2024 limit: $4,150 (self) | +$1,000 catch-up if 55+
Many employers seed HSAs
schedule Time Horizon
S&P 500 avg ~7% real
medical_services Medical Expense Strategy
Best strategy: Pay all current medical expenses out-of-pocket. Save receipts — you can reimburse yourself years later with no deadline. Let the HSA compound tax-free for decades.
receipt Tax Assumptions
Average retiree spends ~$5–$8K/yr
Note: HSA contribution limits adjust annually for inflation. You must be enrolled in a High-Deductible Health Plan (HDHP) to contribute to an HSA. California and New Jersey tax HSA earnings at the state level. After age 65, HSA funds can be withdrawn for any purpose (not just medical) subject to ordinary income tax — making it function like a traditional IRA.

HSA Calculator

0 years  |  $0/yr contribution

HSA Balance at Retirement: $0

Balance at Retirement
$0
Tax-free for medical
Years Funded at Retirement
0 yrs
At $0/yr
Total Contributed
$0
Investment Gains
$0
Tax Savings
$0
vs. Taxable Account
+$0
  • HSA (tax-free)
  • Taxable Account
© FinanceCalcs.net

Tax Advantage Breakdown

HSA vs. Other Accounts

AccountContributionGrowthWithdrawal (medical)

Year-by-Year Growth

AgeAnnual ContributionInvestment GainMedical Paid (OOP)HSA BalanceTaxable Equiv.

"The HSA is the holy grail of retirement accounts — triple tax-advantaged and unmatched by any other savings vehicle."

— Personal Finance Planning Principle

The triple tax advantage

No other account in the US tax code offers all three of these benefits simultaneously:

1. Pre-tax contributions — HSA contributions reduce your taxable income in the year they’re made, similar to a traditional 401(k). At a 22% marginal rate plus FICA, contributing $4,150 saves roughly $1,200 in taxes.

2. Tax-free growth — Investments in your HSA grow without annual taxation on dividends, interest, or capital gains. This is more valuable than a taxable brokerage account over a multi-decade horizon.

3. Tax-free withdrawals for medical expenses — Qualified medical withdrawals are completely tax-free, unlike a 401(k) which taxes withdrawals as income. After age 65, non-medical withdrawals are taxed as ordinary income (like a traditional IRA), making the HSA an effective dual-purpose retirement account.

The optimal strategy: pay all current qualified medical expenses out-of-pocket if you can afford to, preserve HSA funds for investment, and save your receipts. There’s no deadline to reimburse yourself — you can withdraw for a medical expense you paid in 2024 in 2040, tax-free, as long as you have the receipt.

lightbulb 2024 HSA Limits & Key Rules

ItemSelf OnlyFamily
Contribution limit$4,150$8,300
Catch-up (age 55+)+$1,000+$1,000/spouse
HDHP min deductible$1,600$3,200
HDHP max OOP$8,050$16,100
Penalty for non-medical (under 65)20% + income tax
Non-medical after 65Income tax only (like IRA)

Note: California and New Jersey do not recognize the HSA tax exemption at the state level — earnings are taxable in those states.

HSA FAQs

Can I invest my HSA balance?

Yes — most HSA providers allow you to invest your balance in mutual funds, ETFs, or other investments once your balance exceeds a threshold (typically $1,000–$2,000). This is the key to unlocking the HSA’s full power. Many people leave their HSA in cash earning near-zero interest, missing the compounding benefit. Move investments to low-cost index funds at providers like Fidelity or Lively that offer no minimum investment threshold.

What counts as a qualified medical expense?

A broad range of expenses: doctor visits, prescriptions, dental, vision, mental health, chiropractic, medical equipment, Medicare premiums (after 65), long-term care premiums, COBRA premiums, and more. Health insurance premiums generally don’t qualify (except COBRA, Medicare, or coverage while receiving unemployment). IRS Publication 502 has the full list.

What happens to my HSA if I lose HDHP coverage?

You can no longer contribute once you’re no longer enrolled in a qualifying HDHP, but your existing balance remains and can still be used for qualified medical expenses tax-free. The account doesn’t disappear — you just can’t add new money until you’re on an HDHP again.

Is the HSA better than the FSA?

For long-term savings, yes — HSA funds roll over indefinitely, can be invested, and are yours permanently. FSA funds typically expire annually (with a small rollover or grace period). HSAs require HDHP coverage; FSAs do not. If you can manage higher out-of-pocket costs and want long-term tax advantages, the HSA is superior.

Terminology

HDHP (High-Deductible Health Plan)

A health insurance plan with a higher deductible and lower premium than traditional plans. Required to contribute to an HSA. 2024 minimum deductible: $1,600 (self) / $3,200 (family).

Triple Tax Advantage

Pre-tax contributions + tax-free growth + tax-free qualified withdrawals. No other account type offers all three. The Roth IRA offers two (after-tax contributions + tax-free growth/withdrawals), and the traditional IRA/401(k) offers two (pre-tax contributions + tax-deferred growth).

Qualified Medical Expense

Medical costs eligible for tax-free HSA withdrawal as defined by IRS Publication 502. Includes most healthcare expenses for you, your spouse, and dependents. Notably excludes most health insurance premiums (with exceptions for COBRA and Medicare).

Receipt Preservation Strategy

Paying medical expenses out-of-pocket and saving receipts allows you to reimburse yourself from the HSA years or decades later with no tax or penalty. This turns current medical expenses into a future tax-free withdrawal, maximizing the HSA’s compounding benefit.

Catch-Up Contribution

An additional $1,000/year contribution allowed for HSA holders age 55 and older. Both spouses can contribute the catch-up if both are 55+ and each has their own HSA.

Disclaimer: All calculators on this site are provided for informational and educational purposes only. Results are estimates based on the inputs you provide and mathematical formulas — they do not account for taxes, fees, inflation, risk, or other real-world factors that may affect financial outcomes. Past performance does not guarantee future results. Nothing on this site constitutes financial, investment, legal, or tax advice. Always consult a qualified professional before making financial decisions.

About FinanceCalcs.net — FinanceCalcs.net is a free financial calculator directory built and maintained by Ted Grajeda. The site exists to give everyone access to fast, accurate financial math — no subscriptions, no paywalls, no signup required. Every calculator runs entirely in your browser using standard financial formulas.