Money Basics Foundations

The financial order of operations for federal employees

You have one paycheck and a dozen places it could go — the match, credit-card debt, an emergency fund, the HSA, Roth, the TSP, a mortgage. Fund them in the wrong order and you leave real money on the table every month. This is the complete priority ladder for a federal employee, so every dollar you earn flows to the highest-value place available before anything below it.

100%
Instant return from capturing the full 5% TSP match — step 2, never skipped
Agency match
9 steps
A clear ladder from starter buffer to hyper-accumulation
The full order
Highest first
Every dollar goes to its highest guaranteed return or tax break
The one rule
3–6 mo.
Emergency fund target before you turn to maxing accounts
Step 4

1. Why order matters more than effort

Most personal-finance advice tells you what to do — save, invest, pay off debt, build an emergency fund. Almost none of it tells you the one thing that actually determines whether you build wealth or spin your wheels: the order you do them in. You have a finite paycheck. Every dollar can only go to one place. Sequence that badly and you can work hard, save diligently, and still lose thousands a year to a missed match, avoidable interest, or a tax break you left unclaimed.

The good news is that the right sequence isn’t a matter of opinion. Each place your money can go has a measurable value — a guaranteed return, a tax advantage, or a risk it removes — and those values can be ranked. A dollar that captures a 100% employer match is worth more than a dollar that pays down a 22% credit card, which is worth more than a dollar in a tax-free account, which is worth more than a dollar prepaying a 3% mortgage. Put every dollar where it does the most good first, and only move down the list once the step above is full. That’s the entire idea.

This is the federal-specific version of that ladder. Feds have tools most workers don’t — an unusually generous TSP match, low-cost index funds, and a guaranteed pension waiting at the end — and a couple of quirks that change the order slightly. Follow this once and you can stop agonizing over every raise, bonus, and tax refund. You’ll already know exactly where the next dollar goes.

It’s worth being clear about why a fixed order works better than judgment in the moment. Money decisions are emotional — debt makes people anxious, market headlines make them greedy or fearful, and a big expense makes them cautious. Decide the sequence once, in a calm moment, using math instead of mood, and you remove emotion from every future decision. The raise, the tax refund, the bonus, the inheritance — each one stops being a fresh dilemma and becomes a simple lookup against a list you already trust. That’s the quiet superpower of an order of operations: it makes the right move the default move.

2. The one rule behind the whole list

Before the steps, internalize the principle that generates them, because it lets you handle situations this article doesn’t list: send every dollar to the highest guaranteed return or largest tax advantage available to you, then move down. That single rule explains why the match beats debt payoff, why high-interest debt beats investing, and why a cheap mortgage is dead last.

Two ideas do all the work. First, a guaranteed return beats a hoped-for one. Capturing a 5% match is a certain, immediate 100% on that money; paying off a 22% credit card is a certain 22%; investing in the market is an uncertain ~7%. Certainty is worth a premium, so guaranteed wins go first. Second, a tax advantage is a return you don’t have to earn. A dollar in a Roth account that grows tax-free, or an HSA dollar that’s never taxed at all, quietly out-earns the same dollar in a taxable account for decades. Rank by those two things — guaranteed return and tax advantage — and the order below falls out on its own.

The mental shortcut

When a raise, refund, or windfall lands and you’re not sure where it goes, ask one question: “What’s the highest step on my ladder that isn’t full yet?” Fund that. You never have to guess again. For a bigger windfall, work down several steps in order.

3. The order of operations, at a glance

Here is the full ladder. Each rung is funded before you climb to the next; when a rung is full, the surplus flows down to the one below it. Keep it somewhere you’ll see it — it turns every money decision into a lookup instead of a debate.

FUND FROM THE BOTTOM UP 1Essentials + starter buffer ($1–2k)Keep the lights on; a small cash cushion so a surprise isn’t a credit-card event. 2Full TSP match (contribute 5%)Free money — an instant 100% return. Never skip, even while in debt. 3High-interest debtCredit cards and anything above ~7–8%. A guaranteed return equal to the rate. 4Full emergency fund (3–6 months)The buffer that keeps every step below it from unraveling in a bad month. 5Max the HSA (if HDHP-eligible)Triple tax-free. The single best account you have — if your plan qualifies. 6Max Roth space (Roth TSP / Roth IRA)Tax-free growth — especially valuable behind a pension that keeps income up. 7Max the rest of the TSPFill to the annual limit — low fees, automatic, tax-advantaged. 8Hyper-accumulation (taxable brokerage, I-bonds)When the tax-advantaged buckets are full and you still have more to invest. 9Prepay low-interest debt & fund other goalsThe cheap mortgage, the 529, the next chapter — last, on purpose.
The federal financial order of operations. Fund each rung before climbing to the next; the two highlighted rungs (match and Roth) are the ones feds most often under-use.

4. Step 1 — Essentials and a starter buffer

Before any investing or debt payoff, two things come first: keep your basic life running, and put a small cash cushion between yourself and disaster. Essentials are the non-negotiables — housing, food, utilities, transportation, minimum debt payments, insurance. If you’re not covering those, nothing else on this list matters yet.

On top of essentials, build a starter emergency buffer of roughly $1,000 to $2,000. This isn’t your full emergency fund — that comes at step 4. It’s just enough that a flat tire, a co-pay, or a broken appliance doesn’t become a new credit-card balance and knock you off the ladder before you’ve started climbing. Keep it somewhere instant and safe; a high-yield savings account is ideal, and our guide on where to keep cash covers the options. If budgeting is where you’re stuck, start with a framework like the 50/30/20 budget and build the buffer out of the savings bucket.

Why so small before moving on? Because the very next step — the match — is worth more than a fully stocked emergency fund, and you don’t want to spend months hoarding cash while leaving free money uncollected. A modest buffer is enough to stop small emergencies from derailing you; the larger fund can wait its turn.

5. Step 2 — Capture the full TSP match

This is the most important single move on the entire ladder, and it comes early for one reason: the agency match is free money and an instant 100% return. Contribute at least 5% of your salary to the TSP and your agency adds its full matching contribution on top — a guaranteed, immediate doubling of that portion of your money that no investment, no debt payoff, and no tax strategy can rival. Skipping it is the most expensive mistake a federal employee can make, and it compounds every year you miss it.

Notice that the match sits above paying off high-interest debt on the ladder. That surprises people — shouldn’t you clear a 22% credit card before investing? Not this. A 100% instant return beats a 22% one, so you always grab the match first, then attack the debt with everything else. Contribute the 5% to capture the match, and pause additional TSP contributions there for now — you’ll come back to max the rest at step 7. For the deeper mechanics of contribution order, see the TSP funding-order mistake.

Know exactly how the match is built, because it rewards hitting 5% precisely. Your agency automatically contributes 1% of your salary whether or not you put in a dime. On top of that, it matches your own contributions dollar-for-dollar on the first 3% you contribute, then 50 cents on the dollar for the next 2%. Contribute a full 5% and you collect the entire package — your 5% plus the agency’s 5%, an immediate doubling. Contribute less and you leave part of that free money uncollected; contribute more (which you’ll do at step 7) earns no additional match, which is exactly why step 2 stops at 5% and sends the next dollars to debt instead.

Don’t front-load and lose match

If you max the TSP early in the year and hit the annual limit before December, your contributions stop — and so does the per-pay-period match on the remaining paychecks. Spread contributions across all 26 pay periods so you capture every dollar of match. This is one of the most common ways feds accidentally leave money behind.

6. Step 3 — Kill high-interest debt

With the match captured, turn every spare dollar on high-interest debt — credit cards, payday loans, anything charging more than roughly 7–8%. Paying off a balance is mathematically identical to earning a guaranteed, risk-free return equal to its interest rate. Clear a 22% card and you’ve “earned” a guaranteed 22% — a return you cannot reliably get anywhere else, which is exactly why it outranks nearly everything below it on the ladder.

Attack the debt with a clear method. The avalanche (highest interest rate first) saves the most money; the snowball (smallest balance first) builds momentum and is easier to stick with. Either works — the best method is the one you’ll actually finish. If you’re carrying card balances, our guide to using credit cards without getting wrecked covers how to stop the bleeding, and good debt vs. bad debt explains why this rung targets high-interest balances specifically.

Where’s the line? Debt above ~7–8% is a clear payoff priority. Debt below that — a cheap mortgage, a low-rate student loan, a 0% car loan — is not an emergency and drops to step 9, because your tax-advantaged accounts will likely out-earn that low rate over time. Student loans specifically sit in a gray zone worth thinking through; our student-loan payoff playbook walks through where yours land.

If the balances feel unmanageable, a few tools can lower the interest rate you’re fighting before you attack the principal: a 0% balance-transfer offer can buy you a payoff runway (mind the transfer fee and the date the rate resets), and a lower-rate personal loan can consolidate several cards into one cheaper payment. Neither erases the debt — they just reduce the guaranteed “return” you’re chasing so more of each payment hits principal. Whatever the tactic, the ladder position doesn’t change: high-interest debt gets cleared before you climb to the emergency fund and the tax-advantaged rungs above it.

7. Step 4 — Your full emergency fund

High-interest debt gone, now build the real safety net: three to six months of essential expenses in accessible cash. This is the buffer that protects every rung below it. Without it, one job loss, medical event, or major repair sends you straight back to the credit cards you just paid off — and you start the climb over.

How many months? Lean toward three if you have very stable federal employment, a two-income household, and few dependents; lean toward six (or more) if your income is variable, you’re a single earner, or a RIF or reorganization feels possible in your agency. Federal jobs are steadier than most, but recent years have reminded feds that “stable” isn’t “guaranteed” — a fuller cushion buys real peace of mind. Keep this money liquid and separate from spending; again, where to keep cash covers the best homes for it, and our take on the emergency fund vs. high-interest debt question explains why the starter buffer and the debt came first.

Only once this fund is in place do you climb into the serious wealth-building rungs. The order is deliberate: the emergency fund is what makes it safe to lock money away in retirement accounts, because you’ll never be forced to raid them at the worst possible time.

8. Step 5 — Max the HSA (if eligible)

If — and only if — you’re enrolled in an HSA-eligible high-deductible health plan, the Health Savings Account jumps near the top of your investing priorities, because it’s the only triple-tax-advantaged account in existence: contributions go in pre-tax, the money grows tax-free, and withdrawals for qualified medical expenses are tax-free. No other account gives you all three. That makes a maxed HSA one of the most powerful retirement tools a federal employee can own.

The advanced move: if you can afford to, pay current medical bills out of pocket and let the HSA grow untouched as a stealth retirement account, saving your receipts to reimburse yourself tax-free years later. In retirement, HSA dollars cover Medicare premiums and out-of-pocket costs tax-free — and healthcare is one of the largest expenses most retirees face. Our guide to the HSA in retirement covers that strategy in depth.

One important caveat for feds: most FEHB enrollees are not in HDHPs, so this step simply doesn’t apply to them — skip straight to step 6. If you are in a qualifying plan, though, the HSA earns its high spot on the ladder.

9. Steps 6–7 — Roth, then the rest of the TSP

Now fill your tax-advantaged retirement space, and here the order has a fed-specific twist. Step 6 is capturing Roth space — Roth TSP and/or a Roth IRA — before you finish maxing traditional contributions. Roth money is contributed after tax and then grows and comes out completely tax-free, which is unusually valuable for a federal employee: your FERS pension plus Social Security already fill up the lower tax brackets in retirement, so having a bucket of tax-free money to draw on keeps you out of higher brackets and away from IRMAA surcharges later. For the Roth TSP-versus-Roth-IRA decision, see Roth TSP vs. Roth IRA, and for the broader account comparison, Roth IRA vs. 401(k) vs. brokerage.

Don’t overlook the IRA layer that sits alongside the TSP. A Roth IRA — separate from and on top of your TSP — gives you a second bucket of tax-free space with a wider menu of investments and easier access to your contributions in a pinch. If your income is above the Roth IRA limit, the “backdoor” contribution achieves the same result in a couple of extra steps. For most feds the practical sequence within step 6 is: capture Roth space wherever it’s cheapest and simplest — often the Roth TSP for its high limit and payroll automation, plus a Roth IRA for its flexibility — before finishing off traditional contributions at step 7.

Step 7 is maxing the rest of your TSP up to the annual limit. You already grabbed the match at step 2; now you fill the account the rest of the way. The TSP’s rock-bottom fees and simple index-fund options make it one of the best retirement vehicles anywhere — there’s rarely a reason not to fill it before moving to taxable accounts. If you’re 50 or older, catch-up contributions raise your ceiling and belong in this step.

Should steps 6 and 7 be all-Roth, all-traditional, or a mix? For most early- and mid-career feds, weighting toward Roth wins. Higher earners in peak years may favor traditional (pre-tax) to cut the current tax bill. Plenty of people split the difference. The order of operations puts capturing Roth space ahead of finishing traditional; the exact split depends on your bracket now versus your expected bracket in retirement.

10. Steps 8–9 — Hyper-accumulation and low-interest debt

If you’ve funded everything above and still have money to invest — a genuinely great position to be in — you’ve reached step 8, hyper-accumulation. Your tax-advantaged buckets are full, so the surplus goes into a taxable brokerage account (low-cost index funds again), I-bonds, or other vehicles. There’s no contribution limit here; this is where high savers keep building once the sheltered accounts are maxed. A taxable account also adds flexibility — money you can reach before 59½ without penalty, useful if early retirement is on the table.

At this level, how you invest the taxable money starts to matter as much as that you do. Because a brokerage account is taxed on dividends and gains each year, hold your most tax-efficient investments here — broad index funds that throw off little in taxable distributions — and keep less tax-efficient holdings inside the sheltered TSP and Roth accounts. This idea, called asset location, quietly boosts your after-tax return without changing what you own or how much risk you take. It’s a step-8 refinement, not a step-1 worry, but it’s the kind of edge that separates good savers from great ones once the basics are handled.

Finally, step 9: prepay low-interest debt and fund your other goals. This is where the cheap mortgage, the low-rate car loan, the kids’ 529, and everything else lands — last, and on purpose. Prepaying a 3–4% mortgage is a guaranteed return equal to that low rate, which your maxed retirement accounts will very likely beat over time, so it comes after them, not before. That said, the psychological value of a paid-off home is real; if being debt-free in retirement matters to you, this is the rung where you pursue it. Our guide on whether to pay off the mortgage before retiring weighs that math-versus-peace-of-mind tradeoff in full.

You won’t always reach the top — that’s fine

Very few people fund all nine rungs, and you don’t have to. The power of the ladder is that wherever your dollars run out, they ran out at the right place — you captured every high-value step available before the lower-value ones. Climbing three rungs correctly beats scattering money across nine.

11. Where feds get the order wrong

A few sequencing mistakes show up again and again, and each one is expensive. Knowing them is half the battle.

Hoarding a giant emergency fund before getting the match. People feel safe with cash, so they build a six-month fund first and only then start investing — missing a year or more of free match money in the process. The fix is the ladder: a small buffer, then the match, then the full fund.

Investing while carrying credit-card debt (beyond the match). Beyond capturing the match, pouring money into a brokerage account while a 22% card compounds is a guaranteed loss — the debt’s guaranteed 22% cost dwarfs the market’s uncertain ~7%. Clear the high-interest debt first.

Front-loading the TSP and losing match. Covered above, but worth repeating because it’s so common: maxing early can shut off the per-pay-period match. Spread it across the year.

Rushing to prepay a cheap mortgage. Sending extra money at a 3% mortgage while the TSP and Roth space sit unfilled is climbing the ladder backwards — you’re taking a guaranteed 3% and skipping tax-advantaged growth that beats it. Fund the retirement accounts first; the mortgage is step 9 for a reason. If you’re not sure whether you’re even on track overall, how much you need to retire is the companion to this ladder — the order tells you where dollars go; that guide tells you how many you need.

Not adjusting the ladder as you near retirement. The order above is built for the accumulation years. In the last stretch before you retire, two rungs quietly rise in importance: your emergency fund often should grow toward the larger end of the range (a cash buffer protects you from having to sell investments in a down market right after you stop working), and prepaying a mortgage — normally step 9 — can move up if entering retirement debt-free would meaningfully lower the income you need to withdraw each year. The rungs don’t disappear; their weights shift. Early on, growth and the match dominate; near the end, certainty and cash flow earn a bigger say.

12. FAQ

What is the financial order of operations for a federal employee?

In order: essentials + a $1–2k starter buffer; the full 5% TSP match; high-interest debt; a full 3–6 month emergency fund; the HSA if you’re HDHP-eligible; Roth space; the rest of the TSP; taxable/hyper-accumulation; then low-interest debt and other goals. Each dollar goes to the highest guaranteed return or tax break available before moving down.

Should I pay off debt or invest in the TSP first?

Both, in order: get the full 5% match first (an instant 100% return you never skip), then pause extra investing and kill high-interest debt (a guaranteed return equal to the rate), then return to maxing tax-advantaged accounts. Low-interest debt waits until step 9.

Where does the HSA fit?

High — right after your emergency fund — but only if you’re in an HSA-eligible high-deductible plan. It’s the only triple-tax-advantaged account (pre-tax in, tax-free growth, tax-free medical withdrawals). Most FEHB enrollees aren’t in HDHPs, so many feds skip this step.

Do I max Roth or traditional TSP first?

The ladder prioritizes capturing Roth space before finishing traditional, because tax-free money is especially valuable behind a pension that keeps your retirement income up. Higher earners in peak years may prefer pre-tax to cut this year’s taxes. Many feds split it. The right mix depends on your bracket now versus in retirement.

What if I can’t fund all nine steps?

That’s normal — most people don’t. The point of the order is that wherever your money runs out, it ran out at the right rung. You’ll have captured every high-value step available before spending on lower-value ones, which is exactly what building wealth on a paycheck looks like.

Sources
  1. TSP.gov, agency/matching contributions
  2. IRS Publication 969, Health Savings Accounts
  3. TSP.gov, annual contribution limits