An HSA and a 401(k) do different jobs, and many people should use both. The useful question is where the next dollar goes after essential bills, minimum debt payments, and a basic cash reserve are covered.
Start with the employer match
If an employer matches 401(k) contributions, contribute enough to receive the full available match before optimizing the rest. The match is part of compensation and can outweigh the tax differences between accounts.
Read the plan document. Matching formulas vary, contributions may be calculated each pay period, and employer money can follow a vesting schedule. Your own salary deferrals are always yours, but the Department of Labor notes that matching contributions may vest over time.
For 2026, the employee 401(k) deferral limit is $24,500. The general age-50 catch-up is $8,000, with a different $11,250 catch-up for participants ages 60 through 63 when plan rules allow it. The IRS 2026 retirement limit release lists the current amounts.
Why the HSA often comes next
At the federal level, an HSA can combine deductible or excluded contributions, tax-deferred growth, and tax-free withdrawals for qualified medical expenses. Unused money carries forward, and there is no requirement to spend it each year.
For 2026, the contribution limit is $4,400 with self-only coverage and $8,750 with family coverage. Employer deposits count toward that same total. Eligibility requires qualifying high-deductible health coverage and no disqualifying coverage. The IRS 2026 HSA procedure gives the contribution, deductible, and out-of-pocket limits.
HSA money is less flexible before age 65. A withdrawal for a nonmedical purpose is generally taxable and can face an additional 20% tax. After 65, the additional tax no longer applies, but a nonmedical withdrawal is still generally taxable. Qualified medical withdrawals remain federally tax-free. IRS Publication 969 explains distributions and eligibility.
When additional 401(k) contributions may come first
An HSA is not automatically the next priority. Additional 401(k) contributions may be more useful when:
- You are not HSA-eligible
- The HSA has high fees or weak investment choices
- You need HSA cash for current care and cannot invest the balance
- The 401(k) offers unusually low-cost investments
- Traditional 401(k) deferrals fit a current tax-planning need
- Payroll systems or employer contributions change the comparison
Check all HSA and 401(k) costs. The Department of Labor emphasizes that 401(k) fees reduce investment returns. HSA custodial and investment fees can do the same.
Keep state taxes in the calculation
The three-part HSA benefit describes federal tax treatment. States can differ. California does not conform to the federal HSA contribution deduction. Its Schedule CA instructions require an adjustment for the federal deduction.
That does not make an HSA useless for a California taxpayer, but it reduces the state tax advantage. Apply the rules for the state that taxes the contribution and earnings.
A practical funding order
A common starting sequence is:
- Keep enough cash for near-term needs and make all required debt payments.
- Contribute enough to receive the full 401(k) match.
- Fund the HSA to the level that fits expected health costs and long-term use.
- Add to the 401(k) and other appropriate accounts based on taxes, fees, and goals.
This is a framework, not a universal ranking. Someone with expensive variable-rate debt or no emergency reserve may need to strengthen the balance sheet before maximizing either account.
Santafino’s retirement planning service can model account order alongside taxes, investments, and the rest of the retirement plan.
The bottom line
Capture the full employer match first in most cases. After that, an HSA’s federal tax treatment can make it a strong next account, provided you are eligible and the costs are reasonable. Then return to the 401(k) as the budget allows. State taxes, liquidity, health needs, and plan quality determine the exact order.
FAQ
Should I get my 401(k) match before funding an HSA?
Usually yes. Contribute enough to capture the full available employer match, while checking the plan's matching formula and vesting terms.
What are the HSA contribution limits for 2026?
The total limit is $4,400 for self-only coverage and $8,750 for family coverage. Employer contributions count toward the same limit, and an additional $1,000 may be available at age 55 or older.
Can I contribute to both an HSA and a 401(k)?
Yes, if you are eligible for the HSA and participate in the workplace plan. The accounts have separate limits, so funding one does not by itself reduce the other's contribution limit.



