# HSA vs 401k: which should you fund first?

Lily Armstrong · August 22, 2026

> The Short Answer: HSA First, With Important Caveats For most people with access to both accounts, the Health Savings Account (HSA) deserves priority...

## The Short Answer: HSA First, With Important Caveats

For most people with access to both accounts, the Health Savings Account (HSA) deserves priority over the 401(k), at least until you hit certain thresholds. The HSA is the only account in the American tax code that offers a triple tax advantage: contributions go in pre-tax (or are tax-deductible if made outside payroll), growth is tax-free, and withdrawals for qualified medical expenses are also tax-free. No 401(k), IRA, or Roth account can match that combination. Financial commentators from CNBC to Employee Benefit News have increasingly argued that workers should max their HSA before contributing a dollar beyond any employer 401(k) match.

**Also worth reading:** [How much does an AI healthcare benefits consultant cost in 2026? A complete pricing guide?](https://healtho.io/knowledge/how_much_does_an_ai_healthcare_benefits_consultant_cost_in_2026_a_complete_pricing_guide.php) · [How accurate is Xpert MTB/RIF Ultra for extrapulmonary specimens like CSF, lymph nodes, and pleural fluid?](https://healtho.io/knowledge/how_accurate_is_xpert_mtbrif_ultra_for_extrapulmonary_specimens_like_csf_lymph_nodes_and_pleural_fluid.php) · [How to program a deload week?](https://healtho.io/knowledge/how_to_program_a_deload_week.php)

That said, the answer is not absolute. If your employer offers a 401(k) match, capturing that match always comes first because it is an immediate, guaranteed return — often 50% or 100% on the dollars matched. After securing the match, the typical optimal order for someone eligible for an HSA looks like this: contribute enough to the 401(k) to get the full employer match, then max out the HSA, then return to the 401(k) and other retirement accounts with remaining savings. This ordering holds up under most scenarios, but there are exceptions involving income level, expected medical spending, state taxes, and investment options that we will work through below.

As of August 2026, the contribution environment matters too. The IRS has all but confirmed 2026 retirement plan limits, and HSA limits continue rising: roughly $4,400 for self-only coverage and $8,750 for family coverage in 2026, plus a $1,000 catch-up contribution for those 55 and older. A family maxing the HSA saves more in taxes than many people realize — potentially $2,000 to $3,500 per year depending on federal and state tax brackets.

## Why the HSA Wins on Pure Tax Mathematics

The triple tax advantage deserves a closer look because it is genuinely unique. With a traditional 401(k), you avoid taxes going in, pay ordinary income tax coming out, and earnings grow tax-deferred. With a Roth 401(k) or Roth IRA, you pay taxes going in and everything comes out tax-free. The HSA does both: money enters pre-tax through payroll deductions (also avoiding the 7.65% FICA payroll tax when contributed via payroll, something 401(k) contributions do not avoid), grows untaxed, and exits untaxed for qualified medical expenses at any age.

Consider a concrete example. A married couple filing jointly in the 24% federal bracket who contributes $8,750 to an HSA through payroll avoids $2,100 in federal income tax plus about $669 in FICA taxes — over $2,700 saved immediately. If that money instead went into a traditional 401(k), they would save the $2,100 in income tax but still owe FICA. If it went into a Roth 401(k), they would save nothing today. Over decades of compounding, the difference compounds as well. Advisors sometimes describe the HSA as an "extra strength" Roth IRA precisely because of this structure.

There is one more wrinkle worth knowing: after age 65, HSA withdrawals for non-medical purposes are taxed as ordinary income, exactly like a traditional 401(k) or IRA withdrawal — but with no required minimum distributions ever. That flexibility means the HSA functions as a stealth retirement account even if you never spend a dollar on healthcare. Medical receipts you accumulate now can be reimbursed decades later, tax-free, if you keep your documentation.

## The Case Where the 401(k) Comes First

The most important exception to the HSA-first rule is the employer match. If your company matches 50% of contributions up to 6% of salary, that is a 50% instant return on matched dollars — no investment, including the HSA's tax advantages, reliably beats that in year one. Always capture the full match before directing additional dollars anywhere else. Skipping the match to max an HSA is one of the costliest mistakes in benefits planning.

The second exception involves eligibility itself. You can only contribute to an HSA if you are enrolled in a High-Deductible Health Plan (HDHP). For 2026, an HDHP is generally defined as a plan with a minimum deductible around $1,700 for self-only coverage ($3,400 family) and out-of-pocket maximums near $8,500 self-only / $17,000 family. If your health situation means heavy predictable medical spending — a chronic condition, planned surgery, fertility treatment, a new baby — a PPO with richer coverage may beat the HDHP-plus-HSA math entirely, even though the HDHP premiums look cheaper. The HSA is a terrible deal if the underlying insurance exposes you to costs you cannot absorb.

Third, some employers offer extraordinary 401(k) features — profit-sharing contributions, mega-backdoor Roth access, very low-cost share classes — that tilt the calculus. And high earners subject to income-based premium surcharges (IRMAA) later in life may prefer taxable-account flexibility. These are edge cases, but they show why "HSA first" is a strong default rather than a universal law.

## Side-by-Side Comparison: HSA vs 401(k)

| Feature | HSA | 401(k) |
| --- | --- | --- |
| Eligibility | Must be enrolled in an HDHP | Offered by employer; anyone with access can join |
| 2026 contribution limit | ~$4,400 self-only; ~$8,750 family; +$1,000 catch-up (55+) | ~$24,500 employee deferral; +$8,000 catch-up (50+) |
| Tax treatment | Triple: pre-tax in, tax-free growth, tax-free out for medical expenses | Traditional: pre-tax in, taxed out; Roth version: taxed in, tax-free out |
| Payroll tax (FICA) avoided? | Yes, when contributed via payroll | No |
| Employer match | Sometimes (increasingly common) | Very common |
| Early withdrawal penalty | 20% penalty plus income tax for non-medical use before 65 | 10% penalty plus income tax before 59½ (with exceptions like Rule of 55) |
| Investment freedom | Full brokerage-style menu at custodians like Fidelity | Limited to employer-selected funds |
| Required minimum distributions | None, ever | Yes, starting at age 73 (Roth 401(k)s included after SECURE 2.0) |
| Portability | Fully portable; yours forever | Can roll to IRA or new employer plan |
| Best use | Long-term medical savings and stealth retirement account | Primary retirement accumulation with match |

The table highlights why the two accounts are not really competitors so much as sequential tools. The 2026 401(k) limit of roughly $24,500 dwarfs the HSA limit, so once the HSA is full, the 401(k) remains where the bulk of retirement saving happens. Total household contribution capacity across both accounts can exceed $33,000 per year for a family, before employer contributions.

## Practical Steps: How to Sequence Your Contributions

Start by confirming three facts: whether your health plan qualifies as an HDHP, whether your employer contributes to an HSA on your behalf, and what your 401(k) match formula is. Many employers now seed HSAs with $500 to $2,000 annually, which effectively acts like a match and strengthens the case for prioritizing the account. Check whether your HSA custodian allows investing above a cash threshold — Fidelity's HSA, for example, permits investing every dollar with no minimum, while some custodians force you to hold $1,000 to $2,000 in cash before investing.

Once confirmed, follow this sequence. First, set your 401(k) deferral to capture 100% of the employer match — no more, no less, initially. Second, increase payroll HSA contributions until you hit the annual limit, spreading them across paychecks so you never front-load past your eligibility window. Third, return to the 401(k) and raise deferrals toward the full limit, choosing Roth vs traditional based on your current versus expected future tax bracket. Fourth, consider a Roth IRA or taxable brokerage for anything left over. Revisit this allocation every open enrollment season and whenever your health needs change.

One administrative tip that pays off enormously: save every qualified medical receipt — prescriptions, dental work, glasses, mileage to appointments — in a dedicated folder or app. Because HSA reimbursements have no deadline, you can pay out of pocket today, let the HSA compound for 20 years, and then reimburse yourself tax-free using old receipts. This receipt-harvesting strategy effectively converts the HSA into a second retirement account while preserving optionality.

## Common Mistakes People Make With Both Accounts

The single biggest error is treating the HSA as a checking account for current medical bills instead of an investment vehicle. Surveys consistently show most HSA balances sit in cash earning minimal interest. Spending HSA dollars immediately forfeits decades of tax-free compounding — the very feature that makes the account valuable. Invest the balance once your emergency fund covers your HDHP deductible.

Second, people forget the HSA has real penalties for misuse. Non-medical withdrawals before age 65 face income tax plus a 20% penalty — harsher than the 10% early-withdrawal penalty on 401(k) funds, though the 401(k) has more carve-outs such as the Rule of 55 and substantially equal periodic payments. Third, savers miss the catch-up transition: at 55 you can add $1,000 to the HSA, and at 50 the 401(k) catch-up jumps to roughly $8,000, so contribution targets should shift with age.

Fourth, employees who leave an HDHP mid-year often over-contribute. HSA contribution limits are prorated by months of HDHP coverage, and excess contributions incur a 6% excise tax annually until corrected. Fifth, couples on family coverage sometimes both open HSAs and double-count the limit — the $8,750 family limit is shared, not per person. Finally, many people ignore state tax treatment: most states follow the federal HSA deduction, but a handful, notably California and New Jersey, tax HSA contributions and earnings at the state level, slightly reducing the advantage for residents there.

## When to Act: Timing Throughout the Year and Career

Open enrollment — typically October through December for calendar-year plans — is the decision point that determines your entire next year's strategy. Choosing the HDHP during enrollment unlocks HSA eligibility for the following January 1. Miss that window and you generally cannot contribute until the next plan year, unless you switch plans due to a qualifying life event like marriage or job change. Decide deliberately during enrollment rather than defaulting into last year's plan.

Within the year, spread contributions evenly through payroll rather than lump-summing in December, both for cash-flow reasons and to stay within prorated limits. If you turn 55 during the year, you become eligible for the full $1,000 catch-up regardless of birthday timing. And if you expect to enroll in Medicare at 65, stop HSA contributions at least six months before your Medicare start date — contributing after Medicare enrollment triggers tax penalties retroactively, since Medicare Part A coverage backdates up to six months.

Career transitions deserve attention too. When leaving a job, your HSA stays yours permanently — unlike some 401(k) assets, there is no reason to ever cash it out. Roll old 401(k)s into IRAs or new employer plans to consolidate, but note that commingling matters: keeping a small amount of 401(k) money separate preserves access to strategies like the Rule of 55 penalty-free withdrawals at 55 from the plan you separated from.

## Cost Considerations and the Real Price of Getting It Wrong

Neither account charges inherent fees, but the vehicles around them do. HDHP premiums typically run lower than PPO premiums — often $1,000 to $3,000 less per year for family coverage — which is part of the HSA value proposition. Watch HSA custodian fees, though: legacy custodians charge $2 to $5 monthly maintenance fees that quietly erode small balances, while modern options like Fidelity charge nothing. 401(k) expense ratios vary widely; index fund lineups under 0.10% are excellent, while some small-employer plans carry funds costing 1% or more annually, which materially drags returns.

Quantifying the cost of sequencing mistakes makes the stakes clear. An employee who skips a 4% match on a $80,000 salary donates $3,200 per year of free money — over 30 years at 7% returns, roughly $300,000. Conversely, an employee who maxes the 401(k) but leaves the HSA empty loses the FICA savings alone (~$670 per year on a family-max contribution) plus decades of triple-tax-free compounding on $8,750 annual contributions, which could exceed $800,000 by age 65 at historical equity returns. Neither mistake is fatal, but together they represent seven figures of difference over a career — which is why benefits optimization, increasingly assisted by AI-driven analysis of plan documents, has become a genuine wealth-building discipline rather than an HR afterthought.

## Bottom Line: A Decision Framework You Can Apply Today

If you remember nothing else, remember this hierarchy: free employer money first (401(k) match and any employer HSA seed), then max the HSA, then fill the 401(k), then other accounts. Deviate only when your medical reality makes an HDHP inappropriate, when your state taxes HSA gains heavily enough to matter, or when your 401(k) plan offers unusually rich features. The HSA-versus-401(k) question is ultimately not either-or — a family maxing both in 2026 shelters over $33,000 annually, and the accounts solve different problems: the 401(k) builds general retirement wealth, while the HSA builds a tax-shielded reserve against the single largest unpredictable expense category in retirement, healthcare, which Fidelity estimates will run well over $150,000 per retired couple. Fund both, in that order, and adjust annually.

## Quick answers

### Can I contribute to both an HSA and a 401(k) in the same year?

Yes, absolutely. There is no rule preventing simultaneous contributions, and the combined 2026 capacity exceeds $33,000 for a family ($8,750 HSA plus roughly $24,500 401(k)). The only question is the order in which you fund them.

### What happens to my HSA if I switch off a high-deductible health plan?

You keep the money forever — the HSA belongs to you, not your employer. You simply cannot make new contributions in months you are not enrolled in an HDHP, though existing funds remain investable and usable for qualified medical expenses.

### Is an HSA really better than a Roth 401(k)?

For pure tax mechanics, yes: the HSA avoids FICA taxes on payroll contributions and offers tax-free withdrawals for medical expenses at any age, while a Roth requires paying taxes upfront. However, a Roth 401(k) has far higher contribution limits and no restrictions on how you spend the money.

### Can I use my HSA after age 65 for anything I want?

After 65, you can withdraw for any purpose without penalty, but non-medical withdrawals are taxed as ordinary income, just like traditional 401(k) or IRA withdrawals. Withdrawals for qualified medical expenses remain completely tax-free, and Medicare premiums count as qualified expenses.

### Do employer HSA contributions count toward my limit?

Yes. Employer seed contributions, your payroll deductions, and your personal contributions all share the same annual limit (~$4,400 self-only, ~$8,750 family in 2026). Factor employer money in before setting your own deferral rate so you do not exceed the cap.

Canonical: https://healtho.io/knowledge/hsa_vs_401k_which_should_you_fund_first.php
Markdown: https://healtho.io/knowledge/hsa_vs_401k_which_should_you_fund_first.php/index.md
