Sub topic 2
Compounding: how interest earns interest
This chapter assumes you are comfortable with percentages and exponents, and that you know a savings account pays interest on a balance. It covers the mechanism that makes a stated rate turn into a different yearly result. The next chapter turns that mechanism into a single comparable number, the APY.
Simple interest and compound interest
Interest is a payment for holding your money. There are two ways to calculate it.
- Simple interest is calculated on the original deposit only. Interest never earns more interest.
- Compound interest is calculated on the original deposit plus all interest already added. Interest earns interest.
Savings accounts use compound interest. Each time the bank adds interest to your balance, the next calculation starts from a larger number.
Take 10,000 at 4% per year, with interest added once a year.
| Year | Simple interest balance | Compound interest balance |
|---|---|---|
| 1 | 10,400.00 | 10,400.00 |
| 2 | 10,800.00 | 10,816.00 |
| 3 | 11,200.00 | 11,248.64 |
| 10 | 14,000.00 | 14,802.44 |
The two match in year 1 because no interest has been added yet. After that, compound interest pulls ahead. In year 2, the bank pays 4% on 10,400, which is 416, not 400. The extra 16 is interest on interest.
The compounding formula
If you deposit a starting balance P at an annual rate r, and interest is added n times per year, the balance after t years is:
P × (1 + r/n)^(n × t)
Here is what each part does.
- r/n is the rate for one compounding period. At 4% compounded monthly, each period earns 0.04 / 12 ≈ 0.333%.
- 1 + r/n is the growth factor for one period.
- n × t is the number of periods. The factor is applied once per period.
Simple interest is the special case where the factor is applied to the original deposit every time: P × (1 + r × t).
The loop below shows what the formula does. It adds interest one period at a time and prints the balance after each year.
def grow(start, annual_rate, periods_per_year, years):
balance = start
period_rate = annual_rate / periods_per_year
for year in range(1, years + 1):
for _ in range(periods_per_year):
balance += balance * period_rate
print(f"Year {year}: {balance:,.2f}")
return balance
grow(10_000, 0.04, 1, 3)With annual compounding this prints 10,400.00, 10,816.00, and 11,248.64, matching the table. Change periods_per_year to 12 and the numbers move slightly higher.
Why frequency matters
The frequency is how often interest is added to the balance. Common choices are annually, quarterly, monthly, and daily. More frequent compounding means interest starts earning interest sooner within the year.
For 10,000 at a stated 4% for one year:
| Compounding | Periods per year | Balance after 1 year |
|---|---|---|
| Annually | 1 | 10,400.00 |
| Quarterly | 4 | 10,406.04 |
| Monthly | 12 | 10,407.42 |
| Daily | 365 | about 10,408.1 |
The effect is real but small. Going from annual to daily compounding adds about 8 on 10,000, or roughly 0.08 percentage points. The gains also shrink as frequency rises. Moving from annual to monthly adds about 7.42, while moving from monthly to daily adds less than 1. There is a ceiling. Even with interest added every instant, 4% gives only about 10,408.11.
Frequency is therefore a minor factor compared with the rate itself. A 4.1% account compounded annually beats a 4.0% account compounded daily. Frequency becomes a real consideration only when two accounts have nearly the same rate.
Time matters more than frequency
Compounding rewards patience more than it rewards frequency. Each year's interest is larger than the one before, so the gap between simple and compound growth widens over time.
def simple(start, rate, years):
return start * (1 + rate * years)
def compound(start, rate, years, periods=1):
return start * (1 + rate / periods) ** (periods * years)
for years in (1, 5, 10, 20):
s = simple(10_000, 0.04, years)
c = compound(10_000, 0.04, years, periods=12)
print(f"{years:>2} years simple {s:>10,.2f} compound {c:>10,.2f} gap {c - s:>8,.2f}")The gap grows faster than the term. At 1 year it is under 10. By 20 years it is several thousand. Savings accounts used for an emergency fund or a goal under a year or two away get very little benefit from compounding. The extra interest on interest only becomes large over long horizons.
A rough shortcut is the rule of 72. Divide 72 by the annual percentage rate to estimate the years needed to double a balance. At 4%, that is 72 / 4 = 18 years. The exact answer is about 17.7 years. The rule is an approximation that works best for rates between about 2% and 10%.
Accrual versus crediting
Banks separate two events, and the difference affects what you earn.
- Accrual is the daily calculation of interest you have earned. Many banks accrue daily, based on the end-of-day balance.
- Crediting (or posting) is the moment the accrued interest is added to your balance. Many banks credit monthly.
Compounding only starts to work once interest is credited, because only then does it become part of the balance that earns interest. An account can accrue daily and credit monthly. In that case, interest does not earn interest within a month. It starts earning interest from the next month.
The sketch below models that arrangement. It accrues simple daily interest on the current balance and credits it at the end of each month.
def accrue_daily_credit_monthly(start, annual_rate, days_in_months):
balance = start
for days in days_in_months:
accrued = balance * annual_rate / 365 * days
balance += round(accrued, 2)
return balance
calendar_2027 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
final = accrue_daily_credit_monthly(10_000, 0.04, calendar_2027)
print(f"{final:,.2f}")The result is slightly below the 10,407.42 you get from pure monthly compounding. Daily accrual uses the actual number of days, and the formula rate / 365 * days slightly differs from rate / 12. The exact figure depends on the bank's rules, which is why the account's terms matter.
Edge cases that change the result
These are the common places where real accounts depart from the formula.
- Leaving before the credit date. Some accounts only pay interest that has been credited. If you close the account or withdraw everything mid-month, check whether the accrued interest is paid. Most banks pay it, but some terms say otherwise.
- Day-count convention. Some institutions divide by 365, others by 360, and some use 366 in leap years. Dividing by 360 gives a slightly higher daily rate for the same stated annual rate. The effect is a few hundredths of a percentage point.
- Rounding. Interest is credited in whole cents. Rounding at each step can make your total differ by a few cents from a spreadsheet that rounds only at the end.
- Interest paid out instead of added. Some term deposits and notice accounts send interest to another account, such as your current account, instead of adding it to the deposit. In that case nothing compounds inside the product. The deposit stays at its original size, and you earn simple interest on it. If you reinvest the payments yourself, you can recreate compounding, but only if the payout lands somewhere that also earns interest.
- Changing balances. The formula assumes no deposits or withdrawals. If you add or remove money, each segment of time has to be calculated separately from the balance at its start.
- Changing rates. The formula also assumes a constant rate. Variable rates are covered in a later chapter. The calculation approach is the same: split the period where the rate changes.
Common errors
- Treating the stated rate as the yearly return. A 4% rate with monthly compounding returns about 4.07%, not 4%. The stated rate describes one period's growth, scaled up.
- Dividing the rate wrongly. For monthly compounding, use r/12 per period. Using r for each period would mean 48% per year at a stated 4%.
- Overvaluing frequency. Moving from monthly to daily compounding is worth far less than a difference of 0.1 percentage point in the rate.
- Ignoring the time horizon. Compounding gains are modest over months and become large over decades. Short-term savers should focus on the rate and access, not on compounding.
- Mixing percentages and decimals. The code uses 0.04, not 4. Passing 4 into the formula produces nonsense.
Exercise
You deposit 2,000 in an account with a 3% stated rate, interest credited once a year. How much will you have after 3 years, and how much more is that than simple interest would give?
Show answer
Compound balance = 2,000 × 1.03^3 = 2,000 × 1.092727 ≈ 2,185.45. Simple interest gives 2,000 × (1 + 0.03 × 3) = 2,180.00. The difference is about 5.45, which is the interest earned on interest.
Exercise
Account A pays a stated 4.00% compounded daily. Account B pays a stated 4.05% compounded annually. Using the figures from this chapter, which earns more over one year on 10,000, and why?
Show answer
Account A earns about 408.1 (10,000 at 4% compounded daily reaches about 10,408.1). Account B earns 405.00 (10,000 × 0.0405). Account A earns more here, but only because the 0.05 point rate gap in favor of B is smaller than the roughly 0.08 point benefit of daily compounding. At a gap of 0.10 points, B would win. Compare the two by converting each to a yearly figure, which is the subject of the next chapter.