Updated July 2026

Pay Off Debt vs Invest Calculator

You have some extra money each month. Throw it at the debt, or invest it? This runs both paths on the same budget and compares them by the only thing that matters — how much wealth you're left with. Nothing you enter leaves your browser.

Verdict

Net worth if you invest the extra$0
Net worth if you pay off debt first$0
Debt gone — paying it off first
Debt gone — investing first

Solid line: net worth if you invest the extra. Dashed line: if you clear the debt first, then invest. Both spend the same each month; where they end up is the answer.

Advertisement

It comes down to one comparison

Every dollar you put toward debt earns you a guaranteed, tax-free return equal to the interest rate you're no longer paying. Every dollar you invest earns an uncertain market return. So the whole decision hangs on two numbers: your debt's interest rate versus the return you expect from investing.

When the debt rate is higher — credit cards at 20%+, most personal loans — paying it off is a risk-free win almost nothing beats. When it's lower — a subsidized student loan, a low fixed mortgage — investing the money has usually grown more wealth over long stretches, though never with a guarantee.

Why both sides spend the same

A fair comparison holds your monthly outlay constant. Both paths here spend your minimum payment plus the extra, every month:

  • Pay off debt first: the whole budget attacks the loan until it's gone, then the freed-up cash gets invested for the rest of the time.
  • Invest first: the debt gets only its minimum while the extra is invested from day one; once the minimum finishes the loan, that money joins the investing too.

Because the spending is identical, the ending net worth — investments minus any debt still owed — is a clean, honest comparison.

Advertisement

Do these two things first, whatever the math says

Before optimizing debt-versus-invest, two moves beat both: keep a small emergency fund so a surprise doesn't send you back to the credit card, and capture any employer retirement match — that's an instant 50–100% return no debt payoff or market can touch. This calculator assumes you've already handled those and are deciding what to do with the next dollar.

The certainty discount

Even when investing wins on paper, the two outcomes aren't equal in kind. Paying off debt is a sure thing; the investment return is an average that hides good years and brutal ones. Many people rationally choose the guaranteed win even when the expected value slightly favors investing — being debt-free has a real, if unquantifiable, payoff. If you'd lose sleep over it, weight the decision toward the debt. This tool gives you the numbers; the temperament is yours.

A couple of things it leaves out: taxes on investment gains (which trim the investing side a little) and the employer match above. Both are worth folding into your own judgment.

Frequently asked questions

Should I pay off debt or invest?

Compare the debt's interest rate to the return you expect from investing. If the debt rate is higher, paying it off is a guaranteed win; if your expected return is higher, investing has usually built more wealth over long periods, but without a guarantee. This calculator runs both on the same budget so you can see the gap for your numbers.

Why does high-interest debt almost always win?

Because paying off a 20% credit card is a risk-free 20% return, and almost no investment reliably beats that. The higher the debt rate, the more paying it off dominates.

Should I invest instead of paying a low-rate mortgage?

Often, yes, on the math — a fixed low-rate loan is cheap money, and long-run market returns have usually beaten it. But the return isn't guaranteed and the mortgage payment is, so it comes down to the rate gap and your comfort with risk.

What should I do before either one?

Build a small emergency fund and capture any employer retirement match first. The match is an immediate 50 to 100 percent return that beats both paying off debt and investing.

Does this account for taxes?

No. Debt payoff is tax-free, while investment gains are usually taxed, so the investing side is slightly optimistic. Adjust the assumed return down a little to approximate after-tax investing.

Related calculators

Compound Interest Calculator — see how the invested side grows on its own.
Mortgage Payoff Calculator — the same question aimed at a home loan.
Net Worth Calculator — track debts and assets together over time.
Coast FIRE Calculator — what investing that money could mean for retiring early.