Compound interest is interest paid on the original principal plus the interest already added to the balance. For a single lump sum that stays invested, the standard compound interest formula is A = P(1 + r/n)^(nt).

What does each part of the compound interest formula mean?

P is the starting balance, r is the annual rate written as a decimal, n is the number of compounding periods per year, t is the number of years, and A is the ending balance. The formula multiplies the principal by a growth factor, then repeats that factor once for every compounding period.

Order matters. A 7% annual rate compounded monthly uses r = 0.07 and n = 12, so the monthly rate is 0.07/12 = 0.005833…

The exponent is 12 × t, not t alone. For 20 years, the exponent is 240.

The formula assumes no deposits or withdrawals after the starting amount. That is why a savings calculator with monthly contributions uses the same compounding math plus a separate calculation for each deposit.

How do you calculate compound interest step by step?

Use the formula in four steps: set the principal, convert the rate, find the total number of periods, then raise and multiply.

Step 1: Write down the principal

Start with the lump sum that is already invested. In this example, P = $10,000.

Step 2: Convert the annual rate and divide by n

Turn 7% into 0.07. With monthly compounding, n = 12, so r/n = 0.07/12 = 0.005833… Use the unrounded value in the formula to avoid a small rounding error.

Step 3: Multiply n by t for the exponent

Monthly compounding for 20 years gives 12 × 20 = 240 periods. The exponent is 240, not 20.

Step 4: Apply the formula

A = 10,000(1 + 0.07/12)^240 = $40,387.39. The interest earned is $40,387.39 − $10,000 = $30,387.39. That is the lump sum only, with no monthly deposits.

Step 5: Add contributions separately

Each monthly deposit has its own compounding period. A $500 deposit made in month one compounds for 240 months, while a deposit made in month 240 compounds for one month. The sum of those deposits plus the $10,000 grows to $300,850.72 after 20 years.

What does a $10,000 example look like over time?

With $10,000 at 7% compounded monthly and no additions, the balance reaches $40,387.39 after 20 years. Adding $500 a month changes the path and the ending balance.

YearsBalance with $10,000 + $500/monthTotal contributedInterest earned
1$16,919.19$16,000$919.19
5$49,972.70$40,000$9,972.70
10$106,639.02$70,000$36,639.02
15$186,970.62$100,000$86,970.62
20$300,850.72$130,000$170,850.72

The growth is back-loaded. After one year, interest is $919.19.

After ten years, the balance is $106,639.02. The last five years add $113,880.10, which is more than a third of the final balance.

Total contributions over 20 years are $130,000: the $10,000 start plus 240 deposits of $500. Interest is $170,850.72, or 56.8% of the $300,850.72 ending balance.

How is compound interest different from simple interest?

Simple interest is paid only on the principal, while compound interest is paid on principal plus past interest. The gap widens every period.

Using the same $10,000 at 7% simple interest for 20 years: $10,000 × 0.07 = $700 a year; $700 × 20 = $14,000; total = $24,000. The monthly compound result is $40,387.39, which is $16,387.39 more.

Simple interest is common on some loans and short-term notes. Compound interest is the better description for savings accounts, bonds that reinvest interest, and investments where returns stay in the account.

How does compounding frequency change the formula?

More frequent compounding raises the ending balance at the same nominal rate because interest is added to the balance sooner. The formula handles that through n.

At 7% for 20 years, $10,000 compounded annually grows to $38,696.84: 10,000(1.07)^20. Compounded monthly, it grows to $40,387.39. The difference is $1,690.55, even though both examples quote 7%.

Daily compounding uses n = 365, monthly uses n = 12, and quarterly uses n = 4. The change from annual to monthly is larger than the change from monthly to daily, so the frequency matters most when the rate is high and the term is long.

What happens if the return is lower?

A lower return cuts the ending balance more than the change in the rate suggests. At 5% instead of 7%, the same $10,000 plus $500 a month for 20 years reaches $232,643.24.

That is about $68,000 less than $300,850.72. The formula is sensitive to the rate because the rate is applied to a growing balance for every period. A 1% annual fee has a similar drag: it reduces the return that reaches the account, and over 20 years it keeps a meaningful share of the growth.

What the formula leaves out

The formula assumes a fixed return, no fees, no taxes, and no withdrawals. Real accounts rarely meet all four assumptions.

Taxes reduce the amount left to reinvest. In a taxable account, interest and dividends can be taxed each year; in a tax-advantaged account, the tax treatment is different. The formula does not know which account holds the money.

Real investments also vary. A portfolio that averages 7% will have years of 20% and years of minus 15%, and the order of those years changes the ending balance. A steady 7% line is a planning assumption, not a promise.

Monthly deposits need the separate contribution calculation described above. If you want to see the effect of extra loan payments instead, the extra mortgage payments guide uses the same interest math in reverse.

Use the compound interest calculator to change the starting amount, contribution, return, and years without rebuilding the formula by hand.

Common mistakes

  • Using the annual rate without dividing by n. A 7% rate with monthly compounding uses 0.07/12 for each period.
  • Multiplying n by t incorrectly. The exponent is 12 × 20 = 240 for monthly compounding over 20 years.
  • Treating monthly deposits as one lump sum. Each deposit compounds for a different number of months.
  • Assuming the same return every year. Real investments have gains and losses, and the order matters.
  • Ignoring fees and taxes. Both reduce the money that stays in the account to compound.
  • Comparing a compound investment to a simple-interest loan without matching the terms. The same rate can produce very different totals.