Compound Interest: Formula, Frequency and the Rule of
72.

The compound interest formula, what compounding frequency really changes, how regular contributions grow, and how accurate the Rule of 72 is at different rates.

Financial MathBy Published Updated 7 min read

Compound interest is interest calculated on a balance that already includes earlier interest. With simple interest you earn the same dollar amount every year; with compound interest each year's interest is a little larger than the last, because the base keeps growing. Over a few years the difference is small. Over a few decades it dominates. This guide covers the formula, what compounding frequency really changes, how regular contributions fit in, and how far you can trust the Rule of 72.

Simple interest versus compound interest

Simple interest is paid only on the original principal:

Simple: A = P × (1 + r × t)

Compound interest adds each period's interest to the balance before the next period is calculated:

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

Here A is the ending balance, P the starting principal, r the annual nominal rate as a decimal (5% is 0.05), n the number of compounding periods per year, and t the number of years. The term r ÷ n is the rate per period, and n × t is the total number of periods.

Take $10,000 at 5% for 10 years. Simple interest gives $10,000 × (1 + 0.05 × 10) = $15,000.00. Compounding once a year gives $10,000 × 1.05^10 = $16,288.95. The extra $1,288.95 is interest earned on interest. The simple interest calculator and the compound interest calculator let you compare the two for your own numbers.

$10,000 at 7% for 40 years: compound versus simple interestTwo lines starting at $10,000. Simple interest rises in a straight line to $38,000 after 40 years. Annual compound interest curves upward and reaches $149,745, about 3.9 times the simple interest balance.$0k$50k$100k010203040$149,745YearsBalance (USD)
Compound (annual)Simple
Chart data as a table
YearsCompound (annual)Simple
0$10k$10k
5$14k$14k
10$20k$17k
15$28k$21k
20$39k$24k
25$54k$28k
30$76k$31k
35$107k$35k
40$150k$38k

The chart uses 7% for 40 years. Simple interest adds the same $700 every year and ends at $38,000. Compounding ends at $149,745. For the first decade the lines are close; the gap opens later, which is why the length of time money stays invested matters more than almost any other input.

A worked example, step by step

The same $10,000 at 5%, now compounded monthly for 10 years:

  1. Rate per period: r ÷ n = 0.05 ÷ 12 = 0.004167.
  2. Number of periods: n × t = 12 × 10 = 120.
  3. Growth factor: (1 + 0.004167)^120 = 1.647009.
  4. Ending balance: $10,000 × 1.647009 = $16,470.09.

Interest earned is $6,470.09. Keep the full precision of the growth factor until the last step: rounding the monthly rate to 0.0042 before raising it to the 120th power would overstate the answer.

What compounding frequency changes

Compounding more often means interest starts earning interest sooner. The table holds the nominal rate at 5% and the term at 10 years and changes only n. The last row uses continuous compounding, the limit as n grows without bound, where the formula becomes A = P × e^(r × t).

CompoundingPeriods per yearBalance after 10 yearsEffective annual rate
Annually1$16,288.955.000%
Semiannually2$16,386.165.063%
Quarterly4$16,436.195.095%
Monthly12$16,470.095.116%
Daily365$16,486.655.127%
ContinuouslyUnlimited$16,487.215.127%

Moving from annual to monthly compounding adds $181.15 over ten years. Moving from monthly to daily adds only $16.55, and continuous compounding adds just $0.56 more. Frequency matters, but with diminishing returns: the rate itself and the time invested matter far more.

Effective annual rate and APY

The last column is the effective annual rate, the single annual rate that would produce the same growth with yearly compounding:

EAR = (1 + r ÷ n)^n − 1

In the United States, the Truth in Savings Act and its Regulation DD require banks to quote deposit accounts as an annual percentage yield (APY), which is this effective rate. That makes APYs comparable across accounts that compound at different frequencies, while two nominal rates are not. The same arithmetic works against you on debt: a credit card charging 24% APR compounded daily has an effective annual rate of 27.11%. The APR calculator covers loan rates in more detail.

Adding regular contributions

Most savings grow from both a starting balance and regular deposits. Each deposit compounds from the date it is made, so the future value is the starting balance grown forward plus the future value of an annuity:

FV = P × (1 + i)^N + PMT × [(1 + i)^N − 1] ÷ i

Here i is the rate per period, N the number of periods and PMT the deposit per period, made at the end of each period. Suppose you start with $5,000, add $200 a month, and earn 6% compounded monthly, so i = 0.005. After 30 years (N = 360) the balance is $231,015.88. You deposited $77,000 of that; the remaining $154,015.88 is interest, about 67% of the total.

YearsTotal depositedBalanceInterest share
5$17,000$20,69818%
10$29,000$41,87331%
15$41,000$70,43442%
20$53,000$108,95951%
25$65,000$160,92460%
30$77,000$231,01667%
Deposits versus interest: $5,000 plus $200 a month at 6%Stacked bars every five years. Deposits grow in equal steps to $77,000 at year 30, while the interest portion grows faster each period and reaches $154,016, larger than the deposits from year 20 onward.$0k$50k$100k$150k$200kYear 5Year 10Year 15Year 20Year 25Year 30
DepositsInterest
Chart data as a table
DepositsInterest
Year 5$17k$4k
Year 10$29k$13k
Year 15$41k$29k
Year 20$53k$56k
Year 25$65k$96k
Year 30$77k$154k

Interest is a small part of the balance in the early years and the larger part by the end. If the deposits were made at the start of each month instead of the end (an annuity due), every deposit would get one extra month of growth and the 30-year balance would be $232,020.40. The investment calculator models contributions over time, and the savings goal calculator runs the formula in reverse to find the monthly deposit needed to reach a target.

Starting earlier versus saving more

Because the last years of compounding add the most dollars, when you start matters a great deal. Two people each save $200 a month at 6% until age 65. One starts at 25 and ends with $398,298. The other starts at 35 and ends with $200,903. The early starter deposits $24,000 more but finishes $197,395 ahead. To match the early starter, the person who begins at 35 would need to save about $397 a month. The retirement savings calculator projects this kind of plan from your current age and balance.

The Rule of 72

The Rule of 72 estimates how long money takes to double at a fixed annual rate:

Years to double ≈ 72 ÷ annual rate in percent

At 6%, money doubles in about 72 ÷ 6 = 12 years. The rule is old: it appears in Luca Pacioli's Summa de arithmetica, printed in 1494. The exact doubling time for annual compounding comes from solving (1 + r)^t = 2:

t = ln 2 ÷ ln(1 + r)

How accurate is it?

The table compares the rule with the exact answer for annual compounding, along with the Rule of 70 that some textbooks prefer.

RateExact yearsRule of 72Rule of 70Rule of 72 error
1%69.6672.0070.002.34 years
2%35.0036.0035.001.00 years
4%17.6718.0017.500.33 years
6%11.9012.0011.670.10 years
8%9.019.008.75−0.01 years
10%7.277.207.00−0.07 years
12%6.126.005.83−0.12 years
15%4.964.804.67−0.16 years
20%3.803.603.50−0.20 years
30%2.642.402.33−0.24 years

The Rule of 72 is exact at about 7.85% and stays within a few months of the true answer between roughly 4% and 12%, the range of most savings and investment returns. At low rates it overstates the doubling time slightly, and the Rule of 70 does better; at high rates it understates the doubling time, and the error grows. With continuous compounding the exact doubling time is ln 2 ÷ r, or 69.3 ÷ rate in percent, which is why the Rule of 70 is closer for continuously compounded or very low rates. People use 72 because it divides evenly by 2, 3, 4, 6, 8, 9 and 12.

The rule works for anything growing at a steady rate, not just savings. At 3% annual inflation, prices double, and the purchasing power of a dollar halves, in about 72 ÷ 3 = 24 years; the exact figure is 23.45 years. The CAGR calculator finds the steady rate that links any two values over a period.

Inflation, taxes and fees

The formulas above give nominal dollars. To see growth in purchasing power, adjust for inflation with the real rate of return: (1 + nominal) ÷ (1 + inflation) − 1. A 7% return with 3% inflation is a real return of 3.88%, not exactly 4%. The inflation calculator converts amounts between years.

Taxes on interest and annual account fees work like a lower rate, and because they compound too, a fee of 1% a year removes far more than 1% of the final balance over several decades. In the contribution example above, cutting the return from 6% to 5% leaves $188,790 after 30 years instead of $231,016, a loss of 18% of the final balance. Run the compound interest calculator once with your gross rate and once with the rate after fees to see the difference. Finally, investment returns are not fixed. The formulas assume a constant rate, which fits a savings account or a CD; for stocks and funds they describe a smooth average path, and real balances will move around it.

Sources

  • Kellison SG. The Theory of Interest, 3rd edition. McGraw-Hill/Irwin, 2009. Chapters 1 and 2 (accumulation functions, nominal and effective rates, equations of value).
  • Brealey RA, Myers SC, Allen F. Principles of Corporate Finance, 13th edition. McGraw-Hill, 2020. Chapter 2 (future values and compound interest).
  • Consumer Financial Protection Bureau. Regulation DD (Truth in Savings), 12 CFR Part 1030, including Appendix A, Annual Percentage Yield Calculation.
  • U.S. Securities and Exchange Commission, Investor.gov. Compound Interest Calculator and the glossary entry for compound interest.
  • Pacioli L. Summa de arithmetica, geometria, proportioni et proportionalita. Venice, 1494 (earliest known statement of the rule of 72).

All guides

Calculators used in this guide