Home›Debt & inflation

Pay off debt or invest

Paying off debt or investing means comparing the cost of the debt with the return of an investment for the same money. The break-even rate is the return at which both paths leave the same final wealth.

Find out whether your money does more good paying off a debt or invested: see the final net worth of each path, the break-even rate and how many months until the debt reaches zero. You type the rates.

Educational simulation. Not investment advice. Results are estimates based on the data you enter and do not replace advice from a qualified professional.

Updated on Nov 14, 2026

Example: a $20,000 loan with 60 months left at 8.5% a year and $10,000 available to pay part of it down or invest. Type your own rates: the calculator suggests none.

The debt

Fixed payment with compound interest. Fees, insurance and any indexation in your contract are not included: fold them into the rate if you want them counted.

The money
The investment

Leave tax at 0 if the return you typed is already after tax. Inflation is only used to show the result in today’s money.

More than one debt? Try the debt payoff plan.

Your inputs stay only on this browser and are not sent anywhere. Untick to delete them.

—Ends with more net worth
—

Educational estimate, not investment advice. Risk and liquidity are not part of the math.

Net worth of the two paths

Invested money minus debt, month by month. Green: use the money to pay the debt. Blue: invest it and keep paying the installment.

Tap the chart to see the values.

Debt and investments in each path

Solid lines: invested money. Dashed lines: debt balance. Once the debt reaches zero in the “pay off” path, the freed payment is invested.

Tap the chart to see the values.

Month by month

Next step

Take this page’s results to another calculator with the fields already filled in.

The summary lists your inputs, results, formulas, assumptions and sources. The full report also includes the charts and interpretations, in color. In the print dialog, choose Save as PDF.

Method, assumptions and sources

Formulas

Monthly debt rate i = (1 + yearly rate)^(1/12) − 1 (or the monthly rate typed; a yearly APR is divided by 12); payment = balance × i ÷ (1 − (1 + i)^−n)
Net yearly return = gross yearly return × (1 − tax); monthly rate r = (1 + net)^(1/12) − 1
Each month: balance = balance × (1 + i) − payment; invested = invested × (1 + r) + what is left of the cash (payment + extra − debt payment)
Net worth = invested − debt balance; difference = net worth (pay off) − net worth (invest) at the last month of the contract
Break-even rate = effective yearly rate of the debt (gross = break-even ÷ (1 − tax)); today’s money = value ÷ (1 + inflation)^(months ÷ 12)

Assumptions and limits

  • In the “pay off” path, the money reduces the balance and the term shortens (the payment stays); when the debt reaches zero, the payment that is freed up is invested at the same net rate. In the “invest” path, the money earns a return and the debt runs to the end of the contract. Payments at month end.
  • Tax is applied as a haircut on the yearly return, a simplification: in practice it is charged at withdrawal. The rate you type is treated as certain and constant; risk, liquidity and an emergency fund are not in the math.
  • Fixed payment and compound interest. Fees, insurance and indexation in the contract are not included unless you fold them into the rate. The simulation runs to the end of the original contract (600 months at most).

Official sources and references

Frequently asked questions

Is it better to pay off debt or invest?

It depends on which rate is higher: the interest on the debt or the after-tax return on the investment. Paying a loan at 8.5% a year is like earning 8.8% a year effective, tax-free and risk-free. With low loan rates, investing can win. The calculator compares the two using the rates you type.

How do I read the example result?

A $20,000 loan at 8.5% APR with 60 months left and $10,000 available. Paying down, the debt reaches zero at month 27 and the freed payment is invested: net worth of $14,391.52 at month 60. Investing at 5% a year gross (4.25% after 15% tax) gives $12,313.47. Paying wins by $2,078.05, or $1,792.54 in today’s money with 3% inflation.

What is the break-even rate?

It is the after-tax return the investment needs to tie with the debt: the debt rate, expressed as a yearly effective rate. In the example it is 8.8% a year net, which would take 10.4% gross at a 15% tax rate. Below that, paying the debt ends with more net worth.

Can I use it for credit cards, car loans or mortgages?

Yes, as long as the debt has a fixed payment and you enter the real interest rate, with fees folded in if you like. It does not model a revolving card balance with variable payments or floating rates. For a single loan with other features, or for several debts, see the extra payment and debt payoff calculators.

What does the calculator leave out?

Risk, liquidity, an emergency fund and rates that change over time. It treats the return you type as certain and applies tax as a haircut on the yearly return, a simplification of tax charged at withdrawal. It is an educational estimate and does not recommend any product or investment.

Pay off debt or invest: how to run the numbers

You have spare cash and a debt: pay it off or invest? The math compares two rates. Paying a loan at 8.5% a year is like earning 8.8% a year effective, tax-free and risk-free. Investing only builds more net worth if the after-tax return beats that break-even rate.

Example

A $20,000 loan with 60 months left (payment $410.33, 8.5% APR) and $10,000 on hand. Investing at 5% a year gross with 15% tax gives 4.25% net. Paying down, the loan is gone at month 27 and the freed payment is invested: net worth of $14,391.52 at month 60. Investing, net worth is $12,313.47. Difference: $2,078.05 in favor of paying.

PathDebt clearedNet worth at month 60
Pay off the debtmonth 27$14,391.52
Invest the $10,000month 60$12,313.47

When investing wins

With the same loan and an investment earning 12% a year gross (10.2% after 15% tax), investing finishes $711.47 ahead. The lower the loan rate and the higher the after-tax return, the more likely investing wins.

What the math leaves out

The return you type is treated as certain and invested money as available any day. Paying down a debt is one-way: if you need the cash later, you may have to borrow again, often at a higher rate. That is why many people keep an emergency fund first. This page is an educational estimate and does not recommend any product or investment.