Quants and risk managers who implement stochastic models of options and stock prices use Ito's lemma to check what a model's equations mean and to read where the partial differential equation for valuation comes from.

What Ito's lemma expresses

Brownian motion is written WtW_t. The introduction of Brownian motion is covered on the Random Walks and Brownian Motion page.

Ito's lemma is a formula for the change in a function when the ordinary chain rule cannot be used. A path of Brownian motion is continuous but not differentiable at any point, so the quantity dWt/dtdW_t/dt does not exist. The chain rule df=f′(Wt) (dWt/dt) dtdf = f'(W_t)\,(dW_t/dt)\,dt therefore has no meaning1.

You might try writing df=f′(Wt) dWtdf = f'(W_t)\,dW_t instead, but that is not enough. The Taylor expansion of a function around xx is f(x+Δx)−f(x)=f′(x)Δx+12f′′(x)(Δx)2+⋯f(x + \Delta x) - f(x) = f'(x)\Delta x + \tfrac{1}{2}f''(x)(\Delta x)^2 + \cdots. When xx is Brownian motion, the expected value of (ΔWt)2(\Delta W_t)^2 is Δt\Delta t, which is as large as the time step. The second-order term therefore cannot be ignored, and exactly one second-order term remains1. The following equation is the simplest form of Ito's lemma, for one variable.

df(Wt)=f′(Wt) dWt+12f′′(Wt) dtdf(W_t) = f'(W_t)\,dW_t + \tfrac{1}{2}f''(W_t)\,dt

Compared with the ordinary chain rule, there is one extra deterministic term, 12f′′ dt\tfrac{1}{2}f''\,dt. When f′′>0f'' > 0, this term makes the expected movement of the function larger than the change you would get from the ordinary rules of differentiation.

Stochastic differential equations and the Ito integral

A stochastic differential equation is an equation that expresses the small change in a stochastic process XtX_t as a term proportional to time plus a term proportional to the increment of Brownian motion. In the form below, μt\mu_t is called the drift, and σt\sigma_t is the coefficient of the dWtdW_t term2. For geometric Brownian motion, σt\sigma_t takes the form of the volatility σ\sigma multiplied by the price (σSt\sigma S_t).

dXt=μt dt+σt dWtdX_t = \mu_t\,dt + \sigma_t\,dW_t

μt\mu_t and σt\sigma_t may be constants, or functions of time tt or of the price XtX_t. If they are constants, Xt=μt+σWtX_t = \mu t + \sigma W_t, which is Brownian motion with drift. Geometric Brownian motion is the case μt=μSt\mu_t = \mu S_t and σt=σSt\sigma_t = \sigma S_t, written as follows.

dSt=μSt dt+σSt dWtdS_t = \mu S_t\,dt + \sigma S_t\,dW_t

This equation is shorthand for the movement over a short time, and its meaning is fixed only once it is rewritten in integral form. The integral form is as follows.

XT=X0+∫0Tμs ds+∫0Tσs dWsX_T = X_0 + \int_0^T \mu_s\,ds + \int_0^T \sigma_s\,dW_s

The last term is the Ito integral. Define FF with differential dF=f dW+g dtdF = f\,dW + g\,dt as the sum of the integrals of f dWf\,dW and g dtg\,dt, with the integral taken as the inverse of the differential2. The Ito integral requires the integrand (here σs\sigma_s) to be adapted, meaning that its value at each time is determined only by the movement of Brownian motion up to that time. This corresponds to the fact that you cannot see future prices when deciding how much stock to trade3.

The Ito integral of an adapted integrand has two convenient properties. First, if the integrand satisfies conditions such as square integrability, the integral is a martingale (a process whose expected future value equals its current value)3. Second, the Ito isometry says that, for an adapted integrand Δs\Delta_s, the expected value of the square of the integral (EE denotes the expected value) equals the expected value of the integral of the squared integrand3.

E[(∫0tΔs dWs)2]=E[∫0tΔs2 ds]E\left[\left(\int_0^t \Delta_s\,dW_s\right)^2\right] = E\left[\int_0^t \Delta_s^2\,ds\right]

Consider a hypothetical example in which the integrand is the constant Δs=0.2\Delta_s = 0.2 and t=1t = 1 year. The right-hand side is 0.22×1=0.040.2^2 \times 1 = 0.04. Because the mean is 0, the variance of the integral is 0.04 and its standard deviation is 0.2 (20%). If the integrand is a fixed function of time alone, the integral follows a normal distribution3.

Quadratic variation and the sum of squared increments

The extra term in Ito's lemma arises because the square of a Brownian increment is replaced by the deterministic time step dtdt. This property is expressed by quadratic variation. Split the interval [0,T][0, T] into small subintervals and let the largest width of the partition approach 0. The sum of the squared Brownian increments then converges to TT with probability 14.

lim⁡∣Π∣→0∑i(Wti+1−Wti)2=T\lim_{|\Pi| \to 0} \sum_i \left(W_{t_{i+1}} - W_{t_i}\right)^2 = T

Here Π\Pi is the partition of the interval and ∣Π∣|\Pi| is its largest width. For a smooth function gg, the same sum approaches 0. Each increment shrinks in proportion to the step, so its square is a small value proportional to the square of the step4. The table below compares the sums when the interval [0,1][0, 1] is divided into equal parts.

Number of subintervals n Step Δt Size of an increment √Δt Sum of squared increments (Brownian motion approximation) Sum of squared increments (g(t)=tg(t) = t)
4 0.25 0.5 1 0.25
100 0.01 0.1 1 0.01
10,000 0.0001 0.01 1 0.0001

The rightmost column follows from the fact that each increment of g(t)=tg(t) = t is Δt\Delta t, so the sum is n×(Δt)2=Δtn \times (\Delta t)^2 = \Delta t. For Brownian motion, the sum of squares stays at 1 however fine the steps become, while for the smooth function it approaches 0.

The Brownian motion column of the table uses a random walk with increments of ±Δt\pm\sqrt{\Delta t} as an approximation. Each squared increment is exactly Δt\Delta t, so the sum is 1 on every path. For Brownian motion itself, each squared increment is a random value with mean Δt\Delta t, and their sum approaches TT by the law of large numbers.

This relation can be summarized as rules for multiplying infinitesimal quantities. (dW)2(dW)^2 is replaced with dtdt, and the dt dWdt\,dW and (dt)2(dt)^2 terms are negligible1.

Product Replacement
dWt×dWtdW_t \times dW_t dtdt
dt×dWtdt \times dW_t 0
dt×dtdt \times dt 0

The formula of Ito's lemma

Let the function f(t,x)f(t, x) be smooth and let XtX_t follow dXt=μt dt+σt dWtdX_t = \mu_t\,dt + \sigma_t\,dW_t. The small change in f(t,Xt)f(t, X_t) is then given by the following equation1.

df(t,Xt)=(∂f∂t+μt∂f∂x+12σt2∂2f∂x2)dt+σt∂f∂x dWtdf(t, X_t) = \left( \frac{\partial f}{\partial t} + \mu_t \frac{\partial f}{\partial x} + \frac{1}{2}\sigma_t^2 \frac{\partial^2 f}{\partial x^2} \right) dt + \sigma_t \frac{\partial f}{\partial x}\,dW_t

∂f/∂t\partial f/\partial t is the change due to time and ∂f/∂x\partial f/\partial x is the first-order change due to XX. Both terms also appear in the ordinary chain rule. The term 12σt2 ∂2f/∂x2\tfrac{1}{2}\sigma_t^2\,\partial^2 f/\partial x^2 is the one that Ito's lemma adds. If ff is linear (∂2f/∂x2=0\partial^2 f/\partial x^2 = 0), this term vanishes and the result has the same form as the ordinary chain rule. The greater the curvature of ff, the larger this term becomes.

Deep diveOutline of the derivation of Ito's lemma

Expand f(t,Xt)f(t, X_t) in a Taylor series and write the change up to second order. The second-order terms that contain dtdt (dt dXtdt\,dX_t and (dt)2(dt)^2) are 0 by the multiplication rules in the previous section, so they are omitted.

df=∂f∂t dt+∂f∂x dXt+12∂2f∂x2 (dXt)2df = \frac{\partial f}{\partial t}\,dt + \frac{\partial f}{\partial x}\,dX_t + \frac{1}{2}\frac{\partial^2 f}{\partial x^2}\,(dX_t)^2

Squaring dXt=μt dt+σt dWtdX_t = \mu_t\,dt + \sigma_t\,dW_t gives μt2(dt)2+2μtσt dt dWt+σt2(dWt)2\mu_t^2 (dt)^2 + 2\mu_t\sigma_t\,dt\,dW_t + \sigma_t^2 (dW_t)^2. By the multiplication rules in the previous section, the first two terms are 0 and the last term becomes σt2 dt\sigma_t^2\,dt. Hence (dXt)2=σt2 dt(dX_t)^2 = \sigma_t^2\,dt. Substituting this into the equation above and collecting the dtdt terms and the dWtdW_t terms gives the formula in the main text. The proof follows the same sequence of calculations1. Terms of third order and higher are even smaller relative to the time step and are ignored.

Worked examples: W squared and the logarithm of a stock price

The first example is f(x)=x2/2f(x) = x^2/2. Since f′=xf' = x and f′′=1f'' = 1, Ito's lemma gives d(Wt2/2)=Wt dWt+12dtd(W_t^2/2) = W_t\,dW_t + \tfrac{1}{2}dt. Integrating both sides gives the following relation1.

∫0TWt dWt=12WT2−T2\int_0^T W_t\,dW_t = \frac{1}{2}W_T^2 - \frac{T}{2}

In ordinary calculus, ∫x dx=x2/2\int x\,dx = x^2/2, and the −T/2-T/2 term does not appear. Consider a hypothetical example in which a path has T=1T = 1 and WT=1.5W_T = 1.5. The ordinary calculus value is 1.52/2=1.1251.5^2/2 = 1.125, and the Ito integral is 1.125−0.5=0.6251.125 - 0.5 = 0.625. Since E[WT2]=TE[W_T^2] = T, the expected value of the Ito integral is T/2−T/2=0T/2 - T/2 = 0, which is consistent with the martingale property mentioned earlier3.

The second example is the solution of geometric Brownian motion. Let f(S)=ln⁡Sf(S) = \ln S. Then ∂f/∂S=1/S\partial f/\partial S = 1/S and ∂2f/∂S2=−1/S2\partial^2 f/\partial S^2 = -1/S^2. Substitute μt=μSt\mu_t = \mu S_t and σt=σSt\sigma_t = \sigma S_t into Ito's lemma5.

dln⁡St=(μSt⋅1St−12σ2St2⋅1St2)dt+σSt⋅1St dWt=(μ−σ22)dt+σ dWtd\ln S_t = \left( \mu S_t \cdot \frac{1}{S_t} - \frac{1}{2}\sigma^2 S_t^2 \cdot \frac{1}{S_t^2} \right) dt + \sigma S_t \cdot \frac{1}{S_t}\,dW_t = \left( \mu - \frac{\sigma^2}{2} \right) dt + \sigma\,dW_t

The coefficients on the right-hand side are constants, so integrating and taking the exponential gives the solution for StS_t.

ST=S0exp⁡((μ−σ22)T+σWT)S_T = S_0 \exp\left( \left( \mu - \frac{\sigma^2}{2} \right) T + \sigma W_T \right)

The drift of the logarithm, μ−σ2/2\mu - \sigma^2/2, is smaller than μ\mu by σ2/2\sigma^2/2 because the extra term in Ito's lemma comes from the curvature of ln⁡S\ln S (its second derivative is negative). Consider a hypothetical example in which S0=100S_0 = 100, μ=5%\mu = 5\%, σ=20%\sigma = 20\%, and T=1T = 1 year.

Item Formula Value
Drift of the logarithm μ−σ2/2\mu - \sigma^2/2 0.05−0.04÷2=0.030.05 - 0.04 \div 2 = 0.03
Standard deviation of the log return σT\sigma\sqrt{T} 0.20
Price after 1 year if the log return equals its mean 100×e0.03100 \times e^{0.03} 103.05
Expected price after 1 year 100×e0.05100 \times e^{0.05} 105.13

The difference between the two prices in the table shows up in the distribution in Figure 1. The price after 1 year follows a lognormal distribution. The price of 103.05, where the log return equals its mean, is the median (the price below which half the probability lies), and the expected value of 105.13 lies to its right.

The expected value is proportional to eμTe^{\mu T}, which follows from the expected value of the lognormal distribution. Ito's lemma explains why the drift of the logarithm is μ−σ2/2\mu - \sigma^2/2.

Probability density50100150200Mean 105.13Stock price after 1 year
Figure 1Distribution of the stock price after 1 year (lognormal distribution)
Figure description

The figure shows the distribution of the stock price after 1 year for geometric Brownian motion with S0=100S_0 = 100, μ=5%\mu = 5\%, σ=20%\sigma = 20\%, and T=1T = 1 year. It corresponds to the logarithm of the price following a normal distribution with mean ln⁡100+0.03\ln 100 + 0.03 and standard deviation 0.20. The vertical axis is the probability density, and area represents probability.

The distribution has a long right tail, and the vertical line marks the expected value, 105.13. The median, 103.05, lies about 2.08 to the left of the line, and the peak of the curve (about 99) lies further left still.

In this example, the mean log return is 0.03, and the difference from the drift-only value of 0.05 is σ2T/2=0.02\sigma^2 T/2 = 0.02. As the interval is divided more finely, the sum of squared increments of the log price approaches σ2T=0.04\sigma^2 T = 0.04. The simulator below lets you check both.

SimulatorMove the expected price, the mean log return and the quadratic variation to check them
Inputs
%
%
yrs
steps
0.000.020.040.060.080.1028321285122,0488,192Sum of squared incrementsNumber of intervals n0.0390
  • Sum of squared increments of ln S (quadratic variation)
  • σ²T
Expected price (closed form S₀e^(μT))
105.13
Simulated mean price
105.20
Standard error 0.13, 1,000 paths (antithetic pairs)
Mean log return (Itô's lemma, (μ − σ²/2)T)
0.0300
Drift alone (μT)
0.0500
Mean log return (simulated)
0.0298
Standard error 0.00038
The extra term (σ²T/2)
0.0200
Price when the log return equals its mean
103.05
Quadratic variation (8,192 intervals)
0.0390
Limit of the quadratic variation (σ²T)
0.0400
Sum of squared increments of the drift part (8,192 intervals)
1.10e-7
4.50e-4 with 2 intervals; it falls in inverse proportion to the number of intervals.
∫W dW, left-endpoint sum (8,192 intervals)
0.1579
Itô's value W_T²/2 − T/2
0.1453
Ordinary calculus value W_T²/2
0.6453

Simplifications

  • The price follows a geometric Brownian motion, stepped as S ← S + μSΔt + σSΔW at a fixed step (the Euler method). As the step shrinks, the mean log return approaches (μ − σ²/2)T, not μT.
  • There are 1,000 paths, counted as pairs of Z and −Z (antithetic variates), and the random numbers are pseudo-random with a fixed seed (the same input always gives the same result). The standard error is computed from 500 pairs.
  • The quadratic-variation chart groups the increments of one Brownian path (8,192 increments) into a power-of-two number of intervals. The path is fixed, so σ, μ and T reuse the same random sequence. The three ∫W dW rows in the results do not depend on σ or μ; they depend only on T and this fixed path.
  • The drift part in the results is the sum of squares when the drift (μ − σ²/2)T of ln S is split evenly into intervals. Like any smooth function, it falls toward 0 in proportion to 1/n.
  • The upper limit of 50% for σ and at least 12 steps per year keep the per-step growth factor of the Euler method positive.

This simulator uses simplified calculations for learning. It cannot be used for valuing actual transactions or managing their risk. (Disclaimer)

About this simulator

Move σ, μ, the horizon, and the time step to see where the extra term of Ito's lemma appears. The initial values are the same as in the worked example above. For the expected price, compare the closed form with the simulated mean. For the mean log return, see how it differs from the drift-only value. For the sum of squared increments, see how it moves as the interval is divided more finely. The last three rows of the results are the ∫W dW example above, showing how the left-endpoint sum differs from the ordinary calculus value.

An entry point to the Black-Scholes equation

The option price C(S,t)C(S, t) is a function of the underlying price StS_t and time tt, so Ito's lemma can describe its movement. When StS_t follows geometric Brownian motion and the interest rate rr is constant, the result is as follows6.

dC=(μS∂C∂S+∂C∂t+12σ2S2∂2C∂S2)dt+σS∂C∂S dWtdC = \left( \mu S \frac{\partial C}{\partial S} + \frac{\partial C}{\partial t} + \frac{1}{2}\sigma^2 S^2 \frac{\partial^2 C}{\partial S^2} \right) dt + \sigma S \frac{\partial C}{\partial S}\,dW_t

Next, consider a portfolio of xtx_t units of cash (the value of cash grows as erte^{rt}) and yty_t units of the underlying, with no money added or withdrawn along the way. Choose xtx_t and yty_t so that this portfolio replicates the movement of the option. Set the initial value P0=C0P_0 = C_0 and equate the dWtdW_t terms and the dtdt terms of the two equations so that Pt=CtP_t = C_t. The movement of the portfolio value PtP_t is as follows6.

dPt=(rxtert+ytμSt)dt+ytσSt dWtdP_t = \left( r x_t e^{rt} + y_t \mu S_t \right) dt + y_t \sigma S_t\,dW_t

Equating the dWtdW_t terms gives yt=∂C/∂Sy_t = \partial C/\partial S. Equating the dtdt terms gives rxtert=∂C/∂t+12σ2S2 ∂2C/∂S2r x_t e^{rt} = \partial C/\partial t + \tfrac{1}{2}\sigma^2 S^2\,\partial^2 C/\partial S^2.

Now substitute and rearrange. Since Pt=CtP_t = C_t, the portfolio value xtert+ytStx_t e^{rt} + y_t S_t equals CC, so xtert=C−S ∂C/∂Sx_t e^{rt} = C - S\,\partial C/\partial S. Putting this into the equation for the dtdt terms gives r(C−S ∂C/∂S)=∂C/∂t+12σ2S2 ∂2C/∂S2r\left(C - S\,\partial C/\partial S\right) = \partial C/\partial t + \tfrac{1}{2}\sigma^2 S^2\,\partial^2 C/\partial S^2, and rearranging gives the following Black-Scholes partial differential equation7.

∂C∂t+rS∂C∂S+12σ2S2∂2C∂S2−rC=0\frac{\partial C}{\partial t} + rS\frac{\partial C}{\partial S} + \frac{1}{2}\sigma^2 S^2 \frac{\partial^2 C}{\partial S^2} - rC = 0

To solve the equation you need boundary conditions such as the condition at maturity (C(S,T)=max⁡(S−K,0)C(S, T) = \max(S - K, 0) for a call)7. The solution formula and its use are covered on The Black-Scholes Model page.

This equation does not contain μ\mu. Setting μ=r\mu = r gives the same equation, which is why the method came to be called risk-neutral valuation7.

There are two simple solutions you can check by hand8. One is V=SV = S (the underlying itself). Putting ∂V/∂t=0\partial V/\partial t = 0, ∂V/∂S=1\partial V/\partial S = 1, and ∂2V/∂S2=0\partial^2 V/\partial S^2 = 0 into the equation gives rS×1−rS=0rS \times 1 - rS = 0. The other is V=Ke−r(T−t)V = K e^{-r(T-t)} (the value of a promise to receive KK with certainty at maturity). Since ∂V/∂t=rV\partial V/\partial t = rV, the result is rV−rV=0rV - rV = 0. Both are values that can be built from cash and the underlying alone, and both satisfy the equation.

Assumptions and limitations

Ito's lemma assumes that the function is smooth and that the process follows a stochastic differential equation of the form above1. The convention for calculus is also not unique. Another integral can be defined with a term different from Ito's (−12f′′ dt-\tfrac{1}{2}f''\,dt). The Ito integral matches the premise that the future cannot be seen, and the source calls it a natural way to bring in time9. When you read a source that uses another convention, check the sign of the correction term and the definition of the integral.

The Black-Scholes partial differential equation was derived assuming geometric Brownian motion with constant volatility and a portfolio, with no money added or withdrawn, that can be rebalanced continuously. In real markets these assumptions do not hold. The fact that volatility differs by strike is one example.

What this article does not cover

The rigorous definition of the Ito integral (the limit of sums built from the value at the left end of each subinterval), the exact conditions on functions for which Ito's lemma holds, multiple variables, and processes whose paths are not continuous are not covered on this page.

Notes

  1. Massachusetts Institute of Technology, "Lecture 18: Itō Calculus" (18.S096, Fall 2013), section 1 (pages 1–3), equation (1.2), Theorem 1.1 with its proof, and Example 1.3 (ii). The source's BtB_t is replaced with WtW_t. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  2. Same, Definition 1.2 and Example 1.3 (i) (pages 2–3). The integral form (XT=X0+∫μ ds+∫σ dWsX_T = X_0 + \int \mu\,ds + \int \sigma\,dW_s) is notation written from this definition. ↩ ↩2

  3. Same, section 2 (pages 4–5), Definition 2.1, Theorem 2.3, Example 2.4, and Theorem 2.5. The variance 0.04 is the calculation 0.22×10.2^2 \times 1 on the right-hand side of the isometry. ↩ ↩2 ↩3 ↩4 ↩5

  4. Massachusetts Institute of Technology, "Lecture 17: Stochastic Processes II" (18.S096, Fall 2013), Theorem 2.5 (page 4) and the paragraph after it (page 5). The values in the table are hand calculations for a random walk with increments of ±Δt\pm\sqrt{\Delta t} and for g(t)=tg(t) = t. ↩ ↩2

  5. A calculation that puts f=ln⁡Sf = \ln S and similar values into the formula of Theorem 1.1 of the source (Lecture 18, page 2). The values in the table are e0.03e^{0.03} and e0.05e^{0.05} multiplied by 100 and rounded to two decimal places. ↩

  6. Martin Haugh, "Black-Scholes and the Volatility Surface" (Columbia University, Fall 2013), section 1 (page 1), equations (1)–(5). The source covers a call on a stock paying no dividends, and writes the portfolio value as PtP_t. ↩ ↩2

  7. Same, "Black-Scholes and the Volatility Surface", section 1 (page 2), equations (6)–(8) and the paragraphs that follow. The boundary condition for a call, and the fact that the same equation results when μ=r\mu = r, are also there. ↩ ↩2 ↩3

  8. A calculation that puts V=SV = S and V=Ke−r(T−t)V = K e^{-r(T-t)} into equation (8) of the source (Haugh, page 2). For the latter, the partial derivative with respect to tt is rVrV. ↩

  9. Massachusetts Institute of Technology, "Lecture 18: Itō Calculus", the Remark after Example 1.3 (pages 3–4). The example of another convention is df=f′(Bt) dBt−12f′′(Bt) dtdf = f'(B_t)\,dB_t - \tfrac{1}{2}f''(B_t)\,dt. ↩