Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Stochastic Models
Stochastic Learning StudioBeta
1.1Symmetric Random Walk1.2Rescaled Random Walk1.3Standard deviation1.4Central Limit Theorem2.1Defining the Wiener process2.2Increment explorer2.3Joint distributions and covariance3.1Running maximum and minimum3.2Reflection principle3.3First passage times3.4Hitting probabilities
Brownian MotionBeta
Geometric Brownian MotionBeta
Itô ProcessBeta
Monte CarloBeta
Connected Guides
  • Geometric Brownian motion
  • Returns and volatility

© 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.

Geometric Brownian Motion

Simulate an asset price with geometric Brownian motion; sample paths alongside the theoretical expected value.

Parameters

100.00
10500
0.08
-0.30.3
0.25
0.050.8
1.00
0.255
6
18
Random seed: 7
Metrics
Terminal sample mean
101.22
Theoretical mean
108.33
Terminal std. dev.
19.65
Sample paths and expected value
Theoretical mean
Distribution of 400 paths
t = 1.00
t = 0.00t = 1.00
Level
105.00
Paths ending below the level
49.5%
Theory
50.0%

Quantile fan (5–25–50–75–95%). Drag the horizontal level on the path cloud (or focus it and use the arrow keys). Select bins in the histogram (click or drag) to highlight the paths that ended there. Esc clears. Press Play to watch the paths unfold; the histogram shows the values at time t, so its spread grows like √t.

Mean, median and mode

The log-normal density of S_T. Drag the σ track under the curve: the mean stays put while the median and mode slide left. The triangles mark the sample mean and median of the 400 simulated paths.

Mean
108.33
Median
?
Mode
?
Mean − median
?
Paths ending below the mean
54.8% (theory 55.0%)
Predict first

The average terminal price is S₀·e^(μT) = 108.33. Where does the typical path end, i.e. what is the median of S_T?

About this tool

Geometric Brownian motion is the standard model for stock prices and the foundation of the Black–Scholes model. Prices change by random percentages rather than random amounts, so they stay positive and are lognormally distributed. This simulator shows sample paths for a given drift and volatility together with the theoretical expected value S₀e^{μt}.

Frequently asked questions

Why is GBM used for stock prices?

It keeps prices positive and makes returns, not price changes, the random quantity, matching the idea that a stock is as likely to rise 10% whether it trades at 10 or 100.

Why is the typical path below the expected value?

The lognormal distribution is skewed: a few very high outcomes pull the mean up, while the median path grows only at μ − ½σ².