Compound interest formula: how to work it out

By Oalgo · Last reviewed

The compound interest formula gives the amount A after t years, from a starting amount P, a yearly rate r and n compounding periods a year: A = P(1 + r/n)^(nt). To run your own numbers, use the compound interest calculator.

What does each part mean?

#
  • P is the starting amount, in whatever unit you use.
  • r is the yearly rate as a decimal, so 10 percent is 0.10.
  • n is the number of periods a year: 1 for yearly, 4 for quarterly, 12 for monthly.
  • t is the number of years, and A is the amount at the end.

What does a worked example look like?

#

Made-up numbers: P = 1,000, r = 0.10, n = 1 and t = 2. Then A = 1,000 × (1 + 0.10)^2 = 1,000 × 1.21 = 1,210. Interest in year 1 is 100. Interest in year 2 is 110, because it is worked out on the larger amount.

Stacked bars for years 0 to 3. Each bar has the starting 1,000 at the base and the interest added that year on top: 100, then 110, then 121. Totals: 1,000, 1,100, 1,210, 1,331.StartInterest added1,000Year 01001,100Year 11001101,210Year 21001101211,331Year 3
Made-up rate of 10 percent a year, for arithmetic only.

A second example: monthly periods

#

Using the same 1,000 at a yearly rate of 0.10, with n = 12 for one year, gives 1,000 × (1 + 0.10 ÷ 12)^12, which is about 1,104.71. The monthly version ends about 4.71 higher than the yearly one, because interest is added twelve times rather than once.

How does this differ from a simple rate?

#

A simple rate adds the same amount each year. Compounding adds interest to the amount already built up. The gap grows with the number of years, which is why the formula uses an exponent rather than a multiplier. The same growth, read as one steady rate, is covered by CAGR.

Check it the other way

#

1,000 at 10 percent for two years should reach 1,210. Adding the yearly steps gives 1,100 after one year and 1,210 after the second. If the formula and the steps disagree, the exponent is the usual cause, so check that t is in years and n is the number of periods a year.

What can the formula not tell you?

#

The formula assumes one rate for every period. It does not allow for a changing rate, for costs, or for an amount taken out along the way, and it does not show how steady the path was. For that, a drawdown figure or a test on past values is the better guide.

Oalgo is a different kind of tool. It tests rules on prices, not savings. Its path runs from your idea in your own words, to the rules its AI builds, to your check of them, to a backtest and a forward test on simulated funds, and then, if you choose, to Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next