Your Savings Rate Is High. Your Decision-Making Isn’t.
You’re earning decent money. More than you expected when you took this job. Some of it even makes it past rent and food. And now you have $3,000 a month sitting in your checking account asking you where it should go, and you’re, honestly, just kind of guessing.
Should you pay off your car loan? Stuff it into your Roth IRA? Taxable brokerage? Your 401k is already getting contributions but you don’t know if they’re the right amount. The HSA is a thing you heard about once. Your emergency fund is technically four months of expenses but you’re not sure if that’s enough.
This is the Financial Order of Operations: a ranked, deterministic priority sequence for deploying each incremental dollar. It’s not glamorous. It’s not a hot take. It’s the closest thing personal finance has to a greedy algorithm, at each step, take the highest expected return before moving to the next.
Let’s walk through it, step by step, with the math.
The Flowchart
Here’s the full sequence. Steps at the top have either guaranteed returns or outsized tax advantages, miss them and you’re leaving money on the table. Steps at the bottom are still good moves, just less uniquely powerful.
1. 401k → employer match2. High-interest debt payoff3. Emergency fund (3-6 months)4. Max HSA5. Max IRA (or backdoor Roth IRA)6. Max 401k7. Mega backdoor Roth (if available)8. Taxable brokerage / 529 / extra debtWork through the list top to bottom. Only move to the next step when the current one is satisfied. That’s it. The ordering is the whole point.
Step 1: 401k Up to the Employer Match
This is the closest thing to free money that exists in personal finance.
If your employer matches 50% of your contributions up to 6% of your salary, every dollar you contribute up to that 6% threshold earns an immediate 50% return before touching any market. You will not find a better guaranteed return anywhere. Not in any bond, not in any HYSA, not in any blue-chip stock over any reasonable timeframe.
The math: on a $150k salary with a 50% match on the first 6%, that’s 6% × $150k × 50% = $4,500 in free money per year. You have to contribute $9,000 to get it. If you don’t contribute $9,000, you’re declining $4,500.
Action: Set your 401k contribution percentage to at least the match threshold. If you don’t know your match terms, look them up in your benefits portal right now. Do this before the next step.
Note: this step is specifically about capturing the match. Full 401k maximization comes later.
Step 2: High-Interest Debt
Once you’re capturing the match, attack any debt carrying a high interest rate, typically anything above 6-7%.
The logic is straightforward: paying off a 22% APR credit card is a guaranteed, risk-free 22% return. Your S&P 500 index fund might average 10% over 30 years. The credit card beats it, guaranteed, every time.
The fuzzy part is the cutoff. Debt below ~5%: pay minimums and invest the rest. Debt above ~7-8%: pay it off aggressively before doing additional investing. The 5-7% middle zone is ambiguous, the math is close enough that your personal psychology (do you sleep better with no debt? then kill it) gets a vote.
Common high-interest debt to prioritize: credit cards, personal loans, payday loans. Common debt you don’t need to rush: mortgages at 4-6%, subsidized student loans at 4-5%, auto loans under 4%.
Action: List every debt with its balance and interest rate. Sort descending by rate. Kill the top of the list before moving on.
Step 3: Emergency Fund
Three to six months of actual living expenses, liquid, in a high-yield savings account (HYSA) or money market fund.
The purpose is behavioral, not mathematical. Without an emergency fund, you will blow up every other step on this list. Car needs $3,000 in repairs? You raid your Roth. Job loss? You stop contributing to anything. Unexpected medical bill? Credit card debt that immediately invalidates Step 2.
The emergency fund is the load-bearing wall of this whole structure. Don’t skip it because the math says investing beats 4.5% HYSA returns. The math assumes you never need to liquidate. The emergency fund is insurance against the assumption being wrong.
Size it: Monthly must-pay expenses (rent, utilities, insurance, groceries, minimum debt payments) × 4. If your job is unusually stable or you have a spouse with income, 3 months is fine. If you’re in a volatile industry or single income, push toward 6.
Action: Open a HYSA if you haven’t. Get it to 3 months minimum before investing beyond the match.
Step 4: Max the HSA
If you have access to a High Deductible Health Plan (HDHP) at work, you have access to the best tax account nobody explains properly in onboarding.
The 2026 HSA limits: $4,400 single / $8,750 family (plus an extra $1,000 if you’re 55+).
The HSA is triple tax-advantaged:
- Contributions are pre-tax (or tax-deductible if contributed directly)
- Growth inside the account is tax-free
- Withdrawals for qualified medical expenses are tax-free
No other account does all three. Traditional 401k: pre-tax in, taxable out. Roth IRA: taxable in, tax-free out. HSA: pre-tax in, tax-free out (for medical). It’s the unicorn of tax accounts.
The power move: pay your medical bills out of pocket now, invest the HSA in index funds, let it compound for 20 years, then reimburse yourself for the old bills at retirement. There’s no time limit on reimbursements as long as you save the receipts. At 65, the account converts to a traditional IRA equivalent, withdraw for anything, pay ordinary income tax. Same as a 401k, but with the medical wildcard.
The reason this sits above IRA and 401k maximization: the combination of triple tax advantage + employer contributions (many employers throw in $500-$1,500/year) makes the per-dollar value exceptional. Max this before the IRA.
Action: Confirm you have an HDHP, open an HSA if you haven’t (Fidelity HSA is excellent), max it, and invest it in a low-cost index fund.
Step 5: Max the IRA (or Backdoor Roth IRA)
The 2026 IRA contribution limit is $7,500 ($8,600 if you’re 50+).
Roth vs. traditional: if your income is below ~$153k single / $242k married, you can contribute directly to a Roth IRA. At higher incomes the direct contribution phases out, you use the backdoor Roth IRA instead (contribute to a non-deductible traditional IRA, then convert to Roth). Same outcome, one extra step.
The Roth IRA belongs here, before maxing the 401k, because of flexibility. You can withdraw your contributions (not gains) penalty-free at any time. That makes it a second-tier emergency fund in extreme scenarios. It also has no Required Minimum Distributions, which is a meaningful advantage later. And for most tech workers, you’ll get less flexibility and fund choice from your 401k than from an IRA at Fidelity or Vanguard.
Action: Open a Roth IRA at Fidelity or Vanguard. Contribute $7,500 before April 15 of the following year (the deadline is generous). If income is too high, do the backdoor version, it’s a two-step process that takes about 15 minutes.
Step 6: Max the 401k
You already captured the match in Step 1. Now you go all the way.
The 2026 employee contribution limit is $24,500 ($32,500 if you’re 50+, or $35,750 if you’re 60 to 63 under SECURE 2.0’s enhanced catch-up). If you’ve been at 6% to capture the match, bump the percentage until you’re on track to hit the limit by year-end.
The pitch for this: every dollar in your 401k is a dollar that doesn’t get taxed this year. On a $150k salary in California, that’s roughly 32% federal + 9.3% state = ~41% marginal rate. Contributing $24,500 saves you roughly $10,000 in taxes this year, and that money compounds tax-deferred until retirement.
Traditional vs. Roth 401k: if you expect to be in a lower tax bracket in retirement (common if you plan to retire early, or if you’ll have years of low income to do Roth conversions), traditional pre-tax 401k wins now. If you expect taxes to go up or want diversification, Roth 401k is fine. When in doubt, traditional, you can always convert later.
Action: Increase your contribution percentage until you’re maxing the employee limit. Use a simple calculator: $24,500 ÷ 26 pay periods = ~$942/paycheck.
Step 7: Mega Backdoor Roth (If Your Plan Allows It)
You’ve captured the match, cleared high-interest debt, built an emergency fund, maxed the HSA, maxed the IRA, and maxed the standard 401k. Most people stop here, and that’s completely fine.
But if you’re in “I have more money than tax-advantaged buckets” territory, check whether your 401k plan supports the mega backdoor Roth. The short version: the IRS 415(c) limit for 2026 is $72,000 total across all contributions. Employee + employer + after-tax. If you’ve contributed $24,500 and your employer put in $6,000, there’s $41,500 of after-tax contribution space remaining. You contribute after-tax dollars, then immediately convert to Roth inside the plan (or roll to a Roth IRA).
The result: up to $41,500 more into Roth per year, tax-free growth forever.
Not all plans support this. Email HR with the specific questions from the mega backdoor Roth explainer, it’s worth 10 minutes to check.
Step 8: Taxable Brokerage, 529, or Extra Debt
You’ve exhausted every tax-advantaged account. Additional savings go into a taxable brokerage account, still a great outcome. Index funds in a taxable account benefit from long-term capital gains rates (0%, 15%, or 20% depending on income), which beats ordinary income tax rates. You’ve just lost the upfront tax break.
For parents, a 529 plan for college savings fits here, state tax deduction varies by state, growth and withdrawals for qualified education expenses are tax-free. It’s not as universally compelling as the accounts above, but it has real value.
If you have medium-interest debt in the 5-7% gray zone you passed in Step 2, this is also when it’s worth reconsidering, paying it off becomes a reasonable guaranteed return vs. taxable brokerage expected returns.
The Worked Example: $150k Salary, $40k/Year to Allocate
Let’s run through this with real numbers. Alex is a software engineer: $150k salary, $40k/year in investable income, 50% 401k match on first 6%, HDHP with access to an HSA, single filer.
| Step | Action | Annual Amount | Running Total |
|---|---|---|---|
| 1. 401k match | Contribute 6% to capture match | $9,000 | $9,000 |
| 2. High-interest debt | Already cleared (no credit card debt) | $0 | $9,000 |
| 3. Emergency fund | Already funded at 4 months | $0 | $9,000 |
| 4. Max HSA | $4,400 single limit (2026) | $4,400 | $13,400 |
| 5. Max Roth IRA | Backdoor Roth (income too high for direct) | $7,500 | $20,900 |
| 6. Max 401k | $24,500 total - $9,000 already in = bump up | $15,500 | $36,400 |
| 7. Mega backdoor | Check plan, assume supported | $3,600 | $40,000 |
| 8. Taxable brokerage | Remainder | $0 | $40,000 |
Alex hits the full $40k deployed, with all $40,000 landing in tax-advantaged accounts, including $3,600 going into Roth via mega backdoor. The employer match adds another $4,500 on top (free money, not counted against Alex’s $40k).
Compare that to someone who skips Step 1 and puts everything in a taxable brokerage: same $40k deployed, $0 in tax-advantaged accounts, $4,500 employer match left on the table. Same savings rate, different outcome over 30 years.
The One Rule That Makes This Work
The flowchart is only useful if you actually follow the sequence. The most common failure mode: someone invests $10k in a taxable brokerage while carrying $8k in credit card debt and contributing 3% to their 401k when the match threshold is 6%. Every one of those three dollars is doing less work than it could.
Work down the list. Only move to the next step when the current one is satisfied. The math rewards you for following the order, not for optimizing any individual step in isolation.
Your emergency fund doesn’t have to be perfect before you start the HSA. Your 401k match capture doesn’t require zero debt. But broadly, top to bottom, in sequence.
The market will do whatever it does. The order of operations is the one thing you actually control.