X-Calculator
Finance 6 min read Updated November 23, 2026

Compound Interest Explained: Formula, Rule of 72 and Examples

How compound interest works, the A = P(1 + r/n)^nt formula, how compounding frequency and the rule of 72 change the result, with worked examples.

Advertisement
Advertisement

Compound interest is interest calculated on both your original deposit and the interest it has already earned, so your balance grows faster every year. The formula is A = P(1 + r/n)nt: $10,000 at 7% compounded annually becomes $19,671.51 after 10 years, compared with $17,000 under simple interest.

The same math works against you on debt. This guide explains the formula step by step, shows how compounding frequency changes the result, teaches the rule of 72 for quick estimates and runs real numbers. To test your own numbers, open the compound interest calculator.

Simple vs. compound interest

Simple interest is paid only on the original principal. Compound interest is paid on the principal plus all interest added so far. Here is $1,000 at 10% a year:

  • Year 1: 10% of $1,000 = $100 interest → balance $1,100
  • Year 2: 10% of $1,100 = $110 interest → balance $1,210
  • Year 3: 10% of $1,210 = $121 interest → balance $1,331

With simple interest, every year would add the same $100, ending year 3 at $1,300. The $31 gap looks small, but it is itself earning interest, and the gap widens every year. Over 10 years at 5%, $10,000 grows to $15,000 with simple interest and $16,288.95 with annual compounding.

The compound interest formula

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

A = final balance
P = principal (starting amount)
r = annual interest rate as a decimal (5% = 0.05)
n = compounding periods per year (1 annual, 12 monthly, 365 daily)
t = time in years
Interest earned = A − P

Worked example

You deposit $10,000 at 5% compounded monthly for 10 years.

  1. Rate per period: 0.05 ÷ 12 = 0.0041667
  2. Number of periods: 12 × 10 = 120
  3. Growth factor: 1.0041667120 = 1.647009
  4. Final balance: $10,000 × 1.647009 = $16,470.09
  5. Interest earned: $6,470.09

Long horizons do the heavy lifting

Time matters more than any other input. Here is $10,000 left alone at 7% compounded annually, with no further deposits:

  • After 10 years: $19,671.51
  • After 20 years: $38,696.84
  • After 30 years: $76,122.55
  • After 40 years: $149,744.58

In year 1 the account earns $700. In year 30 it earns $4,979.98 — on the same original deposit — because it is earning interest on 29 years of accumulated interest.

Advertisement
Advertisement

How compounding frequency changes the result

The more often interest is added, the sooner it starts earning interest of its own. The effect is real but smaller than most people expect. Here is $10,000 at a 5% nominal annual rate for 10 years:

Compounding n per year Balance after 10 years Effective annual rate (APY)
Annually 1 $16,288.95 5.000%
Semiannually 2 $16,386.16 5.063%
Quarterly 4 $16,436.19 5.095%
Monthly 12 $16,470.09 5.116%
Daily 365 $16,486.65 5.127%
Continuously ∞ $16,487.21 5.127%

Moving from annual to monthly compounding adds $181 over 10 years; moving from monthly to daily adds only $17 more. Continuous compounding is the mathematical limit, A = Pert — see the continuous compounding calculator. A higher rate or more years will always beat more frequent compounding.

APR vs. APY

Banks quote savings accounts in APY (annual percentage yield), which already includes compounding. Loans and credit cards are usually quoted in APR, which does not. The conversion is:

APY = (1 + APR/n)^n − 1

A savings account paying 4.5% APR compounded monthly has an APY of 4.594%. A credit card charging 24% APR, with interest compounding monthly, effectively costs 26.82% a year. When comparing accounts, compare APY to APY. The APY calculator converts between the two, and the effective annual yield calculator handles any compounding schedule.

The rule of 72

To estimate how long money takes to double, divide 72 by the annual interest rate (as a whole number). At 8%, money doubles in about 72 ÷ 8 = 9 years. Investor.gov describes it as a quick way to estimate doubling time at a fixed annual rate.

Annual rate Rule of 72 estimate Exact doubling time
2% 36.0 years 35.0 years
3% 24.0 years 23.4 years
4% 18.0 years 17.7 years
5% 14.4 years 14.2 years
6% 12.0 years 11.9 years
7% 10.3 years 10.2 years
8% 9.0 years 9.0 years
9% 8.0 years 8.0 years
10% 7.2 years 7.3 years
12% 6.0 years 6.1 years

The exact doubling time with annual compounding is ln(2) ÷ ln(1 + r). The rule is most accurate between 6% and 10%. It also works in reverse: to double in 6 years you need roughly 72 ÷ 6 = 12% a year. And it works for costs — at 3% inflation, prices double (and the buying power of cash halves) in about 24 years.

Advertisement
Advertisement

Adding regular contributions

Most people do not invest one lump sum; they add money every month. The future value of regular monthly deposits is:

FV = PMT × ((1 + i)^N − 1) ÷ i
PMT = monthly deposit, i = annual rate ÷ 12, N = number of months

Investing $200 a month at a 7% annual return compounded monthly:

  • For 30 years: you deposit $72,000 and end with $243,994.20 — $171,994.20 of it is growth.
  • For 40 years: you deposit $96,000 and end with $524,962.68.

Ten extra years of $200 deposits (just $24,000 more) more than doubles the ending balance. Starting early beats contributing more later. The future value of annuity calculator runs this formula for any schedule.

Working backward from a goal

To reach $50,000 in 10 years in an account earning 4.5% compounded monthly, rearrange the formula to solve for PMT: you need to save $330.69 a month. You deposit $39,682.80 and interest supplies the rest. The savings goal calculator does this in one step.

Calculating compound interest in a spreadsheet

Excel and Google Sheets have a built-in future value function, so you do not have to type the exponent yourself:

=FV(rate_per_period, number_of_periods, payment, -present_value)

Lump sum:   =FV(0.05/12, 120, 0, -10000)    → 16,470.09
Monthly:    =FV(0.07/12, 360, -200, 0)      → 243,994.20
Both:       =FV(0.07/12, 360, -200, -10000) → 325,159.17

The last line shows the combined effect: $10,000 up front plus $200 a month for 30 years at 7% reaches $325,159.17 from $82,000 of your own money. Money you pay in is entered as a negative number, which is why the deposits carry a minus sign. Use the same period for every input: a monthly rate needs monthly periods and monthly payments.

Where you meet compound interest

  • High-yield savings and money market accounts: interest usually compounds daily and is credited monthly; the quoted APY reflects that.
  • Certificates of deposit: fixed rate for a fixed term; check whether interest compounds or is paid out.
  • Retirement accounts (401(k), IRA): there is no stated interest rate, but reinvested dividends and gains compound the same way, at a variable rate.
  • Mortgages and car loans: interest is charged monthly on the remaining balance. Because each payment covers that month’s interest in full, the balance shrinks instead of compounding — see the mortgage calculator for the amortization.
  • Credit cards and student loans in deferment: unpaid interest can be added to the balance, which is compounding working against you.

Compound interest on debt

Credit cards compound too, usually daily or monthly, which is why a balance can grow even when you make payments. If your payment does not cover the month’s interest, the unpaid interest is added to the balance and starts accruing interest itself. The Consumer Financial Protection Bureau has plain-language guides on how card interest is charged. For a payoff plan, see our guide on how to pay off credit card debt.

How to make compound interest work for you

  • Start as early as possible. Each year of delay costs the final year of growth, which is the largest one.
  • Compare APY, not APR, when choosing savings accounts or CDs.
  • Reinvest earnings. Interest or dividends that are withdrawn stop compounding.
  • Watch fees. A 1% annual fee on a 7% return cuts the 30-year growth of $10,000 from $76,123 to $57,435.
  • Pay down high-rate debt first. Eliminating a 24% APR balance is a guaranteed return that few investments match.

Good to know: the examples here use fixed rates for illustration and are for educational purposes only. Real investment returns vary year to year and are not guaranteed; savings rates change. Investor.gov’s compound interest resources are a good independent reference.

Frequently Asked Questions

What is compound interest in simple terms?

Compound interest is interest earned on your original money plus the interest it has already earned. Because the interest is added to the balance, each period’s interest is a little larger than the last.

What is the formula for compound interest?

A = P(1 + r/n)^(nt), where P is the principal, r the annual rate as a decimal, n the compounding periods per year and t the number of years. $10,000 at 5% compounded monthly for 10 years grows to $16,470.09.

How does the rule of 72 work?

Divide 72 by the annual interest rate to estimate the years needed to double your money. At 6%, money doubles in about 72 ÷ 6 = 12 years; the exact figure is 11.9 years.

Does daily compounding make a big difference?

Not much compared with monthly. On $10,000 at 5% for 10 years, daily compounding yields $16,486.65 versus $16,470.09 monthly, a difference of $16.56.

Is compound interest calculated monthly or yearly?

It depends on the account. Many savings accounts compound daily and credit monthly, CDs vary, and credit cards typically compound daily or monthly. The APY tells you the true annual rate regardless of schedule.

Advertisement
Advertisement
Run the numbers

Calculators from this guide

Keep reading

More guides

All guides
Advertisement