How to Calculate Compound Interest

· 5 min read

Compound interest is what makes long-term investing powerful. Unlike simple interest (which only earns on your original deposit), compound interest earns interest on your interest. The longer the time horizon, the more dramatic the difference. The numbers below are math, not financial advice: any real investment decision should account for taxes, fees, inflation, and your personal situation.

The compound interest formula

A = P(1 + r/n)^(nt)

Where:

Example: $10,000 at 7% annual interest, compounded monthly, for 20 years:

A = 10,000 × (1 + 0.07/12)^(12×20) = $40,387

That is $30,387 in interest on a $10,000 investment, the power of compounding over time.

How to use the calculator

  1. Enter your starting amount: your initial principal or current savings.
  2. Set the interest rate and time period: annual rate and number of years.
  3. Choose compounding frequency: annual, quarterly, monthly, or daily.
  4. Add monthly contributions (optional): regular deposits that accelerate growth.
  5. View the results: see your final amount, total interest earned, and a growth chart.

A brief history of compound interest

Compound interest has been understood for millennia, but the math behind it took centuries to formalize. Babylonian merchants in 2000 BC charged compound interest on grain and silver loans (the Code of Hammurabi capped grain interest at 33.3% annually). Roman law explicitly forbade compound interest as "usurious" but allowed it in maritime loans where risk was high.

The modern formula was derived during the European mathematical renaissance. Luca Pacioli (1494) and Simon Stevin (1582) published interest tables that compound merchants could use without doing the algebra. Jakob Bernoulli (1683) discovered that as compounding frequency approaches infinity, the formula converges to the constant e ≈ 2.71828, the mathematical foundation of "continuous compounding."

Albert Einstein is widely (and probably apocryphally) quoted as calling compound interest "the eighth wonder of the world" and saying "he who understands it earns it; he who does not pays it." Whether or not Einstein actually said it, the observation captures something true: compound growth is unintuitive to humans because we expect linear change. Most people underestimate how much $10,000 invested at 7% for 40 years becomes ($149,745) and overestimate how quickly small monthly contributions add up.

Compound vs simple interest

Side-by-side on a $10,000 deposit at 5% annual interest:

Year Simple interest Compound interest
1 $10,500 $10,500
5 $12,500 $12,763
10 $15,000 $16,289
20 $20,000 $26,533
30 $25,000 $43,219
50 $35,000 $114,674

After 30 years, compound interest produces 73% more than simple interest. After 50, it produces 227% more. Time is what makes compounding magic.

The impact of time

Starting amount Rate Years Final amount Interest earned
$10,000 7% 10 $20,097 $10,097
$10,000 7% 20 $40,387 $30,387
$10,000 7% 30 $81,165 $71,165
$10,000 7% 40 $163,176 $153,176

The interest earned in years 30-40 ($82,011) is more than the interest from the first 30 years combined. This is compounding at work, growth accelerates the longer you stay invested.

Compounding frequency comparison

$10,000 at 7% for 30 years with different compounding frequencies:

Frequency Final amount
Annual (n=1) $76,123
Quarterly (n=4) $80,239
Monthly (n=12) $81,165
Daily (n=365) $81,623
Continuous $81,662

The jump from annual to monthly compounding is meaningful ($5,042). The jump from monthly to continuous is tiny ($497 over 30 years). Past a certain point, additional compounding frequency adds nothing meaningful.

Regular contributions: where the real growth happens

For most people, regular monthly contributions matter more than the starting amount:

Scenario A: $10,000 starting, no contributions, 7% for 30 years = $81,165

Scenario B: $0 starting, $200/month, 7% for 30 years = $244,692

Scenario C: $10,000 starting + $200/month, 7% for 30 years = $325,857

The contributing $200/month for 30 years totals $72,000 of your own money, but ends up worth $244,692, more than 3x your contributions. That extra value is all compound growth on each monthly deposit.

Real-world considerations

The math above ignores three things that matter in real investing:

A useful rule of thumb: expense ratios below 0.20% are good, above 1% are expensive. Pay attention.

Common pitfalls

Tips

Privacy

The compound interest calculator runs entirely in your browser. The financial numbers you enter (starting amount, monthly contribution, target year) all stay on your device. This matters because financial inputs reveal sensitive information about your wealth and financial planning, which insurance companies, marketers, and identity thieves all want. Some online financial calculators are loaded with tracking pixels that exfiltrate your inputs to ad networks. A browser-only calculator has zero exposure: the numbers you type never leave your device. Browser-based math also works offline once the page is loaded.

Frequently Asked Questions

What is the difference between simple and compound interest?

Simple interest is calculated only on the original principal. Compound interest is calculated on the principal plus all previously earned interest. Over time, compound interest grows exponentially while simple interest grows linearly.

How does compounding frequency affect returns?

More frequent compounding produces slightly higher returns. Monthly compounding earns more than annual compounding at the same rate because interest starts earning interest sooner. The difference is small for low rates but adds up over long periods.

What is the Rule of 72?

Divide 72 by your annual interest rate to estimate how many years it takes to double your money. At 6% interest, money doubles in roughly 72/6 = 12 years. At 8%, roughly 9 years. It is a quick mental estimate, not an exact calculation.

Does the calculator account for regular contributions?

Yes. Enter a monthly contribution amount and the calculator includes it in the compound growth projection, showing how regular deposits accelerate growth.