Skip to main content
Mathlark

Loan Payment Calculator

Find the monthly payment on a fixed-rate loan, or how long your payment takes to pay it off, and what it costs in interest.

Your numbers

The yearly rate (APR) on the loan.

Months on top of the years, from 0 to 11.

Results

Monthly payment

$396.02

Over 60 payments, that's $3,761.44 in interest on top of the $20,000.00 you borrow.

Total interest
$3,761.44
Total of all payments
$23,761.44

Runs in your browser. Your numbers are never stored or sent.

Show the work

How it works

Most car loans, personal loans, and student loans are paid back in equal monthly payments. Each payment covers that month’s interest, and the rest pays down what you owe. Early on, most of each payment is interest; by the end, almost all of it goes to the balance. A loan’s set payment stays the same throughout because it’s worked out so the last one brings the balance to exactly zero. If you choose your own payment instead, the last one is usually smaller.

Choose what you want to find. The monthly payment takes the amount you’re borrowing, the yearly interest rate, and how long you’ll take to pay it back. How long it takes to pay off takes the amount and the rate with the payment you can make, and counts the months. Either way you see the total interest and the total of all your payments, and the steps show where each number comes from.

The formula

Payment = P × i × (1 + i)ⁿ ÷ ((1 + i)ⁿ − 1)

  • P is the amount you borrow (the principal).
  • i is the monthly interest rate: the yearly rate divided by 12, as a decimal. A 7% loan has i = 0.07 ÷ 12 = 0.0058333333 (rounded here; keep 8 or more significant digits, since rounding i early can move the payment).
  • n is the number of monthly payments: 12 for each year, plus any extra months.
  • (1 + i)ⁿ is the growth factor: if you paid nothing at all, the loan would be multiplied by this.

With a 0% rate there’s no interest, so the payment is simply P ÷ n.

Total of all payments = payment × n, and total interest = total of all payments − P.

To find how long a payment takes, the same formula is solved for n:

n = −ln(1 − i × P ÷ payment) ÷ ln(1 + i)

This usually isn’t a whole number, so it’s rounded up, and the last payment is smaller: just what’s left. The payment has to be more than the first month’s interest (P × i), or the balance never goes down. With a 0% rate, n = P ÷ payment.

Worked example

Want this with your own numbers? See Show the work above.

You borrow $20,000 at 7% a year for 5 years. What’s the monthly payment?

  1. The monthly rate is 7% ÷ 12 = 0.5833%.
  2. Five years of monthly payments is 5 × 12 = 60 payments.
  3. As a decimal, the monthly rate is 0.0058333333, so the growth factor is (1 + 0.0058333333)⁶⁰ = 1.41762526.
  4. The payment is $20,000 × 0.0058333333 × 1.41762526 ÷ (1.41762526 − 1) = $396.02 a month.

Over 60 payments you pay $23,761.44 in all, so the loan costs $3,761.44 in interest.

How long at $500 a month? The monthly rate as a decimal is 0.0058333333, and the first month’s interest is $20,000 × 0.0058333333 = $116.67, so $500 is enough. The number of payments is −ln(1 − 0.0058333333 × 20,000 ÷ 500) ÷ ln(1 + 0.0058333333) = 45.68, rounded up to 46 months (3 years and 10 months). That’s 45 payments of $500 and a last one of $341.23, with $2,841.23 of interest: $920.20 less than over 5 years.

FAQ

Why is my lender’s payment a little different?

A few reasons. Lenders round each payment to the cent, and the last payment is often a few cents different to make the balance exactly zero. Some charge interest daily rather than monthly, or add fees or insurance to the payment. This calculator covers the payment for principal and interest only.

Does a longer loan cost more?

Usually much more. A longer term lowers the monthly payment but adds interest. On $20,000 at 7%, 3 years costs $617.54 a month and $2,231.51 in interest; 7 years costs $301.85 a month but $5,355.70 in interest. Use Compare to see options side by side.

What’s the difference between the interest rate and the APR?

The interest rate is what you pay to borrow the money. The APR (annual percentage rate) also folds in some fees, spread over the loan, so it’s often a little higher. For the payment itself, enter the loan’s interest rate. If you only know the APR, using it will slightly overstate the payment.

What happens if I pay extra each month?

You pay the loan off sooner and pay less interest, because each extra amount goes straight to the balance. To see how much sooner, choose “How long it takes to pay off” and enter your usual payment plus the extra. Check with your lender that extra payments go toward the principal.

How much of my first payment is interest?

The first month’s interest is the loan amount times the monthly rate. On $20,000 at 7%, that’s $20,000 × 0.0058333333 = $116.67, so $279.35 of the first $396.02 payment pays down the loan. Each month the interest shrinks a little and more goes to the balance.

Sources

Cite this page

APA (7th edition)

Mathlark. (2026, October 16). Loan payment calculator. https://mathlark.com/finance/loan-payment-calculator/

MLA (9th edition)

"Loan Payment Calculator." Mathlark, 16 Oct. 2026, mathlark.com/finance/loan-payment-calculator/.

Spot a mistake?

For informational purposes only. This is not financial advice.