Sub topic 7
Amortization: where each payment goes
This chapter assumes you know the payment formula from the previous chapter and can read short Python functions. It uses one running example: a $300,000 loan at 6% annual interest over 30 years, with a payment of $1,798.65.
What amortization means
Amortization is the process of paying off a loan through scheduled payments. Each payment covers the interest that built up since the last payment. Whatever is left reduces the principal.
An amortization schedule lists this split for every payment. Each row shows the payment, the interest portion, the principal portion, and the balance that remains.
The payment stays the same on a fixed-rate loan, but the split changes every month. Interest is charged on the current balance, so it shrinks as the balance shrinks. Because the payment is fixed, the principal portion grows by the same amount.
The monthly rule
Each row of the schedule follows three steps:
interest = balance × (annual_rate / 12)principal_paid = payment − interestnew_balance = balance − principal_paid
The next row starts from the new balance.
The first two months by hand
For the running example, the monthly rate is 0.06 / 12 = 0.005.
| Month | Starting balance | Interest | Principal | Ending balance |
|---|---|---|---|---|
| 1 | 300,000.00 | 1,500.00 | 298.65 | 299,701.35 |
| 2 | 299,701.35 | 1,498.51 | 300.14 | 299,401.21 |
In month 1, $1,500.00 of the $1,798.65 payment is interest. That is about 83% of the payment. Only $298.65 reduces the debt.
Month 2 follows the same rule. The principal portion rose by $1.49, which is the $0.005 rate applied to the $298.65 you just repaid. Principal grows by a factor of (1 + r) each month. This is compound growth, and the schedule is built on it.
Why early payments are mostly interest
Interest is charged on a balance that starts large. In the first years you have repaid very little, so the balance, and therefore the interest, stays high.
After 60 payments (5 years), you will have paid about $107,900 in total. Only about $20,800 of that reduced the balance. The remaining balance is about $279,160. Interest accounts for roughly $87,000.
The interest share falls slowly at first and faster later. The principal share is smaller than the interest share until the balance drops enough that balance × r is below half the payment. For this loan, that happens when the balance falls below about $179,900. The code in the next section can find the month for you.
Generating the schedule in Python
The code below is complete. The first function is the payment formula. The second is a generator that yields one row per month. It lets you pass an optional extra amount per month.
def monthly_payment(principal, annual_rate, years):
n = years * 12 # number of monthly payments
r = annual_rate / 12 # monthly interest rate
if r == 0:
return principal / n
return principal * r / (1 - (1 + r) ** -n)
def amortize(principal, annual_rate, years, extra=0.0):
r = annual_rate / 12
scheduled = monthly_payment(principal, annual_rate, years)
balance = principal
month = 0
while balance > 0.005:
month += 1
interest = balance * r
payment = min(scheduled + extra, balance + interest)
principal_paid = payment - interest
balance -= principal_paid
yield month, payment, interest, principal_paid, balance
rows = list(amortize(300_000, 0.06, 30))
print("month payment interest principal balance")
for month, payment, interest, principal_paid, balance in rows:
if month in (1, 2, 60, 180, 360):
print(f"{month:>5} {payment:>9,.2f} {interest:>9,.2f} "
f"{principal_paid:>9,.2f} {balance:>10,.2f}")
crossover = next(row[0] for row in rows if row[3] > row[2])
print("principal first exceeds interest in month", crossover)Rows 1 and 2 match the table above. Row 360 shows a balance of 0.00. Run the script to see the other rows and the crossover month.
Reading the schedule
Three patterns show up in every schedule for a fixed-rate loan.
- The payment is constant. Only the split changes.
- Cumulative principal paid accelerates. Equity from paydown is slow at first and fast at the end.
- Total interest depends heavily on time. For the running example, interest over the full term is about $347,500, which exceeds the amount borrowed.
You can check the total without the schedule. Multiply the payment by the number of payments and subtract the principal: 1,798.65 × 360 − 300,000 ≈ 347,500.
Edge cases and gotchas
The final payment
The scheduled payment is rounded to cents, and each month's interest is rounded as well. The balance therefore rarely reaches exactly zero on the last scheduled payment. Lenders adjust the last payment by a few cents. The code handles this with min(scheduled + extra, balance + interest), which stops the last payment from overpaying. The 0.005 threshold in the loop stops it once the balance is under half a cent.
Rounding in real schedules
A lender rounds interest to the cent each month and carries the rounded balance forward. The floating-point schedule above can differ from a lender's statement by a few cents over 30 years. Use Python's decimal module if you need to match a statement exactly. Do not use binary floats for accounting.
Extra payments go to principal
An extra payment reduces the balance directly, with no interest portion. Every later month then charges interest on a smaller balance, so more of the fixed payment goes to principal. The effect compounds.
Because the schedule is recomputed from a lower balance, the loan ends earlier. The payment amount does not change unless the lender recasts the loan. A recast recalculates the payment from the new balance and the remaining term. Check whether your servicer applies extra money to principal or holds it as an advance on the next payment. Many require you to say so.
The $200-per-month example from the spine is the same function with extra=200. The loan then pays off in about 279 months, not 360, and total interest drops to roughly $256,000. Run it to see the exact numbers.
Adjustable-rate loans
An adjustable-rate mortgage changes r at each reset date. The lender recalculates the payment from the current balance, the new rate, and the remaining term. The schedule is then rebuilt from that point. A schedule printed at closing is only valid until the first reset.
Interest-only and negative amortization
Some loans let you pay less than the interest due. An interest-only loan leaves the balance flat, so principal paid is zero. A negative amortization loan lets the balance grow, because the unpaid interest is added to it. Both break the usual rule that the balance falls every month. Check that a loan fully amortizes before assuming the schedule above applies.
Escrow is not part of amortization
Property tax, insurance, and mortgage insurance often travel with the payment. They do not reduce the loan balance, and they do not appear in the interest and principal split. A schedule that mixes them in will overstate the principal paid.
Common mistakes
- Using the annual rate in the monthly formula instead of dividing by 12.
- Treating the interest portion as fixed. It falls every month.
- Expecting equity to grow evenly. Early equity comes mostly from your down payment and any price change, not from paydown.
- Comparing the total of payments to the loan amount without noting that it includes interest. The difference is the cost of borrowing.
Exercise
A loan of $200,000 at 6% for 30 years has a monthly payment of $1,199.10. What are the interest and principal portions of the first payment, and what is the balance after it?
Show answer
The monthly rate is 0.06 / 12 = 0.005. Interest is 200,000 × 0.005 = $1,000.00. Principal paid is 1,199.10 − 1,000.00 = $199.10. The new balance is 200,000 − 199.10 = $199,800.90.
Exercise
In the running example, the interest in month 1 is $1,500.00 and the principal is $298.65. Without building the schedule, what is the principal portion in month 2, and why is it larger than in month 1?
Show answer
Principal in month 2 is about 298.65 × 1.005 ≈ $300.14. The payment is fixed, and month 2 interest is lower because the balance fell by $298.65. The $1.49 saved in interest goes to principal.