calculate-loan

01 Loan payments

Loan Calculation with Interest: How It Works

Calculator No. 01-29601 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Estimate for education, not financial advice. The result follows from the numbers you enter and the formula shown. It is not a quote or an offer, and it does not include fees, taxes or insurance unless the calculator asks for them. Ask your lender for the exact figures.

Loan calculation with interest works by applying a fixed or variable rate to the amount you borrow, then spreading the total cost (principal plus interest) across regular payments. You enter the loan amount, the annual interest rate (APR), and the term in years, and the calculator returns your monthly payment and the total interest paid over the life of the loan.

Formula

The standard formula for a fixed-rate, fully amortizing loan is:

Monthly payment (PMT) = P × (r / (1 − (1 + r)^(−n)))

  • P = principal (loan amount), in dollars
  • r = monthly interest rate = annual rate (APR) ÷ 12, expressed as a decimal (e.g., 8% APR → 0.08/12 = 0.0066667)
  • n = total number of payments = term in years × 12

Total interest = (monthly payment × n) − P. This formula assumes a fixed interest rate, equal monthly payments, and that interest compounds monthly on the outstanding balance.

Worked Example

Using the default values from the calculator: P = $20,000, APR = 8%, term = 5 years.

  1. Convert APR to monthly rate: r = 8 / 1200 = 0.0066667
  2. Number of payments: n = 5 × 12 = 60
  3. Plug into the formula: PMT = 20000 × (0.0066667 / (1 − (1 + 0.0066667)^(−60)))
  4. Calculate (1 + 0.0066667)^(−60) ≈ 0.671216
  5. Denominator: 1 − 0.671216 = 0.328784
  6. PMT = 20000 × (0.0066667 / 0.328784) = 20000 × 0.020276 = 405.52
  7. Total paid = 405.52 × 60 = 24,331.20
  8. Total interest = 24,331.20 − 20,000 = 4,331.20

The calculator shows a monthly payment of $405.52 and total interest of $4,331.20, matching this step-by-step result.

Assumptions

  • Fixed interest rate for the entire term.
  • Payments are made at the end of each month.
  • Interest compounds monthly at APR ÷ 12.
  • No fees, taxes, insurance, or other charges are included.
  • The formula assumes you make every payment on time and do not pay extra.

How to Read the Result

The monthly payment is the amount you must pay each month to fully repay the loan by the end of the term. The total interest figure tells you the extra cost of borrowing beyond the principal. For example, a $20,000 loan at 8% for 5 years costs $4,331.20 in interest, so you actually pay $24,331.20 in total. A shorter term with the same rate reduces total interest but increases the monthly payment. A lower rate reduces both monthly payment and total interest, assuming the term stays the same.

Common Mistakes and Misconceptions

  • Mixing up APR and monthly rate: Always divide the annual rate by 12 before using the formula. Using 8% instead of 0.6667% would give a wildly wrong payment.
  • Forgetting to round the payment to cents: In real loans, payments are rounded to the nearest cent, and the final payment may be slightly adjusted. The calculator rounds to 2 decimals, so totals match exactly.
  • Assuming simple interest: Most loans use monthly compounding, not simple interest. The formula above accounts for compounding correctly.
  • Ignoring fees and insurance: The calculation only covers principal and interest. Origination fees, closing costs, property taxes, and PMI are separate and can significantly raise your actual cost.

When to Use This Calculation

Use this loan calculator when you want to compare loan offers, plan a budget, or understand how changes in rate or term affect your payments. It works for personal loans, auto loans, student loans, and fixed-rate mortgages. For adjustable-rate loans, the payment changes over time, so this formula only applies during the initial fixed period. For interest-only loans, the payment calculation is different: you pay only interest for a set period, then principal and interest afterward.

Factors That Affect Your Loan Cost

  • Principal: The amount you borrow. Larger loans mean larger payments and more total interest.
  • Interest rate (APR): The annual cost of borrowing, including some fees. A higher APR increases both monthly payment and total interest.
  • Loan term: Longer terms lower the monthly payment but increase total interest because you pay interest for more months.
  • Payment frequency: Some loans allow biweekly payments, which can reduce interest slightly because you make an extra payment each year.
  • Extra payments: Paying more than the minimum reduces the principal faster and cuts total interest, but the formula above assumes no extra payments.

Frequently Asked Questions

How do I calculate the monthly payment on a loan?

Use the formula PMT = P × (r / (1 − (1 + r)^(−n))), where P is the principal, r is the monthly interest rate (APR ÷ 12), and n is the total number of payments. For a $20,000 loan at 8% APR for 5 years, the monthly payment is $405.52.

What is the difference between APR and interest rate?

The interest rate is the cost of borrowing the principal, expressed as a yearly percentage. APR (Annual Percentage Rate) includes the interest rate plus certain fees and costs, giving a more complete picture of the loan’s yearly cost. For the payment formula, you should use the APR if it reflects the true rate you pay, but the formula itself only uses the rate you enter.

Why does a longer loan term mean more total interest?

With a longer term, you make more payments, and each payment includes interest on the remaining balance. Even though the monthly payment is lower, you pay interest for a longer period, so the total interest paid over the life of the loan is higher. For example, a $20,000 loan at 8% for 5 years costs $4,331 in interest, but for 10 years it would cost over $9,000.

Can I use this calculator for a mortgage?

Yes, for a fixed-rate mortgage with no escrow or PMI, the formula works. However, real mortgages often include property taxes, homeowners insurance, and possibly PMI, which are not included here. You would need to add those costs separately to get your true monthly payment.

What happens if I make extra payments?

Extra payments reduce the principal balance faster, which lowers the total interest you pay and can shorten the loan term. The standard formula assumes no extra payments, so if you plan to make them, you would need a more detailed amortization schedule to see the exact effect.

Is the result from this calculator exact?

It is an estimate based on the inputs and the standard formula. Real lenders may round differently, charge fees, or adjust the final payment, so the exact figures on your loan disclosure may differ slightly. Always check the lender’s official documents for the precise payment and total cost.

This calculation gives you an estimate; your lender’s disclosure will show the exact figures for your specific loan.

Related

Formula used
in p | Loan amount | $ | 20000 | 1 | 100000000
in apr | Interest rate (APR) | % | 8 | 0.01 | 100
in yrs | Loan term | years | 5 | 0.0833 | 50
out pmt | Monthly payment | $ | p * (apr / 1200) / (1 - (1 + apr / 1200) ^ -(yrs * 12)) | 2
out int | Total interest | $ | pmt * yrs * 12 - p | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.

More in this section

The whole Loan payments section →