Learn / Credit & Debt

Credit & Debt

How to Calculate a Loan Payment: Formula, By-Hand Example & Excel PMT

6 min read · Reviewed: November 2026

Every fixed-rate loan payment — auto loan, personal loan or mortgage — comes from one formula. Here it is in plain words, worked by hand on a $20,000 loan, checked against a $300,000 mortgage schedule, and repeated in Excel.

Interactive Tool
Loan Payment Calculator
Open calculator →

The monthly loan payment formula, in plain words

A fixed-rate loan payment has to do two jobs at once: cover the interest that accrues each month and retire the principal by the final payment. The standard formula finds the single fixed amount that does both exactly. It needs just three inputs: the principal you borrow (P), the monthly interest rate (r — your APR divided by 12), and the number of monthly payments (n).

The (1 + r)^n term is the compound growth factor: it measures how much $1 would grow if it compounded monthly for the whole term. The formula uses it to spread the principal evenly across all payments while accounting for interest compounding along the way.

You can skip the arithmetic and model any loan instantly with our free Loan Payment Calculator.

M = P × [r(1 + r)^n ÷ ((1 + r)^n − 1)] where r = APR ÷ 12 ÷ 100 and n = number of monthly payments M = monthly payment, P = principal borrowed

Worked example: $20,000 at 6% for 5 years, by hand

Follow the formula one step at a time for a $20,000 loan at 6% APR over 5 years:

$20,000 Loan at 6% APR, 5 Years — Step by Step

  • Principal P = $20,000.00; APR 6%; term 5 years = 60 monthly payments (n = 60).
  • Monthly rate r = 6% ÷ 12 = 0.5% = 0.005.
  • Growth factor (1 + r)^n = (1.005)^60 = 1.34885.
  • Numerator: r × (1 + r)^n = 0.005 × 1.34885 = 0.00674425.
  • Denominator: (1 + r)^n − 1 = 1.34885 − 1 = 0.34885.
  • Monthly payment M = $20,000 × (0.00674425 ÷ 0.34885) = $386.66 per month.
  • Total paid over 5 years: $23,199.36, of which $3,199.36 is interest (60 payments; the exact payment is $386.6560, shown rounded as $386.66).

Worked example: $300,000 mortgage at 6.5% for 30 years

The same formula prices a mortgage. A $300,000 loan at 6.50% APR over 30 years (360 payments, r = 0.065 ÷ 12 = 0.0054167) needs a fixed payment of $1,896.20 per month. Watch how little of the first payments touches the principal — and how the split shifts:

Month 3’s displayed starting balance reads $299,456.12, one cent below Month 2’s displayed ending balance of $299,456.13: each row’s figures are rounded to cents independently, and the engine keeps full precision underneath, so the schedule still reconciles to the cent.

MonthStarting balanceInterestPrincipalEnding balance
1$300,000.00$1,625.00$271.20$299,728.80
2$299,728.80$1,623.53$272.67$299,456.13
3$299,456.12$1,622.05$274.15$299,181.97

What extra payments do to your loan

Because each month’s interest is charged on the remaining balance, every extra dollar you pay goes straight to principal — and a smaller balance means less interest next month, so more of the following payment attacks principal too. The effect compounds.

On the $300,000 mortgage above, adding an extra $250.00 per month toward principal from day one ($2,146.20 total per month) retires the loan in 262 months — 21 years and 10 months, over 8 years early — and saves $120,336.94 in lifetime interest, cutting total interest from $382,633.47 to $262,296.53. See the full trajectory, including the month principal finally overtakes interest, in our loan amortization guide.

How to calculate a loan payment in Excel or Google Sheets

The PMT function is the same formula in one cell: =PMT(rate, nper, pv). For the mortgage above, =PMT(6.5%/12,360,-300000) returns $1,896.20. For the $20,000 example, =PMT(6%/12,60,-20000) returns $386.66. Enter the principal as a negative number so the result comes out positive.

The three arguments are the monthly rate (APR ÷ 12), the number of payments, and the principal. Change any one of them to see the payment move — a longer term lowers the payment but raises total interest, which is why the cheapest monthly payment is rarely the cheapest loan.

What will my loan payment be? The three levers

Your payment moves with three levers. A bigger principal raises the payment roughly in proportion. A higher rate raises the payment and, more importantly, raises the total interest far faster than the payment itself. A longer term lowers the monthly payment — stretching the $20,000 loan above from 5 years to a longer term would cut the $386.66 payment — but you pay interest for more months, so the total cost climbs steeply.

Before signing, run all three levers through our Loan Payment Calculator and compare the total interest, not just the monthly figure. And check how loan amortization works to see why early payments barely dent the balance.

Frequently Asked Questions

What is the formula to calculate a monthly loan payment?

M = P × [r(1 + r)^n ÷ ((1 + r)^n − 1)], where P is the principal, r is the monthly interest rate (APR ÷ 12 ÷ 100) and n is the number of monthly payments. In Excel or Google Sheets the same calculation is =PMT(APR/12, n, -P).

How do I calculate a loan payment by hand?

Divide the APR by 12 to get the monthly rate r, multiply the term in years by 12 to get n, work out (1 + r)^n, then apply M = P × [r(1 + r)^n ÷ ((1 + r)^n − 1)]. For $20,000 at 6% over 5 years: r = 0.005, n = 60, (1.005)^60 = 1.34885, and M = $20,000 × (0.00674425 ÷ 0.34885) = $386.66 per month.

What will my loan payment be on $20,000?

At 6% APR over 5 years (60 payments) it is $386.66 per month, with $3,199.36 of total interest on top of the $20,000 borrowed. Your payment will differ if your rate or term differs — run your own figures through our Loan Payment Calculator.

How do I calculate a loan payment in Excel?

Use =PMT(rate, nper, pv) with the monthly rate first: =PMT(6.5%/12,360,-300000) returns $1,896.20 for a $300,000 mortgage at 6.5% over 30 years, and =PMT(6%/12,60,-20000) returns $386.66 for a $20,000 loan at 6% over 5 years. Enter the principal as a negative number so the payment comes out positive.

Does a longer loan term lower my monthly payment?

Yes — spreading the same principal over more payments shrinks each one. But you pay interest for more months, so the total interest rises steeply. Always compare total interest, not just the monthly payment, before choosing a longer term.

How much does paying extra each month save?

On a $300,000 mortgage at 6.5% over 30 years, an extra $250 per month retires the loan in 262 months instead of 360 — over 8 years early — and saves $120,336.94 in lifetime interest. Extra payments go 100% to principal (on loans with no prepayment penalty), so the saving compounds month after month.