How Loan Payments Are Calculated: The Math Behind Your Monthly Bill
Your monthly loan payment isn't arbitrary — it comes from a precise mathematical formula. Here's how it works, why early payments are mostly interest, and how to pay less overall.
| Loan A | Loan B | |
|---|---|---|
| Loan Amount | — | — |
| Interest Rate | — | — |
| Term | — | — |
| Monthly Payment | — | — |
| Total Amount Paid | — | — |
| Total Interest Paid | — | — |
| Interest Savings | — | — |
Enter the details for both loans — amount, interest rate (the note rate shown on the offer, not the APR), and term in years — then click Compare Loans. The calculator instantly computes the monthly payment, total amount paid, and total interest for each loan. A winner banner highlights which loan costs less over its full term. You can also add an optional custom label (like "Bank Offer" or "Credit Union") to keep track of which loan is which.
Use this tool any time you receive multiple loan quotes — for a personal loan, auto loan, student loan refinance, or any installment loan with a fixed rate and term. Enter the exact figures from each lender's offer for the most accurate comparison.
Many borrowers focus only on the monthly payment, but this can be misleading. A longer loan term lowers your monthly payment — but because interest accrues over more months, you often pay significantly more in total. Example: a $20,000 loan at a 5% interest rate paid over 48 months has a monthly payment of $460.59 and costs $2,108 in total interest. The same loan stretched to 60 months drops your monthly payment to $377.42 — but total interest rises to $2,645. The lower monthly payment costs you $537 more over time.
Always weigh both the monthly payment (its impact on your cash flow) and the total interest (the true cost of the loan). This calculator surfaces both so you can make an informed decision based on your budget and goals.
This calculator uses the standard amortization formula for fixed-rate installment loans:
M = P × [r × (1+r)^n] ÷ [(1+r)^n − 1]
Where: M = monthly payment, P = principal (loan amount), r = monthly interest rate (annual interest rate ÷ 12 ÷ 100), n = total number of monthly payments (years × 12).
Example: For a $15,000 loan at a 7.5% interest rate over 4 years — r = 0.075 ÷ 12 = 0.00625, n = 48. M = 15,000 × (0.00625 × 1.00625^48) ÷ (1.00625^48 − 1) = $362.68/month. Total paid = $17,409. Total interest = $2,409. This formula governs virtually all fully amortizing installment loans.
The interest rate is simply the annual cost of borrowing the principal, expressed as a percentage. The APR (Annual Percentage Rate) includes the interest rate plus origination fees, closing costs, and other lender charges — rolled into a single annualized figure. APR represents the true cost of borrowing more accurately than the stated rate alone.
When comparing two loans, always compare their APRs rather than their nominal interest rates. On a 5-year loan, a 5.9% interest rate with a 2% origination fee works out to an APR of about 6.7% — more expensive than a 6.5% loan with no fees. Lenders must disclose the APR under the federal Truth in Lending Act, so it's on every offer.
That's why the rate fields here ask for the interest rate (the note rate), not the APR: the monthly payment is computed from the interest rate, so entering it gives you the exact payment the lender will bill. Fees aren't part of the payment math, so add any upfront fee to that loan's total cost yourself, then use each offer's disclosed APR as a cross-check. If you type an APR into the field instead, the calculator folds the fee in only approximately and slightly overstates the monthly payment.
A shorter loan term means a higher monthly payment but far less total interest paid. If your budget can absorb the higher payment, a shorter term is almost always the better financial outcome. You become debt-free sooner, build equity faster (for secured loans like mortgages), and pay a fraction of the interest you'd pay on a longer-term loan.
A longer loan term reduces monthly cash outflow, which can be valuable if you need to preserve cash for other priorities (emergency fund, investing, other obligations). The trade-off is a higher total interest cost. Use this calculator to see exactly how much more a longer term will cost — then decide whether the monthly savings justify it for your situation.
A fixed-rate loan locks in your interest rate for the entire loan term. Your monthly payment never changes, making budgeting straightforward. Fixed rates tend to be slightly higher than introductory variable rates, but they protect you from rate increases — particularly valuable in rising rate environments.
A variable-rate loan (also called adjustable-rate) starts at a rate tied to a benchmark index (like SOFR or prime rate) and can rise or fall over time. Initial variable rates are often lower, but future payments are uncertain. This calculator assumes a fixed rate for both loans. If one of your offers is variable, use the current rate as a starting point but factor in the risk of future rate increases when making your decision.
Say you need $10,000 for three years and get two offers. Offer A is 9.99% with no fee. Offer B is 8.49% with a 4% origination fee that's deducted from the loan, so you receive $9,600.
If you enter only the two interest rates, the calculator will name Offer B the winner by about $251 in interest. Add the $400 fee and Offer A is cheaper by about $149, and you also get the full $10,000 in hand. This is exactly why APR matters: it puts the fee and the rate into one number.
The winner banner is based on total interest over each loan's full term. That's the right yardstick when both loans are for the same amount and you'll keep them to the end. If the amounts differ, compare total amount paid instead. If you might pay a loan off early, the shorter-term comparison matters less than the rate, because you'll only pay interest for the months you actually carry the balance. Check whether either lender charges a prepayment penalty.
To compare two loan offers, look beyond the monthly payment. A loan with a lower monthly payment often has a longer term, which means you pay more total interest over time. Compare the total interest paid across the full term of each loan — the loan with the lower total interest cost is usually the better deal, assuming you plan to keep the loan to maturity. This calculator shows monthly payment, total paid, and total interest for both loans side by side.
The standard loan payment formula is: M = P × [r × (1+r)^n] ÷ [(1+r)^n − 1], where M is the monthly payment, P is the loan principal, r is the monthly interest rate (annual rate ÷ 12), and n is the total number of monthly payments (years × 12). This formula applies to fully amortizing loans where equal monthly payments pay off both principal and interest over the loan term.
Not always. A lower interest rate with a longer term can cost more in total interest than a higher rate with a shorter term. For example, a $20,000 loan at 5% for 48 months costs about $2,108 in interest, while the same loan at 4.5% for 72 months costs about $2,859. When comparing loans, always compare total interest paid over the full term, not just the rate or monthly payment.
The interest rate is the cost of borrowing the principal expressed as a percentage. APR (Annual Percentage Rate) includes the interest rate plus additional fees and costs of the loan, such as origination fees, closing costs, and certain other charges, expressed as an annual rate. APR gives a more complete picture of the true cost of borrowing. When comparing loans, comparing APRs is more accurate than comparing stated interest rates, since a lower interest rate with high fees can be more expensive than a slightly higher rate with no fees.
Source: CFPB: interest rate vs. APR.
Expert guides and educational resources to help you master the math.