HSA Calculator: Triple-Tax Benefit & Shoebox Strategy
Most HSA calculators show one number. This one separates the three tax layers — pre-tax contribution, tax-free growth, and tax-free medical withdrawals — then models the shoebox strategy, the FICA bonus a 401(k) can't match, and the age-65 crossover where the HSA quietly becomes a better Traditional IRA. Free, no signup.
Last reviewed: June 2026 · Uses 2026 IRS limits ($4,400 self-only, $8,750 family, $1,000 catch-up at 55+)
Your HSA Plan
27-year wealth race — same contribution, four vehicles
Every vehicle gets the same $9K/yr. The HSA line assumes medical withdrawals (tax-free); after 65 it taxes like a Traditional IRA for non-medical spending.
Lifetime tax savings, by layer
HSA Strategy Report Card
Strong HSA plan — shoebox discipline plus near-maxing.
Why the HSA Is the Only Triple-Tax Account in the Code
Every other tax-advantaged account makes you pick a side. A Traditional 401(k) or IRA gives you the deduction now but taxes the withdrawal. A Roth does the reverse — no deduction, tax-free withdrawal. A taxable brokerage gives you neither. The Health Savings Account is the lone exception: the contribution goes in pre-tax, the balance grows with no tax on dividends or capital gains, and qualified medical withdrawals come out tax-free. Three bites of the apple from one account.
That is why the tool above splits your savings into three separate pillars instead of collapsing them into a single future-value figure. The contribution pillar is the income tax (and, for payroll deductions, the FICA tax) you avoid the year you contribute. The growth pillar is the dividend and capital-gains tax a taxable account would have paid year after year. The withdrawal pillar is the ordinary-income tax a Traditional IRA would charge on the same medical dollars. Seeing them apart is the point — it shows where the value actually comes from, which is impossible to tell from a lump-sum balance.
The Three Tax Layers — Contribution, Growth, Withdrawal
Layer one, the contribution. A dollar you put in is deducted from taxable income. If you contribute through payroll under a Section 125 cafeteria plan, it also escapes the 7.65% FICA tax — something no 401(k) contribution does. At a 24% federal bracket plus FICA, that is roughly 31.65 cents saved on every dollar before you even consider state tax.
Layer two, the growth. An HSA invested in index funds compounds with zero drag. A taxable account loses a slice of every dividend and a slice of every realized gain to tax along the way; over thirty years that drag quietly compounds into a large gap. This is the layer most people forget, because it never appears as a line on a tax return — it shows up only as a bigger balance. Treating the HSA as an investment account, not a cash savings account, is what turns the “hsa investment account” into the engine of the whole strategy.
Layer three, the withdrawal. Pull money out for a qualified medical expense and it is tax-free, full stop, at any age. A Traditional IRA would tax that same withdrawal as ordinary income. The tool values this layer at a 22% assumed retirement rate against the portion of your balance that covers medical costs — a conservative stand-in for the bracket most retirees actually withdraw at.
HSA vs 401(k) — Why the HSA Usually Wins
The 4-way race in the tool funds four accounts with the same annual dollar amount and the same return assumption, then compares the after-tax balance each produces. For money spent on healthcare — which every retiree spends — the HSA wins outright, because it is the only one of the four with a tax-free withdrawal. A Roth 401(k) had to be funded with after-tax dollars; a Traditional 401(k) gets taxed on the way out; a taxable account gets taxed the whole way through. The HSA skips all three.
The hidden edge is FICA. A 401(k) contribution still pays the 6.2% Social Security and 1.45% Medicare tax; a payroll HSA contribution does not. On a maxed $8,750 family contribution that is about $669 a year staying in your pocket instead of going to FICA, and reinvested at a market return it compounds into a meaningful head start the 401(k) can never close. For non-medical spending after 65, the HSA and a Traditional 401(k) are taxed identically — but the HSA still carries that FICA bonus and has no required minimum distributions, so even in its worst case it ties and in every other case it wins.
The Shoebox Strategy — Turning a Medical Account Into a Retirement Account
Here is the trick that turns an ordinary HSA into a stealth retirement account: when you have a medical bill, pay it with regular taxed money and tuck the receipt into a shoebox (or a folder, or a spreadsheet). The IRS puts no deadline on reimbursing a qualified expense. A receipt from age 35 can be reimbursed tax-free at age 70. In the meantime, the dollars you would have spent stay invested and compound untouched.
The Shoebox tab overlays the untouched balance against a pay-as-you-go balance that drains for every bill as it arrives. The gap between the two curves is the cost of spending the account early — money the growth layer never got to compound. The discipline it demands is real (you have to front the medical costs and keep meticulous records), which is why the report card grades shoebox discipline as its own dimension. If cash flow makes full shoebox impractical, the hybrid mode pays large or catastrophic bills from the HSA and shoeboxes the small recurring stuff, capturing most of the benefit with less strain.
2026 Contribution Limits and the 55+ Catch-Up
For 2026 the IRS set the limits at $4,400 for self-only coverage and $8,750 for family coverage, both up from the 2025 figures of $4,300 and $8,550. On top of either tier, anyone 55 or older can add a $1,000 catch-up. That catch-up amount is written into the statute rather than indexed to inflation, so it has stayed at $1,000 for years and will until Congress changes it.
Two rules trip people up. First, the catch-up is per-person, not per-account: a married couple who are both 55+ can contribute two $1,000 catch-ups, but only if each spouse has their own HSA — you cannot stack both catch-ups in one account. Second, Medicare enrollment ends HSA eligibility, and Medicare typically starts at 65. That makes the years from 55 to 65 the catch-up window, and it is why the tool stops new contributions at 65 in its projection even though the existing balance keeps growing and withdrawing tax-free for medical costs after that.
The FICA Bonus a 401(k) Can't Match
FICA is the payroll tax that funds Social Security and Medicare — 6.2% and 1.45%, 7.65% combined on the employee side. A 401(k) contribution is exempt from federal and state income tax but not from FICA; the tax comes out before your 401(k) deferral does. A payroll-deducted HSA contribution made through a Section 125 cafeteria plan is exempt from FICA too. That 7.65% gap is pure bonus, and it exists on no other retirement account.
The FICA Bonus tab isolates this number. On a maxed $8,750 family contribution it is about $669 a year; on a self-only $4,400 contribution, about $337. The one group that does not get it is the self-employed: they pay the full self-employment tax regardless, so their HSA contribution saves income tax but not FICA. Even then the deduction lands above the line on Schedule 1, reducing AGI directly, which is why the HSA still tops the list of retirement options for a freelancer with no employer plan.
What Happens at Age 65 — the Stealth IRA Conversion
Before 65, taking money out of an HSA for anything other than a qualified medical expense costs you a 20% penalty plus ordinary income tax — a deliberate fence to keep the account medical. At 65 that fence comes down. The 20% penalty vanishes, and a non-medical withdrawal is taxed exactly like a Traditional IRA distribution: ordinary income, no penalty. Medical withdrawals stay tax-free the whole time.
Run the comparison and the HSA comes out strictly ahead of a Traditional IRA. Worst case, you spend it on non-medical things after 65 and it behaves identically to the IRA. Best case, you spend it on the healthcare every retiree faces and it is tax-free. On top of that, the HSA never forces a required minimum distribution, while a Traditional IRA forces withdrawals starting at 73 whether you need the money or not. The age-65 timeline in the tool lets you drag across the years and watch the account's effective character shift from Roth-like to Traditional-IRA-like for the non-medical case.
California and New Jersey — When Your State Won't Cooperate
Forty-eight states either recognize the HSA deduction or levy no income tax at all. California and New Jersey are the two holdouts: neither treats HSA contributions as pre-tax at the state level, so you owe state income tax on the contribution even though the federal treatment is unchanged. At California's top 13.3% marginal rate, a maxed family contribution forgoes more than a thousand dollars of state savings a Texas or Florida resident would never have lost.
The State Tax tab flags this automatically and shows the dollars at stake against a no-tax-state baseline. The practical handling is to report the contribution as an addition on Schedule CA (California) or the NJ-1040, since your state W-2 wages will already reflect the federal exclusion. None of this changes the verdict, though: even stripped of the state layer, the federal triple-tax advantage still beats a taxable brokerage by a wide margin over a full career. The CA/NJ trap shaves the benefit; it does not erase it.
Covering Retiree Healthcare — the Fidelity Benchmark
Fidelity publishes an annual Retiree Health Care Cost Estimate, and its 2025 figure is $172,500 for a single 65-year-old and $345,000 for a couple. That covers Medicare Part B and Part D premiums, supplemental coverage, and the dental, vision, hearing, and out-of-pocket costs Medicare leaves on the table — but not long-term care, which is a separate and larger problem.
The Medical tab measures your projected HSA balance against the single-person estimate as a coverage percentage. A maxed family HSA compounded for two or three decades routinely sails past $172,500, which means a retiree can pay their entire projected healthcare bill tax-free and still have a balance left to spend on anything else after 65. Anchoring the contribution decision to a concrete, published number — rather than an abstract “save more” — is what makes the target feel real.
Self-Employed and Freelancer HSA Strategy
If you are self-employed and carry a qualifying high-deductible health plan, the HSA is usually the strongest retirement account available to you. The contribution is an above-the-line deduction on Schedule 1, so it lowers your adjusted gross income directly without itemizing — useful for keeping AGI-linked thresholds and credits in reach.
The one asterisk is FICA. Because the self-employed pay the full self-employment tax on net earnings, an HSA contribution does not give them the payroll-FICA escape an employee gets through a cafeteria plan. The income-tax and (in most states) state-tax savings still apply in full, and the growth and withdrawal layers are identical. With no employer 401(k) and no match to chase, a freelancer's ranking is often simple: fund the HSA to the limit first, then move on to a SEP-IRA or solo 401(k) with whatever is left.
Frequently Asked Questions
What is the HSA triple tax advantage and how does this calculator quantify it?
Three layers stack: the contribution is pre-tax (it dodges federal income tax, the 7.65% FICA payroll tax when payroll-deducted, and state tax in 48 states), the growth is never taxed (no dividend or capital-gains drag), and qualified medical withdrawals are tax-free forever. Most HSA calculators show a single future balance; this one sums each layer independently so you can see the contribution, growth, and withdrawal savings as separate dollar figures.
What is the HSA shoebox strategy and how much more does it save?
You pay medical bills out of pocket with already-taxed dollars, keep the receipts, and reimburse yourself tax-free years or decades later. There is no deadline on reimbursing a qualified expense, so the HSA balance compounds untouched the entire time. Because the growth layer then compounds on the full balance instead of a drained one, the shoebox path usually ends with a materially larger balance than paying every bill from the account as it occurs.
Is an HSA better than a 401(k) for retirement?
For medical expenses, yes — the HSA is the only account where qualified withdrawals are tax-free, which beats both a Traditional and a Roth 401(k). For non-medical spending after 65, the HSA ties a Traditional 401(k) (both taxed as ordinary income) but adds a 7.65% FICA bonus on payroll contributions that no 401(k) can escape. The 4-way race in the tool puts an identical contribution into the HSA, a Roth 401(k), a Traditional 401(k), and a taxable account so you can see the gap for your own inputs.
What are the 2026 HSA contribution limits?
For 2026 the IRS limits are $4,400 self-only and $8,750 family, plus a $1,000 catch-up for anyone 55 or older (the catch-up amount is fixed by statute and is not inflation-indexed). The catch-up stacks on either coverage tier. A married couple who are both 55+ can claim two $1,000 catch-ups, but they need two separate HSAs to do it.
How much FICA tax does an HSA save that a 401(k) does not?
Payroll-deducted HSA contributions through a Section 125 cafeteria plan bypass both halves of FICA — 6.2% Social Security plus 1.45% Medicare, 7.65% total. A 401(k) contribution does not. On a maxed $8,750 family contribution that is roughly $669 a year; compounded across a career it becomes tens of thousands of dollars of extra wealth the 401(k) cannot match. The exception is the self-employed, who pay full SE tax and so do not get the payroll-FICA escape.
What happens to an HSA at age 65?
At 65 the 20% penalty on non-medical withdrawals disappears, and those withdrawals are taxed as ordinary income — exactly like a Traditional IRA. Qualified medical withdrawals remain tax-free with no age limit, and unlike a Traditional IRA there are no required minimum distributions. That combination is why the HSA is often called strictly better than a Traditional IRA after 65. One catch: enrolling in Medicare ends your ability to make new HSA contributions.
Can I make an HSA catch-up contribution at 55?
Yes. Anyone 55 or older can add an extra $1,000 a year on top of the self-only or family limit, right up until Medicare enrollment (usually at 65) ends HSA eligibility. That creates a common "front-load before 65" sprint — the catch-up window is only about a decade, so the years between 55 and Medicare are the highest-value contribution years for many savers.
How does California tax an HSA, and is it still worth opening one?
California and New Jersey are the only two states that do not recognize HSA contributions as pre-tax at the state level, so you pay state income tax on the contribution while still getting every federal benefit. At California’s top 13.3% rate that is a real cost, but the federal triple-tax advantage — pre-tax contribution, tax-free growth, tax-free medical withdrawals — still beats a taxable brokerage by a wide margin over a career. Report the contribution on Schedule CA.
How much of my retirement healthcare can an HSA cover?
Fidelity’s 2025 Retiree Health Care Cost Estimate is $172,500 for a single 65-year-old and $345,000 for a couple, covering Medicare premiums, supplemental coverage, dental, vision, and out-of-pocket costs. A maxed family HSA compounded for two to three decades frequently overshoots the single-person figure, meaning your entire projected retirement healthcare bill can be paid tax-free with room to spare.
Should a self-employed person use an HSA?
Yes, if you carry a qualifying HDHP. A self-employed HSA contribution is an above-the-line deduction on Schedule 1, reducing your AGI directly. Unlike a payroll-deducted contribution it does not escape FICA, because self-employed people pay full SE tax regardless — but the federal and (in most states) state income-tax savings still make the HSA the best-available retirement vehicle when there is no employer 401(k) on the table.