The Claude Quant PlaybookDownload ebookDownload ebook

Continuous compounding

Compounding more often adds a little more each time, but the gain levels off. In the limit of compounding every instant, growth becomes .

Build a trading system with Claude.Download ebook

01The formula

the annual rate as a decimal
how many times a year interest is added
the number of years
Euler's number, about 2.71828

02See it move

03Where it is used

04Why traders use it

The exponential is the natural language of growth: rates add, logs turn products into sums, and derivatives are simple. Most pricing models assume continuous compounding.

05Worked example

$100 at 8.0% for 10 years grows to $215.89 with yearly compounding, $221.96 when compounded 12 times a year, and $222.55 with continuous compounding. A continuous rate of 8.0% is the same as an annual rate of 8.329%.

06How it is built

  1. Compounding times a year at rate adds each period, so one year multiplies money by .
  2. Take logs: . For large , , so the log tends to .
  3. So one year multiplies money by , and years by .
  4. The equivalent annual rate is , a little more than .

07The common mistake

Mixing rate conventions. A 5% continuous rate is not the same as a 5% annual rate; convert with before comparing.

08In Python and LaTeX

import numpy as np
r, m, T = 0.08, 12, 10
print(round(100 * np.exp(r * T), 2), round(100 * (1 + r / m) ** (m * T), 2), round(100 * (1 + r) ** T, 2))  # 222.55 221.96 215.89
\lim_{m \to \infty} \Big(1 + \frac{r}{m}\Big)^{mT} = e^{rT}

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.