Sub topic 1
What borrowing really involves: principal, interest, and term
Prerequisites
This chapter assumes you can calculate percentages, read a monthly budget, and run short Python scripts. You have seen a loan statement before but may not know how the numbers are produced.
The three parts of a loan
Every loan has three core parts:
- Principal: the amount you borrow.
- Interest: the fee the lender charges for letting you use the money, stated as a rate.
- Term: the length of time you have to repay.
A $20,000 loan at 7% over 5 years has a principal of $20,000, an interest rate of 7%, and a term of 60 months.
Simple versus compound interest
Simple interest is calculated only on the principal. On $1,000 at 10% for 3 years, simple interest adds $300, for a total of $1,300.
Compound interest is calculated on the principal plus any interest already added. The same $1,000 at 10% compounded yearly grows to $1,331 after 3 years. Most credit cards and many loans compound, so the cost grows faster than the stated rate suggests.
Comparing rates
- Nominal rate: the stated annual rate, before compounding.
- APR (annual percentage rate): the yearly cost of borrowing, including some fees, as defined by the lender's disclosure rules.
- Effective annual rate (EAR): the true yearly cost after compounding.
A 24% nominal rate compounded monthly has an EAR of about 26.82%. Compare offers using APR or EAR, not the nominal rate alone.
def effective_annual_rate(nominal_annual_rate, periods_per_year=12):
return (1 + nominal_annual_rate / periods_per_year) ** periods_per_year - 1
print(f"{effective_annual_rate(0.24):.2%}")How a fixed-rate payment is calculated
A fixed-rate loan uses the standard amortization formula:
payment = P × r / (1 − (1 + r)^−n)
where P is the principal, r is the monthly rate, and n is the number of payments.
def monthly_payment(principal, annual_rate, years):
r = annual_rate / 12
n = years * 12
return principal * r / (1 - (1 + r) ** -n)
payment = monthly_payment(20000, 0.07, 5)
print(f"Monthly payment: {payment:.2f}")
print(f"Total interest: {payment * 60 - 20000:.2f}")The output is a payment of about $396.02 and about $3,761 in total interest.
> Callout placeholder removed below.
Reading an amortization schedule
An amortization schedule lists each payment, split into interest and principal. In the first month of the example, interest is 20,000 × 0.07 / 12, or about $116.67. The remaining $279.35 of the $396.02 payment reduces the balance. Early payments are mostly interest because the balance is still high. Later payments shift toward principal.
Exercise
Using the monthly_payment function, what is the payment on a $10,000 loan at 6% for 3 years?
Show answer
About $304.22 per month. Run monthly_payment(10000, 0.06, 3) to confirm.