Saving and investing

How Compound Interest Works, With Examples and Charts

Why interest on interest is the most powerful force in saving, shown with the formula, real numbers and charts.

By Osama · Published October 13, 2026 · 8 min read

A = P(1 + r/n)nt

Albert Einstein is often quoted as calling compound interest the eighth wonder of the world, though there is no good evidence that he said it. You do not need the quote to see why the idea matters. Compounding is the reason a modest monthly saving habit can grow into a large sum, and the reason a credit card balance can grow faster than you expect.

The short version

  • Simple interest is paid only on the money you put in. Compound interest is also paid on the interest you have already earned.
  • Time matters more than almost anything else, so the length of the period has a bigger effect than small changes in how often interest is added.
  • Regular deposits make the effect stronger, and in the example below growth ends up larger than the total of the deposits.
  • The same rule works against you when you borrow, which is why high-rate debt grows so quickly.

Simple interest against compound interest

With simple interest the interest is always worked out on the original amount. If you put in $10,000 at 7%, you earn $700 every year, no matter how long it stays there. After 30 years you would have $10,000 + 30 × $700 = $31,000.

With compound interest each year's interest is added to the balance, so next year's interest is calculated on a bigger number. The same $10,000 at 7%, compounded monthly, becomes $81,165 after 30 years, more than two and a half times the simple-interest result.

Simple interest against compound interest on $10,000 at 7%After 30 years simple interest gives $31,000, while monthly compounding gives $81,165.$0$15k$30k$45k$60k$75k$90k051015202530Years$31,000$81,165Simple interestCompound interest (monthly)
The two lines start together. Compounding pulls away slowly at first and then quickly, because the interest keeps earning interest.

The formula

A = P × (1 + r / n)n × tA is the final amount, P the starting amount, r the yearly rate as a decimal, n the number of times interest is added each year, and t the number of years.
  1. Take $10,000 at 7% (r = 0.07), compounded monthly (n = 12), for 30 years (t = 30).
  2. Work out the rate per period: 0.07 / 12 = 0.005833.
  3. Work out the number of periods: 12 × 30 = 360.
  4. Raise (1.005833) to the power 360, which is about 8.116, then multiply by $10,000 to get $81,165.

You can check this with our Compound Interest Calculator.

Adding money every month

Most people do not invest a single lump sum. They add money regularly, and each deposit then starts compounding from the day it goes in. Suppose you save $200 a month at an average return of 7% a year. After 30 years you will have put in $72,000 and the account will hold about $243,994.

A $200 monthly plan: deposits and growth by yearSaving $200 a month at 7% for 30 years builds $243,994. Only $72,000 comes from deposits, and $171,994 is growth.$0$50k$100k$150k$200k$250k151015202530YearYour depositsGrowth
Deposits grow in a straight line, but growth gets steeper every year. In year 30 the account earns about $16,361 in that one year, more than a full year of deposits.
View the numbers behind the monthly-plan chart
YearYour depositsGrowthBalance
1$2,400$79$2,479
5$12,000$2,319$14,319
10$24,000$10,617$34,617
15$36,000$27,392$63,392
20$48,000$56,185$104,185
25$60,000$102,014$162,014
30$72,000$171,994$243,994

Notice when growth overtakes deposits. In this example the account earns more than you contribute after roughly 19 years, and from then on most of the balance is growth.

The effect of the return you earn

Small differences in the rate become large differences over decades. The next chart repeats the $200 monthly plan at three average returns.

The same $200 a month at three different returnsAfter 30 years the balance is $166,452 at 5%, $243,994 at 7% and $366,149 at 9%.$0$100k$200k$300k$400k051015202530Years$166,452$243,994$366,1495% a year7% a year9% a year
Two points of extra return (7% instead of 5%) add $77,542 over 30 years, and 9% instead of 7% add $122,154. Higher returns come with more risk, and real returns vary from year to year.

These are steady average returns used for teaching. Real investments rise and fall, and the order of the good and bad years affects the outcome. Treat the numbers as an illustration of the maths, not as a forecast.

How much does compounding frequency matter?

Banks quote an interest rate and then say how often it is added: daily, monthly, quarterly or yearly. More frequent compounding gives a little more, but the gain is small compared with the effect of time.

Does compounding more often matter?$10,000 at 7% for 30 years grows to $76,123 with yearly compounding and $81,645 with daily compounding, a difference of $5,523.$0k$20k$40k$60k$80k$100k$76,123Yearly$80,192Quarterly$81,165Monthly$81,645Daily
Going from yearly to daily compounding adds a modest amount on $10,000 at 7%. Extending the period by a few years adds far more.

Start early, even with less

Because growth builds on itself, the first dollars you invest do the most work. Compare two people who both earn 7% on the same schedule:

  • Early saver: puts in $200 a month for the first 10 years (say ages 25 to 35), then stops and leaves the money alone for 30 more years.
  • Late saver: waits 10 years, then puts in $200 a month for 30 years (ages 35 to 65).
Starting early beats saving longerOver a 40-year horizon, someone who saves $200 a month for the first 10 years and then stops ends with $280,968. Someone who waits 10 years and then saves $200 a month for 30 years ends with $243,994.Balance at the end of year 40 (7% a year)Saves years 1-10$280,968Saves years 11-40$243,994Total deposited from your own pocketSaves years 1-10$24,000Saves years 11-40$72,000
Both people reach age 65. The late saver deposits three times as much ($72,000 against $24,000), yet the early saver ends with $36,974 more.

This does not mean you should stop saving after 10 years, because someone who starts early and keeps going does better still. It shows how powerful the early years are. If you have started late, saving more each month helps close the gap.

The rule of 72

A quick way to estimate how long money takes to double is to divide 72 by the annual return in percent. At 6% the money doubles in about 12 years, and at 9% in about 8 years.

View the rule of 72 against the exact answer
Annual returnRule of 72 estimateExact years to double
2%36.0 years35.0 years
4%18.0 years17.7 years
6%12.0 years11.9 years
8%9.0 years9.0 years
10%7.2 years7.3 years
12%6.0 years6.1 years

The shortcut is closest for returns between about 6% and 10% and drifts for very low or very high rates.

When compounding works against you

The same maths applies to debt. A credit card charging 24% a year, compounded monthly, adds about 2% to the balance each month. If you only pay the minimum, the interest keeps being added to a balance that shrinks slowly. Paying off high-interest debt is equivalent to earning a guaranteed return equal to that interest rate, which is hard to match elsewhere.

Practical steps

  • Start now with whatever amount you can, and raise it when your income rises.
  • Automate deposits so that saving happens before you can spend the money.
  • Keep fees low, because a fee of 1% a year takes a visible slice of the growth over 30 years.
  • Leave the money invested rather than withdrawing early, since withdrawals also lose the future compounding on them.
  • Clear expensive debt first, especially cards, before investing for modest returns.

Common questions

What is the difference between APR and APY?

APR is the yearly rate without compounding. APY includes the effect of compounding, so it is the higher figure for any account that adds interest more than once a year. Use APY to compare savings accounts.

How do I calculate compound interest?

Use A = P(1 + r/n)^(nt). Divide the yearly rate by the number of compounding periods, raise one plus that figure to the total number of periods, and multiply by the starting amount.

Is daily compounding much better than monthly?

Not by much. On $10,000 at 7% for 30 years, daily compounding ends about 0.6% higher than monthly compounding. The rate and the length of time matter far more.

Does compound interest apply to loans?

Yes. Credit cards and many loans add unpaid interest to the balance, so you pay interest on interest until the debt is cleared. Mortgages and car loans usually calculate interest on the remaining principal each month.

Can I really expect 7% a year?

No return is guaranteed. 7% is a common illustration for a long-term mix of stocks after inflation is ignored, but actual results vary each year and can be negative. Try different rates in the calculator to see a range of outcomes.

Sources and further reading

This guide is for general education and is not investment advice. The returns used in the examples are steady averages chosen to illustrate the maths. Real investments change in value and can lose money.

Keep reading

Try the calculators