How to Calculate Compound Interest (Formula and Examples)

By 4 min read

To calculate compound interest, use A = P × (1 + r ÷ n)^(n × t), where P is the starting amount, r the annual rate as a decimal, n the number of times interest is added each year and t the number of years. Then subtract P to get the interest alone. For example, 10,000 at 5% compounded monthly for 10 years grows to 16,470.09, so it earns 6,470.09 in interest. Simple interest on the same money would earn only 5,000. The compound interest calculator does the sum for any amount, rate, term and compounding frequency.

The compound interest formula

A = P × (1 + r ÷ n)^(n × t)

  • A is the final amount, including the interest.
  • P is the principal, the money you start with.
  • r is the annual interest rate as a decimal, so 5% is 0.05.
  • n is how many times a year interest is added: 1 for yearly, 4 for quarterly, 12 for monthly, 365 for daily.
  • t is the time in years.

Interest earned = A - P.

The difference from simple interest is that each new interest payment is added to the balance, and the next payment is worked out on that bigger balance. You earn interest on your interest.

Worked example, step by step

Take 10,000 at 5% a year, compounded monthly, for 10 years.

  1. Rate per period: r ÷ n = 0.05 ÷ 12 = 0.0041667.
  2. Number of periods: n × t = 12 × 10 = 120.
  3. Growth factor: (1 + 0.0041667)^120 = 1.647009.
  4. Final amount: 10,000 × 1.647009 = 16,470.09.
  5. Interest earned: 16,470.09 - 10,000 = 6,470.09.

You can watch it build month by month. In month 1 the interest is 10,000 × 0.0041667 = 41.67, so the balance becomes 10,041.67. In month 2 the interest is 41.84, and in month 3 it is 42.01. Each payment is a little bigger than the last because it is worked out on a bigger balance.

With yearly compounding the same pattern is easier to see: the interest is 500 in year 1, 525 in year 2 and 551.25 in year 3.

How often interest compounds

More frequent compounding adds interest sooner, so the balance grows a little faster. Here is 10,000 at 5% for 10 years, checked with the compound interest calculator:

Compounding Final amount Interest
Yearly (n = 1) 16,288.95 6,288.95
Quarterly (n = 4) 16,436.19 6,436.19
Monthly (n = 12) 16,470.09 6,470.09
Daily (n = 365) 16,486.65 6,486.65

Going from yearly to daily compounding adds less than 200 over ten years. The rate and the time matter far more.

Time matters most

Compounding is slow at first and fast later, because the interest keeps growing the base. The same 10,000 at 5% compounded monthly reaches:

  • 16,470.09 after 10 years
  • 27,126.40 after 20 years
  • 44,677.44 after 30 years

The second decade adds about 10,656, and the third adds about 17,551, with no new money put in.

Adding a monthly deposit

The formula above is for a single lump sum. When you add the same amount every month, the deposits grow with this formula instead:

Future value = payment × ((1 + i)^m - 1) ÷ i

Here i is the monthly rate (0.05 ÷ 12) and m is the number of monthly deposits. Saving 200 a month for 10 years at 5%:

  • Monthly deposits: 200 × 120 = 24,000 paid in.
  • Future value: 200 × (1.647009 - 1) ÷ 0.0041667 = 31,056.46 (worked out with the unrounded monthly rate).
  • Interest earned on the deposits: 7,056.46.

The annuity future value calculator gives this figure. It assumes each deposit is made at the end of the month at a fixed rate. If you also start with 10,000, add the two results: 16,470.09 + 31,056.46 = 47,526.55 after 10 years.

Compare accounts with APY

Banks often quote a nominal rate and a separate annual percentage yield (APY), which already includes the compounding. A 5% rate compounded monthly has an APY of 5.1162%, and the same rate compounded daily has an APY of 5.1267%. The APY calculator converts any rate, so you can compare offers on the same basis. Our guide to APR vs APY explains the difference in more detail.

A quick estimate: the rule of 72

To guess how long money takes to double, divide 72 by the yearly rate. At 5% that gives 72 ÷ 5 = 14.4 years. The exact answer with yearly compounding is 14.21 years, so the shortcut is close. See the rule of 72 for more examples.

Remember inflation

A bigger number is not the same as more buying power. If prices rise 3% a year, the 16,470.09 you have after 10 years buys about what 12,255 buys today. The inflation calculator shows this for any amount, rate and number of years.

Common mistakes

  • Using 5 instead of 0.05. The rate in the formula must be a decimal. The calculators take the percentage and convert it for you.
  • Mixing periods. If interest is added monthly, divide the annual rate by 12 and multiply the years by 12. Using the annual rate with monthly periods gives a hugely wrong answer.
  • Treating the result as a promise. The formula assumes a fixed rate with no fees, taxes or withdrawals. Savings rates change and investment returns go up and down.

To see how much less a loan or deposit grows without compounding, try the simple interest calculator with the same numbers.

Questions and answers

What is the formula for compound interest?

A = P × (1 + r ÷ n)^(n × t), where P is the starting amount, r the annual rate as a decimal, n the number of compounding periods per year and t the number of years. The interest is A minus P.

How much is 10,000 at 5% compound interest for 10 years?

Compounded monthly, it grows to 16,470.09, which is 6,470.09 in interest. Compounded once a year, it grows to 16,288.95.

Is daily or monthly compounding better?

Daily compounding earns slightly more at the same rate, but the gap is small. At 5% on 10,000 for 10 years, daily compounding gives 16,486.65 and monthly gives 16,470.09.

Related guides

More from the blog