Get Started
How to Calculate Loan Payments: Formula and Examples
Learn how to calculate loan payments with the amortization formula. Step-by-step examples, Excel PMT tips, total interest and extra payments.

How to Calculate Loan Payments: Formula and Examples

Last Updated: 8 min read
Person stacking coins to plan loan payments

Learn how to calculate monthly loan payments, total interest and the effect of extra payments with simple formulas, step-by-step examples and spreadsheet tips.

Table of Contents 25 sections
  1. What you need to know
  2. The loan payment formula
  3. Step-by-step example
  4. Calculating in Excel or Google Sheets
  5. How to calculate interest on each payment
  6. How to calculate total interest and total cost
  7. Calculating a simple-interest loan
  8. Calculating the loan amount you can afford
  9. How to calculate the effect of extra payments
  10. Comparing offers: payment, APR and total cost
  11. Loans with different payment frequencies
  12. Common mistakes
  13. Understanding amortization in depth
  14. Calculating how long it takes to pay off a loan
  15. Calculating the interest rate on a loan
  16. Calculating loans with an origination fee
  17. Calculating interest-only and balloon loans
  18. Car loans: a worked example
  19. Student loans: a worked example
  20. Using spreadsheets for loan planning
  21. Questions to ask before signing a loan
  22. Putting it all together: a checklist
  23. Next steps
  24. How to use this guide
  25. Frequently asked questions
Skip the math: use the free Loan Calculator.

Taking out a loan without understanding the payment is a recipe for surprises. Luckily, calculating loan payments takes just one formula and a few inputs. This guide shows how to calculate loan payments by hand and in a spreadsheet, how to work out total interest, and how extra payments change the picture. To check your numbers instantly, use our loan calculator.

What you need to know

  • Principal (P): the amount you borrow
  • Annual interest rate (APR): the yearly cost, expressed as a percentage
  • Term: how long you have to repay, in years or months
  • Payment frequency: most consumer loans are monthly

The loan payment formula

Payment = P x r / (1 - (1 + r)^(-n))

Where r is the periodic (monthly) rate = APR / 12 / 100 and n is the number of payments = years x 12. The formula comes from the present value of an annuity: the loan amount equals the present value of all future payments discounted at the loan rate.

For related numbers, try the APR Calculator and Credit Card Payoff Calculator.

Step-by-step example

You borrow $18,000 at 7.2% APR for 4 years.

  1. Monthly rate: r = 7.2 / 100 / 12 = 0.006.
  2. Number of payments: n = 4 x 12 = 48.
  3. Discount factor: (1.006)^-48 = 0.7504.
  4. Denominator: 1 - 0.7504 = 0.2496.
  5. Payment: 18,000 x 0.006 / 0.2496 = $432.70.
  6. Total paid: 432.70 x 48 = $20,770. Total interest = $2,770.

Calculating in Excel or Google Sheets

Use =PMT(APR/12, years*12, -amount). For the example: =PMT(0.072/12, 48, -18000) returns 432.70. Use =IPMT() for the interest part of a specific payment and =PPMT() for the principal part. =NPER() tells you how many payments you need if you choose a payment amount.

How to calculate interest on each payment

Interest for any month = remaining balance x monthly rate. Month 1 of the example: 18,000 x 0.006 = $108. The principal portion is 432.70 - 108 = $324.70, so the new balance is $17,675.30. Month 2 interest is 17,675.30 x 0.006 = $106.05, and so on. Each month slightly more of the payment goes to principal. This pattern is an amortization schedule.

How to calculate total interest and total cost

Total interest = (Payment x n) - P
Total cost = Payment x n + fees

Add origination fees if they are not already deducted. For a $18,000 loan with a 3 percent fee ($540) the total cost becomes $21,310, and the effective APR is higher than 7.2 percent.

Calculating a simple-interest loan

Some short-term loans use simple interest: Interest = P x rate x time. A $2,000 loan at 6 percent for 18 months costs 2,000 x 0.06 x 1.5 = $180, for a total of $2,180 or $121.11 a month. This is not amortizing, so use it only if the lender says so.

Calculating the loan amount you can afford

Reverse the formula to find P from a payment you can afford:

P = Payment x (1 - (1 + r)^(-n)) / r

If you can pay $350 a month for 5 years at 8 percent: r = 0.006667, n = 60, P = 350 x (1 - 1.006667^-60) / 0.006667 = 350 x 49.318 = $17,261. Rule of thumb: keep total monthly debt payments under 36 percent of gross income, which you can compute using the salary calculator.

How to calculate the effect of extra payments

Add your extra amount to every payment. Interest is still calculated on the declining balance, but principal falls faster, so the loan ends earlier. In the $18,000 example, an extra $75 per month shortens the loan from 48 to about 40 months and saves roughly $470 in interest. Simulate this using the loan calculator's extra payment field.

Comparing offers: payment, APR and total cost

OfferRateFeeTermPaymentTotal cost
A7.0%0%5 years$594$35,650 on $30,000
B6.5%4%5 years$587$36,420 incl. fee
C8.0%0%3 years$940$33,850

Offer B has the lowest rate but the highest cost because of the fee. Always compare the total cost and APR.

Loans with different payment frequencies

For biweekly payments, set r = APR / 26 and n = years x 26. Biweekly payments of half the monthly amount give 26 half-payments, or 13 full payments, each year. That is why paying biweekly can cut years from a long loan.

Common mistakes

  • Using APR as the monthly rate
  • Mixing up months and years
  • Ignoring fees and insurance add-ons
  • Choosing a longer term only to lower the payment
  • Not checking for prepayment penalties

Understanding amortization in depth

Amortization is the process of gradually repaying a loan through equal payments over time. Each payment has two parts: interest, calculated on the outstanding balance, and principal, which reduces the balance. Because interest is charged on a falling balance, the interest portion declines and the principal portion rises every month, even though the payment stays the same. In the $18,000 example, the first payment is 25 percent interest and the last is less than 1 percent. A full amortization table shows this split for every payment and is useful for tax purposes, such as deducting business loan interest or student loan interest.

Payment #PaymentInterestPrincipalBalance
1$432.70$108.00$324.70$17,675.30
12$432.70$85.91$346.79$13,972.36
24$432.70$60.11$372.60$9,644.96
36$432.70$32.37$400.33$4,995.49
48$432.70$2.58$430.12$0.00

Calculating how long it takes to pay off a loan

If you know the payment, solve for the number of months: n = -ln(1 - P x r / Payment) / ln(1 + r). For a $12,000 balance at 18 percent (r = 0.015) with a $400 payment: P x r = 180; 1 - 180/400 = 0.55; ln(0.55) = -0.598; ln(1.015) = 0.01489; n = 40.2 months. Total interest = 400 x 40.2 - 12,000 = about $4,060. If you raise the payment to $500, the payoff time falls to about 30 months and interest to about $2,990. In Excel use =NPER(rate/12, -payment, balance).

Calculating the interest rate on a loan

When a lender gives only the payment, you can find the implied rate. In Excel, =RATE(n, -payment, amount)*12 gives the APR. A $10,000 loan repaid with $320 a month for 36 months has RATE = 0.79 percent a month, or about 9.4 percent a year. This is useful for evaluating buy-here-pay-here auto loans, rent-to-own plans and "no-interest" offers that have hidden fees.

Calculating loans with an origination fee

When the fee is deducted from proceeds, you receive less than you borrow but repay the full amount. Borrowing $20,000 with a 5 percent fee delivers $19,000 but you pay back $20,000 plus interest. The effective rate is higher than the stated APR. To find the real rate, solve for the rate that equates $19,000 received to the payments, using =RATE(n, -payment, 19000)*12. With a 36-month, 9 percent stated loan the payment is $636 and the effective APR is about 12.5 percent.

Calculating interest-only and balloon loans

Interest-only payment = balance x annual rate / 12. On $50,000 at 8 percent that is $333.33 a month with no principal reduction, and the full $50,000 is due at the end. A balloon loan amortizes on a long schedule (say 30 years) but is due in full after 5 to 7 years. Calculate the payment with the full amortization term, then the remaining balance at the balloon date using =FV(rate/12, months_paid, payment, -loan). Plan how you will refinance or pay the balloon.

Car loans: a worked example

A $32,000 car with $4,000 down, 7.5 percent APR for 60 months and 6 percent sales tax financed ($1,920): amount financed = 32,000 + 1,920 - 4,000 = $29,920. r = 0.00625, n = 60. Payment = 29,920 x 0.00625 / (1 - 1.00625^-60) = $599.54 a month. Total interest = $6,052. Stretch to 84 months and the payment falls to $459, but interest rises to $8,630. Four extra months of payments hardly make up for the longer exposure to depreciation.

Student loans: a worked example

A $40,000 balance at 6.5 percent on a 10-year standard plan has a payment of $454. Total interest is $14,500. Under a 25-year extended plan the payment drops to $270 but total interest balloons to $41,000. If you can pay an extra $100 on the standard plan, the loan is paid in about 7.7 years and interest falls to about $10,900.

Using spreadsheets for loan planning

  • =PMT(rate/12, months, -loan): monthly payment
  • =IPMT(rate/12, k, months, -loan): interest in payment k
  • =PPMT(rate/12, k, months, -loan): principal in payment k
  • =CUMIPMT(rate/12, months, loan, 1, months, 0): total interest
  • =NPER(rate/12, -payment, loan): number of payments
  • =RATE(months, -payment, loan)*12: APR

Questions to ask before signing a loan

  1. What is the APR including all fees?
  2. Is the rate fixed or variable?
  3. Is there an origination fee or prepayment penalty?
  4. Are extra payments applied to principal?
  5. What happens if I miss a payment?
  6. Is credit insurance required or optional?

Putting it all together: a checklist

  1. Decide the amount you need and the monthly payment you can afford.
  2. Convert the APR to a monthly rate and the term to months.
  3. Calculate the payment with the formula or the loan calculator.
  4. Compute total interest and compare with other terms.
  5. Add fees and compare APRs, not just rates.
  6. Test the impact of extra payments.
  7. Choose the shortest term you can afford without strain.

Next steps

Try your numbers in the loan calculator and compare with the mortgage calculator for home loans. When you are ready to save, use the compound interest calculator. Explore more in the finance calculators hub.

How to use this guide

Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.

Frequently asked questions

What is the loan payment formula?

Payment = P x r / (1 - (1+r)^-n), where r is the monthly rate and n the number of months.

How do I calculate loan payments in Excel?

Use =PMT(rate/12, years*12, -amount).

How do I calculate total interest on a loan?

Multiply your monthly payment by the number of payments and subtract the amount borrowed.

How do I calculate how much I can borrow?

Use P = Payment x (1 - (1+r)^-n) / r with the monthly payment you can afford.

How is interest calculated each month?

Multiply the remaining balance by the monthly rate. The rest of the payment reduces principal.

What is the difference between simple and amortized interest?

Simple interest is charged on the original principal only. Amortized loans charge interest on the declining balance with equal payments.

This calculator provides estimates for educational purposes only and is not a loan offer or financial advice. Actual terms depend on the lender, your credit and fees. Compare official Loan Estimates before borrowing.

Sawera Shahid

About the author

Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.

© 2026 Calculators360. Free calculators for health, finance and everyday math. Privacy · About · Contact

Leave a Reply

Your email address will not be published. Required fields are marked *