Pay off debt or invest? Compare both plans

Last reviewed:

Enter your debt, its rate and payment, and the extra you can spare each month. You get which plan leaves you further ahead, by how much, and the return investing would need to beat paying off the debt.

By Abiot Y. Derbie, PhD · Reviewed by Eskezeia Y. Dessie, PhD and Armin Allahverdy, PhD · Published · How we check our numbers · Part of Planning tools

Calculator

The debt
Card rates average 22.36%
The extra money
Before inflation; stocks have been volatile, so try a lower figure too
0 inside a 401(k) or Roth IRA; 15 is the common long-term capital gains rate

Turn on JavaScript to see your result.

–
Better choice
–
Ahead by, at the end
–
Return needed for investing to win
Net worth from this money under each plan

The rule: compare the interest rate with the return

Every extra dollar you put on a debt earns exactly its interest rate, guaranteed and tax-free, because it is interest you no longer pay. Every dollar you invest earns an uncertain return, and you may owe tax on the gain. So the question is simple: is the after-tax return you expect higher than the debt’s rate, by enough to be worth the risk?

A sensible order for extra money

  1. Keep up the minimum on every debt.
  2. Build a small emergency fund so a surprise bill does not go back on a card. The emergency fund calculator sizes it.
  3. Get the full employer 401(k) match. A 50% or 100% match is an instant return no debt payoff can beat.
  4. Pay off high-rate debt such as credit cards. The credit card payoff calculator plans it.
  5. Then split extra money between investing and lower-rate debt, based on the comparison above and how much you value being debt-free.

How the calculator compares the two plans

Both plans spend the same amount each month: your required payment plus the extra. In the pay-debt plan all of it goes to the debt until it is paid off, then all of it is invested. In the invest plan the required payment goes to the debt and the extra is invested, and once the debt is gone the payment is invested too. At the end we take investments, minus tax on the gains, minus any debt left. The break-even return is the steady return at which both plans finish level.

Real markets do not return a steady rate. A few bad years early on can leave the invest plan behind even when the average return beats the debt rate, which is the risk the guaranteed payoff avoids.

Questions people ask

Should I pay off debt or invest?

Compare the debt’s interest rate with the after-tax return you expect. Pay off high-rate debt such as credit cards first. For low-rate debt such as a mortgage under about 5%, investing usually comes out ahead over many years. Always take an employer 401(k) match first.

Is it better to pay off a credit card or invest?

Pay off the card. Cards averaged 22.36% on balances that paid interest in the third quarter of 2026, and paying one off is a guaranteed, tax-free return at that rate.

Should I pay off my mortgage early or invest?

With a low fixed rate, investing tends to win over long periods, especially in a 401(k) or IRA. Paying the mortgage down is guaranteed and lowers your monthly costs in retirement, so many people do some of both.

What return should I assume for investing?

Use a figure you would be comfortable with in a weak decade, not a best case. Try your number and a lower one: if investing only wins at the high figure, paying off the debt is the safer choice.

Does the 401(k) match change the answer?

Yes. A match is an immediate 50% or 100% return on the money you put in, which beats paying off any debt. Contribute enough to get the full match before sending extra money to debt.

Your next decision

Related: Net worth percentile · Am I rich? · Budget · Subscription cost · All planning tools

Sources

Written by Abiot Y. Derbie, PhD. Average debt rates are from the Federal Reserve’s G.19 consumer credit release. The comparison is a month-by-month simulation with a steady return; real returns vary from year to year. Our editorial policy explains how we source numbers and correct mistakes. This is an estimate, not investment advice. Investment returns are not guaranteed and can be negative.