Compound Interest Formula — Explained with Examples

Compound Interest Formula

Every compound interest calculation — from a savings account to a retirement plan — comes from one formula. Learn it once and you can check any bank’s numbers, compare accounts, and plan a savings goal without taking anyone’s word for it. The compound interest calculator above applies the same formula to your numbers, with monthly contributions and a year-by-year table.

The formula is A = P(1 + r/n)nt. A is the final amount, P is the starting principal, r is the annual rate as a decimal, n is how many times a year interest compounds, and t is the number of years. With regular contributions the calculator adds each deposit as it lands and compounds it from then on, which the basic formula alone does not cover.

Breaking Down the Formula

Each symbol in A = P(1 + r/n)nt has a plain meaning. P is what you start with. r is the annual interest rate written as a decimal, so 7% is 0.07. n is the compounding frequency: 1 for yearly, 4 for quarterly, 12 for monthly, 365 for daily. The term r/n is the rate applied at each compounding step, and nt is the total number of steps. The expression (1 + r/n) is the growth factor for one step, and raising it to nt repeats that growth for every step of the whole period.

The formula only describes a single lump sum growing untouched. Real saving usually includes regular deposits, and those are handled by adding each contribution to the balance as it arrives and letting it compound from that point — exactly what the calculator above does, period by period. There is a closed-form version for regular contributions, but the step-by-step method is easier to follow and gives the same answer.

The Parts, One by One

  • A — final amount. The balance at the end, principal plus all interest.
  • P — principal. The starting deposit, before any interest.
  • r — annual rate. As a decimal: 7% becomes 0.07.
  • n — compounding frequency. 1, 4, 12, or 365 times a year.
  • t — time. The number of years the money stays invested.
  • r/n — the step rate. The interest applied at each compounding step.
  • nt — total steps. How many times interest is added over the whole period.

Worked Example: Annual Compounding

Start with $10,000 at 7% a year, compounded annually, for 20 years, with no further deposits. Here P = 10,000, r = 0.07, n = 1, t = 20.

  1. Step rate: r/n = 0.07 ÷ 1 = 0.07.
  2. Total steps: nt = 1 × 20 = 20.
  3. Growth factor: (1 + 0.07)20 = 1.0720 = 3.8697.
  4. Final amount: A = 10,000 × 3.8697 = $38,697.

The interest earned is $38,697 − $10,000 = $28,697. The calculator confirms this: set the monthly contribution to zero and the future value is $38,697. The growth factor 3.8697 is the key number — it says the money multiplies by almost 3.87 times over twenty years at 7%.

Worked Example: Monthly Compounding with Contributions

Now the full default example: $10,000 at 7%, compounded annually, 20 years, plus $100 a month. The calculator works period by period: each year it multiplies the balance by 1.07 and adds $1,200 of contributions. After year one the balance is $10,000 × 1.07 + $1,200 = $11,900. After year two it is $11,900 × 1.07 + $1,200 = $13,933. Repeating that twenty times gives $87,891 — $34,000 contributed and $53,891 of interest.

CompoundingFinal amount (default example)Interest earned
Annual (n = 1)$87,891$53,891
Quarterly (n = 4)$91,602$57,602
Monthly (n = 12)$92,480$58,480
Daily (n = 365)$92,912$58,912

Monthly compounding beats annual by $4,589 on the same inputs, and daily adds only $432 more than monthly — the gains from compounding more often shrink quickly, so monthly is usually enough. The bigger lever is the rate itself: at 8% instead of 7%, the same $5,000 start with $200 a month reaches $47,687 in just 10 years, on $29,000 contributed.

The Effective Annual Rate

When compounding is more frequent than yearly, the true yearly return is higher than the stated rate. This is the effective annual rate: (1 + r/n)n − 1. At 7% compounded monthly, the effective rate is (1 + 0.07/12)12 − 1 = 7.23%. Banks quote the nominal rate, but the effective rate is what your money actually earns, so it is the fair number to compare between accounts with different compounding frequencies. The calculator above shows the effective annual rate for whatever frequency you choose.

A related shortcut is the Rule of 72: divide 72 by the rate to estimate the doubling time. At 7% money doubles in about 10.3 years; at 8% in 9 years. Combined with the formula, it lets you sanity-check any long-term projection in seconds. The U.S. Securities and Exchange Commission — Investor.gov offers a free compound interest calculator and plain-language guides to the same formula, which is a good second opinion on any result here.

Common Mistakes

Most wrong compound interest numbers come from the same short list of errors. Check yours against it before trusting the result.

  • Using the annual rate as the monthly rate. A 7% annual rate compounded monthly is 0.583% a month, not 7% a month.
  • Forgetting the contributions. Monthly deposits often add up to more than the starting balance over twenty years.
  • Mixing up compounding frequency. Monthly compounding beats annual compounding at the same rate — the gap is real money over decades.
  • Ignoring inflation. A balance that doubles in twenty years has not doubled your buying power if prices rose too.
  • Assuming a constant return. Real investments fall some years; a flat 7% is a planning assumption, not a promise.
  • Comparing simple and compound interest. Simple interest pays only on the original sum, so it always loses to compounding over time.

Related Tools

Related tools on this site: the main compound interest formula calculator for your own numbers, the salary calculator to check what a monthly contribution costs from your pay, the mortgage calculator to compare saving against borrowing, and the tax calculator to see the tax side of investment income.

Key Takeaways

If you remember nothing else from this page, remember these five points.

  • $10,000 at 7% for 20 years with $100 a month grows to $87,891 — $34,000 put in and $53,891 earned.
  • Without the monthly contributions, the same $10,000 reaches only $38,697.
  • Monthly compounding beats annual compounding by $4,589 on the default example.
  • Money doubles roughly every 10.3 years at 7% (Rule of 72).
  • Simple interest on the same inputs gives $48,000 — compounding adds $39,891.

Try It Yourself

  1. Enter your starting amount, rate, and years in the calculator above.
  2. Add your monthly contribution and watch the interest column overtake the deposits.
  3. Try the inflation field to see the value in today’s money.
  4. Compare monthly and annual compounding to see the difference frequency makes.

Quick Reminders

  • The rate is an assumption, not a promise — real returns vary year to year.
  • Taxes and fees are excluded from the result and reduce it in real life.
  • Starting ten years earlier usually beats saving twice as much later.
  • Never skip an employer retirement match — it is free money before compounding starts.

Change one input at a time in the calculator and watch how the future value moves — the rate and the years matter far more than small changes to the starting amount.

What Different Monthly Contributions Give You

The formula works the same whatever you deposit — only the numbers change. The table uses the default example ($10,000 at 7%, compounded annually, 20 years) and varies the monthly contribution.

Monthly contributionTotal you put inFinal balanceInterest earned
$0$10,000$38,697$28,697
$50$22,000$63,294$41,294
$100$34,000$87,891$53,891
$200$58,000$137,086$79,086
$500$130,000$284,670$154,670

Doubling the contribution from $100 to $200 a month adds $49,195 to the final balance, while the first $100 a month added $49,194 over contributing nothing — each extra dollar compounds the same way.

Year-by-Year Growth on the Default Example

Working the formula year by year shows the same result the calculator gives. Each year the balance is multiplied by 1.07 and $1,200 of contributions is added.

YearBalanceYou put inInterest earned so far
0$10,000$10,000$0
1$11,900$11,200$700
5$20,926$16,000$4,926
10$36,251$22,000$14,251
15$57,745$28,000$29,745
20$87,891$34,000$53,891

By year 10 the interest earned so far is $14,251, and by year 20 it is $53,891 — more than one and a half times the $34,000 you put in.

Frequently Asked Questions

What is the compound interest formula?

A = P(1 + r/n)^nt. A is the final amount, P is the starting principal, r is the annual rate as a decimal, n is the number of compounding periods per year, and t is the number of years. With regular contributions, each deposit is added as it arrives and compounded from then on.

How do I calculate compound interest with monthly contributions?

Work period by period: each month, multiply the balance by (1 + annual rate ÷ 12) and add the monthly contribution. Repeat for every month. The calculator above does this automatically and shows a year-by-year table of the balance and the interest earned so far.

What is the difference between nominal and effective rate?

The nominal rate is the stated annual rate; the effective annual rate is what you actually earn once compounding frequency is counted. At 7% compounded monthly, the effective rate is 7.23%. Always compare accounts by effective rate when compounding frequencies differ.

How do you calculate compound interest for 20 years?

Use A = P(1 + r/n)^nt with t = 20. For $10,000 at 7% compounded annually: A = 10,000 × 1.07^20 = $38,697. Adding $100 a month brings the total to $87,891, because the contributions compound too.

Why does compounding frequency matter?

Interest that is added monthly starts earning its own interest a month later, while interest added yearly waits a full year. On the default example, monthly compounding gives $92,480 after 20 years against $87,891 for annual compounding — $4,589 more for the same rate and deposits.

What is nt in the compound interest formula?

nt is the total number of compounding periods: n (periods per year) times t (years). With monthly compounding for 20 years, nt = 12 × 20 = 240 — the balance is updated 240 times.

What does the n mean in the compound interest formula?

The letter n is the number of times interest compounds each year: 1 for annual, 4 for quarterly, 12 for monthly, and 365 for daily. A higher n means interest starts earning interest sooner, so the final amount is slightly larger.

How do I calculate compound interest by hand?

Use A = P(1 + r/n)^nt. For $1,000 at 5% compounded annually for 10 years: A = 1,000 × 1.05^10 = $1,628.89. With monthly contributions, work period by period or use the calculator above.

Disclaimer: This calculator gives estimates only and is not financial advice. It assumes a constant rate and ignores taxes, fees, and market ups and downs — real investment returns vary year to year.