Pay Off Debt or Invest? The Math, Done Honestly
Paying off a 22.9% credit card is a guaranteed 22.9% return; investing at an expected 7% is not guaranteed at all. Running both scenarios side by side shows exactly where the crossover is — and why the answer is mostly about interest rates.
"Should I pay off debt or invest?" is usually framed as a philosophy question. It is not. It is an arithmetic question with one variable that does almost all the work — the interest rate on the debt — plus a risk adjustment that most advice skips. Below, both scenarios run side by side on realistic debts with every number computed, so the decision rule can be seen rather than asserted. The market return of 7% used throughout is a long-run expectation for a diversified stock portfolio before inflation, not a promise; that distinction turns out to be the entire point.
The credit card case: paying off wins, and it is not close
Take $8,000 of credit card debt at a 22.9% APR — close to the national average for cards that carry a balance. Scenario A directs $300 a month at the card. Scenario B invests the same $300 a month at 7% and leaves the card to roll at its own rate. After 38 months, Scenario A has the card fully paid, having spent $3,285.62 on interest along the way. Scenario B's investment account has grown to $12,720.94 — but the untouched card balance has compounded at 22.9% into roughly $16,407. Net position: investing is behind by about $3,686, and the gap widens every month the card keeps rolling. Scenario A's payoff is not merely better on expectation; it is a guaranteed 22.9% return, because every dollar of balance retired early stops accruing at a rate that is contractual, not probabilistic. No diversified investment offers a guaranteed 22.9%. The comparison ends there for any debt at this rate: pay it off, then redirect the freed $300 a month into investments, where over 30 years it compounds to about $365,991 at 7%.
While the card exists, the minimum-payment alternative deserves its own horror check. Paying only the minimum — the greater of $35 or 1% of balance plus interest — takes 245 months, over twenty years, and burns $13,743 in interest on the original $8,000. The restructuring options for a balance this size, including balance-transfer cards and their fee arithmetic, are covered in the balance-transfer breakdown.
The student loan case: the math gets genuinely close
Now $12,000 of student debt at 5.8%, with $250 a month available. Paying it down: the loan clears in 55 months with $1,686.47 of total interest saved relative to doing nothing. Investing instead: the same $250 a month at 7% reaches $16,156.79 over the same 55 months while the loan accrues its modest interest. On expected values, investing wins by a wide-looking margin. But the honest comparison is risk-adjusted, and here it collapses to something much narrower. The 7% is an average over decades, delivered with years of drawdowns in between; the 5.8% debt payoff is certain. The truly guaranteed alternative to paying off a 5.8% loan is not stocks — it is a high-yield savings account or Treasury bill at around 4%, which loses to the loan by a clean 1.8-point spread with zero risk. So for low-rate debt the real answer is: the guaranteed play is paying it off, the expected-value play is investing, and the difference between them is compensation for accepting market risk during the payoff window. Neither is wrong. What is wrong is calling the investing choice "free money."
The one move that beats both scenarios
Before either option, there is a guaranteed 100% return sitting at the front of most retirement plans: the employer match. A dollar-for-dollar match on the first 4% of pay doubles the input before any market or interest-rate effect applies, which outranks paying down a 22.9% card in every ordering worth writing down — the match is instantaneous, and debt payoff at a high rate is merely excellent. Capture the match first, then send everything above that into the highest-rate debt.
The ordering test, run end to end
One final scenario to stress the ordering. A $500 monthly budget faces the $8,000 card and the $12,000 loan. The avalanche order — card first, then loan — clears both in 46 months of payments with about $3,583 of total interest including the interest that accrues on the idle loan during the card's payoff. The invest-everything alternative, putting the full $500 a month into the market for those same 46 months, produces about $26,294 at 7% — against a card that has meanwhile compounded to nearly $19,000 at 22.9% plus the loan's balance. The invest-first plan does not merely lose; it converts a two-year debt problem into a five-year one. The mechanics of choosing payment order within a stack of debts are in the avalanche-versus-snowball comparison.
What the freed-up payment is worth, and the tax wrinkle
Two details sharpen the comparison in either direction. First, the payoff decision is not one-and-done: the $300 a month that was going to the card does not disappear when the balance hits zero — it becomes investable fuel, and the case for aggressive payoff quietly assumes you actually redirect it. Someone who pays off the card and then spends the $300 on lifestyle has, in effect, chosen neither option. Automating the redirect the day the account closes is the difference between the two plans on paper and the one in practice. Second, taxes tilt the scale slightly toward traditional-investing choices for savers with taxable accounts: interest saved on debt is tax-free, but so are the returns inside retirement accounts, while dividends and realized gains in a taxable brokerage are taxed along the way — which means the 7% expectation is worth something closer to 5.5% to 6% after tax in a taxable account, narrowing the honest spread against a 5.8% loan to nearly nothing. Debt payoff comparisons run inside tax-advantaged space, as the Roth-versus-traditional break-even analysis shows, keep their full arithmetic.
Where the rule bends
Three edge cases deserve honest mention. First, employer plans with matching logic inside a loan: a 401(k) loan can make "paying off debt" and "investing" the same action, with plan-specific rules that decide whether it is sensible. Second, psychologically, a paid-off loan is worth real money to some households, and a 5.8% payoff that keeps a person committed to saving beats a 7% expectation they will abandon at the first 20% drawdown — behavior is a variable the spreadsheet does not model. Third, tax-advantaged accounts shift the investing line upward: a 401(k) contribution that also saves 22% in tax effectively beats its pre-tax equivalent, which is part of why the retirement pieces in the tax-bracket explainer and the Roth-versus-traditional breakdown belong in the same decision. The calculators page runs the payoff-versus-investing comparison on any rate pair you plug in, and the rest of the debt and investing pieces are in the archive.
Strip away the philosophy and the decision rule is short. Above roughly 8% APR, the debt is the best guaranteed asset you will ever be offered — retire it. Below roughly 5%, the guaranteed spread narrows and the expected-value case for investing carries real weight. Between the two, split the difference and stop agonizing. The numbers above are the whole argument.