Sub topic 2
Interest rates and how interest accrues each month
This chapter assumes you know basic percentages, how compound interest works, and what a monthly budget looks like. The Python examples are short and optional. The previous chapter defined principal, lender, and collateral. Here we look at the rate itself and how a lender turns it into a dollar charge every month.
What the interest rate is
A mortgage's interest rate is the price of borrowing, stated as a yearly percentage of the balance you still owe. At 6%, you pay about 6% of the outstanding balance per year. You do not pay 6% of the original loan every year. The charge shrinks as the balance shrinks.
Lenders quote the rate as a nominal annual rate. This is a yearly figure that is split into equal monthly pieces. It is not the amount your balance actually grows by in a year. The next sections explain the difference.
From annual rate to monthly rate
Mortgages are paid monthly, so interest is calculated monthly. The usual convention divides the annual rate by 12:
monthly rate = annual rate / 12
interest for the month = balance at start of month x monthly rateFor a $300,000 balance at 6% per year:
- Monthly rate: 0.06 / 12 = 0.005, or 0.5%.
- Interest for month one: 300,000 x 0.005 = $1,500.00.
The same calculation in Python:
balance = 300_000
annual_rate = 0.06
monthly_rate = annual_rate / 12
print(f"Monthly rate: {monthly_rate:.4%}") # 0.5000%
print(f"First month interest: {balance * monthly_rate:,.2f}") # 1,500.00
effective = (1 + monthly_rate) ** 12 - 1
print(f"Effective annual rate: {effective:.4%}") # 6.1678%The last two lines show why "nominal" matters. Charging 0.5% twelve times, with each charge based on a balance that includes earlier interest, grows a balance by about 6.1678% over a year. This is the effective annual rate. It is slightly higher than the quoted 6%. In a mortgage you pay interest down each month, so it never compounds in the way a savings account does. The quoted rate is still the one used in every calculation in this tutorial.
What happens in one month
Each month follows the same cycle. The interest is calculated on the balance at the start of the period. Your payment pays that interest first, and whatever is left reduces the principal.
Take the $300,000 loan at 6% with a payment of $1,798.65. The next chapters explain where that payment figure comes from. For now, treat it as given.
balance = 300_000.00
monthly_rate = 0.06 / 12
payment = 1798.65
for month in range(1, 4):
interest = round(balance * monthly_rate, 2)
principal_paid = round(payment - interest, 2)
balance = round(balance - principal_paid, 2)
print(f"Month {month}: interest {interest:,.2f}, "
f"principal {principal_paid:,.2f}, balance {balance:,.2f}")The output is:
Month 1: interest 1,500.00, principal 298.65, balance 299,701.35
Month 2: interest 1,498.51, principal 300.14, balance 299,401.21
Month 3: interest 1,497.01, principal 301.64, balance 299,099.57The payment is the same every month, but the split changes. Interest falls by about $1.50 per month, and principal rises by the same amount. In month one, only about 17% of the payment reduces the balance. The amortization chapter follows this pattern across the full loan.
Why a higher rate costs more than it looks
A rate change affects the interest on every dollar you owe, and it applies for as long as you owe it. A difference of half a percentage point looks small, but it has a direct effect on the first month's charge:
| Annual rate | Monthly rate | Interest in month one on $300,000 |
|---|---|---|
| 5.5% | 0.4583% | $1,375.00 |
| 6.0% | 0.5000% | $1,500.00 |
| 6.5% | 0.5417% | $1,625.00 |
Each extra half point adds $125 to the first month's interest, and that charge repeats on a large balance for years. Because early balances are high, rate differences do most of their damage early in the loan.
Rate conventions and edge cases
The monthly-division method is the most common, but not the only one. The details below can change a bill by a few dollars, and they cause most confusion when a calculation does not match a lender's statement.
Day-count conventions
Some loans use 30/360, which treats every month as 30 days and every year as 360. Interest then equals exactly one twelfth of the annual amount each month, as in the examples above. Other loans use simple daily interest: interest accrues each day at annual rate / 365 on the current balance.
balance = 300_000
annual_rate = 0.06
for days in (28, 30, 31):
print(days, round(balance * annual_rate / 365 * days, 2))This prints 1,380.82 for 28 days, 1,479.45 for 30 days, and 1,528.77 for 31 days. Under daily accrual, February is cheaper than July. Over a full year the totals come out nearly the same as the monthly method. The practical difference is timing: with daily interest, a payment made earlier stops interest from accruing sooner. A payment made late costs a little extra, in addition to any late fee.
Interest is paid in arrears
Mortgage interest is paid after it accrues, not before. The payment you make on the first of a month covers interest for the previous month. This is why the first payment is often due about a month after the first full month of the loan. The days between closing and the start of the first full period are usually charged as prepaid interest at closing.
A rate of zero
At 0% the monthly interest is zero and every dollar of the payment reduces principal. Real mortgages almost never have this rate, but a correct program has to handle it. The payment-formula chapter shows why a formula that divides by the rate needs a special case.
Rounding
Lenders round interest to the cent each month. If you compute a whole schedule without rounding, your final balance can differ from the lender's by a few cents. The last payment is then adjusted to bring the balance to exactly zero.
Where the rate comes from
The rate you are offered is not the same as the average market rate you read about in the news. The lender starts from a base rate set by market conditions and adjusts it for the risk of your particular loan. The main factors are:
- Your credit history. Higher scores generally get lower rates.
- The down payment, shown as the loan-to-value ratio. A smaller down payment means more risk for the lender and usually a higher rate.
- The loan term. Shorter terms usually carry lower rates than longer ones.
- The rate type. Adjustable rates often start below fixed rates.
- Discount points, which are fees paid at closing to lower the rate.
Later chapters cover each factor. For this chapter, it is enough to know that a quoted rate has a time limit. A rate lock is the lender's promise to hold a quoted rate for a set number of days while your loan is processed. Without a lock, the rate can change before you close.
Common mistakes
- Using the annual rate on a monthly calculation. Interest for one month is balance x annual rate / 12, not balance x annual rate.
- Charging interest on the original loan amount. Interest is always charged on the current balance. A fixed interest figure each month would be wrong.
- Treating the effective annual rate as the quoted rate. The 6.1678% figure above explains the compounding effect. A loan quoted at 6% uses 0.5% per month.
- Assuming the rate alone is the cost of the loan. Fees and points also cost money. The APR chapter shows how to include them.
- Assuming all months are equal under daily accrual. Under simple daily interest, a 31-day month costs more than a 28-day month.
Check your understanding
Exercise
A borrower owes $250,000 at an annual rate of 4.8%. (a) What is the monthly rate? (b) How much interest accrues in the first month? (c) If the borrower pays $1,500 that month, what is the balance afterward?
Show answer
(a) 0.048 / 12 = 0.004, or 0.4% per month. (b) 250,000 x 0.004 = $1,000.00 of interest. (c) The payment covers $1,000 of interest, so $500 reduces principal, and the new balance is 250,000 - 500 = $249,500.
Exercise
A loan of $300,000 at 6% uses simple daily interest with 365 days per year. Without running code, which costs more in interest, a 30-day month or a 31-day month, and by about how much?
Show answer
The 31-day month costs more. Daily interest is 300,000 x 0.06 / 365, which is about $49.32. One extra day adds that amount, and the figures are $1,528.77 for 31 days against $1,479.45 for 30 days, a difference of about $49.32.