CalcMaven
How to Calculate

How to Calculate Compound Interest (With Examples)

By Alex B.|Updated November 20, 2025|8 min read

For informational purposes only, not financial advice. Full disclaimer

Compound interest is the reason $10,000 invested at 7% becomes $19,672 in 10 years, $38,697 in 20 years, and $76,123 in 30 years — without adding a single dollar. Calculating it by hand takes just one formula. Understanding that formula gives you the power to project any investment or savings scenario with precision.

This guide walks through the compound interest formula step by step, with worked examples for lump sums, monthly contributions, and different compounding frequencies. By the end, you will be able to calculate compound interest on the back of a napkin or verify what any financial tool tells you.

Skip the Math

Want answers instantly? Our compound interest calculator handles all the formulas below with customizable rates, contributions, and compounding frequencies.

Try the Compound Interest Calculator

When I was modeling returns for a mobile app investment that eventually reached nine-figure annual revenue, compound interest projections were the first thing I ran. The difference between monthly and annual compounding on that scale was not trivial; it changed the entire deal structure.

Alex B.

The Compound Interest Formula

A = P × (1 + r/n)^(n×t)

Where: A = final amount (principal + interest earned), P = principal (initial investment), r = annual interest rate as a decimal (7% = 0.07), n = number of times interest compounds per year (12 for monthly, 4 for quarterly, 1 for annually), t = number of years.

Step-by-Step: Basic Compound Interest

Example Calculation

You deposit $10,000 in an account earning 7% annually, compounded monthly, for 10 years.

  1. Identify variables: P = $10,000, r = 0.07, n = 12, t = 10
  2. Plug into formula: A = $10,000 × (1 + 0.07/12)^(12×10)
  3. Calculate the rate per period: 0.07/12 = 0.005833
  4. Calculate the exponent: 12 × 10 = 120
  5. Calculate (1.005833)^120 = 2.0097
  6. Final result: A = $10,000 × 2.0097 = $20,097

After 10 years, your $10,000 grows to $20,097. You earned $10,097 in compound interest — more than doubling your money without any additional deposits.

Adding Monthly Contributions

Most people do not just invest a lump sum and walk away. They add money monthly. The formula for compound interest with regular contributions has two parts: the growth of the initial lump sum plus the growth of the contribution stream.

A = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) - 1) / (r/n)]

Where PMT is the regular contribution amount per compounding period. For monthly contributions with monthly compounding, PMT equals your monthly deposit amount.

Example Calculation

You invest $5,000 upfront and add $300/month at 8% annual return, compounded monthly, for 20 years.

  1. Lump sum growth: $5,000 × (1 + 0.08/12)^(12×20) = $5,000 × 4.9268 = $24,634
  2. Monthly rate: 0.08/12 = 0.006667
  3. Contribution growth: $300 × [((1.006667)^240 - 1) / 0.006667]
  4. Inner calculation: (4.9268 - 1) / 0.006667 = 589.02
  5. Contribution growth: $300 × 589.02 = $176,706
  6. Total: $24,634 + $176,706 = $201,340

Your total portfolio reaches $201,340. You contributed $5,000 + ($300 × 240) = $77,000 of your own money. Compound interest added $124,340 — 61% of the total came from interest, not your contributions.

How Compounding Frequency Changes Results

The same nominal interest rate produces slightly different results depending on how often interest compounds. On $10,000 at 6% for 10 years: annual compounding yields $17,908, quarterly gives $18,140, monthly produces $18,194, and daily delivers $18,221. The jump from annual to monthly is meaningful ($286); from monthly to daily is minimal ($27).

When comparing financial products, look at the APY (Annual Percentage Yield), not the APR (Annual Percentage Rate). APY already accounts for compounding frequency, so a 5.95% APR compounded daily produces the same result as a 6.12% APY compounded annually. APY is the apples-to-apples comparison metric.

Compound Interest vs. Simple Interest

Simple interest is calculated only on the original principal: Interest = P × r × t. On $10,000 at 7% for 10 years, simple interest earns exactly $7,000 ($700 per year). Compound interest on the same amount earns $10,097 with monthly compounding — $3,097 more. That gap accelerates with time: after 30 years, simple interest totals $21,000 while compound interest reaches $81,165.

The "interest on interest" effect is tiny in year one but becomes the dominant force over long periods. In the first year, compound interest on $10,000 at 7% monthly produces $723 versus $700 for simple interest — just $23 more. By year 20, compound interest is generating $2,654 that year alone versus a constant $700 for simple interest. By year 30, one year's compound interest earnings exceed the entire decade's simple interest earnings.

Real-World Applications

401(k) Retirement Savings

A 25-year-old contributing $500/month to a 401(k) earning 8% average returns reaches $1,745,504 by age 65. The total contributed: $240,000. Interest earned: $1,505,504. If the same person waits until age 35 to start, the balance at 65 drops to $745,180 — less than half — despite contributing $180,000 of their own money. The 10-year delay costs roughly $1 million in compound growth.

High-Yield Savings Accounts

A $20,000 emergency fund in a high-yield savings account at 4.5% APY, compounded daily, earns about $920 in the first year. If you leave those earnings in the account, year two earns $962. Over 5 years without any additional deposits, the account grows to $24,953 — nearly $5,000 in interest from a savings account. Not life-changing, but a meaningful return for money you need to keep safe and accessible.

Credit Card Debt

Compound interest works against you on debt. A $5,000 credit card balance at 22% APR, compounded daily, accrues $1,100 in interest per year — and that is if you pay it off within 12 months. Making only minimum payments, the total interest paid over the life of the debt exceeds the original balance. Always calculate the true cost of debt using the same compound interest formula.

Quick Estimation: The Rule of 72

For quick mental calculations, divide 72 by the interest rate to estimate doubling time. At 6%: 72/6 = 12 years to double. At 8%: 72/8 = 9 years. At 12%: 72/12 = 6 years. This is accurate within 1-2% for rates between 4% and 12%. For precise calculations, always use the full formula or a calculator.

Common Mistakes to Avoid

  • Confusing APR with APY — APR is the nominal rate; APY includes compounding. A 5.9% APR compounded monthly has an APY of 6.06%.
  • Ignoring inflation — a 7% nominal return with 3% inflation is only about 4% in real purchasing power.
  • Forgetting fees — a 1% annual management fee on investments significantly reduces compound growth. On $500/month over 40 years at 8%, a 1% fee costs you $568,000 in lost growth.
  • Using the wrong compounding frequency — always check whether your account compounds daily, monthly, or annually before calculating.
The Three Levers of Compound Interest

You control three variables: the amount you invest, the rate of return, and time. Of these three, time is the most powerful and the only one you cannot buy back. Start now with whatever amount you can.

Frequently Asked Questions

How do I calculate compound interest manually?+
Use the formula A = P × (1 + r/n)^(n×t). P is your starting amount, r is the annual rate as a decimal, n is compounding frequency per year, and t is years. For $10,000 at 5% compounded monthly for 10 years: A = $10,000 × (1 + 0.05/12)^(120) = $16,470.
What is the difference between APR and APY?+
APR (Annual Percentage Rate) is the simple interest rate without compounding. APY (Annual Percentage Yield) includes the effect of compounding. A 5% APR compounded monthly has an APY of 5.12%. APY is always equal to or higher than APR. Use APY to compare savings accounts and APR to compare loans.
How much will $10,000 grow in 20 years?+
It depends on the interest rate and compounding frequency. At 5% monthly compounding: $27,126. At 7%: $40,387. At 10%: $73,281. With additional monthly contributions, the numbers grow much larger. Use a compound interest calculator for your specific scenario.
Does compound interest apply to stocks?+
Stocks do not pay compound interest in the traditional sense. However, the same principle applies when you reinvest dividends and your gains earn additional returns. This is why stock market returns over long periods follow an exponential growth curve similar to compound interest.

Related Calculators

Disclaimer: This article is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor for decisions about your specific situation.

How to Calculate Compound Interest | CalcMaven