Finance

How Loan Payments Are Calculated

Learn how loan payments are calculated, with the amortizing-loan formula, a worked example, and how the interest-to-principal split changes over time.

Published by Shahbaz Badar Published September 8, 2026 Updated November 14, 2026

On this page
  1. What Makes Up a Loan Payment?
  2. Loan Terms Used in This Guide
  3. The Loan Payment Formula
  4. Step-by-Step Example: $20,000 at 6% for 5 Years
  5. Total Repayment and Total Interest
  6. How the Interest/Principal Split Changes Over Time
  7. How Many Payments Will a Loan Take?
  8. Common Mistakes
  9. Use the Loan Calculator

Every loan payment is really two things bundled together: a portion that pays down what you borrowed (principal) and a portion that pays the lender for the privilege of borrowing it (interest). Knowing how that split is calculated explains a lot about how loans actually work.

What Makes Up a Loan Payment?

On a standard amortizing loan, the kind most personal loans, auto loans, and mortgages use, you pay the same fixed amount every period for the life of the loan. What changes behind the scenes is the mix: early payments are weighted more heavily toward interest, since interest is calculated on the current outstanding balance, and that balance is largest at the start.

Loan Terms Used in This Guide

Term Meaning
Principal The amount borrowed, or the part of it still owed, before interest.
Interest rate The yearly rate the lender charges on the outstanding balance. The payment formula uses this rate.
APR Annual Percentage Rate: the yearly cost of borrowing, including interest and most fees, expressed as a percentage. It is used to compare loans.
Term How long you have to repay the loan, such as 5 years (60 monthly payments).
Amortization Paying off a loan through fixed, regular payments that cover both interest and principal over time.
Compounding Owing or earning interest on both the original amount and previously accumulated interest. On an amortizing loan paid on time, each payment covers that month’s interest, so interest does not build on interest.
Equity The portion of an asset’s value you actually own, after subtracting any remaining loan balance.
APY Annual Percentage Yield: the annual return on savings including compounding. It applies to savings, not loan payments; see Compound Interest Explained.

The Loan Payment Formula

M = P × [r(1 + r)n] ÷ [(1 + r)n − 1]

Where M is the monthly payment, P is the loan amount (principal), r is the monthly interest rate (the annual rate divided by 12, written as a decimal), and n is the total number of payments (years × 12).

The same formula works for auto loans, personal loans and the principal-and-interest part of a home loan. If the interest rate is 0%, the formula divides by zero, and the payment is simply P ÷ n.

Step-by-Step Example: $20,000 at 6% for 5 Years

Loan amount: $20,000
Annual interest rate: 6%
Term: 5 years (60 monthly payments)

  1. Monthly rate: 6% ÷ 12 = 0.5%, or 0.005
  2. Growth factor: (1.005)60 ≈ 1.348850
  3. Top of the fraction: 0.005 × 1.348850 ≈ 0.006744
  4. Bottom of the fraction: 1.348850 − 1 = 0.348850
  5. Payment: 20,000 × (0.006744 ÷ 0.348850) ≈ 20,000 × 0.019333 = $386.66

Result: a monthly payment of $386.66. Over 60 payments, that totals about $23,199.36, meaning about $3,199.36 of the total is interest. (Lenders round each payment to the cent and adjust the final one, so the exact total can differ by a few cents.)

Total Repayment and Total Interest

Once you know the payment, the totals follow directly:

Total repaid = M × n
Total interest = (M × n) − P

For the example above: $386.66 × 60 ≈ $23,199 repaid, of which $23,199 − $20,000 ≈ $3,199 is interest. Stretching the same loan to 7 years lowers the payment but raises the total interest, because the balance is outstanding for longer.

How the Interest/Principal Split Changes Over Time

Because interest is calculated on whatever balance remains, the same fixed payment covers less interest and more principal as the loan matures. Each month:

Interest part = Remaining balance × r
Principal part = M − Interest part

In the $20,000 example, the first month’s interest is 20,000 × 0.005 = $100.00, so $286.66 goes to principal and the balance falls to $19,713.34. By month 12, the principal part has grown to about $302.82.

The effect is much larger on long loans. On a $300,000 mortgage at 6% over 30 years, the very first monthly payment of $1,798.65 splits roughly into $1,500.00 interest and $298.65 principal. By payment 180, the last payment of year 15 and the halfway point of the loan, that same $1,798.65 payment covers about $1,069.38 interest and $729.27 principal, more than double the principal share of the first payment. For more on long-term schedules, see Understanding Mortgage Amortization.

How Many Payments Will a Loan Take?

If you know the payment you can afford and want the loan length instead, rearrange the formula to solve for n:

n = −ln(1 − r × P ÷ M) ÷ ln(1 + r)

Example: paying $500 a month on $20,000 at 6%: n = −ln(1 − 0.005 × 20,000 ÷ 500) ÷ ln(1.005) = −ln(0.8) ÷ ln(1.005) ≈ 44.74. That is 44 full payments plus a smaller 45th one. If M is not larger than P × r (here $100), the payment never covers the interest and the loan is never repaid.

Common Mistakes

  • Ignoring the compounding period. The formula above uses a monthly rate for a monthly payment. Using the annual rate directly instead of dividing it by 12 produces a wildly wrong result.
  • Using APR instead of the interest rate. A loan’s APR includes most fees, so on a loan with fees it is higher than the interest rate that actually sets your payment. Use the note rate divided by 12 in the formula, and use APR to compare the full cost of different offers.
  • Forgetting to convert the percentage. 6% must go into the formula as 0.06 per year, or 0.005 per month, not as 6.
  • Assuming a flat payment means flat interest. The payment stays the same, but how much of it is interest changes every single month.

Use the Loan Calculator

The Loan Calculator works out the monthly payment, total interest, and a full amortization schedule from a loan amount, annual rate and term in years or months. It also takes an optional extra monthly payment and shows how much sooner the loan is paid off. For a home loan, the Mortgage Calculator is built for that case.

Try it yourself

Loan Calculator

Try our Loan Calculator →

Frequently Asked Questions

What is the formula for a monthly loan payment?

The standard formula is M = P × [r(1 + r)^n] ÷ [(1 + r)^n − 1], where P is the amount borrowed, r is the annual rate divided by 12, and n is the number of monthly payments. For $20,000 at 6% over 60 months, r = 0.005 and the payment comes to $386.66. Spreadsheet apps have the same calculation built in as the PMT function.

What is the difference between the interest rate and APR on a loan?

The interest rate is what the lender charges on the balance, and it sets your monthly payment. The APR adds most upfront fees, such as origination fees, and spreads them over the term as a yearly rate. A loan with no fees has an APR equal to its rate. A loan with fees has a higher APR, which is why APR is the better number for comparing offers.

Why does more of my payment go to interest at the start?

Interest is calculated on the outstanding balance, which is highest at the beginning of the loan. As the balance shrinks, less of each fixed payment is needed for interest, leaving more to reduce the principal. On a $20,000 loan at 6%, the first payment includes $100 of interest; by the final year, the monthly interest is under $25.

Does a lower interest rate always mean a lower payment?

For the same loan amount and term, yes. A lower rate reduces both the payment and the total interest paid over the life of the loan. A lower payment does not always mean a cheaper loan, though: a longer term also lowers the payment while increasing the total interest you pay.

What happens if I make an extra payment toward principal?

An extra payment reduces the outstanding balance directly, which reduces the interest charged on every later payment. On a fixed-rate loan the scheduled payment usually stays the same, so the loan ends sooner and the total interest falls. Check that your lender applies extra money to principal and does not charge a prepayment penalty.

Is the payment formula the same for auto loans and home loans?

Yes, for the principal and interest. Any standard amortizing loan, where a fixed payment covers principal and interest over a set term, uses the same formula. A mortgage bill often adds property tax and insurance held in escrow, which the formula does not include. Loans with interest-only periods or balloon payments follow different math.

Explore More

Find the right tool, or keep reading Brekzy's other guides.