The loan repayment formula gives the fixed monthly payment that clears a loan by the end of its term.
Knowing it lets you check a lender’s figures, compare offers and see what extra payments really save.
This guide works through the formula by hand, builds an amortization table and tests rates, terms and prepayments.
Key takeaways
- Monthly payment: M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1).
- A $25,000 loan at an assumed 6.5% over five years costs $489.15 a month.
- Early payments are mostly interest; later payments are mostly principal.
- Longer terms cut the payment but raise total interest sharply.
- An extra $100 a month on the example loan saves $865.40 and 11 months.
What is the loan repayment formula?
Most personal, auto and home loans are amortizing loans.
You pay the same amount each month until the balance reaches zero.
The payment that makes this work comes from one formula.
M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1)
It looks intimidating, but it needs only a calculator with a power key, or a spreadsheet.
The formula assumes a fixed interest rate, equal payments and interest charged on the remaining balance.
Loans with variable rates, balloon payments or interest-only periods need different calculations.
What does each part of the formula mean?
- M: the fixed monthly payment you want to find.
- P: the principal, or amount borrowed.
- r: the monthly interest rate, as a decimal.
- n: the total number of monthly payments.
Converting the annual rate
Loan rates are usually quoted as an annual rate. Divide it by 12 to get the monthly rate.
An assumed 6.5% annual rate becomes 0.065 ÷ 12 = 0.0054167 per month.
Keep at least six or seven decimal places. Rounding r too early can shift the payment by several cents.
Counting the payments
For monthly payments, n is the term in years multiplied by 12. A five-year loan has 60 payments.
Rate versus APR
The interest rate drives the payment. The APR also folds in certain fees, so it is usually higher.
Use the interest rate in the formula. Use the APR to compare the full cost of different offers.
How do you calculate a monthly payment by hand, step by step?
Take a fictional borrower, Mr. Daniel Reyes, who borrows $25,000 at an assumed 6.5% for five years.
- Find the monthly rate: r = 0.065 ÷ 12 = 0.0054167.
- Find the number of payments: n = 5 × 12 = 60.
- Compute the growth factor: (1.0054167)^60 = 1.382817.
- Compute the top line: $25,000 × 0.0054167 × 1.382817 = $187.2565.
- Compute the bottom line: 1.382817 − 1 = 0.382817.
- Divide: $187.2565 ÷ 0.382817 = $489.15.
Mr. Reyes pays $489.15 a month for 60 months.
Because payments are rounded to the cent, the final payment is adjusted slightly, to $489.35.
In total he repays $29,349.20, of which $4,349.20 is interest.
Doing it on a basic calculator
Work out the growth factor first, then store it in memory. You need it twice.
If your calculator has no power key, multiply 1.0054167 by itself repeatedly. A spreadsheet is far quicker.
Carry every intermediate result to at least four decimal places. Round only the final payment to the cent.
Why the formula works
The formula sets the present value of all 60 payments equal to the amount borrowed.
In other words, at 6.5%, $25,000 today is worth the same as 60 payments of $489.15.
A quick sanity check
With no interest, the payment would simply be $25,000 ÷ 60 = $416.67.
The 6.5% rate adds $72.48 a month. If your answer is below the zero-interest payment, something is wrong.
How is each payment split between interest and principal?
Each month, interest is charged on the balance still owed. The rest of the payment reduces principal.
Interest this month = Remaining balance × r
Principal this month = M − Interest this month
In month 1, interest is $25,000 × 0.0054167 = $135.42.
Principal is $489.15 − $135.42 = $353.73, leaving a balance of $24,646.27.
In month 2, interest is charged on the smaller balance, so it falls to $133.50.
The principal portion rises to $355.65. This shift continues every month.
About 27.7% of the first payment is interest. By the last payments, almost all of it is principal.
What does an amortization table show for the first months?
An amortization table lists every payment, its interest and principal parts, and the balance afterward.
Here are Mr. Reyes’s first six months.
| Month | Payment | Interest | Principal | Balance after payment |
|---|---|---|---|---|
| 0 | – | – | – | $25,000.00 |
| 1 | $489.15 | $135.42 | $353.73 | $24,646.27 |
| 2 | $489.15 | $133.50 | $355.65 | $24,290.62 |
| 3 | $489.15 | $131.57 | $357.58 | $23,933.04 |
| 4 | $489.15 | $129.64 | $359.51 | $23,573.53 |
| 5 | $489.15 | $127.69 | $361.46 | $23,212.07 |
| 6 | $489.15 | $125.73 | $363.42 | $22,848.65 |
Over six months he pays $783.55 in interest and $2,151.35 in principal.
Each row takes three operations: multiply, subtract, subtract. A spreadsheet can fill all 60 rows in seconds.
Balances at each year-end
Here is how the balance falls at the end of each year.
| After month | Remaining balance |
|---|---|
| 12 | $20,626.38 |
| 24 | $15,959.86 |
| 36 | $10,980.81 |
| 48 | $5,668.30 |
| 60 | $0.00 |
Notice the balance falls faster each year, as more of each payment goes to principal.
How does the interest rate change the payment and total cost?
Holding the loan at $25,000 over 60 months, here is what different assumed rates do.
| Annual rate | Monthly payment | Total interest | Total repaid |
|---|---|---|---|
| 5.0% | $471.78 | $3,306.87 | $28,306.87 |
| 6.5% | $489.15 | $4,349.20 | $29,349.20 |
| 8.0% | $506.91 | $5,414.62 | $30,414.62 |
| 10.0% | $531.18 | $6,870.54 | $31,870.54 |
Moving from 5.0% to 10.0% raises the payment by $59.40 a month.
Total interest more than doubles, from $3,306.87 to $6,870.54.
The payment changes modestly, but total cost changes a lot. That is why comparing rates matters.
Why higher rates hurt more than they seem
A higher rate raises the interest charged each month, so less of each payment reduces principal.
The balance then falls more slowly, which keeps interest high for longer. The effect compounds.
How does the loan term change the payment and total cost?
Now hold the rate at 6.5% and change the term.
| Term | Payments | Monthly payment | Total interest | Total repaid |
|---|---|---|---|---|
| 3 years | 36 | $766.23 | $2,584.10 | $27,584.10 |
| 5 years | 60 | $489.15 | $4,349.20 | $29,349.20 |
| 7 years | 84 | $371.24 | $6,183.77 | $31,183.77 |
Stretching from five to seven years cuts the payment by $117.91 a month.
It also adds $1,834.57 in interest, because the balance stays higher for longer.
The three-year loan costs $277.08 more a month than the five-year loan.
In return, it saves $1,765.10 in interest.
Another way to see it: interest per dollar borrowed is about 10 cents over three years.
It rises to about 17 cents over five years and 25 cents over seven.
Choosing a term is a trade-off between monthly cash flow and total cost.
The same math on a larger loan
The effect grows with the size and length of the loan. Consider an assumed $300,000 home loan at 6.5%.
| Term | Monthly payment | First month’s interest | Total interest |
|---|---|---|---|
| 15 years | $2,613.32 | $1,625.00 | $170,398.28 |
| 30 years | $1,896.20 | $1,625.00 | $382,636.71 |
The first month’s interest is the same, $300,000 × 0.0054167 = $1,625.00, whatever the term.
On the 30-year loan, that interest is 85.7% of the first payment. On the 15-year loan, it is 62.2%.
Over 30 years, total interest exceeds the amount borrowed. Over 15 years, it is well under it.
How much do extra payments save?
Any amount paid above M goes straight to principal. That cuts future interest and shortens the loan.
Suppose Mr. Reyes adds a fixed extra amount every month from the start.
| Extra per month | Months to pay off | Total interest | Interest saved | Months saved |
|---|---|---|---|---|
| $0 | 60 | $4,349.20 | $0.00 | 0 |
| $50 | 54 | $3,867.82 | $481.38 | 6 |
| $100 | 49 | $3,483.80 | $865.40 | 11 |
| $200 | 41 | $2,910.12 | $1,439.08 | 19 |
An extra $100 a month clears the loan 11 months early and saves $865.40 in interest.
Extra payments save more when made early, because interest is highest at the start.
Before prepaying, check whether your loan agreement charges a fee for early repayment.
Also confirm the lender applies extra money to principal rather than to next month’s payment.
How can you check your answer or work backward?
Two related formulas help you verify a schedule or plan a budget.
Remaining balance after k payments
Balance = P × (1 + r)^k − M × ((1 + r)^k − 1) ÷ r
For Mr. Reyes after six payments, this gives $22,848.63.
The table shows $22,848.65. The two-cent gap comes from rounding interest each month.
How much can you borrow for a given payment?
Rearrange the payment formula to solve for the principal instead.
P = M × ((1 + r)^n − 1) ÷ (r × (1 + r)^n)
If Mr. Reyes can afford $400 a month at 6.5% over 60 months, the maximum loan is $20,443.47.
This backward calculation is useful for setting a budget before speaking to any lender.
Spreadsheet shortcut
Most spreadsheets include a payment function that takes the rate, number of periods and principal.
Use it to check your hand calculation. The two answers should match to the cent.
Common mistakes
Most payment errors come from mismatched units or rounding too soon.
- Using the annual rate: r must be the monthly rate when payments are monthly.
- Counting years, not months: n is the number of payments, not years.
- Rounding r early: keep six or more decimal places until the final step.
- Plugging in the APR: the payment uses the interest rate; APR includes fees.
- Judging by payment alone: a lower payment can hide far higher total interest.
- Assuming extras reduce principal: confirm how the lender applies extra money.
Frequently asked questions
Does the formula work for weekly or biweekly payments?
Yes. Divide the annual rate by the number of payments per year, and count n in those periods.
Why is my lender’s payment slightly different?
Lenders may round differently, count days of interest, or include insurance or fees.
Ask for their amortization schedule to see the difference.
What happens if the interest rate is zero?
The formula divides by zero, so it does not apply.
Simply divide the principal by the number of payments instead.
Is one lump-sum prepayment as good as monthly extras?
A lump sum of the same total, paid earlier, saves slightly more interest.
Paid later, it saves less. Timing matters more than the method.
Sources
- What Is Amortization and How Could It Affect My Auto Loan? – Consumer Financial Protection Bureau, 2024
- What Is the Difference Between a Loan Interest Rate and the APR? – CFPB, 2026
- What Is a “Daily Periodic Rate” on a Credit Card? – Consumer Financial Protection Bureau, 2024
- What Is Compound Interest? – U.S. Securities and Exchange Commission, Investor.gov (accessed Oct 2026)
- Simple and Compound Interest: Why It Is Great to Save – St. Louis Fed, 2019
Read next
- Compound interest and the Rule of 72: how money grows over time
- Rent or buy a home: a break-even framework with worked numbers
- How interest rates affect inflation, borrowing and asset prices
This article is for general education, not financial, investment, legal or tax advice.
Mr. Reyes, the loan amount, all interest rates and terms are fictional assumptions, not current market rates.

How to read economic charts without being misled
How to read a stock quote: bid, ask, volume and market cap
Business KPIs explained: margins, ROE and productivity