The Claude Quant PlaybookDownload ebookDownload ebook

Compound growth

With compounding, each year's return is earned on the whole balance, including past returns. The balance grows by the same factor each year, so it curves upward instead of rising in a straight line.

Build a trading system with Claude.Download ebook

01The formula

the future value after n years
the amount you start with
the return per year as a decimal
the number of years

02See it move

03Where it is used

04Why traders use it

Over long horizons, compounding dominates everything else in investing. Small differences in annual return or fees become large differences in final wealth.

05Worked example

$10,000 growing at 7.0% a year for 20 years becomes $38,697, a multiple of 3.87×. Simple interest would give only $24,000: the extra $14,697 is interest earned on interest.

06How it is built

  1. After one year the balance is .
  2. The second year's return is earned on that whole balance: .
  3. Repeat for years: .
  4. Simple interest pays each year on the original amount only, giving ; the gap between the two grows with .

07The common mistake

Averaging returns instead of compounding them. +50% followed by −50% has an average of 0%, but $100 becomes $150 and then $75: you lost a quarter.

08In Python and LaTeX

P, r, n = 10000, 0.07, 20
fv = P * (1 + r) ** n
print(round(fv), round(P * (1 + r * n)))  # 38697 24000
FV = P\,(1 + r)^n \qquad \text{versus simple interest: } P\,(1 + r\,n)

09Where it fits

Rather not code the maths yourself? Describe your trading idea and let AI build the bot.

Build a bot with AgenKit

The worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.