Invest or Pay Off Debt Calculator
Test cases replayed : 6 of 6 match · Methodology · No outside source listed
Enter your loan, your regular payment, the extra amount you could spare each month and the return you expect on an investment. The calculator compares your net worth after the time you choose under both choices.
Result
Result
Investment value at the end, if you invest the extra
- Debt reduction at the end, if you prepay the loan
- Advantage of investing (+) or of prepaying (−)
- Loan balance at the end if you invest
- Loan balance at the end if you prepay
- Months to pay off the loan with the extra payments
- Months to pay off the loan with the regular payment only
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Loan balance today, in dollars: enter 0 or more.
- Loan interest rate (APR, %): enter a number from 0 to 100.
- Regular monthly payment, in dollars: enter 0 or more.
- Extra money available each month, in dollars: enter 0 or more.
- Expected annual return of the investment, after taxes and fees, in percent: enter a number from -50 to 100.
- Time horizon, in years: enter a number from 0.0833 to 50.
- Read the result: Result; the panel also shows Investment value at the end, if you invest the extra, Debt reduction at the end, if you prepay the loan, Advantage of investing (+) or of prepaying (−), Loan balance at the end if you invest, Loan balance at the end if you prepay, Months to pay off the loan with the extra payments and Months to pay off the loan with the regular payment only.
How this calculator works
Both choices make the same regular payment. Prepaying lowers the balance; the gap between the two balances grows each month at the loan rate: debt reduction = Σ extra × (1 + APR ÷ 12)^k, the future value of the extra payments at the loan rate.
Investing builds investment value = Σ extra × (1 + return ÷ 12)^k, deposits at the end of each month compounded monthly, as in this site's investment calculator. Advantage of investing = investment value − debt reduction; it is positive only if the return beats the loan rate.
The comparison holds while the loan is still being paid down in both cases, so the horizon must end before the extra payments clear the loan. Months to payoff come from a month-by-month amortization with interest at APR ÷ 12.
The investment return is an assumption, not a promise; the loan rate is a sure saving. Enter a rate net of any tax deduction on the loan interest and a return net of taxes and fees.
Worked example
| Loan balance today | $15,000 |
|---|---|
| Loan interest rate (APR, %) | 7 |
| Regular monthly payment | $300 |
| Extra money available each month | $200 |
| Expected annual return of the investment, after taxes and fees | 6% |
| Time horizon | 2 years |
| Result | Paying down the loan comes out $50 ahead after 24 months |
|---|---|
| Investment value at the end, if you invest the extra | $5,086 |
| Debt reduction at the end, if you prepay the loan | $5,136 |
| Advantage of investing (+) or of prepaying (−) | -$50 |
| Loan balance at the end if you invest | $9,543 |
| Loan balance at the end if you prepay | $4,407 |
| Months to pay off the loan with the extra payments | 34 |
| Months to pay off the loan with the regular payment only | 60 |
Frequently asked questions
Should I always pay off debt with a rate higher than my expected return?
In this comparison, yes. Prepaying earns the loan rate with no risk, while investment returns vary from year to year and can be negative.
Does this account for an emergency fund or an employer 401(k) match?
No. Cash you may need soon and any match you would lose by not contributing are separate questions; this calculator compares only the two uses of the extra money.
What if the extra payments would clear the loan before the end of my horizon?
The calculator asks for a shorter horizon. After payoff, the freed-up payment could also be invested, which this comparison does not model.