HandyTallies

Investing Math

Compound Interest Explained: The Formula and Why Time Wins

Compound interest explained from the formula up: how frequency, rate and time interact, why starting early matters, and quick ways to estimate growth.

By Kadir Laskar· Published · 9 min read

Compound Interest Explained: The Formula and Why Time Wins: title card for this HandyTallies guide

Compound interest is interest earned on both your original money and the interest it has already earned. Over time, that makes balances grow faster and faster, which is why it is called the snowball effect. It works for you in savings and investments and against you on debt. This guide explains the formula, shows how rate, time and compounding frequency change the result, and links to calculators such as the rule of 72 calculator and the CD calculator. All rates here are illustrative examples, not predictions.

Simple vs compound interest

Simple interest: Balance = P × (1 + r × t)
Compound interest: Balance = P × (1 + r/n)^(n × t)

Here 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. With simple interest, you earn the same dollar amount every year. With compound interest, each year's interest is added to the balance and earns interest itself.

Line chart of $10,000 growing at 7% a year for 30 years. Compound interest reaches $76,123; simple interest reaches $31,000.
The gap widens every year because compound interest earns interest on past interest.
YearSimple interest balanceCompound interest balanceDifference
1$10,700$10,700$0
5$13,500$14,026$526
10$17,000$19,672$2,672
20$24,000$38,697$14,697
30$31,000$76,123$45,123

In year 1 the two are identical. By year 30, compounding produces $45,123 more on the same $10,000 at the same 7% rate.

Why growth speeds up

Each year, the interest is 7% of a larger balance. In this example, the first year earns $700, but year 30 alone earns $4,980. Nothing about the rate changed; the base grew. That is why the last decade of a long investment often adds more dollars than the first two decades combined. Here the first ten years add $9,672, while the last ten add $37,426.

The rule of 72

Years to double ≈ 72 ÷ Annual rate (%)

At 7%, the rule of 72 estimates 10.3 years to double, while the exact answer is 10.24 years. Over 30 years that is about 2.9 doublings. The rule of 72 calculator does this for any rate, and our guide on rule of 72 accuracy shows where the shortcut drifts.

DoublingYears (exact, at 7%)Value
110.2$20,000
220.5$40,000
330.7$80,000
441.0$160,000

Rate matters more than you think

Bar chart of $10,000 after 30 years: 2% gives $18,114, 4% gives $32,434, 6% gives $57,435, 8% gives $100,627, 10% gives $174,494.
Small differences in rate create large differences over long periods.
RateAfter 10 yearsAfter 20 yearsAfter 30 years
2%$12,190$14,859$18,114
4%$14,802$21,911$32,434
6%$17,908$32,071$57,435
8%$21,589$46,610$100,627
10%$25,937$67,275$174,494

Doubling the rate does far more than double the ending balance over long periods. That is also why costs matter: a fee comes straight off your rate.

Fees compound too

If an investment earns 7% before costs, a yearly fee reduces the rate that compounds. On $10,000 over 30 years:

Annual feeApproximate effective rateEnding balanceLost to fees vs no fee
0%7.0%$76,123$0
0.1%6.9%$74,017$2,106
0.5%6.5%$66,144$9,979
1%6.0%$57,435$18,688
2%5.0%$43,219$32,903

A 1% fee sounds small but, in this example, costs $18,688 over 30 years. Comparing expense ratios is one of the simplest ways to keep more of your compounding.

Compounding frequency

Interest can compound annually, quarterly, monthly or daily. More frequent compounding at the same nominal rate gives a slightly higher effective yield. Banks in the US disclose that effective yield as the APY, so you can compare accounts directly. Using a 5% APY CD on $10,000 for 5 years:

CompoundingStated APRBalance after 5 years
annually5.000%$12,762.82
quarterly4.909%$12,762.82
monthly4.889%$12,762.82
daily4.879%$12,762.82

When the APY is the same, the ending balance is the same, because APY already includes compounding; only the stated APR differs. That is why comparing APYs is the fair way to compare savings products. Our guide on APY vs APR explains the difference in detail.

Adding regular contributions

Most people do not invest one lump sum; they add money regularly. Each contribution starts its own compounding clock. Two hypothetical savers, both earning 7% a year:

SaverMonthly amountYearsTotal contributedEnding balance
Starts early$30040$144,000$741,463
Starts late$60020$144,000$304,522

Both contribute the same total, yet the early saver ends with far more, because the early contributions compound for much longer. Even stopping early helps: in this model, $300 a month for just the first 10 years, then nothing for 30 years, grows to about $390,630 after contributing $36,000.

Continuous compounding

As compounding becomes more frequent, the result approaches a limit called continuous compounding:

Balance = P × e^(r × t)

Here e is a mathematical constant, about 2.71828. At 7% for 30 years, continuous compounding would turn $10,000 into $81,662, compared with $76,123 with yearly compounding. The difference between daily and continuous compounding is tiny for everyday savings, so continuous compounding is mostly used in finance theory and option pricing rather than bank accounts.

Compound interest vs compound returns

Savings accounts and CDs pay a known rate, so the formula gives an exact answer. Investments such as stocks do not. Their returns change every year, and the order and size of the swings matter. A gain of 20% followed by a loss of 20% does not leave you where you started: $10,000 becomes $12,000 and then $9,600.

YearHypothetical return
120%
2-10%
315%
4-5%
510%

These five hypothetical returns have a simple average of 6.0%, but $10,000 ends at $12,979, which equals a compound annual growth rate of 5.35%. The compound rate is always at or below the simple average when returns vary, and the gap grows with volatility. When you see a long-term "average return," check whether it is the compound annual growth rate or the simple average; only the compound rate can be plugged into the formula to reproduce the actual ending balance.

Inflation compounds too

Rising prices compound in the same way as interest. At 3% inflation, prices double, and the purchasing power of cash halves, in about 24.0 years by the rule of 72. Money sitting in an account earning less than inflation is shrinking in real terms, even though the balance never goes down. Our guide on adjusting for inflation with CPI shows how to compare dollars from different years.

Estimating compound growth in your head

You do not always need a calculator. Three quick tricks:

  • Rule of 72: divide 72 by the rate to get years to double, as shown above.
  • Count doublings: at 7%, money doubles roughly every ten years, so 30 years is about three doublings, or about eight times the starting amount.
  • Small rates over short periods: for a few years at a low rate, simple interest is close enough. At 2% for 3 years, compound and simple interest on $10,000 differ by only $12.

These shortcuts are good for sanity checks. For decisions, use exact calculations.

Reading a savings account offer

When comparing savings accounts or CDs, look for:

  1. APY, the effective annual yield including compounding, required in US bank disclosures.
  2. Whether the rate is fixed or variable. Savings account rates can change at any time; CD rates are usually fixed for the term.
  3. Minimum balance requirements and any monthly fees, which reduce your real return.
  4. Early withdrawal penalties on CDs. Our guide on the CD early withdrawal penalty explains how they work.
  5. Deposit insurance, such as FDIC coverage for banks, up to the applicable limits.

The CD calculator shows month-by-month growth for any deposit, term and APY.

Compound interest on debt

Compounding works against you on debt. Credit card interest is typically charged on the balance, including previously charged interest if you do not pay in full. If you pay only the minimum, the balance can take many years to clear and the total interest can exceed the original purchase. Paying high-interest debt off quickly is often one of the best "returns" available, because every dollar repaid stops compounding against you. Your card statement shows how long minimum payments would take.

Working backward from a goal

Compound interest can also answer the reverse question: how much do I need to save each month to reach a target? With monthly contributions and monthly compounding at an annual rate r, the required payment is:

Monthly saving = Goal × i ÷ ((1 + i)^n − 1), where i = r ÷ 12 and n = number of months

For a hypothetical goal of $100,000 at 7% a year:

Years to goalMonthly saving neededTotal you put inGrowth from compounding
5$1,396.79$83,807$16,193
10$577.75$69,330$30,670
20$191.97$46,072$53,928
30$81.97$29,509$70,491

With five years, most of the goal comes from your own deposits. With thirty years, compounding supplies most of it. That is the practical meaning of "time in the market": the longer the horizon, the less you have to save each month for the same result. For short-term goals, such as a house deposit in a few years, you should rely mainly on saving, since there is little time for growth and investments can fall in value just when you need the money.

Paying down a loan early

Because loan interest compounds on the remaining balance, extra payments early in a loan reduce the balance that future interest is charged on. Each extra dollar saves interest for every remaining month of the loan, so an early extra payment saves more than the same payment made near the end. Check that your lender applies extra payments to principal and whether any prepayment penalty applies, which your loan agreement will state. Weigh the guaranteed saving of paying off debt against the uncertain return of investing the same money.

Real vs nominal growth

Compounding numbers are in dollars, but prices rise too. If your money grows at 7% and inflation is 3%, your purchasing power grows at roughly 4% a year. Over decades the difference is large, so long-term plans should use real (after-inflation) returns. Our guide on real vs nominal returns shows the exact formula, and the inflation calculator shows how much prices have actually changed.

Compounding in dividend investing

Reinvested dividends are a form of compounding: dividends buy more shares, which pay more dividends. Our guide on DRIP compounding shows how reinvesting changes long-term income, and the dividend snowball calculator lets you model it.

Taxes interrupt compounding

In a taxable account, interest and dividends are usually taxed each year, which reduces the amount left to compound. Tax-advantaged accounts such as IRAs and 401(k)s let earnings compound without yearly tax while they stay in the account. The difference can be meaningful over decades. Rules and limits change, so check current IRS guidance.

Where you encounter compounding

Compounding shows up in more places than investment accounts. High-yield savings accounts and CDs compound interest you earn. Retirement accounts compound investment growth. Student loans, car loans, mortgages and credit cards charge interest on balances, and unpaid interest can increase what you owe. Even salary growth compounds: a raise is usually a percentage of your current pay, so each raise builds on the last one. Our guide on pay raise percentages shows how that works. Recognizing compounding in each of these places helps you push it in your favor.

How to make compounding work for you

  1. Start early. Time is the most powerful input you control.
  2. Contribute regularly, even small amounts.
  3. Reinvest interest and dividends while saving.
  4. Keep costs low, since fees reduce the compounding rate.
  5. Use tax-advantaged accounts where they fit.
  6. Pay off high-interest debt, which compounds against you.

Common mistakes

  1. Comparing APRs instead of APYs on savings accounts.
  2. Ignoring fees because they look small.
  3. Waiting to start until you can invest a large amount.
  4. Forgetting inflation when judging long-term growth.
  5. Assuming a fixed return on investments that actually fluctuate.

Key takeaways

Compound interest earns interest on interest, so growth accelerates over time. At an illustrative 7%, $10,000 becomes $76,123 in 30 years, compared with $31,000 with simple interest. Rate, time and fees all have outsized effects. Use APY to compare savings products, and the rule of 72 calculator for quick doubling estimates.

Frequently asked questions

What is compound interest in simple terms?

It is interest earned on your original money plus the interest already added, so the balance grows faster over time.

How do I calculate compound interest?

Use Balance = P × (1 + r/n)^(n × t), where P is the starting amount, r the annual rate as a decimal, n compounding periods per year and t years.

Does daily compounding beat monthly?

At the same stated rate, slightly. But banks disclose APY, which already includes compounding, so compare APYs directly.

How long does it take money to double?

Divide 72 by the annual rate for an estimate. At 7% that is about 10.3 years; the exact figure is about 10.24 years.

Does compound interest apply to debt?

Yes. Unpaid interest on many loans and credit cards is added to the balance and charged interest itself, so balances can grow quickly.

Try the calculators

Related guides

Browse all guides →