Sub topic 4
Fixed-rate mortgages
This chapter assumes you know how monthly interest accrues on a balance and can read the payment formula from the previous chapters. You should also be comfortable reading short Python functions.
What "fixed" means
A fixed-rate mortgage keeps the same interest rate for the whole term. A 30-year loan at 6% charges 6% in month 1 and 6% in month 360. The lender can't raise the rate later, and you can't lower it without refinancing (replacing the loan with a new one).
Because the rate and term never change, the monthly principal-and-interest payment (P&I) is computed once at closing and stays the same. The payment formula is:
M = P·r / (1 − (1 + r)^−n)
Here P is the loan amount, r is the annual rate divided by 12, and n is the number of monthly payments.
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)
for rate in (0.05, 0.06, 0.07):
print(f"{rate:.0%}: {monthly_payment(300_000, rate, 30):,.2f}")On a $300,000, 30-year loan this gives about $1,610.46 at 5%, $1,798.65 at 6%, and $1,995.91 at 7%. Each percentage point moves the payment by roughly $190 to $200, or about 11%. That sensitivity is why people care so much about the rate they lock in.
What stays fixed and what moves
Only the interest rate and the P&I payment are fixed. Three things still change during the loan:
- The split of each payment. Early payments are mostly interest. Later payments are mostly principal.
- The balance. It falls every month, slowly at first and faster later.
- The rest of the housing bill. Property taxes and homeowner's insurance are usually collected with your payment through escrow, and both can rise. Your total monthly payment can therefore go up even though P&I does not.
Seeing the fixed payment in a schedule
The following program builds the full schedule and prints the first and last rows.
def monthly_payment(principal, annual_rate, years):
n = years * 12
r = annual_rate / 12
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))
for month, payment, interest, principal_paid, balance in (rows[0], rows[-1]):
print(f"month {month}: pay {payment:,.2f}, interest {interest:,.2f}, "
f"principal {principal_paid:,.2f}, balance {balance:,.2f}")Month 1 charges $1,500.00 of interest (0.5% of $300,000). That leaves about $298.65 of the $1,798.65 payment for principal. The balance falls only to about $299,701. In month 360 the payment is again about $1,798.65, but nearly all of it is principal. The payment is constant, and the split between interest and principal shifts every month.
The final payment can differ from the scheduled amount by a few cents. The code caps it at the remaining balance plus interest, and real servicers do the same.
Term and total cost
On a fixed-rate loan you choose the term, and it controls the trade-off between monthly cost and total interest. Using $300,000 at 6%:
| Term | Monthly P&I | Total interest (approx.) |
|---|---|---|
| 30 years | $1,798.65 | $347,500 |
| 15 years | $2,531.57 | $155,700 |
The 15-year payment is about 41% higher. In exchange, you pay less than half the interest. Lenders also usually quote lower rates on 15-year loans, which widens the gap.
Why borrowers choose fixed rates
A fixed-rate loan has three main advantages:
- Predictable P&I. You can budget for the full term, and rising market rates cannot hurt you.
- Simplicity. There is no index, margin, or cap to track, and no future reset to model.
- A free option on lower rates. If market rates fall, you can refinance. If they rise, you keep your old rate.
That last point shows an asymmetry. You hold a lock against rising rates and keep the right to leave if rates fall. The lender is exposed to both, so a fixed rate is usually priced above the starting rate of an adjustable-rate loan. That premium is what you pay for the protection.
Costs and trade-offs
- A higher starting rate than an adjustable-rate mortgage. You pay for certainty whether or not rates later rise. If you sell within a few years, the adjustable loan's lower introductory rate might have been cheaper.
- No automatic benefit from falling rates. To capture a lower rate you must refinance, which has closing costs. Refinancing is covered in a later chapter.
- Inflation works in your favor, slowly. The payment is fixed in nominal dollars, so it shrinks relative to your income if your income grows. This helps the borrower and is one reason fixed loans are popular.
- Front-loaded interest. Selling or refinancing early means you have paid mostly interest and built little equity from payments. Most of the early equity comes from your down payment and any price appreciation.
Common errors
Treating the whole payment as fixed. The P&I is fixed. If your escrow account pays taxes and insurance, your bill will change when those change. A rise in the property tax of $1,200 a year adds $100 a month.
Confusing the quoted rate with APR. The note rate sets your payment. APR adds fees to express the total borrowing cost, so it is higher. Compare offers using APR, but compute payments from the note rate.
Forgetting to divide the rate by 12. Passing 0.06 where the formula expects the monthly rate gives an absurd payment. The function above divides for you, so pass the annual rate as a decimal (0.06 for 6%).
Passing a percentage instead of a decimal. Calling monthly_payment(300_000, 6, 30) means a 600% annual rate. A quick sanity check is that the P&I on a typical loan is roughly 0.5% to 0.7% of the principal per month.
Assuming a rate quote is a commitment. A quoted rate can change until you lock it. A rate lock holds it for a set period, typically 30 to 60 days, and a longer lock can cost more.
Edge cases
- Zero-rate loans. The formula divides by zero when r is 0, which is why the code returns
principal / nin that case. - Rounding. Servicers round the payment to the cent, so the final payment is slightly adjusted to clear the balance.
- Prepayment. Extra payments reduce the balance but do not change the required payment, so the loan simply ends sooner. Some loans carry a prepayment penalty, so check your terms before paying early.
- Assumable loans. Some fixed-rate loans can be transferred to a buyer. When market rates are higher than your rate, that can make a house more valuable to buyers, though the lender must approve.
Exercise
A 30-year fixed-rate loan of $300,000 at 6% has a P&I payment of $1,798.65. After five years, your county raises your property tax, and your escrow payment goes up by $80 a month. What happens to the P&I payment and to the total monthly payment? What is the interest portion in month 1 of the loan?
Show answer
The P&I payment stays at $1,798.65 because the rate, term, and original schedule do not change. The total monthly payment rises by $80, since taxes are collected through escrow and are not fixed. The month 1 interest is $300,000 × 0.06 / 12 = $1,500.00.