Verified Tool

HSA Calculator

Calculate health savings account growth and triple tax benefits. Project HSA balance, tax savings, and investment returns for retirement healthcare.

By Marko Šinko
Updated 2026-07-01
2 min read

HSA Calculator

Enter your details below to calculate

Often 65, when it doubles as a retirement account

Invested HSA funds; cash-only HSAs earn far less

Federal + state marginal bracket

Projected HSA Balance at Age 65

$922,450

After 30 years — 71% of it is tax-free investment growth

Total Contributions

$262,500

Tax-Free Growth

$654,950

Lifetime Tax Savings

$181,324

Tax Saved This Year

$2,769

Where the $181,324 in Tax Savings Comes From

1. Tax-Deductible In

$83,081

Saved on $262,500 of contributions (income tax + 7.65% FICA)

2. Tax-Free Growth

$98,243

Capital-gains tax avoided on $654,950 of growth

3. Tax-Free Out

$0

Tax on qualified medical withdrawals — vs ordinary income on a 401(k)/IRA

Contributions vs Tax-Free Growth Over Time

Year-by-Year Projection

AgeContributionPrincipalGrowthBalance
36$8,750$13,750$963$14,713
41$8,750$57,500$16,976$74,476
46$8,750$101,250$57,048$158,298
51$8,750$145,000$130,863$275,863
56$8,750$188,750$252,003$440,753
61$8,750$232,500$439,520$672,020
65$8,750$267,500$654,950$922,450

Estimates use 2026 IRS limits and hold them flat; actual limits rise with inflation. Not tax advice.

How to Use This Calculator

Follow these simple steps

1

Set your age and timeline

Enter your current age and the age you'll start spending the HSA — 65 is common, since that's when it doubles as a retirement account.

2

Pick coverage and balance

Choose self-only or family HDHP coverage and enter your current HSA balance. Contributions are automatically capped at the matching 2026 IRS limit.

3

Enter your contribution

Type an annual amount or click 'Max out' to load the $4,400 self / $8,750 family limit, plus the $1,000 catch-up if you're 55 or older.

4

Add return and tax rate

Set your expected investment return and combined federal-plus-state marginal tax rate so the tool can price your annual deduction.

5

Toggle payroll and gains

Open advanced options to add the 7.65% FICA saving for payroll contributions and the capital-gains rate used to value tax-free growth.

6

Review and export

Read your projected balance, the three-part tax-savings breakdown, and the growth chart — then export the year-by-year projection as CSV.

Key Features

2026 IRS limits built in ($4,400 self / $8,750 family + $1,000 catch-up)
Prices all three tax breaks: deduction, tax-free growth, tax-free withdrawals
Year-by-year growth chart splitting contributions from tax-free gains
Payroll FICA-savings toggle and combined marginal tax-rate input
One-click 'Max out' plus young-saver, mid-career, and catch-up presets
Exportable CSV projection — free, no signup
HSA calculator showing health savings account growth and triple tax savings over time
Written by Marko ŠinkoJuly 1, 2026

How to Turn a Health Savings Account Into Your Best Retirement Account

An HSA calculator exposes a fact most people miss: the account you use to pay for dentist visits is quietly the most tax-favored account in the entire U.S. tax code. Max out the 2026 family limit of $8,750 a year from age 35 to 65, earn 7%, and you land near $920,000— and if you spend it on qualified medical care, you never pay a cent of tax on any of it. A 401(k) can't say that. Neither can a Roth IRA.

The reason is the "triple tax advantage." Money goes in pre-tax, grows tax-free, and comes out tax-free for medical expenses. Every other account gives you two of those three at most. The calculator above turns that abstract benefit into a dollar figure for your own numbers — this guide explains what those numbers mean and how to squeeze the most out of them.

Triple tax-free

Deductible going in, no tax on growth, no tax coming out for medical care.

It compounds

Unused balances roll over forever and can be invested — this is not "use it or lose it."

Reimburse later

Pay today out of pocket, save the receipt, and pull the cash out tax-free decades later.

The Triple Tax Advantage, Priced in Real Dollars

Say you're in the 24% federal bracket and contribute $8,750 through payroll this year. Because payroll HSA contributions dodge income tax andthe 7.65% FICA tax, you save roughly $8,750 × 31.65% = $2,769up front. That's benefit one.

Benefit two is the growth. Over 30 years at 7%, contributing the family max builds around $655,000 of pure investment gains on top of your $267,500 of principal. In a taxable brokerage you'd hand roughly 15% of those gains to the IRS at a long-term capital gains rate — nearly $98,000 gone. Inside the HSA, that tax bill is zero.

Benefit three is the withdrawal. Pull that money out for qualified medical costs — and a 65-year-old couple retiring today will spend an estimated $315,000+ on healthcare over retirement — and the tax rate is 0%. Compare that to a traditional 401(k), where the same withdrawal is taxed as ordinary income. If you want to see how that ordinary-income drag plays out on a workplace plan, run the numbers in our 401(k) calculator.

How the Projection Actually Works

The calculator runs a year-by-year loop. Each year it adds your contribution (capped at the IRS limit for your coverage type and age), then grows the whole balance by your expected return:

Balance = (Prior balance + Contribution) × (1 + return)

Worked through: start with $5,000, add an $8,750 contribution, grow by 7% → ($5,000 + $8,750) × 1.07 = $14,713 after year one. Repeat that 30 times, bumping the limit by the $1,000 catch-up once you hit 55, and the tail of the curve gets steep — in the final decade, annual growth alone outpaces what you contribute. That crossover is exactly why the chart splits your balance into blue "contributions" and green "tax-free growth." The green wedge is the part the IRS never touches. To see the raw compounding math behind that curve, our compound interest calculator breaks it down period by period.

HSA vs 401(k) vs Roth IRA vs Taxable: Which Wins for Retirement Healthcare?

For a dollar you expect to spend on medical care in retirement, the HSA beats every alternative because it's the only one taxed at zero on all three legs. Here's how $8,750 invested for 30 years at 7% (growing to ~$66,600) is treated when you withdraw it for a qualified medical bill:

AccountTax going inTax on growthTax on medical withdrawal
HSANone (pre-tax + FICA-free)NoneNone
Traditional 401(k)None (pre-tax)NoneOrdinary income (~22–24%)
Roth IRATaxed (after-tax)NoneNone
Taxable brokerageTaxedCapital gains (~15%)None on basis, gains taxed

The HSA is the only row that's green all the way across. That's why financial planners often tell high earners to fund the HSA before maxing a Roth IRA— it's a Roth with an extra tax break bolted on the front.

The Receipt Strategy Nobody Explains at Open Enrollment

Here's the move that separates HSA power users from everyone else. There is no deadline to reimburse yourself. Pay a $2,000 medical bill out of pocket in 2026, save the itemized receipt, and leave the $2,000 invested in your HSA. In 2046, after that money has grown to roughly $7,700 at 7%, you can withdraw the full amount tax-free by pointing to the old receipt. You effectively converted a $2,000 expense into $7,700 of tax-free cash — the $5,700 of growth compounded entirely tax-sheltered.

The catch is bookkeeping. The expense must have been incurred after you opened the HSA, and you need proof. Scan every explanation of benefits and pharmacy receipt into a folder. Treat it like a tax document, because that's exactly what it becomes if the IRS ever asks.

2026 Contribution Limits and HDHP Rules

You can only fund an HSA if you're covered by a qualifying high-deductible health plan (HDHP) and have no other disqualifying coverage. The IRS resets these thresholds annually for inflation; here are the 2026 figures from IRS Publication 969:

2026 RuleSelf-onlyFamily
HSA contribution limit$4,400$8,750
Catch-up (age 55+)+$1,000+$1,000
HDHP minimum deductible$1,700$3,400
HDHP out-of-pocket max$8,500$17,000

One quirk worth knowing: the catch-up is per-person, not per-account. A married couple both 55+ can stash an extra $1,000 each, but only if each spouse owns their own HSA — you can't double up in one account.

Common Mistakes That Quietly Cost Thousands

Leaving it all in cash. Most HSAs default to a near-0% cash sweep. Sitting on $50,000 in cash instead of investing it at 7% costs about $3,500 in growth every single year.

Contributing after Medicare starts. Once you enroll in Medicare you can no longer contribute. Do it anyway and you owe a 6% excise tax on the excess every year until you fix it.

Non-medical withdrawals before 65. Pull money out early for a non-qualified expense and you pay income tax plus a 20% penalty. On a $5,000 withdrawal in the 24% bracket, that's $2,200 gone.

Tossing receipts. No receipt, no tax-free reimbursement later. A shoebox of lost EOBs can mean thousands in withdrawals you can never justify.

Spend Now or Invest and Reimburse Later?

The single biggest decision is whether to use HSA dollars for current medical bills or pay out of pocket and let the account grow. A simple framework:

  • Pay out of pocket (and invest the HSA) if you have the cash flow to cover today's bills and a 15+ year runway. The tax-free compounding is worth far more than the convenience.
  • Spend the HSA now if a medical bill would otherwise go on a credit card at 22% interest. No investment return beats avoiding that.
  • Split the difference if money is tight: reimburse yourself for the large bills, let smaller ones ride as future tax-free withdrawals backed by saved receipts.

Because the growth on invested contributions is what drives the whole strategy, it helps to model your broader portfolio alongside it with an investment calculator so the HSA slots into the rest of your plan.

When an HSA Is the Wrong Move

The triple tax advantage only pays off if the HDHP fits your health and budget. Skip or minimize the HSA when:

  • You have chronic conditions or a pregnancy on the horizon — a low-deductible plan may save more than the HSA tax break returns.
  • You can't afford to pay the higher deductible out of pocket, so you'd be forced to raid the account for every bill.
  • You're within a year of Medicare — you must stop contributing up to 6 months before enrolling to avoid penalties.

Getting the Most From the Calculator

  • Set your real return, not a hopeful one. An invested HSA in a diversified fund has historically returned 6–8%; a cash-only HSA earns closer to 1%. Toggle between the two to see the six-figure difference over 30 years.
  • Enter your combined marginal rate. Add your federal bracket and state income tax. In a no-income-tax state you'll enter your federal rate alone; in California, add up to 12.3% on top.
  • Turn off FICA savings if you contribute outside payroll. Direct deposits still get the income-tax deduction, but not the 7.65% FICA break — that toggle changes your first-year savings by hundreds.
  • Use the "Max out" button to instantly load the current IRS limit for your coverage and age, including the $1,000 catch-up once you cross 55.

This article is educational and not tax advice. Contribution limits and HDHP thresholds are indexed annually — confirm current figures with the IRS or a tax professional before acting.

About the Author

Marko Šinko

Financial Planning Expert with 15+ years in finance and investment management

Connect with Marko

Frequently Asked Questions

Is an HSA better than a 401(k) for retirement?
For money you'll spend on healthcare, yes — an HSA is taxed at 0% on contributions, growth, and withdrawals, while a 401(k) withdrawal is taxed as ordinary income, often 22–24%. Many planners fund the HSA after capturing the 401(k) employer match but before maxing other accounts. After age 65 you can also use HSA funds for anything and pay only income tax, the same treatment as a traditional 401(k).
How much will an HSA be worth in 30 years?
Maxing the 2026 family limit of $8,750 a year for 30 years at a 7% return grows to roughly $920,000, of which about $655,000 is tax-free investment growth. Self-only contributions of $4,400 a year reach around $460,000. Leaving the balance in cash instead of investing it cuts the total to under $300,000.
How do I calculate my HSA tax savings?
Multiply your contribution by your combined marginal tax rate, then add 7.65% if you contribute through payroll. In the 24% bracket, an $8,750 payroll contribution saves $8,750 × 31.65% = about $2,769 this year. On top of that, you avoid capital-gains tax on decades of tax-free growth.
Do HSA funds expire at the end of the year?
No. Unlike a flexible spending account, HSA balances roll over indefinitely and stay with you when you change jobs or health plans. That permanent rollover is exactly what lets the account compound into a six-figure retirement asset.
What's the difference between the 2026 self-only and family HSA limits?
Self-only HDHP coverage allows $4,400 in 2026, while family coverage allows $8,750. Anyone 55 or older can add a $1,000 catch-up contribution, but each spouse can only claim their own catch-up if each owns a separate HSA.
Why is my HSA barely growing?
Most HSAs park contributions in a near-0% cash account by default and only invest the portion above a threshold, often $1,000–$2,000. If your balance isn't growing, log in and move the cash into the investment options — the gap between 1% cash and 7% invested is roughly $3,500 a year on a $50,000 balance.
Can I use HSA money for non-medical expenses?
Before age 65, non-qualified withdrawals trigger income tax plus a 20% penalty — about $2,200 on a $5,000 withdrawal in the 24% bracket. After 65 the penalty disappears and you simply pay ordinary income tax, exactly like a traditional IRA, so the HSA becomes a flexible retirement account.

Share this HSA Calculator