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
  • Random walks and Brownian motion
  • Itô's lemma

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

Brownian Motion

Simulate arithmetic Brownian motion with drift and volatility; watch several sample paths evolve over time.

Parameters

0.050
-0.50.5
0.300
0.051
1.00
0.255
6
18
Random seed: 7
Metrics
Terminal mean
-0.013
Terminal std. dev.
0.235
Sample paths
Path 1Path 2Path 3Path 4Path 5Path 6Expected value μt
Distribution of 400 paths
t = 1.00
t = 0.00t = 1.00
Level
0.050
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.

Barrier and first passage
Barrier b
0.50
Paths that touch b by T
11.5%
Theory (μ = 0)
–
Median hitting time
0.760

Drag the barrier on the path cloud (or focus it and use the arrow keys). Paths that touch it turn coloured from the moment they first hit it.

The theory curve and share assume no drift (μ = 0) and a start at 0. Then, by the reflection principle, P(τ_b ≤ T) = 2·P(W_T ≥ b), and τ_b has density |b|/(σ√(2πt³))·e^(−b²/(2σ²t)). The paths are simulated on a grid of 200 steps, so a path can cross b between two grid points without being caught; the simulated share is therefore slightly below the continuous theory.

With μ ≠ 0 the formula above doesn't apply, so only the simulated values are shown.

Predict first

What share of paths touch the barrier b = 0.50 at least once by T = 1.00 (in %)?

About this tool

Brownian motion is the continuous-time random walk at the heart of financial models. This simulator draws arithmetic Brownian motion with a chosen drift and volatility, using reproducible seeded paths, so you can see how the drift sets the trend and the volatility sets the spread that grows over time.

Frequently asked questions

What is the difference between drift and volatility?

Drift μ is the average change per unit time, the slope of the mean path. Volatility σ scales the random part; the spread around the mean grows like σ√t.

Can arithmetic Brownian motion become negative?

Yes. Its value is normally distributed, so it can take any real value. That is why stock prices are usually modelled with geometric Brownian motion instead.