LearnFinance
← Advanced Derivatives & Rate Models Lesson 1 of 6 · 15 min · +50 XP
Advanced Derivatives & Rate Models · Lesson 01

Itô calculus intuitively: from random walks to stochastic differential equations

Continuous-time finance is written in stochastic differential equations, and their rules differ from ordinary calculus in one crucial way: squared random moves don't vanish. What a Brownian path looks like up close, why its squared moves add up to exactly σ²T, how that produces Itô's lemma and the −σ²/2 term, and how the same idea leads to the Black-Scholes equation, worked step by step with a calculator; and how Wolfgang Doeblin's sealed envelope, sent to the French Academy of Sciences in February 1940 and opened in 2000, turned out to contain a version of Itô's formula.

Facts reviewed Oct 2026

Open any research paper on derivatives pricing, and you’ll meet lines like dS = μS dt + σS dW. These are stochastic differential equations (SDEs). The rules for handling them, Itô calculus, look scary.

The core idea is simple, though, and you can see it with a calculator. The geometric Brownian motion lesson in Quantitative Finance introduced the model. This lesson shows why its maths works the way it does.

Brownian motion up close

Split a year into n steps. In a random walk with annual volatility σ, each step is a random move with a standard deviation of σ × √(1/n). With σ = 20% and 250 daily steps, a typical daily move is about 1.26%.

Now look at two ways of adding up the moves over the year:

  • Total distance travelled, the sum of the absolute moves. Each step is small, but there are many: about 252% in total. Yet the stock typically ends the year only about 16% from where it started, 0.8 × 20%. Make the steps finer, say 25,000 per year, and the total distance becomes about 2,523%. As the steps shrink towards zero, the distance grows without limit. A Brownian path is so jagged that it has infinite length over any interval, and it has no slope (derivative) anywhere.
  • Sum of the squared moves. Each squared step is about σ² ÷ n, and there are n of them, so the total is σ² × T = 0.04, however finely you slice the year. This total is called the quadratic variation, and it’s not random in the limit: it’s fixed by the volatility.

This second fact is the whole of Itô calculus in one line. In ordinary calculus, a tiny change squared, (dx)², is negligible. For Brownian motion, (dW)² = dt. Squared moves are as large as the time step itself, so they can’t be ignored.

Worked example. Take the calculator’s defaults: σ = 20%, μ = 10%, one year, and 250 steps.

  1. One step: 20% × √(1 ÷ 250) ≈ 1.26%.
  2. Total distance: each step averages about 0.8 × 1.26% ≈ 1.01%, and there are 250 of them: about 252%.
  3. Sum of squared moves: 250 × 0.0126² ≈ 0.04, which is σ² × T = 0.2² × 1.
  4. Median growth rate: μ − σ²/2 = 10% − 2% = 8%.
Slicing a year of Brownian motion
Typical size of one step
1.26%
Expected total distance travelled
252.31%
Sum of squared moves (quadratic variation, σ²T)
0.04
Median growth rate, μ − σ²/2
8%
Total distance travelled (%)Sum of squared moves (× 100)

The total distance assumes normal steps, whose average absolute size is √(2/π) ≈ 0.8 of their standard deviation. Defaults: daily steps of about 1.26%, about 252% of total distance, a quadratic variation of 0.04 and a median growth rate of 8%. Raise the steps to 25,000 and the distance passes 2,500% while the squared moves still sum to 0.04.

Quick check

A stock has 32% annual volatility. If a year has 256 trading days, roughly how big is one day's typical move?

Itô’s lemma: the chain rule with an extra term

Suppose you know how a stock price S moves. You want to know how some function of it, f(S), moves, such as the log of the price, or an option’s value. Ordinary calculus uses a Taylor expansion, and keeps only the first-order term:

df = f′(S) dS

With random moves, the second-order term ½ f″(S) (dS)² survives, because (dS)² contains (dW)², which equals dt. For dS = μS dt + σS dW, (dS)² works out to σ²S² dt, and Itô’s lemma says:

df = f′(S) dS + ½ f″(S) σ² S² dt

The extra term is a convexity correction: if f is curved, randomness alone shifts its average.

Where −σ²/2 comes from

Apply this to f(S) = ln S. The first derivative is 1/S and the second is −1/S², so:

d(ln S) = (μ − σ²/2) dt + σ dW

The log of the price, which is what compounds, grows at μ − σ²/2, not μ. With μ = 10% and σ = 20%, the median growth rate is 8%; with σ = 40%, it’s only 2%. This is the volatility drag that The Maths of Money showed with a +10% then −10% example, now derived exactly. Because ln is a concave function, randomness pulls its average down: the same Jensen’s inequality effect that makes the mean price exceed the median.

From Itô to Black-Scholes

Apply Itô’s lemma to an option’s value V(S, t), and you get the option’s random change. It has a dW term multiplied by ∂V/∂S, the delta.

Now hold delta shares against the option, as the delta-hedging lesson in Option Pricing & Volatility did. The dW terms cancel exactly. The portfolio is riskless over the next instant, so it must earn the risk-free rate r. Writing that down gives the Black-Scholes partial differential equation:

∂V/∂t + r S ∂V/∂S + ½ σ² S² ∂²V/∂S² = r V

Three things to notice:

  • μ has disappeared. The expected return doesn’t affect the price because the hedge removes the risk it compensates. This is why option prices can be computed as if the stock grew at r, the risk-neutral world.
  • The ½σ²S² ∂²V/∂S² term is Itô’s extra term: gamma, multiplied by variance. It’s the same balance between gamma and theta that drives the delta hedger’s profit and loss.
  • The equation holds for any derivative on S; only the payoff at expiry, the boundary condition, changes. A call, a put, a digital and a barrier option all solve the same equation with different conditions.

Risk-neutral pricing and Monte Carlo

The same result can be written as an expectation. The price is the expected payoff, discounted at r, assuming the stock drifts at r rather than μ.

Mathematicians call the switch from the real-world drift to r a change of measure, from Girsanov’s theorem. The link between the PDE and the expectation is the Feynman-Kac formula. In practice, there are two routes to any price: solve the PDE, or simulate risk-neutral paths and average the discounted payoffs. The next lesson builds both.

A real case: the envelope in the archive, 1940–2000

  • Wolfgang Doeblin was a brilliant young French-German mathematician, working on probability. In 1939, he was called up as a soldier.
  • February 1940: while serving, he sent his latest work to the French Academy of Sciences as a pli cacheté, a sealed envelope. Such envelopes record a discovery’s date, but stay closed unless asked for.
  • June 1940: Doeblin died in the war, aged 25.
  • 2000: the envelope was finally opened, at his family’s request. It contained a version of what’s now called Itô’s formula, worked out independently.
  • Meanwhile, the Japanese mathematician Kiyosi Itô had developed stochastic calculus in the 1940s and 1950s. In 2006, at age 90, he received the first Gauss Prize for mathematics with major impact outside mathematics. The formula is now sometimes called the Itô–Doeblin formula.

Worked example: Itô’s extra term at work. Apply Itô’s lemma to f(S) = S², for a stock with μ = 10% and σ = 20%.

  1. Derivatives: f′(S) = 2S, and f″(S) = 2.
  2. Itô’s lemma: d(S²) = 2S dS + ½ × 2 × σ²S² dt.
  3. Drift of S²: 2μ + σ² = 20% + 4% = 24% a year, not the 20% ordinary calculus would give.
  4. The extra 4 points is the convexity correction: randomness alone lifts the average of a convex function.

The lessons:

  • Great ideas can be found twice, independently.
  • Itô’s extra term is real, and measurable.
  • Stochastic calculus grew from pure maths into the language of finance.

Going further: why finance uses Itô’s version. There’s more than one way to define an integral over a random path. Itô’s version measures each small change using the position at the start of the interval. That matches trading exactly: you choose how many shares to hold before the price moves, not after. Another version, Stratonovich’s, uses the midpoint, and follows ordinary calculus rules more closely. Physicists sometimes prefer it. But it peeks slightly into the future, which no trader can do. So finance uses Itô’s version, extra term and all.

Common mistakes

  • Using ordinary calculus on random paths, and dropping the second-order term.
  • Confusing the mean and median growth rates.
  • Thinking μ matters for option prices under hedging.
  • Assuming a Brownian path has a slope.
  • Forgetting that variance, not volatility, adds up over time.
Practice 1: A stock has a 10% expected return and 40% volatility. What's its median growth rate, and how far does it travel with 1,000 steps a year?
  1. Median growth: 10% − 0.4² ÷ 2 = 2%.
  2. Step size: 40% × √(1 ÷ 1,000) ≈ 1.26%.
  3. Total distance: about 505%. Enter 40, 10, 1 and 1000. Doubling the volatility quadruples the drag.
Practice 2: What's the quadratic variation of a 15%-volatility Brownian path over 3 years?
  1. The rule: quadratic variation = σ² × T.
  2. Calculate: 0.15² × 3 = 0.0225 × 3 = 0.0675.
  3. It doesn’t depend on how finely you slice the three years.

Key takeaways

  • A Brownian path has infinite length and no slope, but its squared moves sum to σ²T: (dW)² = dt.
  • Itô’s lemma adds a second-order term, ½ f″ σ²S² dt, to the ordinary chain rule.
  • For ln S, that term gives a growth rate of μ − σ²/2, the volatility drag.
  • Delta hedging cancels the random term, and gives the Black-Scholes PDE, in which μ disappears. Prices are discounted risk-neutral expectations, computable by PDE methods or simulation.
  • Doeblin’s envelope, sealed in February 1940 and opened in 2000, held a version of Itô’s formula.

Go deeper

Complete this lesson
Pass the quiz below (60% or more) to earn +50 XP and unlock the next lesson.
Quiz not passed yet
🧠

Quiz: Itô calculus intuitively: from random walks to stochastic differential equations

5 questions · pass 60% to complete