Ranked by math. No institution pays to appear or rank higher · commissions never change the order · rates verified daily · how we’re funded →
Ranked by math. No institution pays to appear or rank higher · commissions never change the order · rates verified daily · how we’re funded →
YourBestSavings.com · Independent

HSA Investment Growth Calculator

How much will your HSA be worth if you invest it? See 10–40 year projections and the tax advantage vs. a taxable account. Adjust contribution level, return rate, and years to model your specific situation.

HSA contribution limits as of · No data sent to any server
Independent·No affiliate revenue·No sponsored rankings·Math-based scores·Rates verified daily
HSA Investment Growth Calculator
$0 = invest-only strategy (pay expenses out of pocket)
Balance after 20 years
Total contributed
Investment growth
Total withdrawn for expenses
Tax-free advantage vs. taxable

HSA investment projections at a glance

At the 2026 individual contribution limit of $4,400 per year invested at 7% annual return with no withdrawals, an HSA grows to approximately $180,000 after 20 years and $430,000 after 30 years — entirely tax-free when used for qualified medical expenses. Here are the milestones at common contribution and return levels:

ContributionReturn10 years20 years30 years
$4,400/yr (individual)7%$61,000$180,000$430,000
$8,750/yr (family)7%$121,000$358,000$856,000
$4,400/yr (individual)5%$55,000$145,000$291,000
$4,400/yr (individual)10%$70,000$252,000$724,000

Starting balance $0. No withdrawals. Projections are estimates assuming constant returns — actual market returns vary year to year.

The triple tax advantage of an HSA

An HSA is the only account in the U.S. tax code that offers three separate tax benefits on the same money:

  • Contributions are tax-deductible — reduce your taxable income by the full amount contributed each year (or pre-tax via payroll deduction).
  • Growth is tax-free — dividends, interest, and capital gains inside an HSA are never taxed, regardless of how long they compound.
  • Withdrawals are tax-free — for any qualified medical expense at any age. No other account type offers all three.

A traditional 401(k) gives you one tax benefit (deduction now, taxed later). A Roth IRA gives you two (no deduction, but tax-free growth and withdrawals). The HSA gives you all three — making it the most tax-efficient savings vehicle available if you qualify.

The invest-everything strategy: pay expenses out of pocket

The most powerful HSA strategy is to contribute the maximum every year, invest it, pay current medical expenses out of pocket, and save every receipt. There is no deadline for HSA reimbursements — you can reimburse yourself years or even decades later, pulling tax-free cash from a fully invested account.

Example: you pay $2,000 in medical expenses in 2026. You keep the receipt and let that $2,000 stay invested. In 2036, that $2,000 has grown to approximately $3,935 at 7% annual return. You then withdraw $2,000 tax-free to reimburse the 2026 expense, and the remaining $1,935 stays invested. The longer you wait, the larger the effective tax-free return on your out-of-pocket medical spending.

Set the “Annual medical expenses paid from HSA” input to $0 in the calculator above to model this strategy. Set it to your actual expected annual medical spending to model drawing down the account for current expenses.

What happens to HSA funds at age 65?

At 65, HSA rules change significantly. You can withdraw funds for any purpose — not just medical expenses. Non-medical withdrawals after 65 are taxed as ordinary income (like a traditional IRA), but the 20% penalty for non-qualified withdrawals before 65 no longer applies. For medical expenses, withdrawals remain completely tax-free at any age.

This means a large HSA balance at 65 functions as a flexible retirement account: tax-free for healthcare (which is typically the largest expense in retirement) and taxed like a traditional IRA for everything else. The optimal retirement strategy for most people is to preserve the HSA for medical expenses and draw down other accounts first.

2026 HSA contribution limits

To contribute to an HSA, you must be enrolled in a High-Deductible Health Plan (HDHP) and not enrolled in Medicare. The 2026 limits are $4,400 for individual coverage, $8,750 for family coverage. People 55 or older can contribute an additional $1,000 as a catch-up contribution ($5,400 individual, $9,750 family). Limits are set by the IRS annually and typically increase with inflation.

See the best HSA accounts for the top-ranked HSA providers by fees, investment access, and interest rate on the cash portion of your balance.

How much can an HSA grow over 20 years?

At the 2026 individual maximum of $4,400 per year invested at 7% annual return with no withdrawals, an HSA grows to approximately $180,000 in 20 years — entirely tax-free when used for medical expenses. The same contributions in a taxable account at 22% federal tax on gains would be worth roughly $20,000–$30,000 less. Adjust the calculator above for your specific contribution level and expected return.

Should I pay medical expenses from my HSA or out of pocket?

If you can afford it, paying medical expenses out of pocket and letting your HSA grow invested is the optimal long-term strategy. There is no deadline to reimburse yourself from an HSA — you can pay expenses today and withdraw the reimbursement years later, tax-free, while the funds compound in the meantime. Keep your receipts indefinitely. The tax-free growth on that deferred reimbursement is effectively a free return on your medical spending.

What happens to HSA funds at age 65?

At 65, you can withdraw HSA funds for any purpose — not just medical expenses. Non-medical withdrawals are taxed as ordinary income (like a traditional IRA), but the 20% early withdrawal penalty no longer applies. For medical expenses, withdrawals remain completely tax-free at any age. A large HSA at 65 is effectively a flexible retirement account that is tax-free for healthcare and pre-tax for everything else.

Can I invest my HSA cash balance?

Most HSA providers allow investment once your cash balance exceeds a threshold (typically $500–$2,000). The best HSA providers for investors have low investment thresholds, access to low-cost index funds, and no additional investment fees. Providers vary significantly — some charge $3/month just to invest, others have no investment fee. See the best HSA accounts for current provider rankings by investment access and fees.

What is the tax advantage versus a regular brokerage account?

In a taxable brokerage account, dividends and realized capital gains are taxed each year. In an HSA, growth is completely untaxed. At a 22% federal rate on a $4,400/year contribution at 7% return over 20 years, the HSA produces roughly $20,000–$30,000 more than the equivalent taxable account. The longer the time horizon, the larger the advantage — compounding on untaxed gains accelerates significantly over 30+ years. The calculator above shows the exact advantage for your inputs.

Scoring, methodology & data by ByTheMath · License the data
Ranked by math. YourBestSavings.com is published by ByTheMath. No institution pays to appear or rank higher, and commissions never change the order. We may earn a commission when you open an account through our links, at no cost to you. Rates change frequently — always confirm current APY on the institution’s site before opening an account. All accounts FDIC insured up to $250,000 per depositor. Ranked by math. Not by margin.
YourBestSavings.com · Part of the YourBest network · © 2026 ByTheMath
Ranked by math. Not by margin.
ByTheMath network
Ranked by math. YourBestSavings.com is published by ByTheMath. No institution pays to appear or rank higher, and commissions never change the order. We may earn a commission when you open an account through our links, at no cost to you. Rates change frequently — always confirm current APY on the institution’s site before opening an account. All accounts FDIC insured up to $250,000 per depositor. Ranked by math. Not by margin.
YourBestSavings.com · Part of the ByTheMath network · © 2026 ByTheMath
Ranked by math. Not by margin.