Sub topic 2
Simple versus compound interest
This chapter assumes you are comfortable with percentages, know what principal, interest rate, and term mean, and can read basic Python. It covers how interest is calculated in two ways, why the difference matters for borrowers, and the common errors people make when applying the formulas.
The two models
Interest is the price of using someone else's money. Lenders calculate it in one of two ways.
- Simple interest is charged only on the original principal. The interest amount is the same every period.
- Compound interest is charged on the principal plus any interest that has already been added. Interest earns interest.
The formulas use these symbols:
Pis the principal.ris the rate per year, written as a decimal (7% is 0.07).tis the time in years.nis the number of compounding periods per year.
| Model | Balance after t years |
|---|---|
| Simple | P × (1 + r × t) |
| Compound | P × (1 + r / n) ^ (n × t) |
For simple interest, the balance grows by a fixed amount each year, so a chart of it is a straight line. For compound interest, each period's growth is a percentage of a larger and larger balance, so the chart curves upward.
A worked example
Suppose you borrow 10,000 at 8% per year and make no payments for 10 years.
- Simple interest: 10,000 × (1 + 0.08 × 10) = 18,000. You owe 8,000 in interest.
- Compound interest, once a year: 10,000 × 1.08^10 ≈ 21,589. You owe about 11,589 in interest.
- Compound interest, monthly: 10,000 × (1 + 0.08 / 12)^120 ≈ 22,196. You owe about 12,196 in interest.
The same stated rate produces three different costs. In this example, compounding adds about 45% more interest than simple interest, and a shorter compounding period adds a bit more on top.
def simple_balance(principal, annual_rate, years):
"""Balance when interest is charged only on the original principal."""
return principal * (1 + annual_rate * years)
def compound_balance(principal, annual_rate, years, periods_per_year=1):
"""Balance when interest is added to the balance each period."""
n = periods_per_year
return principal * (1 + annual_rate / n) ** (n * years)
principal, rate, years = 10_000, 0.08, 10
print(f"Simple: {simple_balance(principal, rate, years):,.2f}")
print(f"Compound (yearly): {compound_balance(principal, rate, years, 1):,.2f}")
print(f"Compound (monthly): {compound_balance(principal, rate, years, 12):,.2f}")
print(f"Compound (daily): {compound_balance(principal, rate, years, 365):,.2f}")Running this prints 18,000.00, 21,589.25, 22,196.40, and 22,253.46 (the last is the daily case). Moving from yearly to daily compounding adds about 664 in this example, much less than the jump from simple to compound.
Why the gap widens over time
At first the two models look similar. After one year at 8%, simple interest gives 800, and yearly compounding gives the same 800. The difference appears in year two. Compounding charges 8% on 10,800, which is 864, while simple interest still charges 800.
The extra amount comes from interest on interest. It starts small and grows each year, because the balance it applies to is growing. Doubling the term more than doubles the compounding penalty.
Which model do lenders use?
Most consumer lending uses a mix of both ideas, so you need to know which one applies to a given product.
- Credit cards compound. Interest is typically calculated on the daily balance and added to the balance, often monthly. Unpaid interest then earns more interest.
- Savings accounts and investments compound. The same mechanism that hurts borrowers helps savers.
- Amortizing loans such as mortgages and car loans charge interest on the remaining principal each period. This is simple interest applied one period at a time. The interest for one month is balance × monthly rate. Because you pay interest each month and it is not added to the balance, nothing compounds on unpaid interest, as long as you pay on time. The next chapters on amortization build on this.
- Some short-term loans and certain student loans may use simple daily interest, or may capitalize interest. Capitalization means unpaid interest is added to the principal, which starts compounding.
The practical point is that "simple" or "compound" describes what happens to interest that goes unpaid. If you pay the interest in full each period, the two models give the same result. If you let it accumulate, compounding takes over.
Common errors
Mixing the rate and the period
The formulas need the rate and the time to use the same unit. An annual rate of 12% with a time in months gives a wrong answer. Convert first: either use 0.12 / 12 = 0.01 per month with a number of months, or keep the rate annual and use years.
Treating the nominal rate as the true annual cost
A stated 8% compounded monthly does not cost 8% per year. After a year, 10,000 becomes 10,000 × (1 + 0.08 / 12)^12 ≈ 10,830, which is a cost of 8.30%. The next chapter covers this difference between the nominal and effective rates.
Assuming the compounding penalty is small
Over one year, the effect looks minor. Over 10 or 20 years, or at high rates, it dominates. A 24% card balance left alone for 5 years with monthly compounding grows to about 3.28 times the original amount, while simple interest would give only 2.2 times.
Using the wrong model for the question
Simple interest is a fine estimate for short periods, such as a few weeks of a payday loan. It misleads over long periods or when interest is not paid. When in doubt, assume compounding for any balance that is left unpaid.
Rounding rates too early
Small rounding errors in the rate multiply when raised to a high power. Keep full precision during the calculation and round only the final result.
Estimating with the rule of 72
A quick way to see compounding at work is the rule of 72. Divide 72 by the annual rate in percent to estimate how many years it takes a balance to double.
- At 8%, the balance doubles in about 72 / 8 = 9 years.
- At 24%, it doubles in about 72 / 24 = 3 years.
The rule is an approximation that works best for rates between about 6% and 10%, and it assumes no payments. It is useful for sanity checks, not for quoting a loan's cost. The exact doubling time is ln(2) / ln(1 + r) years for yearly compounding.
import math
def years_to_double(annual_rate, periods_per_year=1):
"""Exact years for a balance to double under compound interest."""
n = periods_per_year
return math.log(2) / (n * math.log(1 + annual_rate / n))
for rate in (0.06, 0.08, 0.24):
exact = years_to_double(rate)
approx = 72 / (rate * 100)
print(f"{rate:.0%}: exact {exact:.2f} years, rule of 72 {approx:.2f} years")The output shows the rule is close at 6% and 8% (11.90 versus 12.00, and 9.01 versus 9.00) and drifts at 24% (3.22 versus 3.00).
Decision points
When you read a loan offer, ask these questions:
- Is interest charged on the original principal only, or on the running balance?
- Is unpaid interest added to the balance? If so, how often?
- What is the compounding period: daily, monthly, or yearly?
- Does my payment always cover at least the interest due?
If the answers to questions 2 and 4 are "yes, added" and "no," you are in compounding territory, and the cost will grow faster than a simple calculation suggests.
Exercise
You borrow 5,000 at 12% per year and make no payments for 3 years. Calculate the balance under simple interest and under yearly compounding. Which costs more, and by how much?
Show answer
Simple: 5,000 × (1 + 0.12 × 3) = 5,000 × 1.36 = 6,800. Compound: 5,000 × 1.12^3 = 5,000 × 1.404928 = 7,024.64. Compounding costs 224.64 more, because years two and three charge interest on interest already added.
Exercise
A loan statement says 6% compounded monthly. In Python terms, what expression gives the balance after 2 years on 1,000, and why is dividing the rate by 12 necessary?
Show answer
1000 (1 + 0.06 / 12) (12 2), which is about 1,127.16. The rate is quoted per year, but interest is added every month, so each period earns one twelfth of the annual rate. The exponent counts 24 monthly periods.
Exercise
A borrower pays a loan's interest in full every month, and the principal never grows. Does compounding apply to this loan? What changes if the borrower stops paying?
Show answer
No. Compounding only applies to interest that is added to the balance. If interest is paid each month, the balance stays the same and each month's interest is the same. If the borrower stops paying, the unpaid interest is added to the balance, and later interest is charged on that larger amount, so compounding begins.