The Loan Payment Formula Explained
Every fixed-rate installment loan, from a car loan to a mortgage, uses the same payment formula. Once you know what each symbol means, you can check any quote with a calculator and a few minutes.
The formula
Payment = P x r / (1 - (1 + r)^-n)
P is the amount borrowed. r is the interest rate for one period, which for monthly payments is the annual rate divided by 12. n is the total number of payments, which is the years of the loan times 12.
The formula finds the single level payment that brings the balance to exactly zero after the final payment.
Try the free tool: no signup, runs in your browser.
Open the Loan Payment Calculator →A worked example
Borrow $15,000 at 8% for 4 years. Then P = 15,000, r = 0.08 / 12 = 0.006667 and n = 48.
First, (1 + r)^48 is about 1.3757, so (1 + r)^-48 is about 0.7269. Subtract from 1 to get 0.2731.
The top of the fraction is 15,000 x 0.006667 = 100. Divide 100 by 0.2731 and the payment is $366.19.
Proving the answer
In the first month, interest is 15,000 x 0.006667 = $100.00. The payment of $366.19 therefore pays $266.19 of principal, and the balance falls to $14,733.81.
Repeat that step 48 times and the balance reaches zero. Total paid is $17,577, so total interest is $2,577.
Special cases
- If the rate is 0%, the formula breaks because it divides by zero. The payment is simply P divided by n.
- For weekly or bi-weekly payments, use the rate per period and the number of periods.
- For interest-only loans, the payment is just P times r for the interest period.
- Some loans charge interest daily, which gives slightly different results.
Using it in a spreadsheet
Excel and Google Sheets have a PMT function. Type =PMT(0.08/12,48,-15000) and it returns the same payment. Putting the loan as a negative number keeps the result positive.
Spreadsheets are good for testing what happens when you change the rate or term. A small table with several terms in a column makes the trade-offs plain.
Why the formula matters
If a quote does not match the formula, something is different. It could be a fee rolled into the loan, a different rate type or an error. Ask the lender to explain the difference. If your own number is higher than theirs, check that you used a monthly rate, not the annual one.
Common mistakes when doing it by hand
The most frequent mistake is using the annual rate instead of the monthly one. A payment computed that way is far too low. The second is using years instead of months for n. The third is rounding the factor too early, which can shift the payment by several dollars on a large loan.
Keep at least six decimal places in the middle steps, and round only the final payment to the nearest cent.
Comparing terms with the formula
The same $15,000 at 8% costs $470.05 a month over 3 years, $366.19 over 4 years and $304.15 over 5 years. Total interest is $1,922, $2,577 and $3,249.
Each extra year lowers the payment but adds interest. The calculator lets you pick the point where the payment fits and the total does not grow beyond what you want to pay.
When the payment changes
Fixed-rate loans keep the same payment for the whole term. Variable-rate loans recalculate the payment whenever the rate changes, using the remaining balance and remaining months. If you make extra payments, the balance falls, and the lender may keep the payment or shorten the term, depending on the loan.
Keep going: build a full schedule
Once you have the payment, you can build an amortization schedule in a spreadsheet with four columns: balance, interest, principal and new balance. Copy the row down for every month. It is a good way to see how the split between interest and principal changes over time.
Frequently asked questions
Why is the formula divided by 12?
Because interest is quoted per year and payments are monthly, so the rate per period is one twelfth of the yearly rate.
Does this work for mortgages?
Yes, for fixed-rate mortgages. Taxes and insurance paid into escrow are added on top.
What is the PMT function?
A spreadsheet function that applies this same formula. Enter the rate per period, the number of periods and the loan amount.
Sources
General information only, not financial advice. Results are estimates; confirm real figures with your lender or a qualified adviser.