Skip to content

How compound interest works

What is the compound interest formula and how do I use it?

The compound interest formula is A = P(1 + r/n)^(nt), where 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. You multiply the principal by the growth factor (1 + r/n) raised to the power nt, which gives the total including interest earned. The formula assumes a fixed rate and no withdrawals, fees or taxes, so treat its result as an illustration rather than a promise.

The formula

A = P(1 + r/n)^(nt)

Each term has a specific job:

  • A is the final amount, including the original principal and all interest earned.
  • P is the principal, the sum you start with.
  • r is the annual interest rate written as a decimal. Eight percent becomes 0.08.
  • n is the number of times interest is added to the balance each year. Yearly compounding uses 1, monthly uses 12, daily uses 365.
  • t is the number of years the money stays invested or borrowed.

The term (1 + r/n) is the growth factor for one compounding period. Raising it to the power nt applies that factor once for every period over the whole time span. That repeated multiplication is what makes the growth compound.

Step by step with a worked example

The numbers below are illustrative assumptions chosen for arithmetic. They are not a rate offered by any account or product. Assume an 8% annual rate, compounded monthly, over 5 years.

Example in US dollars

  1. Start with the principal: P = $10,000.
  2. Convert the rate to a decimal: r = 0.08.
  3. Divide the rate by the number of periods: 0.08 / 12 = 0.006667.
  4. Add 1 to get the growth factor: 1 + 0.006667 = 1.006667.
  5. Calculate the total number of periods: n × t = 12 × 5 = 60.
  6. Raise the growth factor to that power: 1.006667 to the 60th power is approximately 1.48985.
  7. Multiply by the principal: $10,000 × 1.48985 ≈ $14,898.

The interest earned is about $4,898. Most of the calculator work is in step six, which is why a scientific or financial calculator with an exponent key is useful.

Same example in Indian rupees

The maths does not change with currency. Only the starting figure does.

  1. Principal: P = ₹1,00,000.
  2. Rate: r = 0.08. Monthly rate: 0.006667. Growth factor: 1.006667.
  3. Periods: nt = 60.
  4. Growth factor to the 60th power: approximately 1.48985.
  5. Final amount: ₹1,00,000 × 1.48985 ≈ ₹1,48,985.

The interest earned is about ₹48,985. The growth multiplier is identical in both currencies, which is a useful check: if your two results give different multipliers, one of the inputs has changed.

Seeing the effect of compounding frequency

The same $10,000 at 8% for 5 years, compounded yearly, uses n = 1 and gives $10,000 × 1.08^5, which is approximately $14,693. Monthly compounding produced about $14,898, a difference of roughly $205 in this illustration. The gap widens with larger sums, higher rates and longer periods.

Common mistakes

  • Entering 8 instead of 0.08. Rates must be decimals in the formula.
  • Forgetting to divide r by n. Using the full annual rate inside the bracket overstates growth.
  • Mismatching n and t. If n is 12 (monthly), t must be in years, and nt gives the total number of monthly periods.
  • Multiplying r by n in the exponent. The exponent is nt, not rt.
  • Treating the output as guaranteed. The formula describes arithmetic under fixed assumptions. Real balances can differ.

Caveats and what the formula leaves out

The basic formula assumes a constant rate, a single deposit, no withdrawals, no fees, and no tax. Each of these can change the real outcome:

  • Regular deposits need a different formula. See the monthly contributions guide in this series.
  • Fees reduce the effective growth rate, and even small annual charges compound against you.
  • Taxes on interest or gains may reduce the amount you keep, depending on where you live and the account type.
  • Inflation reduces what the final amount can buy, so an after-inflation view is often more meaningful.

Rules on how interest is calculated and credited differ by product and jurisdiction. Check the terms of any account you use and the current official guidance from your local regulator or tax authority.

Related considerations

For a quick estimate without a calculator, the Rule of 72 approximates how long a sum takes to double. If you want to understand why compounding frequency matters, or how continuous compounding uses the number e, the related pages in this series go deeper. Different calculators can also produce slightly different answers because of conventions such as day counts and rounding, so it helps to know which formula a tool uses.

Frequently asked questions

Do I need to memorise the formula to use compound interest?

You do not need to memorise it, but understanding the four terms helps you spot errors quickly. Once you know that r must be a decimal, n counts periods per year and t counts years, most of the work is simple arithmetic. Many spreadsheets and calculators accept these inputs directly, so you can check your own working against the output.

What is the difference between the formula and an online calculator?

An online calculator uses the same formula behind a form, so the result should match if the inputs match. Differences usually come from settings such as whether contributions are added, when they are made, or how day counts are handled. Always confirm which assumptions the tool uses before comparing its output with another source.

Can the formula handle regular monthly deposits?

The basic formula handles a single lump sum only. Regular deposits require a separate calculation that sums the growth of each contribution across the time period. Using the single-sum formula on a stream of deposits will understate or overstate the result depending on how it is applied.

Educational content only — not investment, tax or legal advice. See our disclaimer.