Skip to main content
← All articles··9 min read

How to Calculate Compound Interest: Formula, Examples & Calculator

Learn exactly how to calculate compound interest using the formula, with worked examples comparing daily, monthly, and yearly compounding. Includes a free calculator.

FT
FinancialTools Team

Key Takeaways

  • Compound interest is calculated using the formula: A = P(1 + r/n)^(nt)
  • Daily compounding earns slightly more than monthly or yearly compounding
  • The difference between 5% and 7% annual return over 30 years is roughly 2× your money
  • Starting earlier matters more than earning higher returns — even by 5 years
  • Tax-advantaged accounts (Roth IRA, 401k) let compound interest work without annual tax drag

Compound interest is the single most powerful force in personal finance. Albert Einstein allegedly called it the "eighth wonder of the world." Whether or not he said that, the math behind it genuinely is remarkable — and understanding it will change how you think about saving and investing.

In this guide you'll learn the exact formula, see it worked through real examples, understand how to calculate compound interest yourself, and learn why small differences in rate or compounding frequency matter enormously over time.

Try our free Compound Interest Calculator →

What Is Compound Interest?

Simple interest pays you a percentage of your original principal every period. If you deposit $1,000 at 5% simple interest, you earn $50 per year — always $50, because the interest doesn't accumulate.

Compound interest is different: you earn interest on your principal and on all previously accumulated interest. That $50 in year 1 becomes part of the base for year 2, so you earn $52.50. Then $55.13. The growth accelerates exponentially over time.

The Compound Interest Formula

The standard compound interest formula is:

A = P(1 + r/n)^(nt)
  • A = Final amount (principal + interest)
  • P = Principal (starting amount)
  • r = Annual interest rate (as a decimal — so 5% = 0.05)
  • n = Number of times interest compounds per year
  • t = Time in years

To find just the interest earned, subtract the principal: Interest = A − P

Worked Example: $10,000 at 7% for 20 Years

Let's say you invest $10,000 at a 7% annual return, compounded annually, for 20 years.

A = 10,000 × (1 + 0.07/1)^(1×20)
A = 10,000 × (1.07)^20
A = 10,000 × 3.8697
A = $38,697

Your $10,000 grew to nearly $39,000 — $28,697 in interest — without adding another dollar. That's compound interest at work.

Daily vs Monthly vs Yearly Compounding: Does It Matter?

It matters, though less than you might expect between daily and monthly. Here's the same $10,000 at 5% for 10 years under different compounding frequencies:

Compoundingn valueFinal AmountInterest Earned
Yearly1$16,288.95$6,288.95
Quarterly4$16,436.19$6,436.19
Monthly12$16,470.09$6,470.09
Daily365$16,486.65$6,486.65
Continuous$16,487.21$6,487.21

The difference between monthly and daily compounding over 10 years at 5%? About $16. Not zero, but not transformative either. The big win from daily compounding comes at higher rates and longer time horizons. High-yield savings accounts typically compound daily — a genuine benefit, but the rate matters far more than the frequency.

The Real Power: Time and Rate

Nothing illustrates compound interest better than comparing what happens when you change just one variable. Here's $10,000 left alone for various time horizons at 7%:

YearsFinal AmountTotal Growth
5$14,02640%
10$19,67297%
20$38,697287%
30$76,123661%
40$149,7451,397%

Notice how the growth isn't linear — it accelerates. Going from year 30 to year 40 adds nearly $74,000, more than the entire first 30 years combined.

The Rule of 72: Quick Mental Math

The Rule of 72 lets you estimate how long it takes to double your money: divide 72 by your annual interest rate.

  • At 6%: 72 ÷ 6 = 12 years to double
  • At 8%: 72 ÷ 8 = 9 years to double
  • At 12%: 72 ÷ 12 = 6 years to double

This also explains why inflation is so damaging. At 3% inflation, your purchasing power halves in just 24 years.

Compound Interest With Regular Contributions

The formula above handles a lump sum. But most people invest monthly — 401k contributions, automatic transfers to a brokerage. For recurring contributions, the formula becomes:

FV = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) − 1) / (r/n)]
  • PMT = Regular contribution per period

This is complex to calculate by hand, which is why a compound interest calculator is so valuable. Let's see what happens if you invest $500/month at 7% for 30 years:

  • Total contributions: $180,000
  • Final value: $566,764
  • Interest earned: $386,764 — more than double what you put in

Why High-Yield Savings Accounts Beat Checking Accounts

Your checking account might pay 0.01% APY. A high-yield savings account in 2026 pays roughly 4–5%. On $20,000:

  • Checking (0.01%): $2 per year
  • HYSA (4.5%): $900 per year

That's $900 of compound interest working for you instead of $2. Over 5 years at 4.5%, that $20,000 becomes $24,866. Use our Savings Rate Calculator to see how your current savings rate stacks up.

Compound Interest in Debt: The Other Side

Compound interest works against you when you're in debt. Credit card APRs of 24% mean your balance compounds devastatingly fast. A $5,000 balance at 24% APR with minimum payments ($100/month) takes over 8 years to pay off and costs $4,300+ in interest.

This is why high-interest debt elimination is mathematically equivalent to earning that interest rate risk-free — paying off a 20% credit card "earns" you 20%.

How to Use the Compound Interest Formula in Excel/Sheets

In Excel or Google Sheets, use the FV() function:

=FV(rate/n, n*years, -monthly_payment, -principal)

Example: =FV(0.07/12, 12*30, -500, -0) → $566,764

Common Compound Interest Mistakes

Confusing APR and APY: APR is the nominal rate; APY includes compounding. A savings account at 4.5% APR compounds to a 4.59% APY daily. Always compare APYs.

Ignoring fees: A 1% expense ratio on a mutual fund costs you more over 30 years than you'd guess. That 1% fee reduces a $500,000 portfolio to about $380,000 compared to a 0.05% index fund — a $120,000 drag from fees alone.

Waiting to start: A 25-year-old who invests $5,000/year for 10 years and stops ends up with more at 65 than a 35-year-old who invests $5,000/year for 30 years straight. The 10-year head start matters that much.

Putting It Into Practice

The compound interest formula is elegant, but the real insight is behavioral: time is your most valuable asset, not rate of return. A few practical takeaways:

  1. Start now, not "when you have more money." Even $50/month compounds into something meaningful over decades.
  2. Maximize tax-advantaged accounts first. A Roth IRA removes the annual tax drag on compound growth.
  3. Attack high-interest debt aggressively. You can't compound your way out of a 22% credit card.
  4. Reinvest dividends automatically. DRIP (dividend reinvestment) is compounding in action.

Calculate your compound interest growth →

See how your savings rate compares →

Frequently Asked Questions

How do I calculate compound interest manually?

Use the formula A = P(1 + r/n)^(nt). Plug in your principal (P), annual rate as a decimal (r), compounding frequency per year (n), and time in years (t). Multiply to find the final amount A. Subtract P to get just the interest earned.

What's the difference between compound interest and simple interest?

Simple interest is calculated only on the principal. Compound interest is calculated on the principal plus all previously accumulated interest. Over long periods, compound interest produces dramatically higher returns — and costs more in debt scenarios.

How often does compound interest compound?

It depends on the account or investment. Savings accounts typically compound daily. Bonds often pay semi-annually. Index funds effectively compound continuously as prices fluctuate. The more frequently it compounds, the slightly higher the effective yield (APY vs APR).

What is the compound interest formula for monthly contributions?

For regular monthly contributions, use: FV = PMT × [((1 + r/12)^(12t) − 1) / (r/12)]. Add P(1 + r/12)^(12t) if you also have a starting lump sum. Our compound interest calculator handles this automatically.

How long does it take to double money with compound interest?

Use the Rule of 72: divide 72 by your annual interest rate. At 6%, your money doubles in 12 years. At 9%, in 8 years. At 3% (roughly inflation), purchasing power halves in 24 years.

Get new guides in your inbox

No spam. One email when we publish something worth reading.