1. Home
  2. Calculators
  3. How loan payments are calculated
Borrowing, explained

How are loan payments calculated?

A fixed loan payment is set so that, after the last month, every dollar of principal and interest has been paid. One formula does it.

The formula

Payment = P × r ÷ (1 − (1 + r)−n)

  • P: the amount borrowed
  • r: the monthly rate, which is the APR ÷ 12 as a decimal (7% → 0.07 ÷ 12 ≈ 0.0058333)
  • n: the number of monthly payments

If the rate is 0%, the payment is simply P ÷ n.

Examples, not quotesEvery rate, price and tax figure on this page is an example chosen to make the arithmetic easy to follow. None of them is a current market rate or average. Use the numbers from your own loan estimate or offer. Estimates only, not financial advice.

Step by step: a $25,000 car loan

Example: $25,000 at 7% APR for 60 months.

  1. Monthly rate: 0.07 ÷ 12 = 0.0058333.
  2. (1 + r)−60 = 1.0058333−60 ≈ 0.70541.
  3. 1 − 0.70541 = 0.29459.
  4. P × r = 25,000 × 0.0058333 = 145.83.
  5. 145.833 ÷ 0.29459 ≈ $495.03 a month.

Over 60 months you pay 495.03 × 60 = $29,701.80, so about $4,701.80 is interest.

Why early payments are mostly interest

Each month the lender charges interest on the balance you still owe. In month one that's 25,000 × 0.0058333 = $145.83, so $349.20 of the $495.03 payment goes to principal. As the balance shrinks, the interest part shrinks and the principal part grows, while the payment stays the same. This is called amortization; how amortization works covers it in detail.

How the term changes the payment and the cost

Same $25,000 at an example 7%:

TermMonthly paymentTotal interest
36 months$771.93$2,789.39
48 months$598.66$3,735.49
60 months$495.03$4,701.80
72 months$426.23$5,688.21

Stretching from 36 to 72 months cuts the payment by about $346 but roughly doubles the interest. A longer term can also leave you owing more than a car is worth for longer, because cars lose value as they age.

Solving for the term instead

If you know the payment you can afford, the number of months is n = −ln(1 − r × P ÷ payment) ÷ ln(1 + r). $25,000 at 7% paying $600 a month: 1 − 0.0058333 × 25,000 ÷ 600 = 0.75694, and −ln(0.75694) ÷ ln(1.0058333) ≈ 47.9, so 48 payments, with the last one smaller (about $525.81). Paying $500 a month takes 60 payments.

If the payment is less than or equal to the first month's interest (r × P), the loan never gets paid off. On $10,000 at 12%, that's $100 a month.

Extra payments

Anything you pay above the scheduled amount usually goes straight to principal (check that your lender applies it that way and doesn't charge a prepayment fee). Paying an extra $100 a month on the $25,000 example, about $595 in total, finishes in 49 payments instead of 60 and saves about $939 of interest.

Common mistakes

  • Using the yearly rate as the monthly rate. Divide the APR by 12.
  • Using years for n. n counts months: 5 years is 60.
  • Comparing loans by payment only. Compare total interest and fees too.
  • Forgetting fees rolled into the loan. They raise P, and you pay interest on them.
  • Assuming every student loan works this way. Income-driven federal plans set payments differently.

Frequently asked questions

What is the formula for a monthly loan payment?

Payment = P × r ÷ (1 − (1 + r)^−n), where P is the amount borrowed, r is the APR ÷ 12 and n is the number of months.

How much is a $25,000 loan for 60 months at 7%?

$495.03 a month, with about $4,701.80 of interest in total. Your own rate will change it.

Is a longer loan term better?

It lowers the payment but raises total interest. In the example, 72 months costs about $2,900 more interest than 36 months.

How do I calculate how many months to pay off a loan?

n = −ln(1 − r × P ÷ payment) ÷ ln(1 + r), or use the 'Find how long' mode of the loan payment calculator.

Does paying extra shorten my loan?

Usually, yes, if the extra goes to principal. Check for prepayment fees first.

What's the difference between APR and interest rate?

The interest rate is the cost of borrowing the principal. The APR can also include certain fees, so it's often a little higher.

Keep reading

Related tools

See everything in Calculators →