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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- A regular taxable brokerage account. Return: about 5 to 7 percent.
- 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.
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:
| After | Left on a 23% card | Invested at 7% |
|---|---|---|
| 1 year | $123 | $107 |
| 2 years | $151 | $114 |
| 3 years | $186 | $123 |
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.
- The starter emergency fund is already there. $4,000 covers about one month of Sam’s spending, so Sam does not need the $500 for the emergency fund yet.
- First, capture the full match. Sam contributes 3 percent but the match runs to 5 percent, so the match on 2 percent of pay, $1,400 a year, is going unclaimed. Raising the contribution to 5 percent takes about $117 a month of pay and captures that $1,400: a 100 percent return on those dollars once the match vests, and nothing else on the list beats it. A traditional, pre-tax contribution lowers take-home pay by less than $117, because that pay is not taxed now. This example counts the full $117, so it understates what Sam has left.
- Next, clear the 23 percent card. The remaining $383 a month goes toward the $4,000 balance, earning a guaranteed 23 percent. The card clears in 12 months.
- Then fund the HSA, then the retirement accounts. With the card gone, the monthly amount moves to the HSA, then an IRA and the rest of the 401(k), while the emergency fund grows toward 3 to 12 months of expenses.
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.
The three places people get it wrong
- Skipping or underfunding the match. It is the highest return on the list. After the starter emergency fund, it comes before everything else.
- 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.
- 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:
- Compound interest for what a dollar becomes over the decades.
- Credit card payoff to price the high-interest debt.
- Prepay vs. invest for the question of paying a mortgage early.
- Retirement readiness to size the accounts you are filling.
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:
- Prioritizing investments(Bogleheads)
- Prioritizing bills(Consumer Financial Protection Bureau)
- An essential guide to building an emergency fund(Consumer Financial Protection Bureau)
- Savings Fitness: A Guide to Your Money and Your Financial Future(U.S. Department of Labor)
- Retirement topics - Vesting(Internal Revenue Service)
- Treasury, IRS provide guidance on new tax benefits for health savings account participants under the One, Big, Beautiful Bill(Internal Revenue Service)
- Publication 15-B (2026), Employer’s Tax Guide to Fringe Benefits(Internal Revenue Service)
- Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans(Internal Revenue Service)
- 2025 Instructions for Schedule CA (540)(California Franchise Tax Board)
- Public Law 119-21(United States Congress)
This is educational, not personalized financial advice. For your specific situation, talk to a licensed professional.