Skip to content
Tutorials Center
My learning

Topics

Lesson 22 of 86 · Profit, Loss and Interest

Compound Interest

Learn the compound interest formula, half-yearly and quarterly compounding, CI versus SI, depreciation and growth, with a runnable compounding table.

With simple interest the interest is always a percent of the original sum. With compound interest (CI), the interest earned in one period is added to the principal, so the next period's interest is calculated on a larger amount. Money grows by a multiplier each period, not by a fixed amount, and that is why savings, loans, populations and even the value of a machine can be described by the same formula.

In this lesson you will learn the formula, how to adjust it for half-yearly and quarterly compounding, the shortcut for the difference between CI and SI, how to model depreciation and growth, and why doubling times behave as they do. A script prints compounding tables so you can see the pattern for yourself.

The formula

If a principal P is invested at r percent per year, compounded annually, for n years:

A = P × (1 + r ÷ 100)ⁿ and CI = A − P

Each year multiplies the amount by (1 + r ÷ 100), the growth factor.

Example 1. 10,000 at 10% for 3 years: the factor is 1.1, and 1.1³ = 1.331. So A = 10,000 × 1.331 = 13,310 and CI = 3,310. Simple interest on the same sum would be 3,000, so compounding earned 310 more.

flowchart LR
    Y0["Year 0<br/>10,000"] -->|"x 1.1"| Y1["Year 1<br/>11,000"]
    Y1 -->|"x 1.1"| Y2["Year 2<br/>12,100"]
    Y2 -->|"x 1.1"| Y3["Year 3<br/>13,310"]

Each year multiplies the previous amount by the same growth factor.

Learn a few powers so you do not multiply from scratch: 1.1² = 1.21, 1.1³ = 1.331, 1.05² = 1.1025, 1.05³ = 1.157625, 1.2² = 1.44, 1.2³ = 1.728.

Compounding more often than once a year

If interest is compounded half-yearly, the rate per period is r ÷ 2 and the number of periods is 2n. For quarterly compounding, the rate per period is r ÷ 4 and the number of periods is 4n. In general:

A = P × (1 + r ÷ (100 × k))^(k × n), where k is the number of compounding periods per year.

Example 2. 8,000 at 10% a year for 1½ years, compounded half-yearly: the rate per half-year is 5% and there are 3 periods. A = 8,000 × 1.05³ = 8,000 × 1.157625 = 9,261.

Example 3. 16,000 at 20% a year for 9 months, compounded quarterly: 5% per quarter and 3 quarters, so A = 16,000 × 1.157625 = 18,522.

Compounding more often gives slightly more. At 10% a year, annual compounding gives a factor of 1.10 per year, but half-yearly gives 1.05² = 1.1025, which is the same as an annual rate of 10.25%. That annual equivalent is the effective rate.

CI versus SI

For one year, CI and SI are the same. After that they diverge. Over two years:

  • SI = P × 2r ÷ 100
  • CI = P × (2r ÷ 100 + r² ÷ 10,000)
  • CI − SI (two years) = P × (r ÷ 100)²

The extra equals "interest on the first year's interest". For three years:

  • CI − SI (three years) = P × r² × (300 + r) ÷ 1,000,000

Example 4. The difference between CI and SI on a sum for 2 years at 5% is 245. Then P × (0.05)² = 245, so P = 245 ÷ 0.0025 = 98,000.

Example 5. A sum of 10,000 at 10% for 3 years. The difference is 10,000 × 100 × 310 ÷ 1,000,000 = 310, matching Example 1.

Depreciation and growth

The same formula works with a negative rate for things that lose value, and with a positive rate for things that grow, such as populations.

  • Depreciation: value after n years = V × (1 − d ÷ 100)ⁿ.
  • Growth: quantity after n years = Q × (1 + g ÷ 100)ⁿ.

Example 6. A machine worth 50,000 depreciates 10% a year. After 2 years it is worth 50,000 × 0.9² = 50,000 × 0.81 = 40,500.

Example 7. A town of 2,00,000 people grows 5% a year. After 2 years the population is 2,00,000 × 1.1025 = 2,20,500.

When the growth rate changes from year to year, multiply the separate factors. If a population grows 10% in the first year and 20% in the second, the factor is 1.1 × 1.2 = 1.32, so a total increase of 32%.

Doubling times

How long does money take to double? Solve (1 + r ÷ 100)ⁿ = 2. The exact answer needs logarithms, but the rule of 72 gives a close estimate: years to double ≈ 72 ÷ r. At 12%, that is about 6 years; the exact value is about 6.12 years.

Aptitude questions use a neater idea: if a sum doubles in t years, it becomes 4 times in 2t years, 8 times in 3t years and 16 times in 4t years, because each block of t years multiplies by 2. So a sum that becomes 8 times in 12 years doubles every 4 years and becomes 16 times in 16 years.

Try it: a compounding table

This script prints the year-by-year amount for annual compounding, then compares annual, half-yearly and quarterly compounding, and checks CI − SI.

JS Compounding table

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Try it: depreciation, growth and doubling

This script models falling and rising values, then compares the rule of 72 with the exact doubling time.

JS Depreciation and doubling

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Common mistakes

  • Using n for the number of years when the compounding is half-yearly. The exponent must be the number of periods and the rate must be the rate per period.
  • Reporting the amount when the question asks for the interest. CI = A − P.
  • Applying the CI − SI shortcut to an answer that is not the difference.
  • Forgetting that a falling quantity uses (1 − d ÷ 100), not (1 + d ÷ 100).

Check your understanding

Quick check · 5 questions

of 5 answered You scored / 5 · perfect!

  1. 1. What is the compound interest on 5,000 at 20% per year for 2 years, compounded annually?

    A = 5000 x 1.44 = 7200, so CI = 7200 - 5000 = 2200. Simple interest would be 2000.
  2. 2. What is 12,000 worth after 1 year at 10% per year compounded half-yearly?

    Rate per half-year is 5% for 2 periods: 12000 x 1.1025 = 13230.
  3. 3. The difference between CI and SI on a sum at 10% per year for 2 years is 150. What is the sum?

    CI - SI = P x (r/100)^2 = P x 0.01, so P = 150 / 0.01 = 15,000.
  4. 4. A car bought for 4,00,000 loses 10% of its value each year. What is it worth after 2 years?

    400000 x 0.9 x 0.9 = 324000.
  5. 5. A sum doubles in 5 years at compound interest. After how many years will it become 8 times itself?

    8 = 2 x 2 x 2, so it needs three doubling periods: 3 x 5 = 15 years.

Summary

  • A = P × (1 + r/100)ⁿ and CI = A − P; the amount grows by a constant factor each period.
  • For half-yearly or quarterly compounding, divide the rate by 2 or 4 and multiply the periods by 2 or 4.
  • CI − SI over 2 years is P × (r/100)²; over 3 years it is P × r² × (300 + r) ÷ 1,000,000.
  • Depreciation uses (1 − d/100)ⁿ; growth with changing rates multiplies separate factors.
  • If a sum doubles in t years, it multiplies by 2 every t years.

Next: Speed, Distance and Time, the start of the motion chapter.