calculate-loan

01 Loan payments

Loan Prepayment Calculator Excel: How to Build One

Calculator No. 01-28366 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Estimate for education, not financial advice. The result follows from the numbers you enter and the formula shown. It is not a quote or an offer, and it does not include fees, taxes or insurance unless the calculator asks for them. Ask your lender for the exact figures.

This calculator works out how much interest you save and how much sooner you pay off a loan when you make extra payments. You enter the loan amount, interest rate, term, and the extra amount you plan to pay each month (or a one-time lump sum), and it returns your new payoff time, total interest paid, and total interest saved. The math is the same logic you would build in an Excel spreadsheet, so you can see exactly how the numbers are derived.

Formula

The core formula is the standard amortization equation for a fixed-rate loan. The regular monthly payment M is:

M = P × (r / (1 − (1 + r)^(−n)))

where:

  • P = loan amount (principal) in dollars
  • r = monthly interest rate = APR / 1200 (APR is the annual percentage rate in percent)
  • n = total number of monthly payments = term in years × 12

When you add an extra monthly payment E, the new payment becomes M + E. The number of months to pay off the loan with that higher payment is:

k = ⌈ −ln(1 − r × P / (M + E)) / ln(1 + r) ⌉

The ceiling (⌈ ⌉) rounds up to the next whole month because you make whole payments. Total interest paid is simply (payment × number of payments) − principal. The interest saved is the difference between total interest without extra payments and total interest with extra payments.

Worked Example

Using the default values: loan amount $20,000, APR 8%, term 5 years, extra $100 per month.

  1. Monthly rate r = 8 / 1200 = 0.0066667
  2. Number of payments n = 5 × 12 = 60
  3. Regular payment M = 20000 × (0.0066667 / (1 − (1.0066667)^(−60)))
  4. Compute (1.0066667)^(−60) ≈ 0.671216, so 1 − 0.671216 = 0.328784
  5. M = 20000 × (0.0066667 / 0.328784) = 20000 × 0.020276 = $405.53 (rounded to cents)
  6. New payment with extra = 405.53 + 100 = $505.53
  7. Months to payoff k = ⌈ −ln(1 − 0.0066667 × 20000 / 505.53) / ln(1.0066667) ⌉
  8. Inside: 0.0066667 × 20000 = 133.334; 133.334 / 505.53 = 0.26375; 1 − 0.26375 = 0.73625
  9. −ln(0.73625) = 0.30629; ln(1.0066667) = 0.006644; 0.30629 / 0.006644 = 46.10 → ceil = 47 months
  10. Total interest without extra = 405.53 × 60 − 20000 = 24331.80 − 20000 = $4,331.80
  11. Total interest with extra = 505.53 × 47 − 20000 = 23759.91 − 20000 = $3,759.91
  12. Interest saved = 4331.80 − 3759.91 = $571.89

So with the extra $100 per month, you pay off the loan in 47 months instead of 60, saving about $572 in interest.

Assumptions

  • Fixed interest rate for the whole term (no rate changes).
  • Payments are made monthly at the end of each period.
  • Interest compounds monthly at APR / 12, which is the standard for most amortizing loans.
  • Extra payments are applied directly to the principal, not to future payments (confirm with your lender how they apply extra amounts).
  • No fees, taxes, insurance, PMI, or other charges are included.

How to Build This in Excel

If you want to recreate this calculator yourself, here is the step-by-step logic you would use in a spreadsheet:

  • Enter your inputs in separate cells: loan amount (B1), APR (B2), term in years (B3), extra payment (B4).
  • Compute the monthly rate in a cell: =B2/1200.
  • Compute the regular payment with the PMT function: =PMT(rate, term*12, -loan).
  • Compute the new payment: =regular + extra.
  • Use the NPER function to find months to payoff: =NPER(rate, -newpayment, loan) and round up with =CEILING(…).
  • Total interest with extra = newpayment * months – loan.
  • Total interest without extra = regular * term*12 – loan.
  • Interest saved = the difference.

Excel’s PMT and NPER functions use the same formulas shown above, so your results will match the calculator here.

Common Mistakes and Misconceptions

  • Using the annual rate directly in monthly formulas. Always divide by 12 to get the monthly rate.
  • Not rounding the payment to cents. Lenders round to the nearest cent, and that small difference can change the payoff month slightly.
  • Assuming extra payments reduce your monthly payment. In this calculator, extra payments shorten the term while keeping the payment fixed. Some lenders may recast the loan to lower the payment instead—ask your lender which they do.
  • Thinking prepayment always saves the full interest. You save only the interest that would have accrued on the principal you pay early. The exact saving depends on when you make the extra payment.
  • Ignoring prepayment penalties. Some loans charge a fee for paying off early. That fee could offset your interest savings.

When to Use This Calculator

Use this tool when you are considering making extra payments on a fixed-rate loan—such as a car loan, personal loan, or student loan—and you want to see how much time and interest you could save. It also helps you compare different extra payment amounts: for example, $50 per month versus $200 per month. The calculator is not for loans with variable rates or for credit cards, where interest accrues daily and minimum payments change.

If you are considering a lump-sum prepayment (like a tax refund or bonus), you can simulate it by dividing the lump sum by the number of months you plan to spread it over, or by using a separate lump-sum calculator. The math is similar but the timing of the payment matters more.

Limitations of the Formula

This calculator assumes you make the extra payment every month from the very first payment. In reality, you might start later or make irregular extra payments. The formula also assumes the interest rate stays constant; if your rate adjusts, the payoff time will change. It does not include any fees for prepayment, nor does it account for the tax treatment of interest (which varies by country and loan type). For exact figures, always check the lender’s amortization schedule and disclosure statement.

Frequently Asked Questions

Can I just use Excel’s built-in loan calculator?

Excel has templates for loan amortization, but they often don’t include an easy way to see the impact of extra payments. Building your own with the formulas above gives you full control over the assumptions and lets you change the extra amount instantly.

Does making extra payments always save money?

Yes, in the sense that you pay less total interest because you reduce the principal faster. However, if your loan has a prepayment penalty, the penalty could exceed the interest savings. Always check your loan agreement.

Should I make extra payments or invest the money instead?

That depends on your interest rate versus your investment return, plus your risk tolerance and other debts. This calculator only shows the interest saving on the loan; it does not compare investment returns. That is a personal finance decision that involves more than this math.

What if I make a one-time lump sum payment?

You can approximate it by entering the lump sum divided by the number of months you would have paid extra. For example, a $1,200 lump sum is like $100 per month for 12 months. For a precise result, you would need a calculator that lets you specify the month of the lump sum, because the timing affects the interest saved.

Why does the calculator show “Cannot compute” when I enter a very small extra payment?

If the extra payment is so small that the total payment does not cover the monthly interest, the loan would never be paid off. The formula for months to payoff requires the payment to be greater than the interest for the first month. The calculator flags this as “Cannot compute” because the math is undefined.

Does prepayment affect my credit score?

Paying off a loan early can affect your credit score in various ways, but this calculator does not model credit scores. Credit scoring is complex and depends on many factors beyond loan prepayment. For specifics, consult a credit counselor or your lender.

The result from this calculator is an estimate based on the assumptions listed. Your lender’s disclosure statement will provide the exact figures for your loan.

Related

Formula used
in p | Loan amount | $ | 20000 | 1 | 100000000
in apr | Interest rate (APR) | % | 8 | 0.01 | 100
in yrs | Loan term | years | 5 | 0.0833 | 50
in extra | Extra monthly payment | $ | 100 | 0 | 1000000
out pmt | Regular monthly payment | $ | p * (apr / 1200) / (1 - (1 + apr / 1200) ^ -(yrs * 12)) | 2
out newpmt | Payment with extra | $ | pmt + extra | 2
out months | Months to payoff | months | ceil(-ln(1 - (apr / 1200) * p / newpmt) / ln(1 + apr / 1200)) | 0
out totint | Total interest (regular) | $ | pmt * yrs * 12 - p | 2
out newint | Total interest (with extra) | $ | newpmt * months - p | 2
out saved | Interest saved | $ | totint - newint | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.

More in this section

The whole Loan payments section →