🏠 Mortgage & Home Buying🚗 Loans & Car Finance💳 Debt Payoff🎯 Savings & Interest📈 Investing & Returns🌅 Retirement Planning🧾 Budgeting & Net Worth🛒 Smart Spending & Shopping⏱️ Salary & Pay💼 Side Hustle & Business
Home › Debt Payoff › Pay Off Debt or Invest? Calculator
⚖️

Pay Off Debt or Invest? Calculator

Compare putting your extra money toward debt against investing it, and see which leaves you with more net worth.

Advertisement

The question everyone asks

If you have spare money, should it go to the debt or into investments? The answer depends on the debt rate against the return you can earn after tax. A card at 22% beats almost any investment. A 3% loan loses to investing in most cases. In between it is a close call.

How it is compared

Both plans spend exactly the same money every month. Plan A sends all of it to the debt, then invests the freed payment once the debt is gone. Plan B pays only the minimum and invests the extra. At the end, net worth is investments after tax minus any debt left.

Things the numbers do not show

Paying off debt is a guaranteed return and lowers risk. Investment returns are not guaranteed, and this tool uses one steady rate. Employer 401k matches usually beat both and should come first.

Worked example

With the starting values (Debt balance: 20000, Debt interest rate (%): 7, Minimum monthly debt payment: 400, Extra money available each month: 300, Expected investment return (% a year): 7, Tax on investment gains (%): 15), the calculator shows Pay the debt first: you end up ahead by: $265.88. Also: Debt-first: net worth at the end: $78,129.8; Invest-first: net worth at the end: $77,863.92; Debt-first: debt left: $0. Change the inputs above to see your own result.

Last reviewed November 2026. Formulas are standard and shown in the sections above; results are estimates.

Tips and common mistakes

Learn more

Frequently asked questions

Which is better?

Compare the debt rate with your after-tax return. The tool does the math over your years.

Why is the return taxed?

Gains in taxable accounts are taxed. Use 0 for tax-free accounts.

Does risk matter?

Yes. Debt repayment is certain; markets are not.

What about a mortgage?

Low-rate mortgages often favor investing, but personal comfort matters.

Is this advice?

No. It is a comparison tool.

Advertisement

Money guides for this topic

All guides →
📘

Pay Off Debt or Invest? A Simple Way to Decide

Compare your debt interest rate with realistic after-tax investment returns to decide where extra money should go first.

Read guide →
📘

Snowball vs Avalanche: The Math of Getting Out of Debt

Compare the two best debt payoff methods with real numbers and learn which one saves more money.

Read guide →
📘

How to Fix Bad Financial Condition with Math: A 7-Step Recovery Plan

A step-by-step plan, with real numbers, to climb out of a money hole: find the gap, cut and earn, pay debt smartly and build a safety net.

Read guide →

Related calculators

💳

Credit Card Payoff Calculator

See how long it takes to clear a credit card balance and how much interest you will pay.

Open calculator →
📉

Debt-to-Income (DTI) Calculator

Calculate your debt-to-income ratio, the number lenders check before approving a loan.

Open calculator →
🧗

Debt Payoff Planner (Snowball vs Avalanche)

Enter up to three debts and compare the avalanche method, the snowball method and paying only minimums.

Open calculator →

Results are estimates and not financial advice.