calculate-loan

01 Loan payments

Cost of Bank Loan Formula: How to Calculate It

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

Monthly payment $405.53
Total interest
$4,331.67
= Monthly payment × loan term × 12 − loan amount
Loan amount
$20,000
Input
Interest rate (APR)
8 %
Input
You enter
Loan amount ($), Interest rate (APR) (%), Loan term (years)
You get
Monthly payment ($), Total interest ($)
Rounding
2 dp

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.

This calculator works out the true cost of a bank loan: the monthly payment and the total interest you’ll pay over the life of the loan. You enter the loan amount, the annual interest rate (APR), and the loan term in years, and you get back the exact monthly payment and total interest. The formula used is the standard fixed-rate loan payment equation, which assumes level monthly payments and interest that compounds monthly.

Formula

The formula for a fixed-rate loan’s monthly payment is:

M = P × [r(1 + r)^n] / [(1 + r)^n − 1]

Where:

  • M = monthly payment (in dollars)
  • P = principal loan amount (in dollars)
  • r = monthly interest rate = annual rate (APR) ÷ 12 ÷ 100 (as a decimal)
  • n = total number of payments = loan term in years × 12

Total interest is then simply: Total Interest = M × n − P. This formula is the standard amortization formula used by banks and loan calculators worldwide.

Worked Example

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

  1. Convert APR to monthly rate: r = 8 ÷ 100 ÷ 12 = 0.0066667 (or 0.6667% per month).
  2. Total number of payments: n = 5 × 12 = 60.
  3. Plug into the formula: M = 20000 × [0.0066667 × (1.0066667)^60] / [(1.0066667)^60 − 1].
  4. Calculate (1.0066667)^60 ≈ 1.48985.
  5. Numerator: 0.0066667 × 1.48985 ≈ 0.0099323; times 20000 = 198.646.
  6. Denominator: 1.48985 − 1 = 0.48985.
  7. M = 198.646 ÷ 0.48985 ≈ 405.53 (rounded to the cent).
  8. Total interest = 405.53 × 60 − 20000 = 24331.80 − 20000 = 4331.80.

So the monthly payment is $405.53 and total interest is $4,331.80, matching the calculator’s output.

Assumptions

  • The interest rate is fixed for the entire loan term.
  • Payments are made at the end of each month (standard for most loans).
  • Interest compounds monthly at the rate APR ÷ 12.
  • The calculation does not include origination fees, closing costs, late fees, prepayment penalties, taxes, or insurance. Those would change the actual cost.

When to Use This Formula

Use this formula whenever you have a fixed-rate loan—a car loan, a personal loan, a student loan, or a fixed-rate mortgage. It tells you exactly what your monthly payment will be and how much interest you’ll pay in total if you make every payment on time and never pay extra. It’s also useful for comparing loan offers: a lower APR or shorter term will reduce total interest, but the formula helps you see the trade-off between a lower monthly payment and a higher total cost.

For example, a 5-year loan at 8% on $20,000 costs $4,331.80 in interest. The same loan over 3 years (36 months) would have a higher monthly payment (about $626.73) but total interest of only $2,562.28—a saving of $1,769.52. The formula lets you run these comparisons yourself.

How to Read the Results

The monthly payment is the amount you’ll pay each month. The total interest is the extra money you pay for borrowing. Both are estimates based on the assumptions above. If you see a lower monthly payment, that usually means a longer term, which increases total interest. If you see a higher monthly payment, it often means a shorter term or lower rate, which reduces total interest. Always look at both numbers together, not just the monthly payment.

One common mistake is confusing APR with the monthly rate. The APR is an annual figure; you must divide by 12 to get the monthly rate. Another mistake is using the nominal rate instead of the APR. The APR includes some fees and costs, so it’s a more accurate measure of the true annual cost. Always use the APR when comparing loans.

Common Mistakes and Misconceptions

  • Using the annual rate without dividing by 12: This will give a wildly wrong monthly payment.
  • Forgetting to convert years to months: The number of payments must be in months, not years.
  • Rounding too early: If you round the monthly rate to 0.007 instead of 0.0066667, your payment will be off by a few dollars.
  • Ignoring fees: The formula only covers principal and interest. Loan origination fees, processing fees, and insurance add to the true cost.
  • Assuming the payment stays the same if the rate changes: This formula only works for fixed-rate loans. Adjustable-rate loans require different calculations.

Limitations of the Formula

This formula gives a precise estimate for fixed-rate, fully amortizing loans. It does not apply to interest-only loans, balloon payments, or loans with variable rates. It also assumes you make exactly the required payment every month. If you make extra payments, the total interest will be lower than the formula predicts, and the loan will be paid off early. If you miss payments or pay late, penalties will add to the cost. The formula also ignores the time value of money in a broader sense—it assumes the same payment every month, which is standard for most consumer loans.

Alternatives and Related Calculations

If you have a loan with a different structure, you might need other formulas:

  • Interest-only loan: Monthly payment = P × r (only interest, no principal reduction).
  • Balloon loan: You pay interest monthly and the full principal at the end.
  • Extra payments: To see how extra payments shorten the loan, use a payoff calculator.
  • APR with fees: If you want to include fees in the APR, you’d need to solve for the rate that makes the present value of payments equal the loan amount minus fees.

For most standard bank loans, the formula on this page is the one you need.

Frequently Asked Questions

What is the difference between APR and interest rate?

The interest rate is the cost of borrowing the principal, expressed as a yearly percentage. The APR (Annual Percentage Rate) includes the interest rate plus certain fees and costs, so it gives a more complete picture of the yearly cost. For example, a loan with a 7% interest rate and a 1% origination fee might have an APR of about 7.5%. Always compare APRs when shopping for loans.

How do I calculate the total cost of a loan including fees?

To include fees, add them to the loan amount (if they are rolled into the loan) or add them to the total interest. For example, if you borrow $20,000 with a $500 origination fee, and the fee is deducted from the loan proceeds (you receive $19,500), the true cost is higher. You can adjust the principal in the formula to $20,500 if the fee is added to the balance, or use the APR that already includes the fee.

Why does my bank’s payment quote differ from this calculator?

Banks may use slightly different rounding, include fees in the APR, or have a different compounding method (some use daily compounding). Also, the bank’s quote might include required insurance or escrow payments. The difference is usually small. Always ask the lender for a full disclosure of all costs.

Can I use this formula for a mortgage?

Yes, for a fixed-rate mortgage, the formula works the same. However, mortgages often have property taxes, homeowners insurance, and PMI added to the monthly payment. Those are not included in this formula. Use the formula for the principal and interest portion only, then add those other costs separately.

What happens if I make extra payments?

Extra payments reduce the principal faster, which reduces the total interest and shortens the loan term. The formula assumes you make only the required payment. To see the effect of extra payments, you’d need to recalculate the amortization schedule with the extra amount applied to principal each month.

Is this formula accurate for all types of loans?

It’s accurate for fixed-rate, fully amortizing loans where payments are made at the end of each period. It does not apply to variable-rate loans, interest-only loans, or loans with balloon payments. For those, different calculations are needed.

Remember, this is an estimate. Your lender’s disclosure statement will provide 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 →