Home › Guides › Money › How Compound Interest Works

How Compound Interest Works

Compound interest pays interest on earlier interest. Learn the formula, see worked examples and learn why time and frequency matter.

By the tools4free.dev team · Last reviewed 4 December 2026

This guide is general education, not financial advice. The figures are examples worked out for illustration; real accounts differ in rates, fees and tax.

What compound interest is

Interest is the price of using money. When you save, a bank pays you interest. When you borrow, you pay it. Simple interest is calculated only on the original amount, the principal. Compound interest is calculated on the principal plus all the interest already added. Each period, the balance grows a little, and the next period's interest is worked out on that larger balance.

The effect looks small at first and large later. In the first year, simple and compound interest are nearly the same. After ten or twenty years the gap is wide, because the interest has been earning interest for a long time. The same mechanism works against you on a debt that you leave unpaid, which is why credit card balances can grow quickly.

The formula

For a single deposit with no further contributions, the balance after a number of years is:

A = P × (1 + r / m) ^ (m × t)

A = final balance
P = principal (the starting amount)
r = annual rate as a decimal (5% = 0.05)
m = compounding periods per year (1 yearly, 4 quarterly, 12 monthly, 365 daily)
t = time in years

If you also add the same amount at the end of every period, the balance is the first part plus the future value of those contributions:

A = P × (1 + i) ^ n  +  C × ((1 + i) ^ n − 1) / i

i = r / m   (the rate for one period)
n = m × t   (the number of periods)
C = contribution added at the end of each period

Simple interest, for comparison, is just P × r × t. It grows in a straight line. Compound interest grows along a curve that bends upward.

Worked example 1: one deposit, 10 years

You deposit 10,000 at 5% a year, compounded once a year, and leave it for 10 years.

A = 10,000 × (1.05) ^ 10
  = 10,000 × 1.628895
  = 16,288.95

You can check the power by hand: 1.05² = 1.1025, so 1.05⁴ = 1.21550625, so 1.05⁸ is about 1.477455, and multiplying by 1.1025 gives about 1.628895. The interest earned is 6,288.95. Simple interest on the same deposit would be 10,000 × 0.05 × 10 = 5,000, so compounding added 1,288.95 on top.

Here is how the same deposit grows year by year when interest is added monthly (each month earns 5% ÷ 12):

End of yearBalanceInterest earned so far
110,511.62511.62
211,049.411,049.41
311,614.721,614.72

The interest in year 1 is 511.62. In year 3 it is 565.31 (11,614.72 − 11,049.41). Same rate, larger balance, so more interest each year.

Worked example 2: saving a fixed amount each month

You start with nothing and save 200 at the end of every month for 20 years, earning 6% a year compounded monthly. Here i = 0.06 ÷ 12 = 0.005 and n = 240.

(1.005) ^ 240 = 3.310204
A = 200 × (3.310204 − 1) / 0.005
  = 200 × 462.0409
  = 92,408.18

You paid in 200 × 240 = 48,000. The remaining 44,408.18 is interest. After the first ten years the balance is 32,775.87 and only 8,775.87 of it is interest. So about four-fifths of the total interest (35,632.31 of 44,408.18) arrives in the second ten years, because the balance is largest then.

Worked example 3: the cost of starting late

Take a single deposit of 5,000 at 4% a year, compounded yearly, and compare how long it is left to grow:

Time left investedFinal balanceInterest earned
10 years7,401.222,401.22
20 years10,955.625,955.62
30 years16,216.9911,216.99

Doubling the time from 10 to 20 years more than doubles the interest (2,401.22 becomes 5,955.62). Tripling it to 30 years multiplies the interest by nearly five. Time matters more than most people expect.

Compounding frequency compared

The same 10,000 at 5% a year for 10 years, with different compounding frequencies:

CompoundedPeriods per yearFinal balanceInterest
Simple interestnone15,000.005,000.00
Yearly116,288.956,288.95
Quarterly416,436.196,436.19
Monthly1216,470.096,470.09
Daily36516,486.656,486.65

More frequent compounding helps, but with sharply diminishing returns. Going from yearly to monthly adds about 181. Going from monthly to daily adds only about 17. The rate and the time matter far more than the frequency.

How to use these numbers

Treat a compound interest result as a scenario that answers a question: what happens if the rate stays where it is and I keep doing the same thing? Change one input at a time. Raise the rate by one point and see the effect. Add ten more years and see the effect. Increase the monthly contribution by 50 and see the effect. Comparing the changes shows which lever matters most for your situation, and the answer is often the length of time.

When you read an account's advertised figure, check three things: whether it is nominal or effective, how often interest is credited, and whether the rate is fixed or can change. These three details explain most of the small differences you will see between an advertisement and the balance on your statement.

Quick estimates: the rule of 72

To estimate how long money takes to double, divide 72 by the annual rate in per cent. At 5%, 72 ÷ 5 = 14.4 years. The exact figure for yearly compounding is about 14.21 years, so the rule is a good shortcut but not exact. It works best for rates between about 4% and 12%.

Nominal rate and effective rate

A quoted annual rate with monthly compounding is a nominal rate. What you actually earn over a year is the effective annual rate: (1 + r/m)^m − 1. A nominal 5% compounded monthly is an effective 5.116% a year. Comparing accounts by effective rate removes the confusion caused by different compounding schedules.

Common mistakes

Frequently asked questions

Is compound interest always good?

It is good when you are the saver and bad when you are the borrower. The mathematics is the same in both directions. Interest that is not paid on a debt is usually added to the balance, and then it earns interest for the lender.

Does a higher compounding frequency make a big difference?

Usually not. As the table shows, moving from monthly to daily compounding adds a small amount. The annual rate and the number of years are the bigger levers.

What is the difference between APY and APR?

APY (annual percentage yield) is the effective yearly return after compounding. APR (annual percentage rate) is usually the nominal yearly cost of borrowing, which may include fees. See our guide to APR vs interest rate.

How do regular contributions change the result?

They add to the principal each period, and every contribution then compounds from the date it is paid. In example 2, the contributions of 48,000 grew to 92,408.18.

Why do my results differ slightly from my bank's?

Banks may round each period, use a day-count convention, compound on different dates, or pay interest on the daily balance. Small differences are normal.

Try it: enter your own numbers in the compound interest calculator. For borrowing, see the loan calculator.

Sources and further reading