โ๏ธ Pay Off Debt or Invest? The Exact Math That Decides for You
Every spare dollar can only do one job at a time: kill a debt, or grow in an investment. Pick the wrong job and the mistake is not small โ on a $10,000 credit card balance it is worth more than $11,000.
The good news is that this is not a matter of opinion. It is a maths problem with one clear rule, and this post runs it three times โ on a 22% credit card, a 5% personal loan and a 6.5% mortgage โ with exact figures.
The one number that decides it
Paying off a loan gives you a guaranteed, tax-free return equal to its interest rate. Clear a card charging 22% and you have earned 22% on that money โ a return no investment can promise. Investing, by contrast, earns an uncertain return: this post assumes 7% a year, a common long-run planning figure, but some years pay far more and some pay nothing at all.
So the rule is one line: if your debt costs more than your investment is likely to earn, pay the debt. If it costs less, investing can win โ but only after two things that come before both. Run your own numbers with the Debt Payoff Calculator and the Investment Calculator.
Scenario 1: The 22% credit card โ pay it first, no contest
Take a $10,000 balance at 22% APR. Pay only the minimum โ interest plus 1% of the balance each month, the formula most card issuers use โ and it takes 299 months, almost 25 years, to clear. You pay $17,266.44 in interest, $27,266.44 in total, for $10,000 of spending.
Pay a fixed $300 a month instead and the same debt is gone in 52 months. Interest: $5,596.10. Total paid: $15,596.10. That is $11,670.34 less interest than the minimum-payment route, and you are debt-free 247 months โ more than 20 years โ sooner.
What if you invested the $10,000 instead? At 7% a year it grows to $14,025.52 after five years โ a gain of $4,025.52 โ while the card keeps charging 22% on the balance you did not clear. No investment reliably pays 22%, so none beats paying this card off. Above roughly 10% APR, the debt always wins โ check it on the Credit Card Payoff Calculator.

Scenario 2: The 5% loan โ where investing starts to win
Now a $25,000 personal loan at 5% over five years. The payment is $471.78 a month, and over the full term you pay $3,306.85 in interest. Add an extra $200 a month and the loan is gone in 41 months instead of 60 โ 19 months early โ saving $1,084.70 in interest.
Invest that same $200 a month at 7% instead, and after five years you have $14,318.58 โ a gain of $2,318.58 on the $12,000 you put in. On paper, investing wins this round by $1,233.88. But the gain is a forecast, not a promise โ a bad year can cut it sharply โ while the $1,084.70 saving is guaranteed the moment you make the extra payment.
There is also a middle path that beats both on risk: pay the loan off early, then invest the whole freed payment. From month 42 you have $671.78 a month free; invest it at 7% for the remaining 19 months and it grows to about $13,457 โ and with the $1,084.70 of interest saved, the pay-first path ends the five years about $223 ahead, having taken no market risk. Run both versions on the Loan Calculator and the Compound Interest Calculator before you choose.
Scenario 3: The mortgage โ the long game
A $300,000 mortgage at 6.5% over 30 years costs $1,896.20 a month and $382,633.47 in interest. Add $300 a month and the loan is gone in 250 months โ 20 years and 10 months โ saving $135,115.17 in interest. That is the biggest guaranteed return in this post.
The same $300 a month invested at 7% grows to $51,925.44 in ten years โ a gain of $15,925.44 on $36,000 paid in โ and over a full 30 years the same habit at a steady 7% would be worth about $366,000. On pure expected maths, investing wins the long game; on certainty, the mortgage wins it. The honest answer for most people is to split it: half to the mortgage, half to investing. Try your own split on the Mortgage Calculator and the Investment Calculator.

The order that beats both
Before either choice, two steps come first. One: keep a small emergency cushion โ $1,000 to start, then one month of expenses โ so the next surprise does not go back on a card at 22%. Two: take your employer's full retirement match. On a $60,000 salary, a 5% match is $3,000 a year of free money โ a 100% instant return no debt or investment can beat.
After that, the order is:
- Emergency cushion โ $1,000 first, then one month of expenses.
- Employer match โ every dollar of it, before anything else.
- Debt above about 10% APR โ credit cards first, always.
- Split the rest โ half extra to the debt, half to investing.
- Low-rate debt last โ a 5% loan can wait while your investments grow.
The 5-question test
Answer these five questions and the decision makes itself:
- Does your employer offer a retirement match you are not taking in full? If yes, take it first.
- Is any debt above 10% APR? If yes, pay it before investing another dollar.
- Do you have $1,000 set aside for emergencies? If no, save that first.
- Would a 20% market fall make you sell? If yes, the guaranteed return of paying debt suits you better.
- Is the debt under 5% and the payment comfortable? If yes, investing the spare cash is the reasonable choice.
3 traps that undo the maths
1. Investing while a 22% card runs. A 7% investment gain against a 22% debt cost loses 15% a year, however good the market looks. The card is the emergency, not the market.
2. Treating 7% as guaranteed. The 7% in this post is a long-run planning figure, not a promise for any single year. Compare a certain saving against an uncertain gain honestly โ if you need the money within five years, the certain saving wins.
3. No emergency fund. Paying off every spare dollar while holding no cash means the next car repair goes straight back on the card at 22% โ and the whole exercise starts again. Keep the cushion first.
Your 30-second check
Take your highest-rate debt and your spare monthly amount. Enter the debt in the Debt Payoff Calculator and the same amount in the Compound Interest Calculator at 7%. Whichever number is bigger โ interest saved, or investment gained โ is your answer for this month. Re-run it whenever a rate changes.
Frequently asked questions
Should I pay off my credit card or invest first?
Pay the card first if its APR is above about 10%. On a $10,000 balance at 22%, minimum payments cost $17,266.44 in interest over 299 months, while fixed $300 monthly payments cost $5,596.10 over 52 months. No investment reliably earns 22%, so clearing the card is the better return. Below 10%, the answer depends on your situation โ use the Credit Card Payoff Calculator to compare.
What if my loan rate is lower than my expected investment return?
Then investing can win on paper. On a $25,000 loan at 5%, an extra $200 a month saves $1,084.70 in interest, while investing the same $200 a month at 7% gains $2,318.58 over five years. But the gain is a forecast and the saving is guaranteed โ and paying the loan off early frees the whole $671.78 monthly payment to invest afterwards. Many people split the difference, half to the debt and half to investing.
Does the employer retirement match change the answer?
Yes โ always take the full employer match before making extra debt payments or investing more. On a $60,000 salary, a 5% match is $3,000 a year of free money, a 100% instant return on your contribution. Skipping the match to pay a 5% loan faster means turning down free money to save a small amount of interest.
Is it better to be debt-free or to invest?
Both, in the right order: a small emergency cushion first, then the full employer match, then any debt above about 10% APR, then split the rest between debt and investing. Being debt-free is a guaranteed return equal to the interest rate; investing offers a higher expected return with real risk. The order matters more than the choice itself.
References
- All worked figures in this post were computed with this site's own calculators โ Debt Payoff, Credit Card Payoff, Loan, Compound Interest, Investment and Mortgage โ and verified by independent month-by-month amortisation (accessed 19 November 2026).
- Consumer Financial Protection Bureau โ guidance on paying down credit card debt: making only the minimum payment extends repayment and raises the total interest paid (consumerfinance.gov, accessed 19 November 2026).
- The 7% investment return used throughout this post is a planning assumption, not a forecast or a guarantee; actual market returns vary year to year, and past performance does not predict future results.







































