Where Should Your Next Dollar Go? The Order of Operations for Extra Money

You have some money left over this month. Maybe it is a steady $300, maybe a one-time $5,000. The question is easy to ask and surprisingly hard to answer: where should it go first? Pay down the credit card? Add to the 401(k)? Start investing? Build up savings?

It is hard because every option pays a different return, and some of those returns are much larger, and much more certain, than others. Put the same dollar in the wrong place and you can leave hundreds or thousands of dollars behind without ever seeing the mistake. So the goal is not to pick one thing. It is to send each dollar to the place that pays the most, fill that up, then move to the next. That ranked list is the priority order for extra money, popularly called the “order of operations.”

“Extra” means what is left after the payments you must make. For a month when you cannot pay everything, the Consumer Financial Protection Bureau says to first identify what you need to pay to protect your housing and income, keep your insurance, and meet any court-ordered obligations. This guide starts after those, and after the minimum payment on every debt. It covers accounts and tax rules in the United States.

The priority order, and what each one pays

The order follows the return: the higher payoffs come first. The order and the approximate after-tax returns below come from the “Prioritizing investments” page of the Bogleheads wiki, a community wiki and not a primary source. The employer match is a one-time return on each dollar you contribute; every other figure is a return per year.

Approximate after-tax return on each priority
Employer 401(k) match 50 to 100%, one time High-interest debt 10 to 30% a year HSA 8 to 10% a year IRA / rest of 401(k) 8% a year Medium-interest debt 6 to 9% a year Taxable investing 5 to 7% a year Low-interest debt 2 to 5% a year
The match is a one-time gain on each contribution; the other figures are returns per year, so the top bar is not a yearly rate. The starter emergency fund sits above these; it is a cash buffer, not a return.
  1. A starter emergency fund. About one month of expenses to begin, grown toward 3 to 12 months later. This is the buffer that keeps a flat tire or a medical bill off the credit card. The Consumer Financial Protection Bureau calls a dedicated emergency fund one of the first steps you can take to start saving.
  2. Your full employer 401(k) match. Return: 50 to 100 percent of what you contribute, immediately. If your employer matches your contributions, this is the highest return on the whole list. Not taking it is like letting your employer keep part of your salary. The U.S. Department of Labor gives the same advice: if you cannot contribute the maximum, contribute enough to get the full match. One condition: the match is yours to keep only once it vests. Plans set their own vesting schedules, and a match that has not vested can be forfeited when you leave the employer (IRS). Your own contributions are always yours. Check your plan’s vesting schedule.
  3. High-interest debt, such as credit cards. Return: about 10 to 30 percent, guaranteed. Paying off a 23 percent card is a guaranteed 23 percent, tax-free. No investment reliably beats that. Guides: paying off a card, which debt to pay first.
  4. A Health Savings Account (HSA), if your health plan makes you eligible. Return: about 8 to 10 percent. To contribute you must be covered by a high-deductible health plan, and since January 1, 2026, bronze and catastrophic plans count as one (IRS). Under federal tax law the money can go untaxed at every stage: your contributions are deductible, the earnings are tax free, and withdrawals are tax free when they pay qualified medical expenses (IRS Publication 969). Contributions made from your pay through an employer’s cafeteria plan are also exempt from Social Security and Medicare tax (IRS Publication 15-B). State income tax can differ: California’s 2025 return, for example, does not allow the deduction.
  5. The rest of your tax-advantaged retirement accounts (an IRA and the remainder of the 401(k)). Return: about 8 percent. Which of the two comes first depends on your plan: the wiki puts the employer plan first when its funds are good and low-cost. Each year’s contribution limit is lost if it is not used. Guide: whether you are on track to retire.
  6. Medium-interest debt, at about 6 to 9 percent. Return: about 6 to 9 percent. Often student loans and car loans, and a mortgage at a rate in this range. Guide: how student-loan interest grows.
  7. A 529 college plan, if it applies, once your own retirement is on track. Return: about 8 percent for education. You can borrow for college but not for retirement.
  8. A regular taxable brokerage account. Return: about 5 to 7 percent.
  9. Low-interest debt, at about 2 to 5 percent. Return: about 2 to 5 percent. Rank a debt by its interest rate, not by its type. A mortgage at 3 percent belongs here, last: paying it off early is fine, but it is a lower priority than almost everything above it. A mortgage at 7 percent is medium-interest debt and belongs at step 6, above a taxable account. Guide: paying the mortgage early or investing.

The tax-advantaged priorities sit above a taxable account for one reason: the tax benefit, and it is already in the returns above, which are after-tax. Here is that benefit as the same $10,000 grows over 30 years.

The same $10,000 over 30 years: tax-advantaged 8% vs. taxable 6%
$101k advantaged $57k taxable NowYr 15Yr 30
Both rates are the wiki’s approximate after-tax returns: 8 percent for a retirement account and 6 percent, the middle of 5 to 7, for a taxable account. The chart assumes the same investments in both, so the whole 2-point difference is tax, and it compounds.

But an investment compounds for years. Doesn’t that change it?

It is the natural objection, and the answer is that the debt compounds too. A balance you do not pay does not sit still at 23 percent, it grows at 23 percent year after year, the same way an investment grows at its rate. So the honest comparison is not a one-time 23 percent against years of investment growth. It is 23 percent compounding against about 7 percent compounding, and the higher rate wins at every horizon.

Put $100 against each:

AfterLeft on a 23% cardInvested at 7%
1 year$123$107
2 years$151$114
3 years$186$123
$100, compounding: a 23% card vs. a 7% investment
$186 debt $123 invest NowYr 1Yr 2Yr 3
Both compound. The debt just compounds faster, and it is certain, while the 7 percent is only hoped for and is taxed in a regular brokerage account.

Paying the card first delays investing only until the card is gone. In the example below that takes 12 months, and from then on the same money goes into investments. Investing first means that until then the money earns about 7 percent while the card costs 23 percent.

One example, worked

Take an illustrative example, not a real person. Call the person Sam. Sam earns $70,000, spends about $4,000 a month, keeps about $4,000 in savings, and has $500 a month left over. Sam’s employer matches 100 percent of the first 5 percent of pay, but Sam only contributes 3 percent. Sam also carries $4,000 on a credit card at 23 percent, and is enrolled in an HSA-eligible health plan.

Sam’s $500 this month, in order
$117 capture the match $383 clear the 23% card
Once the card is gone, the $383 moves to the HSA, then an IRA and the rest of the 401(k).

Now the common version of the same story. Sam puts the $500 a month into an index fund in a brokerage account instead. That leaves the 100 percent match unclaimed and the 23 percent card unpaid beyond its minimum. The $500 is the same; the result differs because of the order.

Sam’s first year: match captured and index-fund gain
Employer match captured $1,400 Index-fund gain (7% a year) $190
The $1,400 match is set by the plan’s formula and is Sam’s to keep once it vests. The fund gain depends on the market; about $190 is what $500 added at the end of each month earns in the first year at 7 percent a year. Following the order also clears the 23 percent card, which investing first does not.

The three places people get it wrong

  1. Skipping or underfunding the match. It is the highest return on the list. After the starter emergency fund, it comes before everything else.
  2. Holding cash far beyond the emergency fund. The wiki’s rule of thumb is a starter fund of about a month, grown toward 3 to 12 months over time. Cash beyond that earns far less than the next priorities.
  3. Under-ranking the HSA. For people with an HSA-eligible health plan, the HSA sits above ordinary retirement contributions because money spent on medical care can go untaxed going in, while it grows, and coming out. It is easy to miss because it is labeled “health,” not “retirement.”

Put your own numbers to it

The What to fund first planner covers the start of this order for one month’s money: required payments, a starter emergency fund, the employer match, then highest-interest-rate debt and the rest of the emergency fund, in the order you choose. It shows amounts, not returns, and it treats everything after those steps as longer-term goals; steps 4 to 9 above cover that part. Open it on Sam’s month: $500 available, $117 for the match, $4,000 saved and a $4,000 card balance. From there:

How this is sourced

The order of the nine steps and the approximate return on each come from the Bogleheads wiki’s “Prioritizing investments” page. It is a community wiki, not a primary source, and its returns are approximations. It calls the list “a general account funding priority that often works well for many people” and says the steps are “not cast in stone.” Each figure taken from it was checked against a saved copy of the page.

The statements about required payments, the emergency fund, the employer match and vesting, and the tax treatment of an HSA are checked word for word against the Consumer Financial Protection Bureau, the U.S. Department of Labor, the IRS, the 2025 tax law (Public Law 119-21) and, for the California example, the state’s tax agency. Sam’s example and the charts are illustrations computed from the figures stated on this page, not forecasts. Personal circumstances can reasonably change the order: a pension, a very low or very high tax bracket, unstable income, or a student loan that may be forgiven can each move a priority up or down.

Sources

Grounded in authoritative primary sources:

This is educational, not personalized financial advice. For your specific situation, talk to a licensed professional.