GUIDE · MONEY · RETIREMENT

HSA vs 401(k) in 2026: Where to Put Your Next Dollar

You got the full 401(k) match — that was the easy part. Now comes the question most savers get wrong: max the HSA or pile more into the 401(k)? At the worked example — $4,400 a year, 25 years, 8% growth, 22% federal + 5% state now, 25% in retirement — the HSA finishes $105,023.99 ahead: $321,666.14 of medical-spendable wealth against $241,249.60 after-tax from the 401(k). The HSA is the only account in the tax code with a triple break — and contributions through your paycheck skip the 7.65% payroll tax too, a benefit no 401(k) or IRA offers. But the HSA has a velvet rope (your health plan must qualify) and a catch (the triple break is really a medical-use break). Below: the 60-second rule, how the HSA really works, the $105,023.99 example line by line, the 2026 limits, the eligibility traps, and the mistakes that cost five figures.

The 60-second rule

401(k) to the full employer match → HSA to the cap → back to the 401(k). That’s the whole waterfall. The match is a 50–100% instant return — nothing beats it. After the match, the HSA’s triple tax break plus the 7.65% payroll-tax skip beats more 401(k) dollars at the defaults by $105,023.99. The 401(k)’s only counterargument is its ceiling — $24,500 vs $4,400 in 2026 — which is exactly where the overflow goes. Run your own numbers in the HSA vs 401(k) calculator — especially the “how will you use the HSA” selector, because the verdict changes completely for non-medical use. Everything below is the evidence for that rule.

How the HSA really works (the triple break, honestly)

Almost every account gives you a tax break on the way in or the way out. The traditional 401(k) is pre-tax in, taxed out. The Roth is taxed in, free out. The HSA refuses to choose: money goes in pre-tax (an above-the-line deduction), grows tax-free, and comes out tax-free for qualified medical expenses — in, growth, and out, all shielded. Nothing else in the code does all three. Then the bonus round: contributions through your employer’s payroll skip the 7.65% FICA tax — Social Security plus Medicare — which no 401(k), IRA, or direct HSA contribution does. At the defaults that’s $336.60 a year of free money, compounding to $24,607.45 over 25 years. The account is yours forever (not your employer’s), has no required minimum distributions ever, and never expires — unlike an FSA’s use-it-or-lose-it. After 65 it degrades gracefully: non-medical withdrawals are taxed like a traditional IRA, no penalty — and medical withdrawals, including Medicare premiums, stay tax-free for life.

The $105,023.99 worked example, line by line

$4,400 a year beyond the match, 25 years, 8% growth, 22% federal + 5% state now, 25% combined in retirement, HSA used for medical costs:

HSA: $4,400 × the 25-year annuity factor at 8% (73.106) = $321,666.14 — every dollar spendable tax-free on medical costs. Year-one tax savings: $1,524.60 ($4,400 × 34.65%), of which $336.60 is the payroll-tax skip nobody else gets.

401(k): the same $4,400/yr grows to the same $321,666.14 pre-tax, then retirement takes 25% → $241,249.60. Same deduction going in, no FICA savings, taxed on the way out.

The gap: the HSA wins by $105,023.99 — $80,416.53 of retirement tax avoided plus $24,607.45 of compounded payroll-tax savings. Now the twist: flip the calculator’s “use” selector to non-medical after 65 and the edge collapses to just the $24,607.45 FICA bonus — past 65, non-medical HSA withdrawals are taxed like a 401(k), so the triple break is really a medical-use break. The honest version: fund the HSA, invest it, and plan to spend it on the decades of medical costs coming your way — Fidelity’s long-running estimate puts a 65-year-old couple’s lifetime medical bill near $165,000, and that’s exactly what this account is for.

The 2026 limits (IRS Rev. Proc. 2025-19)

2026 figureSelf-onlyFamily
HSA contribution limit$4,400$8,750
Age 55+ catch-up+$1,000 (unchanged)
HDHP minimum deductible$1,700$3,400
HDHP out-of-pocket max$8,500$17,000
401(k) elective deferral$24,500 (+$8,000 at 50+, +$11,250 at 60–63)

Two details that trip people up: employer HSA contributions count toward your cap — a $1,000 employer seed means you can only add $3,400 self-only. And the 401(k) ceiling is why the waterfall loops back: once the HSA is full, every extra dollar goes to the 401(k).

The eligibility test (the velvet rope)

You can only contribute while covered by a qualifying high-deductible health plan — and “high deductible” on the brochure isn’t the test. The 2026 IRS tests: deductible of at least $1,700 / $3,400 and out-of-pocket max at most $8,500 / $17,000. Preventive care before the deductible is fine. The traps that disqualify people who thought they qualified: a spouse’s general-purpose FSA that covers you (a limited-purpose FSA is fine), a family plan with an embedded per-person deductible under $3,400, and Medicare enrollment — even Part A alone ends eligibility that month. Don’t pick a worse health plan just to unlock the HSA; but if the HDHP already fits your situation, the HSA is the reward.

The medical-use catch (and the shoebox strategy)

Here’s the part the triple-tax headlines bury: the third tax break — tax-free withdrawals — only applies to qualified medical expenses. The good news is how broadly that’s defined over a lifetime: doctor and dental bills, prescriptions, vision, Medicare Parts B and D premiums, and long-term-care premiums up to IRS caps. The better news: there is no deadline to reimburse yourself. The “shoebox strategy”: invest the HSA, pay medical bills from cash, keep the receipts — in 20 years, reimburse yourself tax-free for costs you paid decades ago, while the money compounded untouched. A healthy 30-year-old’s HSA isn’t a medical account; it’s a time machine for tax-free dollars.

When the 401(k) wins anyway

Three situations flip the waterfall. One: no qualifying HDHP. Then this whole page is moot — the HSA doesn’t exist for you, and the 401(k) wins by default. Two: the HSA is already full. $4,400/$8,750 is a small bucket; serious savers fill it by spring and the 401(k)’s $24,500 ceiling does the heavy lifting the rest of the year. Three: you need the match first, always. Skipping matched 401(k) dollars to fund an HSA is lighting a 50–100% instant return on fire to chase a tax break — the waterfall order exists for a reason.

Three mistakes to avoid

  1. Contributing directly instead of through payroll. The single most expensive paperwork error: direct HSA contributions get the income-tax deduction but forfeit the 7.65% FICA skip — $336.60/yr at the defaults, $24,607.45 compounded. Always contribute through your employer’s payroll if the option exists.
  2. Using the HSA as a spending account. Swiping the HSA debit card for this year’s copays forfeits decades of tax-free compounding — the account’s superpower is invested and untouched, reimbursed later via the shoebox strategy. Keep one year’s deductible in cash if it helps you sleep; invest the rest.
  3. Forgetting the cap includes employer money. Over-contributing triggers a 6% excise tax every year until fixed. Track the $4,400/$8,750 ceiling against all contributions — yours plus your employer’s — especially if you change jobs mid-year.
Cite this guideBright Side Kit. “HSA vs 401(k) in 2026: Where to Put Your Next Dollar.” brightoolbox.com, 2026.Bright Side Kit. "HSA vs 401(k) in 2026: Where to Put Your Next Dollar." https://brightoolbox.com/guides/hsa-vs-401k/ Accessed October 23, 2026.
Embed this guide

Paste this into any web page to embed the live guide. The “Bright Side Kit” link below it must stay intact.

Frequently asked questions

What is the correct order: HSA or 401(k) first?

401(k) to the full employer match, then HSA to the cap, then back to the 401(k). The match is a 50–100% instant return; after it, the HSA’s triple tax break plus the 7.65% payroll-tax skip beats more 401(k) dollars — by $105,023.99 at the worked example. The 401(k)’s bigger $24,500 ceiling is where the overflow goes.

Can I contribute to both an HSA and a 401(k)?

Yes — they’re completely separate accounts with separate limits. Contributing to one never reduces the other’s ceiling. The only interaction: employer HSA contributions count toward your $4,400/$8,750 HSA cap, so coordinate before you max it out twice.

What happens to my HSA if I leave my job?

Nothing — it’s yours. Unlike an FSA, the HSA is portable for life: the balance, the investments, and the tax treatment all travel with you. Roll it to a low-fee provider (Fidelity is the usual recommendation), keep investing, and keep the shoebox of receipts.

Should I invest my HSA or keep it in cash?

Invest it — that’s what turns a medical spending account into a retirement account. Keep roughly one year’s deductible in the cash sleeve for peace of mind, and put the rest in a low-cost index fund. An HSA left in cash for 25 years forfeits most of the $105,023.99 edge.

Does California tax HSA contributions?

Yes — California and New Jersey don’t conform to the federal HSA deduction, so contributions are state-taxable there (though growth and qualified withdrawals keep most of their federal advantage). If you live in either state, shave a few points off the HSA’s edge in the calculator’s state-bracket field — it still usually wins.