Should You Pay Off Debt or Invest First? The Actual Math
This is one of the most common personal finance questions, and most answers lean on feelings ("debt-free peace of mind" vs. "let your money work for you") rather than the actual numbers. Here's the math-first version.
The core comparison: interest rate vs. expected return
At its simplest, this decision comes down to comparing two rates: the interest rate on your debt, and the return you realistically expect from investing instead. If your debt costs more than you'd earn investing, paying it off first wins mathematically — you're guaranteed to "earn" your interest rate back by eliminating it, while investment returns are never guaranteed.
Where the line usually falls
Long-run stock market average returns (S&P 500, inflation-adjusted) sit historically around 7%. That gives a rough dividing line:
Debt above ~7-8% interest: paying it off first is usually the mathematically stronger move — credit cards (often 20%+), most personal loans, and many auto loans fall solidly in this category.
Debt below ~4-5% interest: investing instead often wins over the long run — some mortgages, subsidized student loans, and certain low-rate auto loans can fall here, especially with tax-advantaged deductions factored in.
The gray zone (5-7%): genuinely debatable, and reasonable people land on different answers depending on risk tolerance and how much they value the psychological win of being debt-free.
The math isn't the only factor — but it should be the first one
A few real considerations that adjust this beyond pure rate comparison:
Guaranteed vs. uncertain: paying off debt is a guaranteed return equal to the interest rate. Investing returns are variable and can be negative in any given year — the "expected" 7% is a long-run average, not a promise.
Employer 401(k) match: if your employer matches retirement contributions, that match is usually an immediate 50-100% return — almost always worth capturing before extra debt payments, even on higher-interest debt, since no debt payoff can match a guaranteed 100% instant return.
Emergency fund first, regardless: before aggressively attacking either debt or investments, most financial planners agree a basic emergency cushion (even 1 month of expenses) should come first, to avoid going back into debt at the first surprise expense.
A practical order of operations
A commonly recommended sequence: (1) capture any employer 401(k) match, (2) build a starter emergency fund, (3) pay off high-interest debt (above ~7-8%), (4) split additional money between low-interest debt payoff and investing based on your own risk comfort, (5) once high-interest debt is gone, prioritize investing if remaining debt is genuinely low-rate.
If you have multiple debts
If you're choosing between paying off several debts (rather than debt vs. investing), the math-optimal approach is the debt avalanche — always pay extra toward your highest-interest debt first. The debt snowball (paying off smallest balances first) sacrifices some interest savings for psychological momentum, which for many people is worth the trade-off in practice.
Run your own numbers
Compare your specific debts' interest costs against payoff timelines with the free Debt Payoff Calculator, or see the snowball vs. avalanche trade-off directly with the Snowball vs Avalanche Calculator. If you're leaning toward investing instead, the SIP Calculator shows how consistent contributions compound over time.