Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 36 ยท Debt and Loans

How Loans Work: Payments and Amortization

See how a loan payment is split into interest and principal, use the payment formula, and watch a balance shrink with an amortization table.

Most loans are not repaid in one lump. You pay a fixed amount every month. Each payment covers the interest that built up since the last payment, and whatever is left reduces the principal. This process of paying a loan off in regular steps is called amortization.

Understanding it explains many surprising facts: why early payments are mostly interest, why paying extra early saves a lot, and why a longer term lowers the payment but raises the total cost.

The monthly payment formula

For a fixed-rate loan with equal monthly payments, the payment is:

Text
payment = P ร— i / (1 โˆ’ (1 + i)^(โˆ’n))

where P is the principal, i is the interest rate per month (annual rate divided by 12), and n is the number of monthly payments (years ร— 12).

You do not need to memorize it. What matters is how the parts behave: a higher rate or a larger principal raises the payment, and a larger n lowers it.

If the rate is 0, the formula would divide by zero, but the answer is simply P / n.

What each payment does

Each month:

  1. Interest for the month = current balance ร— i.
  2. Principal paid = payment โˆ’ interest.
  3. New balance = old balance โˆ’ principal paid.

Because the balance is highest at the start, the interest is highest at the start. Over time the interest part shrinks and the principal part grows, while the payment stays the same.

flowchart LR
    A["Monthly payment"] --> B["Interest<br/>(balance ร— monthly rate)"]
    A --> C["Principal<br/>(the rest)"]
    C --> D["Balance goes down"]
    D --> B

Each payment is split into interest and principal; a lower balance means less interest next month.

A worked example

Borrow 10,000 at 12% per year for 1 year (12 payments). The monthly rate is 1% (0.01). The formula gives a payment of about 888.49. In month 1 the interest is 10,000 ร— 0.01 = 100, so about 788.49 goes to principal. In month 2 the balance is 9,211.51, the interest is about 92.12, and more goes to principal.

The program below builds the full table. It is a calculator that applies the formula and the three steps above, rounding to cents as a real lender would (rounding practices vary slightly between lenders).

Python Amortization schedule

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last payment is adjusted by a few cents so that the balance ends exactly at zero. This is common in practice.

Longer term, lower payment, higher cost

A long loan feels cheaper because the payment is smaller. But interest has more time to accumulate. Compare the same 10,000 at 12% over different terms.

Python Term versus total cost

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

You will see the payment fall as the term lengthens while the total interest climbs sharply. A lower payment is not the same as a cheaper loan.

A fixed-rate loan keeps the same rate for the whole term. A variable-rate loan can change, so the payment may rise or fall. When you compare offers, compare the annual percentage rate (APR), which includes most fees, as covered in Banking and Credit.

Extra payments

Any extra money you pay goes straight to principal (check that your lender applies it that way, and whether there is a prepayment fee). A smaller balance means less interest every month after that, so the loan ends sooner. Even a small extra amount each month can shorten a long loan by years. You will practice this in debt payoff methods.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. In the early months of a loan, most of each payment goes to

    The balance is highest at the start, so interest is highest, and it takes most of the payment.
  2. 2. A 12% annual rate paid monthly means a monthly rate of

    12% รท 12 months = 1% per month.
  3. 3. What happens if you lengthen the term of a loan, keeping the rate the same?

    Spreading the debt over more months lowers each payment but gives interest more time to accumulate.
  4. 4. Amortization means

    Amortization is the gradual repayment of principal and interest in scheduled payments.

Summary

  • A fixed payment covers monthly interest first; the rest reduces principal.
  • Payment = P ร— i / (1 โˆ’ (1 + i)^(โˆ’n)) with i the monthly rate.
  • Early payments are mostly interest; later ones are mostly principal.
  • Longer terms lower the payment but raise total interest.
  • Extra payments cut principal, saving interest.

Next: Student Loans and Mortgages