letx=

Finance maths

Compound interest

What an amount grows to when interest is added n times a year and then earns interest itself.

A=P(1+rn)nt
Interest earnedI=A−P
Time to reach At=ln⁡(A/P)nln⁡(1+r/n)

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

See it move

02468101214161820200040006000800010000120001400016000
  • After 20 years: simple interest 11,000.00 (dashed), yearly compounding 16,035.68 (steps), continuous 16,600.58 (smooth curve).
  • Compound growth doubles the money roughly every 11.9 years.

What the symbols mean

A
the final amount (principal plus interest)
P
the principal: the starting amount
r
the nominal annual interest rate as a decimal (6% = 0.06)
n
the number of times interest is added per year (1 yearly, 4 quarterly, 12 monthly, 365 daily)
t
the time in years (years)

When to use it

Use it for savings accounts, deposits and debts where interest is added to the balance each period. Solving for t answers "how long until it doubles?", and solving for r gives the rate needed to reach a target. The calculator does not solve for n: it is a whole number of periods chosen by the bank, and solving for it rarely gives a whole number.

Worked example

5,000 is saved at 6% a year, compounded monthly (n = 12), for 5 years. What is it worth?

  1. Start from the formula.

    A=P·(1+rn)n⁢t
  2. Substitute P = 5,000.00, r = 0.06, n = 12, t = 5 and work it out.

    A=5,000.00·(1+0.0612)12·5
    =5,000.00·(1+0.005)60
    =5,000.00·1.00560
    ≈6,744.25
  3. Interest earned:

    I=A−P
    ≈6,744.25−5,000.00
    ≈1,744.25

Answer A ≈ 6,744.25, so the interest earned is 1,744.25

Why it works

Each period the balance is multiplied by 1+r/n (the balance plus that period's share of the annual rate). There are nt periods in t years, so the starting amount is multiplied by (1+r/n) that many times.

Common mistakes

  • Dividing t by n instead of multiplying: the exponent is nt, the total number of periods.
  • Using the annual rate as the periodic rate: monthly compounding at 6% uses 0.06/12=0.005 per month.
  • Rounding (1+r/n) before raising it to a large power; keep full precision until the end.
  • Adding interest to A twice: A already includes the principal.