HSA vs 401(k) 2026: Which Should You Max First? (USA)
The HSA and the 401(k) are the two strongest tax shelters most American workers can access, but they are built for different jobs. The 401(k) usually comes with free employer money; the HSA is the only account in the US tax code with a triple tax advantage. The right answer is almost never one or the other — it is a funding order.
| Factor | HSA | 401(k) |
|---|---|---|
| 2026 contribution limit | $4,400 self / $8,750 family (+$1,000 catch-up at 55+); IRS re-indexes each May | $24,500 employee deferral (+~$8,000 catch-up at 50+); IRS re-indexes each November |
| Employer money | Some employers seed $500–$1,000/year | Match typically 50–100% of the first 3–6% of salary — free money |
| Tax treatment | Triple: pre-tax in (payroll contributions also skip 7.65% FICA), tax-free growth, tax-free out for medical | Pre-tax in, tax-deferred growth, withdrawals taxed as ordinary income |
| Eligibility | Must be enrolled in an HDHP ($1,700+ self / $3,400+ family deductible for 2026) | Any employee whose employer offers a plan |
| Withdrawals | Tax-free anytime for qualified medical expenses — no age requirement | Penalty-free from 59½; Rule of 55 exception if you leave your employer in or after the year you turn 55 (applies to that employer's plan) |
| Penalties | 20% + income tax on non-medical withdrawals before 65 | 10% + income tax before 59½ |
| RMDs | None — ever | Required minimum distributions from age 73 |
| Age 65 treatment | 20% penalty disappears; non-medical withdrawals taxed like a Traditional IRA; medical stays tax-free | Normal taxable withdrawals continue |
| Best for | Medical costs now + stealth retirement account later | Core retirement savings — especially the matched portion |
Our Verdict
Fund them in this order: (1) contribute to your 401(k) up to the full employer match — a 50–100% instant return nothing else can beat; (2) max the HSA ($4,400 self / $8,750 family in 2026) for the triple tax advantage plus the FICA exemption; (3) return to the 401(k) and work toward the $24,500 deferral limit. Only skip the HSA step if you are not on a qualifying high-deductible health plan.
Why this comparison matters
Fidelity's 2025 Retiree Health Care Cost Estimate puts the bill for a single 65-year-old retiring today at roughly $172,500 just for out-of-pocket healthcare in retirement — and the estimate has risen almost every year it has been published. Meanwhile the IRS hands workers two heavily subsidized accounts to prepare: the 401(k), with a 2026 employee deferral limit of $24,500 (announced each November and indexed to inflation), and the HSA, with 2026 limits of $4,400 self-only and $8,750 for family coverage (set each May by IRS revenue procedure). They are taxed completely differently. A 401(k) deferral saves your marginal income-tax rate today — 22% or 24% for most households — but every dollar is taxed on the way out. An HSA contribution made through payroll is never taxed at all when spent on medical care, and it also escapes the 7.65% Social Security and Medicare (FICA) tax that a 401(k) deferral still pays. On a $4,400 contribution in the 22% bracket, that is roughly $1,305 of tax avoided via the HSA versus $968 via the 401(k). The catch: the 401(k) usually carries an employer match the HSA cannot replicate, so sequencing — not either/or — is the real decision. Run your own numbers in the HSA calculator and 401(k) calculator.
Quick Verdict
Follow the priority order used by most fee-only planners: first, contribute enough to your 401(k) to capture the entire employer match — a typical 50% match on 6% of salary is an instant 50% return, and no tax advantage beats that. Second, max the HSA if you are HDHP-eligible: triple tax advantage, FICA exemption, no use-it-or-lose-it, no RMDs. Third, go back to the 401(k) and push toward the $24,500 limit (plus the roughly $8,000 catch-up at 50+, also IRS-indexed). If you still have savings left after all three steps, a Roth IRA is the natural fourth bucket — compare it in the Roth IRA calculator.
When the HSA wins
- You have already captured the full 401(k) match — beyond the match, an unmatched 401(k) dollar saves only your marginal rate (say 22%), while an HSA payroll dollar saves marginal rate plus 7.65% FICA.
- You can pay current medical bills out of pocket and let the HSA compound invested for decades. Save the receipts: qualified expenses can be reimbursed tax-free years later with no deadline.
- You expect meaningful healthcare costs in retirement — HSA withdrawals for Medicare Part B/D premiums, deductibles, and long-term-care insurance are tax-free, versus fully taxed 401(k) dollars used for the same bills.
- You value flexibility: HSA funds are reachable tax-free for medical needs at any age, while 401(k) money is locked until 59½ (or 55 under the Rule of 55) without a 10% penalty.
- You want to avoid RMDs — the HSA never forces distributions, while the 401(k) does from age 73.
When the 401(k) wins
- Any employer match is on the table. A 50–100% instant return on matched dollars beats the HSA's tax math every time — always take the match first.
- You are not enrolled in a qualifying high-deductible health plan (2026 minimum deductibles around $1,700 self / $3,400 family) — without an HDHP you simply cannot contribute to an HSA.
- You need to shelter serious money: $24,500 of deferral room versus $4,400/$8,750 in the HSA. High earners chasing a large retirement number will lean on the 401(k) for volume.
- Your health plan choice matters more than the account: if a low-deductible plan clearly fits your family's medical usage, do not switch to an HDHP just to unlock an HSA.
- You want simple, automatic payroll investing with no receipt-keeping. Model contribution levels in the 401(k) contribution calculator.
The 30-year math
Assume a 7% average annual return and 30 years of contributions; at that rate every $1/year of contribution grows to roughly $94.5. Maxing the self-only HSA at $4,400/year builds approximately $415,000 — entirely tax-free if spent on medical costs, and taxed only as ordinary income (no penalty) for anything else after 65. Now the 401(k) side: on an $80,000 salary with a 50% match on the first 6%, contributing $4,800/year attracts $2,400 of match — $7,200/year total, growing to roughly $680,000. About $227,000 of that traces purely to the free employer match, which is why the match always comes first in the funding order. A worker who follows the full sequence — match, then HSA, then unmatched 401(k) dollars — ends up with both pots: roughly $1.1 million combined in this example, with the HSA slice available tax-free for the medical bills Fidelity says are coming. Stress-test your own salary, match formula, and return assumptions in the 401(k) calculator and HSA calculator.
FAQs
HSA vs 401k — which is better? Neither wins outright; it is a sequencing question. Matched 401(k) dollars are unbeatable — a 50–100% instant return. Beyond the match, the HSA's triple tax advantage plus the 7.65% FICA exemption beats an unmatched 401(k) deferral, which only saves your marginal rate (22–24% for most). Order: 401(k) to the full match, then HSA to its $4,400/$8,750 limit, then back to the 401(k) toward $24,500.
Should I max out my HSA or 401(k) first? Capture the entire employer match first — on an $80,000 salary with a 50%-of-6% match, that is $2,400/year of free money, worth about $227,000 over 30 years at 7%. Then max the HSA before adding unmatched 401(k) dollars, because each HSA payroll dollar avoids both income tax and 7.65% FICA, while a 401(k) dollar avoids income tax only and is taxed again at withdrawal.
Can I use an HSA as a retirement account? Yes — this is the "stealth IRA" strategy. Invest the balance above your provider's $1,000–$2,000 cash threshold, pay current medical bills out of pocket, and keep the receipts: the IRS sets no deadline for reimbursing yourself tax-free. $4,400/year at 7% for 30 years is roughly $415,000. After 65, non-medical withdrawals are simply taxed as ordinary income, exactly like a Traditional 401(k) — with no RMDs.
What happens to my HSA at age 65? The 20% penalty on non-medical withdrawals disappears — those withdrawals just become ordinary taxable income, like a Traditional IRA. Medical withdrawals stay 100% tax-free, including for Medicare Part B and Part D premiums. One trap: enrolling in Medicare ends your eligibility to contribute, and Part A coverage can be backdated up to 6 months — so stop HSA contributions 6 months before enrolling if you work past 65.