Sub topic 5
How a Mortgage Payment Is Built
Assume you know basic percentages, monthly budgeting, and the general purpose of a mortgage and lease. This chapter focuses on a fixed-rate mortgage, where the interest rate stays the same for the loan term.
The parts of a housing payment
A mortgage payment has two main parts:
- Interest is the lender's charge for letting you use its money.
- Principal is the part that reduces the amount you owe.
Your total monthly housing payment may also include:
- Property taxes
- Homeowners insurance
- Mortgage insurance
- Homeowners association fees
- Maintenance and repairs
These extra costs are often called carrying costs. Some lenders collect taxes and insurance in an escrow account, but escrow does not make those costs part of the loan. It only changes how you pay them.
Calculating the fixed loan payment
For a loan with principal \(P\), monthly interest rate \(r\), and \(n\) monthly payments, the monthly principal-and-interest payment is:
\[ M = \frac{P r}{1-(1+r)^{-n}} \]
Convert the annual interest rate to a monthly decimal rate by dividing by 12. Convert the term in years to a number of months by multiplying by 12.
For example, a $300,000 loan at 6% for 30 years has:
- Monthly rate: 0.06 / 12 = 0.005
- Number of payments: 30 × 12 = 360
- Monthly principal-and-interest payment: about $1,798.65
def monthly_payment(principal, annual_rate, years):
r = annual_rate / 12
n = years * 12
if r == 0:
return principal / n
return principal * r / (1 - (1 + r) ** -n)
print(round(monthly_payment(300_000, 0.06, 30), 2)) # 1798.65The payment stays constant for a fixed-rate loan, but its internal split changes every month.
How amortization changes the split
Amortization is the gradual repayment of a loan through scheduled payments. At the start, the balance is large, so the interest charge is large.
For the first month of the example:
| Item | Calculation | Amount |
|---|---|---|
| Starting balance | — | $300,000.00 |
| Interest | $300,000 × 6% / 12 | $1,500.00 |
| Total payment | Fixed payment | $1,798.65 |
| Principal paid | $1,798.65 − $1,500.00 | $298.65 |
| Ending balance | $300,000 − $298.65 | $299,701.35 |
In later months, interest is calculated on the lower balance. The interest portion falls, and the principal portion rises. This is why a borrower may make payments for years while the balance declines slowly at first.
def first_month_split(principal, annual_rate, payment):
interest = principal * annual_rate / 12
return interest, payment - interest
interest, principal_paid = first_month_split(300_000, 0.06, 1798.65)
print(round(interest, 2), round(principal_paid, 2)) # 1500.0 298.65What the payment tells you about buying
The principal portion creates home equity, which is the home's value minus the mortgage balance. However, principal is not the same as profit. Your equity also depends on the home's market value and on costs you would pay when selling.
Interest, taxes, insurance, maintenance, and selling costs do not build equity. Include them when comparing ownership with rent.
Exercise
A $240,000 loan has a 5% annual interest rate. What is the interest charge during the first month?
Show answer
Divide 5% by 12 and multiply by $240,000: 0.05 / 12 × $240,000 = $1,000.