This calculator works out the total cost of a fixed-rate loan: you enter the loan amount, the annual interest rate (APR), and the loan term in years, and it returns your monthly payment and the total interest paid over the life of the loan. The total loan cost is the sum of the principal you borrow plus all the interest you pay, which the calculator shows as the monthly payment multiplied by the number of months.
Formula
The standard formula for a fixed-rate, fully amortizing loan is:
Monthly Payment = P × (r / (1 − (1 + r)^(−n)))
Where:
- P = principal loan amount (in dollars)
- r = monthly interest rate = annual APR ÷ 12 ÷ 100 (as a decimal)
- n = total number of monthly payments = loan term in years × 12
Once you have the monthly payment, the total loan cost is simply:
Total Cost = Monthly Payment × n
And the total interest is that total cost minus the principal:
Total Interest = Total Cost − P
This is the same formula used by most amortizing loans—mortgages, auto loans, personal loans, and student loans—when the interest rate is fixed and payments are made monthly.
Worked Example
Using the calculator’s default values: loan amount $20,000, APR 8%, term 5 years.
- Convert APR to monthly rate: r = 8 ÷ 12 ÷ 100 = 0.0066667
- Number of payments: n = 5 × 12 = 60
- Plug into the formula: payment = 20000 × (0.0066667 / (1 − (1 + 0.0066667)^(−60)))
- Calculate (1 + 0.0066667)^(−60) ≈ 0.67121
- Denominator: 1 − 0.67121 = 0.32879
- Payment = 20000 × (0.0066667 / 0.32879) = 20000 × 0.020276 = 405.52 (rounded to cents)
- Total cost = 405.52 × 60 = $24,331.20
- Total interest = 24,331.20 − 20,000 = $4,331.20
The calculator gives the same results: monthly payment $405.52, total interest $4,331.20. Notice that the total cost is not just the principal plus the simple interest; it’s the sum of all 60 payments, each including interest on the remaining balance.
Assumptions
- Fixed interest rate for the entire term (no rate changes).
- Payments are made monthly, at the end of each month.
- Interest compounds monthly at APR ÷ 12.
- The loan is fully amortizing: each payment covers all interest due plus part of the principal, so the balance reaches zero at the end of the term.
- This calculator does not include fees, origination charges, taxes, insurance, PMI, or any other costs that a lender may add to your loan.
How to Read the Results
The monthly payment is the amount you pay each month. The total interest is the extra money you pay for borrowing. The total loan cost (which you can get by adding the principal to the total interest, or by multiplying the payment by the number of months) is the true amount you will have paid by the time the loan is cleared.
For example, a $20,000 loan at 8% for 5 years costs $24,331.20 in total—meaning you pay $4,331.20 in interest. If you extended the term to 10 years, the monthly payment would drop to about $242.66, but the total cost would rise to $29,119.20, with $9,119.20 in interest. That trade-off—lower monthly payment vs. higher total cost—is a key thing to understand before choosing a loan term.
Common Mistakes and Misconceptions
- Mixing up APR and monthly rate: Always divide the APR by 12 and by 100 to get the decimal monthly rate. Using 8 instead of 0.0066667 will produce a wildly wrong payment.
- Using simple interest instead of amortization: Some people calculate interest as principal × rate × time (e.g., $20,000 × 0.08 × 5 = $8,000). That overstates interest because it ignores that you pay down the principal over time. The correct amortized interest is $4,331.20 in our example.
- Rounding too early: If you round the monthly payment to $405 before multiplying by 60, you get $24,300, which is off by $31.20. Always keep full precision until the final step.
- Ignoring fees: The total cost of a real loan often includes origination fees, closing costs, or prepayment penalties. This calculator gives the pure interest cost; add any fees to get the true total.
When to Use This Calculator
Use this calculator when you are comparing loan offers with different amounts, rates, or terms. For example, you might compare a 4-year auto loan at 6% with a 5-year loan at 5.5% to see which has a lower total cost. Or you might check how much extra interest you’d pay by stretching a personal loan from 3 to 5 years.
It also helps you understand the impact of your credit score indirectly: a higher score usually gets a lower APR, which reduces both the monthly payment and total interest. You can enter different rates to see the difference.
Note that this calculator assumes a fixed rate. If you have an adjustable-rate mortgage (ARM) or a variable-rate student loan, the payment will change over time, and this formula only works for the current rate period.
How to Choose a Loan Term
When you’re deciding between a shorter and longer term, consider these factors:
- Monthly budget: A longer term lowers your monthly payment, which may make it easier to afford.
- Total interest: A shorter term always costs less in total interest, because you pay off the principal faster and accrue less interest.
- Opportunity cost: If you can invest the money you save on a lower payment and earn a higher return than the loan’s APR, a longer term might make financial sense—but that involves risk and is not guaranteed.
- Prepayment penalties: Some loans charge a fee if you pay off early. If you plan to pay extra, check whether the penalty outweighs the interest savings.
This calculator can help you see the exact dollar difference between terms. For example, on a $20,000 loan at 8%, the 5-year term costs $4,331.20 in interest, while a 10-year term costs $9,119.20—a difference of $4,788. That’s a concrete number to weigh against your monthly cash flow.
Limitations of the Formula
The formula assumes that every payment is made exactly on time and that the rate never changes. Real-world loans may have:
- Fees added to the principal or charged upfront.
- Daily interest accrual if payments are late.
- Balloon payments or interest-only periods.
- Rate adjustments (for variable-rate loans).
Also, the formula gives the payment for a fully amortizing loan. Some loans, like interest-only mortgages, have a different structure where you pay only interest for a set period, then a larger payment later. This calculator does not model those.
Frequently Asked Questions
What is the total cost of a loan?
The total cost is the sum of all payments you make over the life of the loan, which equals the principal you borrowed plus all interest you pay. It does not include fees unless you add them separately.
How do I calculate total interest on a loan?
Subtract the principal from the total cost. Using the formula, total interest = (monthly payment × number of payments) − principal. For a $20,000 loan at 8% for 5 years, that’s ($405.52 × 60) − $20,000 = $4,331.20.
Why is my total interest more than the simple interest calculation?
Simple interest (principal × rate × time) assumes you pay interest on the full principal for the entire term, but in an amortizing loan you pay interest only on the remaining balance. Since the balance decreases, the actual interest is lower than simple interest. If your total interest seems higher, you may have fees or a higher rate than you thought.
Does a longer loan term always mean more total interest?
Yes, with the same interest rate and loan amount, a longer term always results in more total interest because you’re borrowing the money for a longer period. However, the monthly payment is lower, which is why some people choose longer terms.
Can I use this calculator for a mortgage?
Yes, for a fixed-rate mortgage with no escrow or PMI, this formula gives the principal and interest payment. But a real mortgage payment often includes property taxes, homeowners insurance, and possibly PMI, which are not included here. You would need to add those amounts to your monthly payment to get the true total cost.
What is APR and how is it different from the interest rate?
APR (Annual Percentage Rate) includes the interest rate plus certain fees and costs, expressed as a yearly rate. It gives a more complete picture of the loan’s cost. This calculator uses APR as the input, so if your lender quotes a lower “interest rate” but charges fees, the APR will be higher, and you should use the APR for a fair comparison.
Remember, this calculator provides an estimate based on the inputs you provide. Your lender’s official disclosure will give the exact payment and total cost, including any fees and adjustments.
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
- Loan Discharge Date: What It Means & How to Find Yours$405.53
- Variable Rate Loan Definition & How It Works$377.42
- Create Loan Schedule: Full Amortization Table$405.53
- Loan Payment Schedule: How to Create One$405.53
- Loan Agreement: How to Create One$405.53
- Bank Rate Amortized Loan Calculator$405.53