HSA vs 401(k): Which Retirement Account You Should Max Out First

Komon Lab | HSA and 401(k) Contributions

An employer 401(k) match and an HSA can both be valuable. A useful starting point is to consider the full available match, then compare an eligible HSA with other savings needs. The right order depends on debt, emergency cash, medical expenses, plan fees, and tax circumstances—not just an account’s tax treatment.

The Optimal Tax-Advantaged Savings Waterfall (Priority Hierarchy)

Institutional decision flow for deploying discretionary capital to maximize employer matching subsidies, Section 125 FICA exemptions, and long-term compound growth.

TIER 1 401(k) Up to Employer Match Instant 50% to 100% risk-free return on capital. Non-negotiable baseline priority. 50%–100% ROI

TIER 2 HSA Max Out ($4,400 Self / $8,750 Family) Triple tax advantage + 7.65% FICA exemption via Section 125 payroll deduction. Outperforms unmatched 401(k). TRIPLE TAX-FREE

TIER 3 Roth IRA or Backdoor Roth IRA ($7,500 Limit) Tax-free compounding, broad investment selection, and zero RMDs throughout owner’s lifetime. NO RMDS

TIER 4 Unmatched 401(k) Remaining Deferrals (Up to $24,500) Pre-tax tax reduction or designated Roth 401(k); catch-up contributions for age 50+ ($8,000 / $11,250). UP TO $24,500

TIER 5 Taxable Brokerage / Mega Backdoor Roth ($72,000 Limit) Unrestricted liquidity & long-term capital gains rates.

Compare the contribution rules

Account 2026 basic limit Key condition
401(k) employee elective deferrals $24,500, before eligible catch-up contributions Plan rules and shared deferral limits can apply
HSA $4,400 self-only; $8,750 family Combined employer and personal contributions; eligibility and partial-year rules matter
Traditional and Roth IRAs combined $7,500; $8,600 age 50 or older Compensation, deduction, and Roth income rules apply

HSA catch-up contributions generally add $1,000 for an eligible person age 55 or older. The limits above do not establish that a particular person may contribute the full amount.

Evaluate the employer match first

Retirement contribution allocation ledger, calculator, and glasses on an oak desk
Savings waterfall priority: capturing the guaranteed 100% employer match before maximizing triple-tax-advantaged HSA contributions.

If a plan contributes $0.50 for each $1 you contribute within its matching formula, a qualifying $1,000 employee contribution can generate a $500 employer contribution. Read the vesting schedule, eligible pay definition, and any year-end true-up rules. Employer contributions can be forfeitable before vesting, and invested balances can lose value.

Compare an HSA’s federal tax benefits

Eligible contributions receive federal income-tax benefits, earnings are federally tax-free within the account, and distributions for qualified medical expenses can be federally tax-free. Contributions made through an employer’s Section 125 cafeteria plan can also avoid applicable payroll taxes. Direct personal contributions generally do not provide that payroll-tax saving.

Illustration: If a $4,400 payroll contribution avoids both 6.2% Social Security and 1.45% Medicare tax, that component of the saving is $336.60. This assumes the full amount would otherwise be subject to those taxes. Workers above the Social Security wage base can have a different result. Income-tax savings depend on your own marginal rates, and California and New Jersey do not fully conform to federal HSA treatment.

The Real Math: $1,000 of Gross Earnings Deployed into HSA vs. 401(k) vs. Roth

This actuarial simulation models how $1,000 in gross pre-tax compensation compounds over 20 years at a 7% annualized return under a 24% marginal federal tax bracket, contrasting final net purchasing power for healthcare expenses.

Financial Dimension HSA via Section 125 Payroll Traditional 401(k) Roth IRA / Roth 401(k) Taxable Brokerage
Gross Starting Earnings $1,000.00 $1,000.00 $1,000.00 $1,000.00
Federal Income Tax at Deposit (24%) $0.00 (Exempt) $0.00 (Exempt) -$240.00 -$240.00
FICA Payroll Tax at Deposit (7.65%) $0.00 (Exempt!) -$76.50 -$76.50 -$76.50
Net Principal Invested $1,000.00 $923.50 $683.50 $683.50
Pre-Tax Balance after 20 Yrs (@ 7%) $3,869.68 $3,573.65 $2,644.91 $2,644.91
Taxes on Qualified Healthcare Withdrawal $0.00 (Tax-Free) -$857.68 (24% Income Tax) $0.00 (Tax-Free) -$294.21 (15% Cap Gains)
Final Usable Healthcare Cash $3,869.68 $2,715.97 $2,644.91 $2,350.70
Net Wealth Surplus vs. Traditional 401(k) +$1,153.71 (+42.5%) Baseline -$71.06 -$365.27

Hypothetical simulation assuming constant 24% ordinary tax bracket, 7.65% FICA (Social Security & Medicare), 15% long-term capital gains, and zero state tax impact. Demonstrates why HSA payroll contributions deliver mathematically superior net outcomes for medical expenses.

Check health coverage and near-term needs

Confirm HSA eligibility with the plan administrator. Medicare, other coverage, a general-purpose health FSA, dependent status, or partial-year enrollment may affect eligibility. IRS guidance also explains the expanded 2026 treatment of certain bronze and catastrophic plans.

Tax benefits are not a reason to select an unsuitable health plan. Compare premiums, deductibles, provider access, covered services, and expected out-of-pocket costs. Paying interest on credit-card debt to avoid using HSA money can defeat the intended benefit.

When saving medical receipts can help

If you can comfortably pay a qualified medical bill from other cash, you may leave the HSA balance invested and request reimbursement later. Keep proof that the expense occurred after the HSA was established, was paid, and was neither reimbursed elsewhere nor deducted on your tax return. There is no federal reimbursement deadline under IRS Notice 2004-50, Q&A 39.

Keep near-term spending needs in an appropriate cash reserve. Investments held for later expenses remain exposed to market losses and fees.

Age 65 does not turn an HSA into an IRA

After age 65, the additional 20% tax on nonmedical HSA distributions generally no longer applies, but ordinary income tax still can. Qualified medical distributions retain their federal tax treatment. The account remains an HSA, with different rules from an IRA or 401(k).

A decision checklist

  1. Make room for essential bills, emergency cash, and expensive debt.
  2. Review the full employer match and vesting terms.
  3. Confirm HSA eligibility and the actual annual contribution limit.
  4. Compare HSA fees, investments, cash needs, and state tax treatment with your retirement plans.
  5. Consider further IRA or 401(k) contributions based on eligibility and tax circumstances. A backdoor Roth conversion requires a separate pro-rata-rule review.

2026 HSA eligibility: the plan requirements

You can contribute to an HSA only while covered by a qualifying high-deductible health plan and without other disqualifying coverage. For 2026, a qualifying plan must have a deductible of at least $1,700 for self-only coverage or $3,400 for family coverage, and out-of-pocket costs capped at no more than $8,500 for self-only or $17,000 for family coverage. Separate 2026 rules also treat certain bronze and catastrophic marketplace plans as HSA-compatible. Your plan administrator can confirm whether your plan qualifies.

If you become eligible partway through the year, your limit is generally prorated by month. The “last-month rule” can let you contribute the full annual amount if you are eligible on December 1, but you must then stay eligible through a testing period that runs through the end of the following year. If you do not, part of the contribution becomes taxable and may owe an additional 10% tax.

2026 401(k) catch-up contributions

For 2026, the standard 401(k) employee deferral limit is $24,500. Employees age 50 or older can generally add an $8,000 catch-up contribution, and employees age 60 through 63 can add up to $11,250 instead if the plan allows it. Starting in 2026, employees whose prior-year FICA wages from the employer exceeded $150,000 must make catch-up contributions as Roth contributions if they make them at all.

2026 Master Statutory Parameter Matrix: HSA vs. 401(k) vs. IRA

Statutory Benchmark Health Savings Account (HSA) 401(k) Retirement Plan Traditional / Roth IRA
2026 Standard Contribution Limit $4,400 (Self-only) / $8,750 (Family) $24,500 (Employee deferral) $7,500 (Combined annual limit)
Section 415(c) Overall Limit N/A (Capped at statutory HSA limit) $72,000 (Employer + Employee total) N/A
Standard Catch-Up Provisions +$1,000 (Age 55 and older) +$8,000 (Age 50 and older) +$1,100 ($8,600 total at Age 50+)
Enhanced SECURE 2.0 Catch-Up None +$11,250 (Special tier for Ages 60 to 63) None
SECURE 2.0 High-Earner Mandate None Workers with prior-year wages >$150k must make catch-ups as Roth Subject to standard Roth MAGI limits
Required Minimum Distributions (RMD) Never (Zero RMDs for life) Begins at Age 73 / 75 Traditional: Age 73 / 75; Roth: Never

An illustrative funding order

Illustration (hypothetical household): A worker earns $80,000, has family HDHP coverage through an eligible employer plan, has an emergency fund in place, and carries no high-interest debt. The employer matches 50% of contributions up to 6% of pay.

  1. Contribute 6% of pay ($4,800) to the 401(k) to receive the full $2,400 match.
  2. Contribute to the HSA through payroll, up to the $8,750 family limit, minus any employer HSA contribution.
  3. If money remains, consider IRA contributions (up to $7,500 in 2026) or additional 401(k) deferrals.

This order is one reasonable approach, not a rule. A worker with high expected medical costs, a poor HSA fee structure, or no match might choose differently.

Frequently asked questions

Can I contribute to both a 401(k) and an HSA in the same year? Yes. The limits are separate. HSA eligibility depends on your health coverage, not on your retirement plan.

What happens to my HSA if I change jobs? The HSA belongs to you. You keep the balance, and you can continue contributing if you remain covered by a qualifying high-deductible plan.

What if I contribute too much to an HSA? Excess contributions that are not withdrawn by the tax deadline generally owe a 6% excise tax for each year they remain in the account. Ask your HSA custodian how to remove an excess.

More official resources:

Correction: This revision removes unsupported universal tax-saving claims and clarifies that an HSA does not automatically convert into an IRA at age 65.

Primary sources and current terms

Use these references to check the relevant rules and provider terms. Product availability, prices, and individual eligibility can change. Illustrative calculations are not guaranteed outcomes.