Compound interest formula A = P(1 + r/n)^(nt) explained with examples

Compound Interest Formula Explained (With Examples)

Compound interest is, in the words of the U.S. SEC’s investor education site, interest paid on principal and on accumulated interest. Your money earns interest, and then that interest starts earning interest too. Over a few years the difference is small; over a few decades it is most of the result.

This guide shows the formula, a few worked examples you can check yourself, and the habits that help or hurt compounding. Every number below is plain arithmetic, so you can reproduce it in our free compound interest calculator.

Want the answer without the maths? Use our free Compound Interest Calculator.

What is compound interest?

Compound Interest Calculator

With simple interest you earn interest only on the money you put in. With compound interest the interest is added to the balance, so the next period’s interest is worked out on a bigger amount. Investor.gov’s example: $100 at 5% a year becomes $105 after one year and $110.25 after two, because in the second year you also earn interest on the first $5.

Worked example: $10,000 at 7% a year for 30 years.

  • Simple interest: $10,000 + ($10,000 × 0.07 × 30) = $31,000
  • Compounded once a year: $10,000 × 1.0730 ≈ $76,123, about 2.5 times the simple-interest result

The maths behind compounding

The compound interest formula

A = P(1 + r/n)nt

  • A = amount at the end
  • P = principal (what you start with)
  • r = annual interest rate as a decimal (6% = 0.06)
  • n = number of times interest is compounded each year
  • t = time in years

Example: $5,000 at 6% compounded monthly for 20 years: A = 5,000 × (1 + 0.06/12)240 ≈ $16,551.

The Rule of 72

Investor.gov describes the Rule of 72 as a quick way to estimate how long an investment takes to double: divide 72 by the annual interest rate.

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

It is an approximation; the calculator gives the exact figure.

Why starting early matters

Monthly saving at the same rate gives very different results depending on how many years the money has to grow. These figures assume $300 a month, a steady 7% a year compounded monthly, and no withdrawals; real investment returns go up and down.

Start ageMonthly savingValue at 65 (7% a year)
25$300≈ $787,000
35$300≈ $366,000
45$300≈ $156,000

Starting ten years earlier roughly doubles the result here, even though the extra money put in is only $36,000. Use our age calculator to count the years you have.

How to calculate compound interest

Using our free compound interest calculator

Compound Interest Calculator
Our Tool
  1. Enter the starting amount (for example $1,000).
  2. Add a monthly contribution (for example $100).
  3. Set the interest rate (for example 6%), the compounding frequency and the number of years (for example 30).

Example output: $1,000 plus $100 a month at 6% compounded monthly for 30 years comes to about $106,000, of which $37,000 is money you put in. The U.S. SEC also has a compound interest calculator if you want a second check.

Manual calculation walkthrough

$2,000 at 5% compounded once a year for 3 years:

  • Year 1: $2,000 × 1.05 = $2,100
  • Year 2: $2,100 × 1.05 = $2,205
  • Year 3: $2,205 × 1.05 = $2,315.25

Habits that help compounding

  1. Start as early as you can. Time does more of the work than the amount, as the table above shows.
  2. Automate. A fixed monthly transfer on payday keeps you consistent.
  3. Reinvest earnings. Interest or dividends that are taken out stop compounding.
  4. Clear high-interest debt first. Debt compounds against you (see below).
  5. Check your numbers now and then with the compound interest calculator.

Things that reduce compounding

  • Inflation: your real gain is roughly the return minus inflation, so compare returns with current inflation.
  • Fees and taxes: a small yearly fee is taken from a growing balance, so it compounds too. Check the fee as a percentage with our percentage calculator.
  • Withdrawing early: money taken out early loses all the years of growth it would have had.

Compound interest on debt

Compounding works against you on unpaid balances. A $5,000 balance at 20% a year, compounded monthly, grows to about $6,097 after a year if nothing is paid. Paying only small amounts keeps the balance high for a long time. Use our EMI calculator to see how a fixed monthly payment clears a loan.

Worked example: fixed deposit vs SIP

Put ₹1,00,000 in a 5-year deposit at 7% a year, compounded quarterly, and it grows to about ₹1,41,478. That number is known on day one.

A mutual fund SIP of ₹1,667 a month for 5 years puts in about the same ₹1,00,000, but its result depends on the market, so any SIP figure in a calculator is an illustration, not a promise. SEBI’s investor education website explains how to compare the two, and the RBI website shows current policy rates that affect deposit rates. Try your own numbers in the compound interest calculator.

Frequently asked questions

Can compound interest make me a millionaire?

It can, given enough time and a high enough return. For example, $500 a month at a steady 8% a year, compounded monthly, grows to about $1.15 million in 35 years. Real returns vary from year to year, so treat any projection as an estimate.

How often should interest compound?

More frequent compounding gives a slightly higher result at the same rate. $10,000 at 7% for 30 years becomes about $76,123 compounded yearly and about $81,165 compounded monthly. The interest rate and the number of years matter far more than the frequency.

Is stock market compounding reliable?

No return is guaranteed. Market investments can fall as well as rise, so returns from shares or equity funds are uneven from year to year. Read the risk information on SEBI’s investor website before investing.

The short version

Start early, add a little regularly, leave the earnings in, and avoid high-interest debt. Then let time do the work. Run your own numbers in our compound interest calculator.

This article explains how the maths works and is not investment advice.

Sources

Checked on 19 November 2026:

Scroll to Top