Most advice on this question gives you an order. Build an emergency fund, then pay off debt, then save for a house, then invest for retirement. Or pay the expensive debt first. Or never pause retirement contributions. Each of these orders is defended by someone sensible, and each one is right for some people.
What the lists usually leave out is what the choice actually changes. Changing the order doesn't change how much money you have. It changes when each goal lands and how much interest you pay on the way. Those are numbers you can work out, so this guide works them out: three common orders, one budget, month by month.
The four goals, and what each one is for
Before ordering anything, it helps to be clear about what each goal does, because they aren't the same kind of thing.
- An emergency fund protects everything else. Without one, a car repair or a gap between jobs goes on a credit card, and the debt goal moves backwards. It's usually measured in months of essential spending: three months is a common target, six is common for people with irregular income.
- High-interest debt (credit cards, most buy-now-pay-later) costs you money every month it exists. At 21% a year, a $3,000 balance costs about $52 a month in interest alone.
- Low-interest debt (many student loans, car loans) costs money too, but much more slowly. It often carries a fixed minimum payment that's already in your budget.
- A house down payment and retirement are the two big long-term goals. Retirement has something the others don't: years of compounding, which a delay can't buy back.
One budget, three orders
Here's a household with $1,200 a month to put toward goals after bills and everyday spending. Their goals:
| Goal | Target | Notes |
|---|---|---|
| Emergency fund | $9,000 | Three months of $3,000 essentials |
| Credit card | $3,000 owed | 20.99% a year, $90 minimum |
| Student loan | $16,800 owed | 6% a year, $190 minimum |
| House down payment | $40,000 | Savings earning nothing, to keep the maths plain |
In every version below, both debts' minimum payments come out of the $1,200 first, so neither debt is ever missed. Whatever is left goes to the goal at the front of the line. When that goal is done, the money moves to the next one.
Order A: safety net first
Emergency fund, then the card, then the student loan, then the house.
| Goal | Lands in month |
|---|---|
| Emergency fund | 10 |
| Credit card | 13 |
| Student loan | 26 |
| House down payment | 60 |
Interest paid along the way: $2,134.
This is the order most people are taught. Its strength is that the safety net exists by month 10, so a bad surprise in year one doesn't undo anything. Its cost is that the credit card runs at 21% for over a year.
Order B: costliest debt first
The card, then the emergency fund, then the student loan, then the house.
| Goal | Lands in month |
|---|---|
| Credit card | 4 |
| Emergency fund | 12 |
| Student loan | 26 |
| House down payment | 59 |
Interest paid along the way: $1,643.
Clearing the 21% card first saves $491 and brings the house in one month sooner. The price is that the emergency fund arrives two months later, so for the first year there's less of a cushion. If something goes wrong in month 6, it probably goes back on the card.
Order C: the house before the low-interest loan
Emergency fund, then the card, then the house, with the student loan kept on its minimum payment until the house is done.
| Goal | Lands in month |
|---|---|
| Emergency fund | 10 |
| Credit card | 13 |
| House down payment | 53 |
| Student loan | 62 |
Interest paid along the way: $4,438.
The house lands seven months sooner than in Order A. That costs $2,304 more in interest, because the 6% loan runs for five years instead of two. Whether that's a good trade depends on things the arithmetic can't see: what house prices do in those seven months, and how much it's worth to you to move sooner.
What the comparison shows
Put side by side, the three orders make a few things clear.
- The order you choose spends your time, not your money. Each version used the same $1,200 a month. What changed was which goal arrived first and how much interest was paid on the way.
- High-interest debt is the expensive part to wait on. Moving the card from second to first saved more than moving anything else did. The student loan at 6% hardly mattered in Orders A and B. It only cost real money when it was deliberately left to run (Order C).
- The emergency fund mostly moves risk, not dollars. Putting it first barely changed the totals. What it changed is how exposed the first year is.
- Retirement isn't on this list, and that's a choice too. Many people keep contributing to retirement through all of this, especially when an employer matches contributions, since a match is money you can only get by contributing. Doing that shrinks the $1,200 and pushes every date above later. That's the honest trade-off, rather than a reason to skip it.
How to work out your own order
You don't need a spreadsheet to do this, but you do need four numbers:
- What you have spare each month, measured from what you actually spent, not what you meant to spend. A budget that assumes a good month gives you dates that never arrive.
- Each debt's balance, rate and minimum payment. The minimums come off first, because they aren't optional.
- A target for each savings goal, even a rough one.
- The order you want to try.
Then work through it month by month, as above: minimums first, the rest to the front of the line. Try a second order and compare when each goal lands. The question changes from "what's the right order?" to "is getting the house seven months sooner worth $2,304 to me?" That's a question only you can answer, but at least it's a concrete one.
How Anvi shows this
This calculation is what Anvi's Goals screen does. You import your statements (no bank login), and Anvi measures what a typical month leaves over. It then lays every goal on one timeline with the month each one lands. Debts pay their minimums first, and the rest flows to goals in the order you set.
Change one goal, by putting more in or picking a date, and the dates of the others move to show the trade-off, much like Orders A to C above. Anvi doesn't choose the order for you. It shows what each order does, in dates and dollars, and the decision stays yours.
Frequently asked questions
Should I build an emergency fund or pay off debt first?
It depends on the debt's rate and on how exposed you are. In the example above, paying the 21% card first saved $491 but left the first year with less of a cushion. With a low-interest debt, putting the emergency fund first costs very little. Working through both orders with your own numbers shows the actual size of the trade-off.
How big should an emergency fund be?
A common target is three months of essential spending, and six for people with irregular income or a single household income. "Essential" means rent or mortgage, utilities, groceries, insurance and minimum debt payments, not your full monthly spending. That's why it's often smaller than people expect.
Should I stop retirement contributions to pay off debt faster?
That's a personal decision, and it depends on details like an employer match, which you lose if you stop contributing. What you can do is see the cost both ways. Keeping contributions going shrinks the money you have for other goals each month and pushes their dates later. Pausing them brings those dates in but gives up years of compounding, which you can't get back later.
Is it better to save for a house or pay off a student loan?
The arithmetic depends mainly on the loan's rate. In the example, putting the house ahead of a 6% loan brought the house in seven months sooner and cost $2,304 in extra interest. With a lower rate, the extra cost shrinks; with a higher one, it grows. The other half of the answer is how much getting the house sooner is worth to you, which no calculator can tell you.
Figures are an illustration worked from the stated assumptions: interest compounds monthly, minimum payments are made in full, and savings earn no interest. They aren't a recommendation. For advice on your situation, speak to a licensed financial adviser.