Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Guide
Derivatives pricing
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Implied volatility and the volatility smile14Stochastic volatility and the Heston model15Static replication: Breeden–Litzenberger and Carr–Madan16Exotic options: barriers, Asians and digitals
Portfolio & risk
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08Value at Risk and expected shortfall
Fixed income
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Bond futures and the cheapest-to-deliver06Interest rate swaps07Callable bonds and negative convexity08Credit risk: default probabilities and credit spreads
Corporate finance
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04The weighted average cost of capital05Capital structure and the Modigliani–Miller theorems06Discounted cash flow valuation07Relative valuation with multiples08Real options: the value of flexibility
Stochastic models
01Random walks and Brownian motion02Probability spaces, σ-algebras and random variables03Filtrations, adapted processes and stopping times04Conditional expectation and martingales05Properties of Brownian motion06The reflection principle and first passage times07The Brownian bridge08The Itô integral09Itô's lemma10Kolmogorov equations and the Feynman–Kac formula11Change of measure and Girsanov's theorem12Monte Carlo option pricing13Simulating SDEs: the Euler–Maruyama scheme14Mean reversion: Ornstein–Uhlenbeck and Vasicek15Jumps and the Merton jump-diffusion model
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guide/Derivatives pricing

Geometric Brownian motion

Lesson 10 of 16 · 1 min read

This lesson builds the standard continuous-time model of a stock price, geometric Brownian motion (GBM). It combines the Brownian motion WtW_tWt​ from "Random walks and Brownian motion" with the log returns and volatility of "Returns and volatility", and it is the continuous limit of the trees in "Multi-step trees and backward induction". The Black–Scholes formula in the next lesson is computed under this model.

Modelling returns instead of prices

The simplest idea would be to let the price itself follow a Brownian motion, St=S0+μt+σWtS_t = S_0 + \mu t + \sigma W_tSt​=S0​+μt+σWt​. This has two defects. First, WtW_tWt​ is normally distributed, so the price can become negative. Second, a move of 1 means very different things for a stock at 10 and a stock at 1000. What should be random and comparable across stocks is the return, not the price change.

So we model the return over a short interval dtdtdt. The assumptions are:

  • The expected return per unit time is a constant μ\muμ (the drift).
  • The volatility of returns is a constant σ\sigmaσ.
  • The random part of the return comes from a Brownian motion: returns over non-overlapping intervals are independent and normally distributed.
  • The stock pays no dividends and its price moves continuously, without jumps.

The model equation

These assumptions are written as

dStSt=μ dt+σ dWt⟺dSt=μSt dt+σSt dWt.\frac{dS_t}{S_t} = \mu\,dt + \sigma\,dW_t \qquad\Longleftrightarrow\qquad dS_t = \mu S_t\,dt + \sigma S_t\,dW_t.St​dSt​​=μdt+σdWt​⟺dSt​=μSt​dt+σSt​dWt​.

Read it as a recipe for one small step: over dtdtdt the return has a deterministic part μ dt\mu\,dtμdt and a random part σ dWt\sigma\,dW_tσdWt​. Since dWtdW_tdWt​ is normal with mean 0 and variance dtdtdt, the return over the step has mean μ dt\mu\,dtμdt and standard deviation σdt\sigma\sqrt{dt}σdt​, which is the square-root-of-time rule from "Returns and volatility". Because both terms are proportional to StS_tSt​, price moves scale with the price level.

The solution

The equation has an explicit solution:

ST=S0exp⁡ ⁣((μ−12σ2)T+σWT).S_T = S_0 \exp\!\left( \left(\mu - \tfrac{1}{2}\sigma^2\right) T + \sigma W_T \right).ST​=S0​exp((μ−21​σ2)T+σWT​).

Taking logarithms, the log return over [0,T][0, T][0,T] is

ln⁡STS0=(μ−12σ2)T+σWT∼N ⁣((μ−12σ2)T,  σ2T).\ln\frac{S_T}{S_0} = \left(\mu - \tfrac{1}{2}\sigma^2\right) T + \sigma W_T \sim N\!\left( \left(\mu - \tfrac{1}{2}\sigma^2\right) T,\; \sigma^2 T \right).lnS0​ST​​=(μ−21​σ2)T+σWT​∼N((μ−21​σ2)T,σ2T).

So the log price is a Brownian motion with a constant drift. A random variable whose logarithm is normal is called log-normal. Since STS_TST​ is S0S_0S0​ times an exponential, it is always positive: GBM fixes the first defect of the naive model.

The volatility correction

The drift of the log price is μ−12σ2\mu - \tfrac{1}{2}\sigma^2μ−21​σ2, not μ\muμ. The correction comes from a property of the normal distribution. If Z∼N(m,s2)Z \sim N(m, s^2)Z∼N(m,s2), then

E[eZ]=em+12s2.\mathbb{E}\left[e^{Z}\right] = e^{m + \frac{1}{2}s^2}.E[eZ]=em+21​s2.

The exponential is convex, so large positive values of ZZZ are amplified more than negative ones are damped, and the mean of eZe^ZeZ exceeds eme^mem. Apply this with m=(μ−12σ2)Tm = (\mu - \tfrac{1}{2}\sigma^2)Tm=(μ−21​σ2)T and s2=σ2Ts^2 = \sigma^2 Ts2=σ2T:

EP[ST]=S0 e(μ−12σ2)T+12σ2T=S0 eμT.\mathbb{E}^{\mathbb{P}}[S_T] = S_0\, e^{(\mu - \frac{1}{2}\sigma^2)T + \frac{1}{2}\sigma^2 T} = S_0\, e^{\mu T}.EP[ST​]=S0​e(μ−21​σ2)T+21​σ2T=S0​eμT.

The −12σ2-\tfrac{1}{2}\sigma^2−21​σ2 is exactly what is needed so that the expected price grows at rate μ\muμ, as assumed. The formal derivation uses Itô's lemma, the chain rule for functions of Brownian motion, which adds the term −12σ2 dt-\tfrac{1}{2}\sigma^2\,dt−21​σ2dt when we pass from dS/SdS/SdS/S to dln⁡Sd\ln SdlnS.

An everyday version of the same effect is volatility drag. A price that rises 10% and then falls 10% ends at 1.1⋅0.9=0.991.1 \cdot 0.9 = 0.991.1⋅0.9=0.99 of where it started: the average return is zero, but the compound growth is negative. The more volatile the returns, the larger the gap between the average return and the growth rate actually achieved.

Mean and median

Because the exponential is increasing, the median of STS_TST​ is the exponential of the median of the log price, which equals its mean:

mean=S0 eμT,median=S0 e(μ−12σ2)T.\text{mean} = S_0\, e^{\mu T}, \qquad \text{median} = S_0\, e^{(\mu - \frac{1}{2}\sigma^2) T}.mean=S0​eμT,median=S0​e(μ−21​σ2)T.

The mean lies above the median: the log-normal distribution is skewed to the right, with a long tail of large outcomes pulling the average up. A typical path ends near the median, below the mean.

Example: S0=100S_0 = 100S0​=100, μ=8%\mu = 8\%μ=8%, σ=20%\sigma = 20\%σ=20%, T=1T = 1T=1. The mean is 100 e0.08≈108.33100\,e^{0.08} \approx 108.33100e0.08≈108.33, the median 100 e0.06≈106.18100\,e^{0.06} \approx 106.18100e0.06≈106.18. The log return is N(0.06, 0.22)N(0.06,\, 0.2^2)N(0.06,0.22), so the probability that the stock ends below 100 is N(−0.06/0.2)=N(−0.3)≈38%N(-0.06/0.2) = N(-0.3) \approx 38\%N(−0.06/0.2)=N(−0.3)≈38%, even though the expected return is positive. A 95% range for STS_TST​ is 100 e0.06±1.96⋅0.2100\,e^{0.06 \pm 1.96 \cdot 0.2}100e0.06±1.96⋅0.2, about 71.7 to 157.1, which is not symmetric around the median.

The figure simulates 20 paths over one year from S0=100S_0 = 100S0​=100, each built from many small log-normal steps, and draws the mean curve S0eμtS_0e^{\mu t}S0​eμt and the median curve S0e(μ−σ2/2)tS_0e^{(\mu - \sigma^2/2)t}S0​e(μ−σ2/2)t. Raise σ\sigmaσ and note that the paths fan out, the median falls further below the mean, and more paths end below their start. Press "New paths" to draw a fresh sample.

Geometric Brownian motion pathsOpen in Geometric Brownian Motion →
8%
-0.10.3
30%
0.050.8
MeanMedian
Mean at t = 1
108.33
Median at t = 1
103.56
Volatility drag σ²/2
4.5%

Link to the binomial tree

In a CRR tree with u=eσΔtu = e^{\sigma\sqrt{\Delta t}}u=eσΔt​ and d=1/ud = 1/ud=1/u, each step adds ±σΔt\pm\sigma\sqrt{\Delta t}±σΔt​ to the log price. That is the scaled coin-flip walk of "Random walks and Brownian motion". As the number of steps grows, the log price converges to a Brownian motion with volatility σ\sigmaσ plus a drift, and the terminal stock price becomes log-normal. GBM is the model that the trees approximate, which is why tree prices converge as nnn grows.

The risk-neutral version

"Risk-neutral probabilities" showed that for pricing we use the measure Q\mathbb{Q}Q under which the stock earns the risk-free rate. In GBM this means replacing μ\muμ by rrr and WWW by a Brownian motion WQW^{\mathbb{Q}}WQ under Q\mathbb{Q}Q:

dSt=rSt dt+σSt dWtQ,ST=S0exp⁡ ⁣((r−12σ2)T+σWTQ).dS_t = r S_t\,dt + \sigma S_t\,dW_t^{\mathbb{Q}}, \qquad S_T = S_0 \exp\!\left( \left(r - \tfrac{1}{2}\sigma^2\right) T + \sigma W_T^{\mathbb{Q}} \right).dSt​=rSt​dt+σSt​dWtQ​,ST​=S0​exp((r−21​σ2)T+σWTQ​).

The volatility σ\sigmaσ stays the same; only the drift changes. Then EQ[ST]=S0erT\mathbb{E}^{\mathbb{Q}}[S_T] = S_0 e^{rT}EQ[ST​]=S0​erT, and the discounted price e−rtSte^{-rt}S_te−rtSt​ is a martingale under Q\mathbb{Q}Q, exactly as in the one-step tree. The real drift μ\muμ disappears from option prices, just as the real probability ppp did.

Summary

  • GBM models returns: dSt=μSt dt+σSt dWtdS_t = \mu S_t\,dt + \sigma S_t\,dW_tdSt​=μSt​dt+σSt​dWt​, with constant drift μ\muμ and volatility σ\sigmaσ.
  • Its solution is ST=S0exp⁡((μ−12σ2)T+σWT)S_T = S_0\exp((\mu - \tfrac{1}{2}\sigma^2)T + \sigma W_T)ST​=S0​exp((μ−21​σ2)T+σWT​): log-normal and always positive.
  • The −12σ2-\tfrac{1}{2}\sigma^2−21​σ2 term makes the mean S0eμTS_0e^{\mu T}S0​eμT; the median S0e(μ−σ2/2)TS_0e^{(\mu - \sigma^2/2)T}S0​e(μ−σ2/2)T is lower.
  • For pricing, replace μ\muμ by rrr; the volatility is unchanged.

Under Q\mathbb{Q}Q, ln⁡ST∼N(ln⁡S0+(r−12σ2)T,  σ2T)\ln S_T \sim N\big(\ln S_0 + (r - \tfrac{1}{2}\sigma^2)T,\; \sigma^2 T\big)lnST​∼N(lnS0​+(r−21​σ2)T,σ2T). The next lesson integrates the call payoff against this distribution to obtain the Black–Scholes formula.

Try itSimulate price paths and their distribution in the Geometric Brownian Motion lab →
← PreviousDelta and hedgingNext →The Black–Scholes formula
Connections
Geometric Brownian motion
Open the full graph →
Labs for this lesson
Geometric Brownian MotionMonte Carlo