How Is a Loan Payment Calculated? The Formula Behind Your Monthly Payment

December 6, 2026 · Rashid Awan

The parts of the loan payment formula, principal, rate and term, combining into one monthly payment
Advertisement

Short answer: Almost every fixed-rate loan payment on earth comes from one formula: M = P × r(1+r)^n ÷ ((1+r)^n − 1), where P is the amount borrowed, r is the monthly interest rate (the annual rate ÷ 12) and n is the number of monthly payments. On a $20,000 car loan at 7% for 60 months, it produces a payment of $396.02 a month, $23,761.44 paid in total and $3,761.44 of interest. The formula looks forbidding, but each piece has one plain job: r prices the money, n stretches it over time, and the fraction simply finds the one fixed payment that exactly retires the loan — with interest — on the final month. Every figure below is worked in full.

Lenders do not negotiate this number; they compute it. Once you can compute it too, a loan quote stops being a figure you accept and becomes a figure you can check — and you can test in seconds what a different rate, term or amount does to both the payment and the far more important number, the total interest.

Advertisement

The formula, piece by piece

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

  • P — the principal. The amount you actually borrow. Not the car’s price: the amount financed after your down payment, trade-in and any fees rolled into the loan.
  • r — the monthly rate. Loans quote an annual rate, but interest is charged monthly, so r = annual rate ÷ 12. At 7%, r = 0.07 ÷ 12 = 0.0058333 — about 0.583% of the balance, charged every month.
  • n — the number of payments. Years × 12. A 5-year loan is n = 60; a 30-year mortgage is n = 360.
  • (1+r)^n — the growth factor. This is what $1 would grow to if it sat compounding at the monthly rate for the whole term. It is the engine of the formula: the payment has to overcome exactly this much compounding.
  • M — the monthly payment. The single fixed amount that, paid every month, brings the balance to exactly zero at payment n — never before, never after.

Why a fraction at all? Because each payment does two jobs at once — it pays that month’s interest and removes some principal, which shrinks next month’s interest. The formula is the solution to that moving target: it finds the one level payment where the shrinking-interest, growing-principal pattern lands precisely on zero at the final payment. The CFPB’s auto-loan guidance encourages borrowers to compare loans on total cost, not payment alone — this formula is how you produce both numbers yourself.

The worked example, step by step

All numbers use one clearly stated loan:

  • Amount borrowed (P): $20,000
  • Annual rate: 7%, so r = 0.0058333
  • Term: 60 months, so n = 60

Step 1 — Convert the rate and the term

r = 0.07 ÷ 12 = 0.0058333 per month. n = 5 × 12 = 60 payments. Every loan calculation starts with these two conversions; using the annual rate directly is the most common DIY error.

Step 2 — Compute the growth factor

(1 + r)^n = (1.0058333)^60 = 1.417625

Read it plainly: at this rate, money compounds by about 41.76% over five years. The payment must be big enough to defeat that growth on a $20,000 head start.

Step 3 — Run the formula

M = $20,000 × 0.0058333 × 1.417625 ÷ (1.417625 − 1) = $20,000 × 0.008269 ÷ 0.417625 = $396.02 a month

That is the payment on the lender’s quote — and now you have produced it yourself, from nothing but the amount, rate and term.

Step 4 — Split the first payment, and the last idea to check

In month 1, interest is charged on the full balance: $20,000 × 0.0058333 = $116.67. So of your first $396.02, $279.36 reduces principal and $116.67 is the month’s rent on the money.

Run the schedule forward and a pattern every borrower should feel in their bones appears: after 30 payments — halfway through the term — the balance is still $10,870.25, more than half the original loan. Payments are level; principal reduction is back-loaded, because early payments carry the heaviest interest. Halfway in time is not halfway in debt.

Step 5 — Get the number that actually matters: total interest

Total paid = $396.02 × 60 = $23,761.44 → total interest = $23,761.44 − $20,000 = $3,761.44

The payment tells you whether the loan fits your month. The $3,761.44 tells you what the loan costs. Two loans can share a payment and differ by thousands here — which is exactly what Step 6 demonstrates.

Step 6 — Change one variable at a time

LoanPaymentTotal interestWhat changed
$20,000 at 7%, 60 months (base)$396.02$3,761.44—
$20,000 at 5%, 60 months$377.42$2,645.48Rate −2 points: interest −$1,115.96
$20,000 at 9%, 60 months$415.17$4,910.03Rate +2 points: interest +$1,148.59
$20,000 at 7%, 36 months$617.54$2,231.51Shorter term: payment +$221.52, interest −$1,529.93
$20,000 at 7%, 72 months$340.98$4,550.57Longer term: payment −$55.04, interest +$789.13
$15,000 at 7%, 60 months$297.02$2,821.08Borrow $5,000 less: everything scales down
$25,000 at 7%, 60 months$495.03$4,701.80Borrow $5,000 more: everything scales up

All figures calculated with the formula above, rounded to the nearest cent.

Read the term rows twice. Stretching from 60 to 72 months buys just $55.04 a month of relief and charges $789.13 for it. Shortening to 36 months costs $221.52 more a month and saves $1,529.93. The formula’s real lesson is that the term is the most expensive dial on the loan.

Check any quote in seconds with our Loan Payment Calculator, and see the month-by-month split of interest and principal with the Amortized Loan Calculator.

What the formula does not include

It assumes a fixed rate and on-time payments

The formula prices a loan that behaves: same rate throughout, every payment on time. Adjustable rates re-run the formula at each reset with the then-current balance and remaining term. Late payments, fees and deferred interest all live outside it.

It says nothing about fees, taxes or add-ons

The P in the formula is the amount financed. Dealer add-ons, origination fees, sales tax and rolled-in insurance all inflate P before the formula ever runs — a $20,000 car with $2,000 of add-ons is a $22,000 loan, and the formula prices it as one. Negotiating P is negotiating the loan.

APR is not quite the r in the formula

The rate in the formula is the loan’s note rate. APR wraps in certain fees to express the loan’s cost as a rate, which makes it better for comparing two loans’ total cost — but your actual payment is computed from the note rate and the amount financed. Use APR to compare offers; use the formula to verify the payment.

Prepayment changes the ending, not the formula

Paying extra principal does not change M — it changes how long M has to run. Each extra dollar removes itself from every future month’s interest charge, which is why extra payments shorten the loan instead of shrinking the payment. Our guide to reading an amortization schedule shows where each payment’s split comes from, month by month.

More loan explainers are collected in our Loans & Auto category.

Frequently asked questions

Why is the rate divided by 12?

Because interest is charged on each month’s balance, not once a year. Dividing the annual rate by 12 gives the monthly rate the balance actually experiences. It is also why compounding matters: interest is charged on a balance that includes previously unpaid interest only if payments are missed — on a normal amortizing loan, each month’s interest is on the remaining principal alone.

Can I calculate the payment without the formula?

You can approximate, but not exactly — the compounding term (1+r)^n is doing real work, which is why “amount ÷ months, plus a bit” always undershoots. Use the formula, or a calculator built on it, for any figure you plan to sign next to.

Why is my dealer’s payment different from my calculation?

Usually one of three reasons: the amount financed is not what you assumed (add-ons, taxes, fees, a different down payment), the term differs (72 months quoted as “about five years”), or the rate is not the rate you were quoted in conversation. Ask for the amount financed, the note rate and the term in writing — with those three, the formula tells you the payment to the cent, and any gap is a question the dealer can answer.

Does the same formula work for mortgages?

Identically. A mortgage is the formula with a large P and n = 360 (or 180). It is the same calculation that prices the loans in our 15-year vs. 30-year mortgage comparison — only the inputs change.

What happens if I round the payment down?

Do not. The formula’s payment is calibrated to land on zero at payment n. Paying even slightly less each month leaves a residual balance at the end, and the loan extends or a final larger payment falls due. Lenders round the payment up to the cent for the same reason.

Bottom line

One formula — M = P × r(1+r)^n ÷ ((1+r)^n − 1) — prices nearly every loan you will ever sign. On $20,000 at 7% over 60 months it yields $396.02 a month and $3,761.44 of interest, and it hands you the three levers that matter: borrow less (P scales everything), pay a lower rate (r moves interest roughly a thousand dollars per two points here), and respect the term (n is where cheap payments hide expensive loans). A lender’s quote is no longer an assertion once you can run this yourself — it is arithmetic, and arithmetic can be checked.

Sources

  • Consumer Financial Protection Bureau — Auto Loans

All figures in this article were calculated directly from the stated loan amount, rate and term using the standard loan payment formula, shown in full above.

This article is educational information, not financial advice. The formula prices fixed-rate, fully amortizing loans with on-time payments; your loan documents govern your specific terms.