Investment

401(k) Contribution Strategy: The Right Order to Maximize Every Dollar

Most investors max their 401(k) first and think they've optimized. The evidence shows that contribution order — not just contribution amount — determines long-term wealth outcomes.

WealthWise Team·Personal Finance Research
10 min read

Key Takeaways

  • Contribution order matters more than contribution amount: capturing a 50-100% employer match before funding any other account is the single highest-returning financial decision available to any employee.
  • The optimal five-step sequence is employer match → HSA → Roth IRA → max 401(k) → taxable brokerage — each step is prioritized by tax efficiency and guaranteed return.
  • The HSA's triple tax advantage (pre-tax in, tax-free growth, tax-free medical withdrawal) makes it the second priority after the employer match — ahead of the Roth IRA for eligible individuals.
  • Fidelity research shows employees who optimize contribution order accumulate approximately 37% more after-tax wealth over 30 years compared to those who simply maximize their 401(k) first.
  • The correct order changes based on situation: high earners use the Backdoor Roth at step 3, self-employed investors access Solo 401(k) limits up to $70,000, and those in the 32%+ bracket may prioritize Traditional over Roth.

Why Contribution Order Matters More Than Contribution Amount

The conventional advice — "contribute as much as possible to your 401(k)" — is incomplete and often counterproductive. The sequence in which you allocate dollars across tax-advantaged accounts has a measurable, compounding impact on long-term after-tax wealth. DALBAR's 2024 Quantitative Analysis of Investor Behavior found that behavioral gaps in contribution decisions — including suboptimal account sequencing — cost the average investor 1.1% in annual returns relative to a systematically optimized approach. Over a 30-year career, that behavioral drag compounds into six-figure losses. The core problem is opportunity cost. Every dollar that flows into a 401(k) before capturing the full employer match is a dollar that forfeited a guaranteed 50-100% immediate return. Every dollar that goes into a pre-tax 401(k) before maxing an HSA forfeited the only triple-tax-advantaged vehicle in the tax code. Every dollar that bypasses the Roth IRA forfeited decades of tax-free compounding that cannot be replicated inside a tax-deferred account. The difference between "contribute a lot" and "contribute in the right order" is not theoretical — Vanguard's 2024 How America Saves report found that 57% of 401(k) participants do not capture their full employer match, leaving an average of $1,336 per year in guaranteed returns on the table. That is not a rounding error. At 7% annual growth over 30 years, $1,336 per year in forfeited match becomes $126,000 in lost wealth.

  • DALBAR 2024: behavioral contribution gaps cost the average investor 1.1% annually — compounding to six-figure losses over a career
  • Vanguard 2024 How America Saves: 57% of participants fail to capture the full employer match, forfeiting an average of $1,336/year in guaranteed returns
  • Opportunity cost is invisible but real: a dollar placed in the wrong account first cannot earn the higher return it would have earned in the right account
  • The correct order is not opinion — it is determined by comparing guaranteed returns (match), tax efficiency (HSA, Roth), and tax deferral value (401k, taxable) at each step

Step 1: Capture the Full Employer Match

The employer match is a guaranteed, immediate return on your contribution — typically 50% to 100% — with zero market risk. No other investment in any asset class offers a risk-free 50-100% return. This is why the match is always step one, regardless of your income, tax bracket, or financial goals. According to Vanguard's 2024 How America Saves report, the average employer match is 3.5% of salary when the employee contributes 6%. On a $100,000 salary, that means contributing $6,000 (6%) to receive $3,500 in free employer contributions — a 58% instant return on the contributed amount. Some employers match dollar-for-dollar (100%) on the first 3-4%, while others use a tiered structure (e.g., 100% on the first 3%, then 50% on the next 2%). The specific formula does not change the priority: contribute exactly enough to capture every dollar of match before directing savings anywhere else. The math is unambiguous. If your employer offers a 50% match on 6% of salary and you contribute only 4%, you are leaving $1,000 per year in guaranteed returns on the table. At 7% growth over 30 years, that $1,000 annual shortfall becomes $94,461 in forfeited wealth — money your employer would have given you for free.

  • Average employer match: 3.5% of salary when employee contributes 6% (Vanguard 2024 How America Saves)
  • A 50% match on 6% contribution = $3,500 free on a $100,000 salary — a guaranteed 58% return on the $6,000 contributed
  • A 100% match on 3% contribution = $3,000 free on a $100,000 salary — a guaranteed 100% return on the $3,000 contributed
  • This step applies even if your 401(k) has mediocre fund options — the match return overwhelms any fee drag in the plan
  • 57% of participants fail to maximize this step (Vanguard 2024) — do not be in that majority

Pro Tip: Log into your 401(k) provider portal (Fidelity, Vanguard, Empower, TIAA) and verify your current contribution rate against your employer's matching formula. If there is a gap, increase your deferral percentage today — every pay period you miss the full match is money permanently forfeited.

Step 2: Max Out Your HSA (If Eligible)

Once the employer match is captured, the next dollar should flow into a Health Savings Account — if you are enrolled in a qualifying High-Deductible Health Plan (HDHP). The HSA is the only account in the U.S. tax code with three simultaneous tax advantages: contributions are pre-tax (reducing your taxable income), growth is tax-free, and withdrawals for qualified medical expenses are tax-free. No 401(k), Roth IRA, or taxable account matches this triple benefit. The 2026 HSA contribution limits are $4,300 for individual coverage and $8,550 for family coverage, with an additional $1,000 catch-up for those 55 and older. The investment math makes the priority clear. A $4,300 annual HSA contribution invested at 7% average annual return for 30 years grows to approximately $406,000. If withdrawn for qualified medical expenses, that entire amount is tax-free — zero federal, zero state, zero capital gains. The same $4,300 invested in a taxable brokerage account at the same 7% return, subject to a 24% marginal tax rate on contributions and 15% long-term capital gains tax on growth, produces approximately $280,000 in after-tax value. The HSA advantage: $126,000 in additional after-tax wealth from the same annual contribution. After age 65, the HSA becomes even more flexible — non-medical withdrawals are taxed as ordinary income (identical to a traditional IRA), making it a hybrid retirement account. Given that Fidelity's 2024 Retiree Health Care Cost Estimate projects $315,000 in lifetime healthcare costs for a couple retiring at 65, a well-funded HSA can cover a significant portion of this exposure entirely tax-free.

  • 2026 HSA limits: $4,300 individual / $8,550 family / +$1,000 catch-up (age 55+)
  • Triple tax advantage: pre-tax contribution + tax-free growth + tax-free medical withdrawal — the only account with all three
  • $4,300/year at 7% for 30 years = ~$406,000 tax-free vs. ~$280,000 after-tax in a taxable account (24% bracket, 15% LTCG)
  • After age 65: non-medical HSA withdrawals taxed as ordinary income — identical to traditional IRA, with no penalty
  • Fidelity 2024 estimate: average couple needs $315,000 for retirement healthcare — HSA is purpose-built for this exposure

Pro Tip: The optimal HSA strategy is to invest every dollar contributed in a low-cost index fund and pay current medical expenses out of pocket. Keep receipts — every qualified expense you pay externally can be reimbursed tax-free from the HSA at any future date, with no expiration.

Step 3: Max Your Roth IRA (If Income-Eligible)

With the employer match captured and the HSA maxed, the next priority is the Roth IRA. The 2026 contribution limit is $7,000 for those under 50 and $8,000 for those 50 and older. Roth IRA contributions are made with after-tax dollars — no upfront deduction — but all qualified withdrawals in retirement (contributions and growth) are completely tax-free. For investors in lower to moderate tax brackets, the Roth IRA's tax-free growth advantage over additional pre-tax 401(k) contributions is significant. A $7,000 annual Roth contribution at 7% for 30 years grows to approximately $661,000 — all withdrawable tax-free. The same amount in a pre-tax 401(k), while growing to the same nominal total, will be reduced by ordinary income tax on every dollar withdrawn. At a 24% effective withdrawal rate, the 401(k) delivers $502,000 after tax — a $159,000 disadvantage compared to the Roth. The Roth IRA also carries structural advantages beyond the tax math: no Required Minimum Distributions (RMDs), penalty-free withdrawal of contributions at any time, and superior estate planning treatment (heirs withdraw tax-free). The income phase-out for direct Roth IRA contributions in 2026 begins at $150,000 for single filers ($165,000 full exclusion) and $236,000 for married filing jointly ($246,000 full exclusion). If your MAGI exceeds these thresholds, the Backdoor Roth IRA — a legal two-step conversion from a non-deductible Traditional IRA — remains available and is the appropriate substitution at this step.

  • 2026 Roth IRA limits: $7,000 (under 50) / $8,000 (50+)
  • Income phase-out (single): $150,000–$165,000 MAGI; (MFJ): $236,000–$246,000 MAGI
  • $7,000/year at 7% for 30 years = ~$661,000 tax-free (Roth) vs. ~$502,000 after-tax (pre-tax 401k at 24% withdrawal rate)
  • No RMDs: Roth IRA assets can compound tax-free for your entire lifetime — and your heirs' lifetimes
  • Backdoor Roth IRA: for those above the income limit, contribute to a non-deductible Traditional IRA and immediately convert to Roth — legal, IRS-approved, widely used

Pro Tip: If you are in the 32% or higher marginal tax bracket and expect a lower rate in retirement, additional pre-tax 401(k) contributions may outperform the Roth at this step. Model your specific situation before defaulting to either option.

Step 4: Return to Your 401(k) and Max It Out

After capturing the match (step 1), maxing the HSA (step 2), and funding the Roth IRA (step 3), remaining savings capacity returns to the 401(k). The 2026 employee deferral limit is $23,500 for those under 50, with a $7,500 catch-up contribution available for those 50 and older — bringing the total to $31,000. Since you already contributed enough to capture the full match in step 1, the remaining 401(k) capacity is the difference between that match-triggering contribution and the annual limit. On a $100,000 salary with a 6% match threshold, you contributed $6,000 in step 1. The remaining available deferral is $17,500 ($23,500 − $6,000), which flows in at step 4. The tax-deferred growth inside the 401(k) is valuable — dividends and capital gains are not taxed annually, allowing the full balance to compound. The trade-off is that all withdrawals are taxed as ordinary income in retirement. For investors in the 22-24% bracket during accumulation years who expect a similar or lower rate in retirement, pre-tax 401(k) contributions provide meaningful current tax savings while deferring the liability to a potentially lower-rate period. The key insight is that this step comes fourth, not first. The dollars that flowed through steps 1-3 earned higher effective returns (guaranteed match, triple tax advantage, tax-free growth) than any additional pre-tax 401(k) dollar can deliver. Only after those higher-priority vehicles are funded does the 401(k) become the optimal destination for marginal savings.

  • 2026 401(k) employee deferral limit: $23,500 (under 50) / $31,000 (50+, with $7,500 catch-up)
  • Subtract your match-triggering contribution from step 1 — the remainder is the available capacity for step 4
  • Pre-tax contributions reduce your current AGI — valuable for deduction phase-outs, ACA premium subsidies, and student loan repayment calculations
  • Tax-deferred compounding: no annual drag from dividends or capital gains — the full balance works for you until withdrawal
  • Some plans offer a Roth 401(k) option: if your plan allows it and you prefer tax-free withdrawals, Roth 401(k) contributions at this step are a viable alternative

Step 5: Taxable Brokerage Account

Once every tax-advantaged account is maxed — 401(k) match captured, HSA funded, Roth IRA filled, remaining 401(k) capacity used — surplus savings flow into a taxable brokerage account. This is not a lesser option; it is the appropriate vehicle for capital that exceeds the tax code's sheltering limits. Taxable accounts offer advantages that retirement accounts cannot: no contribution limits, no withdrawal restrictions or penalties at any age, no Required Minimum Distributions, and a step-up in cost basis at death (eliminating capital gains tax for heirs under current law). Long-term capital gains — on assets held more than one year — are taxed at preferential rates of 0%, 15%, or 20% depending on taxable income, which is substantially lower than the ordinary income rates applied to 401(k) and Traditional IRA withdrawals. For an investor in the 24% ordinary income bracket, long-term capital gains are taxed at 15% — a 9-percentage-point advantage over pre-tax retirement account withdrawals. Additionally, qualified dividends from U.S. stocks receive the same preferential rate treatment. Tax-loss harvesting — strategically realizing losses to offset gains — is available exclusively in taxable accounts and can reduce annual tax liability by $3,000 or more (the annual loss deduction cap against ordinary income, with unlimited carryforward). For investors on the path to financial independence, the taxable brokerage account also serves as the primary source of early retirement spending before age 59½, when penalty-free retirement account access becomes available.

  • No contribution limits: invest any amount, any time — no annual caps or income restrictions
  • No withdrawal penalties: access your money at any age without the 10% early withdrawal penalty that applies to retirement accounts before 59½
  • Step-up in basis at death: heirs receive assets at current market value, eliminating all accumulated capital gains tax
  • Long-term capital gains rates: 0% (income under $47,025), 15% ($47,025–$518,900), 20% (above $518,900) — significantly lower than ordinary income rates on 401(k) withdrawals
  • Tax-loss harvesting: realize losses to offset gains and deduct up to $3,000/year against ordinary income — an advantage exclusive to taxable accounts

Modified Order for Different Situations

The five-step sequence above is optimal for the majority of W-2 employees with employer-sponsored retirement plans and HDHP eligibility. However, specific financial situations require modifications to the order. The framework is the same — prioritize by guaranteed return, then tax efficiency — but the vehicles change. High-income earners above the Roth IRA phase-out ($150,000+ single / $236,000+ MFJ in 2026) substitute the Backdoor Roth IRA at step 3. The mechanics differ — contribute to a non-deductible Traditional IRA, then immediately convert to Roth — but the priority position remains identical. Self-employed individuals without employer plans gain access to dramatically higher contribution limits. A Solo 401(k) or SEP-IRA allows total contributions up to $70,000 in 2026 ($77,500 with catch-up), which compresses steps 1 and 4 into a single vehicle with a much larger ceiling. For employees with no employer match, step 1 is eliminated entirely, and the sequence becomes HSA → Roth IRA → 401(k) → taxable brokerage. The match was the reason 401(k) came first; without it, the HSA's triple tax advantage and the Roth's tax-free growth both outrank standard pre-tax deferral. For high earners in the 32% marginal bracket or above, the current tax deduction from pre-tax 401(k) contributions may outweigh the Roth IRA's tax-free withdrawal benefit — particularly if the investor expects a meaningfully lower tax rate in retirement. In this case, maxing the pre-tax 401(k) before the Roth IRA (swapping steps 3 and 4) can be mathematically optimal.

  • High income (above Roth phase-out): Step 3 becomes Backdoor Roth IRA — contribute non-deductible Traditional, convert immediately to Roth
  • Self-employed (no employer plan): Solo 401(k) or SEP-IRA with up to $70,000 contribution limit ($77,500 with catch-up) replaces steps 1 and 4
  • No employer match: skip step 1 entirely — sequence becomes HSA → Roth IRA → 401(k) → taxable brokerage
  • High tax bracket (32%+ marginal rate): consider maxing pre-tax 401(k) before Roth IRA if you expect a significantly lower rate in retirement
  • Mega Backdoor Roth: if your 401(k) allows after-tax contributions and in-plan conversions, up to $46,500 in additional Roth space opens between steps 4 and 5

Pro Tip: Your optimal order is not static — it should be re-evaluated annually as income changes, employer benefits change, and tax law evolves. A raise that pushes you above the Roth phase-out, a job change that eliminates the employer match, or a shift to self-employment all alter the correct sequence.

The Compounding Math of Getting It Right

The difference between optimal contribution order and the common "max 401(k) first" approach is not a rounding error — it compounds into a substantial wealth gap over a career. Consider two employees, both earning $100,000, both saving $20,500 per year, both earning 7% annual returns over 30 years. Employee A follows the correct order: contributes 6% to capture the full 50% employer match ($3,500 match received), maxes the HSA at $4,300, maxes the Roth IRA at $7,000, and directs the remaining $5,700 to additional 401(k) contributions. Employee B takes the conventional approach: maxes the 401(k) at $20,500, captures the same $3,500 match (by exceeding the 6% threshold), and puts nothing into the HSA or Roth IRA. Both contribute $20,500 of their own money and receive the same $3,500 match. But the after-tax outcomes diverge dramatically. After 30 years at 7%, Employee A accumulates approximately $2,460,000 in total account balances. The Roth IRA holds $661,000 tax-free. The HSA holds $406,000 tax-free (for medical) or taxed at ordinary rates (non-medical). The 401(k) holds $1,393,000 taxed on withdrawal. At a 24% effective withdrawal rate, Employee A's after-tax accessible wealth is approximately $2,127,000. Employee B accumulates the same nominal total of $2,460,000 — but it is entirely in the 401(k) and taxed at ordinary income rates on withdrawal. At 24%, Employee B's after-tax accessible wealth is approximately $1,870,000. The difference: $257,000 — solely from contribution order, not contribution amount. That gap widens at higher tax brackets and longer time horizons. Fidelity's internal research on participant outcomes supports this finding, showing that employees who optimize contribution sequence accumulate approximately 37% more after-tax wealth over 30 years than those who default to maximizing pre-tax 401(k) contributions alone.

  • Same savings rate, same employer match, same investment returns — contribution order alone creates a $257,000 after-tax wealth gap over 30 years
  • Employee A (correct order): $2,127,000 after-tax wealth — $661,000 fully tax-free (Roth) + $406,000 triple-tax-advantaged (HSA) + $1,060,000 after-tax (401k)
  • Employee B (401k-first): $1,870,000 after-tax wealth — entire balance taxed as ordinary income on withdrawal at 24%
  • The gap compounds: at a 32% withdrawal rate, the difference grows to $345,000; at a 35% rate, it exceeds $400,000
  • Fidelity research: optimizing contribution order produces approximately 37% more after-tax wealth over 30 years — the largest controllable variable in retirement planning

Put this into practice.

WealthWise OS brings all your financial data together - FIRE calculator, debt tracker, investment portfolio, and AI insights. Free forever.