The short version
Compare your debt's APR to the return you expect from investing. If the debt's rate is higher, paying it off usually wins — it is a guaranteed return equal to the APR. If the expected return is higher, investing usually wins on paper — but "expected" is not "guaranteed," so give the debt side extra credit for certainty. Then handle the exceptions: always capture a 401(k) match first, keep a starter emergency fund, and at very high APRs (credit cards) the debt almost always wins. Run your numbers through the payoff vs invest calculator for the exact dollar difference.
The one comparison that matters
Every dollar of extra debt payment stops accruing interest at your APR. That makes paying down a 7% loan economically identical to earning a guaranteed 7% — the interest you never pay is money you keep, on a schedule you can compute to the cent. Investing the same dollar at an expected 8% might earn more, but might is doing real work there. Because both paths start with the same dollars, everything cancels out except the two rates, which is why the crossover point is exactly your debt's APR: investing wins only if the expected return beats it.
Guaranteed vs. hoped-for
This is the part the raw math undersells. Paying off debt is a contract: the rate is printed on your statement, and every extra payment retires principal at that rate with zero uncertainty. Investment returns are averages across decades that include years like 2008 and 2022 — a 10-year average of 8% can hide a first half that went nowhere. None of that means you should never invest while holding debt; it means the debt column deserves a handicap. A common rule of thumb: only invest instead of paying debt when the expected return clears the debt's APR by a comfortable margin, not by a rounding error. The calculator shows the dollar gap, but your stomach has to live with the ride.
The three exceptions that flip the answer
Most of the time the rate comparison settles it. Three situations override it.
- The 401(k) match always comes first.
An employer match of 50–100% is an instant return no debt rate and no market can touch. Contribute enough to capture the full match before you put a dollar toward either path in this guide, then run the comparison with what is left. - Keep a starter emergency fund.
Roughly one month of expenses, set aside before either strategy. An emergency charged to a 24% credit card wipes out months of optimized planning in a single swipe — the fund is what keeps the plan from unraveling. - Very high and very low APRs decide themselves.
Above roughly 10% APR — credit cards, most personal loans — paying the debt off almost always wins, because the guaranteed return is enormous. Below roughly 4% — a cheap mortgage, a 0% balance transfer — investing almost always wins on paper, because the debt is nearly free. The rate comparison still runs, but the answer rarely changes in these bands.
The tax footnote
The headline comparison ignores taxes, and taxes lean the answer toward paying debt. Mortgage interest may be deductible, which lowers your effective debt rate slightly; investment gains face capital gains tax, which lowers your effective return — and the capital-gains haircut is usually the bigger of the two. If you are deciding between a deductible mortgage and a taxable brokerage account, the true crossover sits a bit below the APR, not exactly on it. Treat the calculator's number as the starting point and your tax situation as the fine print.
Worked example: $500 a month, 7% debt, 8% return, 10 years
Same $500 compounded two ways, using the future value of a monthly stream — gain = E × ((1 + r/12)12×T − 1) ÷ (r/12):
Invest at 8%: 500 × ((1 + 0.08/12)120 − 1) ÷ (0.08/12) = $91,473.02 (expected)
Difference: $91,473.02 − $86,542.40 = $4,930.61 to investing
Crossover: drop the expected return to 7% and the two paths tie; below 7%, the debt wins.
Answer: investing edges ahead by $4,931 over ten years — but only if the market actually delivers 8%. The $86,542 from paying the debt is locked in. Whether the extra $4,931 is worth a decade of market risk is a temperament question the math cannot answer for you.
Mistakes that flip the answer the wrong way
The classic one is investing while minimum-paying a 24% credit card — you are "earning" 8% while bleeding 24%, a guaranteed net loss. The second is counting the 401(k) match as "investing" in this comparison: the match is not an investment choice, it is free money, and it outranks everything. The third is comparing nominal returns while ignoring taxes, which quietly shaves the investing edge. And the fourth is skipping the emergency fund to chase returns — the first surprise expense forces you back into high-interest debt and the whole optimization collapses.
Frequently asked questions
How big should my emergency fund be before investing?
One month of expenses is the minimum before you start either strategy — it keeps a surprise bill off your credit card. Build toward 3–6 months alongside whichever path wins the rate comparison. The emergency fund calculator sizes the target for your spending.
Should I pause 401(k) contributions to kill debt faster?
Never pause below the employer match — the match is an instant 50–100% return that beats every scenario in this guide. Contributions above the match are fair game: that is ordinary investing, and it belongs in the rate comparison like any other dollar.
What return should I assume for the market?
Be modest. US stocks have averaged roughly 7% a year after inflation over very long stretches — nominal returns run a few points higher, but the recent decades include flat and negative stretches. The calculator uses the nominal rate you type in; if your plan only works at 12%, it does not work.
Does the answer change for a mortgage?
The framework is the same, but two wrinkles matter. First, mortgage interest may be deductible, which lowers the effective rate. Second, a mortgage is usually your cheapest debt — at 3–4%, investing normally wins on paper, though paying it down buys the guaranteed outcome and the psychological win of owning your home outright. The mortgage recast calculator covers what a lump sum does to the payment itself.
Is it ever smart to split the money?
Yes — splitting is the honest hedge. Half toward the debt locks in guaranteed progress; half invested keeps you in the market. If you cannot decide, or if the calculator's gap is small relative to the sums involved, splitting is a respectable answer rather than a failure to choose.
What if my only debt is a 0% balance transfer?
Then the guaranteed return of paying it off is zero, and investing nearly always wins — just make sure the balance is actually gone before the promo rate expires, or the retroactive interest erases everything. The debt payoff comparison calculator helps plan the payoff side of that deadline.