GBM Stock Price Path Simulator

Simulate many possible future stock price paths using Geometric Brownian Motion (GBM) and see how the same stock can end up in very different places.

View multiple simulated paths, the distribution of prices at the horizon, and key percentiles (5%, 50%, 95%).

The current price of the stock or index you want to simulate.

Long-run expected annual return. This can be positive or negative.

Standard deviation of annual returns. Higher values create more extreme paths and wider distributions.

The time horizon for the simulation in years. The model uses 252 trading days per year.

Each simulation represents one possible price path. More paths yield smoother statistics.

For clarity, the chart only shows a subset of all simulated paths.


You may also like:

GBM Stock Price Path Simulator – What It Is and Why It Matters

The GBM Stock Price Path Simulator is an educational and analytical tool designed to help users understand how uncertainty, volatility, and time interact to shape the future price of a stock or index. Rather than producing a single forecast or “target price,” the simulator generates many possible price paths under the same assumptions, illustrating how identical starting conditions can lead to widely different outcomes.

This approach reflects a fundamental reality of financial markets: future prices are not deterministic. Even when investors agree on expected returns and long-term growth prospects, randomness in daily price movements can compound over time, producing a broad distribution of results. The purpose of this tool is to make that uncertainty visible and intuitive.

Why a Price Path Simulator Is More Informative Than a Single Forecast

Traditional stock analysis often revolves around point estimates, such as one-year price targets or expected returns. While these figures are easy to communicate, they hide the range of possible outcomes and can create a false sense of precision. In reality, two stocks with the same expected return can behave very differently depending on volatility and the sequence of returns.

The GBM Stock Price Path Simulator shifts the focus from “What will the price be?” to “What could plausibly happen?” By simulating many paths, the tool reveals how dispersion grows over time, how downside risk coexists with upside potential, and why long-term outcomes are inherently probabilistic rather than guaranteed.

Core Idea: One Stock, Many Possible Futures

All simulated paths in this tool start from the same initial stock price and use the same assumptions for expected return (drift) and volatility. The only difference between paths is randomness. Yet despite identical inputs, the simulated prices can diverge dramatically over time.

This highlights an often-overlooked concept in investing: path dependency. The order in which gains and losses occur matters, especially when returns compound. Even if the average return is positive, some paths may experience prolonged drawdowns, while others grow rapidly. Seeing these paths side by side helps users internalize why risk management and time horizon are so important.

Who This GBM Stock Price Simulator Is Designed For

This tool is intended for users who want to build intuition about market uncertainty rather than chase exact predictions. Typical users include long-term investors, students of finance, quantitative analysts, risk managers, and technically curious traders who want to explore how volatility shapes outcomes over time.

It is particularly useful for scenario analysis. Users can test conservative, neutral, and aggressive assumptions; compare low-volatility and high-volatility environments; and observe how extending the time horizon changes the range of possible outcomes. Educators and learners may also use it to demonstrate key concepts such as compounding, dispersion, and the probabilistic nature of returns.

What This Tool Is Not

The GBM Stock Price Path Simulator is not a trading signal generator, price prediction engine, or investment recommendation system. It does not attempt to forecast real future prices or identify buy and sell points. The outputs are hypothetical scenarios based on mathematical assumptions, not statements about what will actually occur in the market.

The simulator also does not account for dividends, corporate actions, transaction costs, taxes, or changes in business fundamentals. Its purpose is deliberately narrow: to isolate and visualize the effects of expected return, volatility, and randomness on price evolution.

Why Geometric Brownian Motion Is Used as the Foundation

The simulator is built on Geometric Brownian Motion (GBM), a standard model in quantitative finance used to describe how asset prices evolve over time. GBM is widely taught in finance courses and used in option pricing, risk management, and academic research because it captures two essential properties of asset prices: compounding returns and non-negative prices.

While real markets are more complex than any single model, GBM provides a transparent and mathematically tractable starting point. By using a well-understood framework, the tool allows users to focus on interpretation and intuition rather than opaque mechanics.

Subsequent sections explain concrete examples, the exact formulas used, the limitations of the model, and the proper way to interpret and apply the results. Together, these sections form a complete guide to using the GBM Stock Price Path Simulator responsibly and effectively.

Worked Examples and Scenarios Using the GBM Stock Price Path Simulator

One of the most valuable aspects of the GBM Stock Price Path Simulator is the ability to explore concrete scenarios rather than abstract theory. By changing a small number of inputs—expected return, volatility, and time horizon—you can observe how dramatically the range of possible outcomes changes. The examples below illustrate how to interpret the simulator’s output and what insights it can provide.

Example 1: Moderate-Growth, Moderate-Volatility Stock

Consider a stock with a current price of 100, an expected annual return of 8%, and annual volatility of 25%, simulated over three years. These assumptions roughly resemble a diversified equity or a stable large-cap stock.

When you run the simulation, you will typically see a fan of paths spreading outward over time. Some paths trend upward smoothly, others experience drawdowns before recovering, and a few may end below the starting price despite the positive expected return. The median (50th percentile) final price is often above 100, reflecting the positive drift, but the lower percentiles highlight that losses remain plausible even in a “reasonable” scenario.

The key takeaway from this example is that a positive expected return does not guarantee a positive outcome over a finite horizon. Volatility creates dispersion, and short- to medium-term results can differ widely from the long-run average.

Example 2: Same Expected Return, Higher Volatility

Now consider the same stock with the same 8% expected annual return, but increase volatility from 25% to 40%. All other inputs remain unchanged.

In this case, the chart of price paths becomes much wider. Upside paths may reach substantially higher prices than before, but downside paths also fall much lower. The mean final price may still be similar, but the 5th and 95th percentiles move farther apart. This illustrates a crucial concept: volatility does not change the average outcome in the GBM model, but it greatly affects risk and uncertainty.

For investors, this highlights why two assets with similar expected returns can feel very different in practice. Higher volatility increases emotional and financial stress, raises the chance of unfavorable interim outcomes, and makes timing and risk management more important.

Example 3: Longer Time Horizon and Compounding Effects

Extend the simulation horizon from three years to ten years while keeping drift and volatility constant. The resulting chart shows dramatically wider dispersion. Even modest volatility compounds over time, producing a very broad range of plausible final prices.

In long-horizon simulations, the difference between paths is driven less by any single shock and more by cumulative randomness. Some paths experience early losses and never fully recover, while others benefit from favorable sequences of returns. This demonstrates why long-term investing is not just about average returns, but also about the sequence in which returns occur.

Interpreting the Chart: What the Lines Really Mean

Each line shown in the chart represents one hypothetical realization of the stock price under the same model assumptions. None of these paths is “the correct one.” They are equally valid outcomes generated by randomness.

A common mistake is to focus on one visually appealing path and treat it as a forecast. The correct interpretation is to view the collection of paths as a cloud of possibilities. The true value lies in the overall spread, shape, and symmetry of that cloud, not in any individual trajectory.

Understanding Percentiles Instead of Averages

The simulator reports percentiles such as the 5th, 50th (median), and 95th. These are far more informative than a single expected value. The median represents a typical outcome under the model, while the lower percentile highlights downside risk and the upper percentile illustrates optimistic but less frequent outcomes.

Importantly, the median path is not the same as the “most likely path.” Individual paths fluctuate up and down, and the median final price is a summary statistic, not a trajectory you should expect to observe in real time. This distinction helps prevent overconfidence in any single scenario.

Probability of Finishing Above the Starting Price

Another useful output is the probability that the final price finishes above the starting price. Even with positive drift, this probability may be well below 100% for shorter horizons or high volatility. This reinforces the idea that “expected return” is not the same as “probability of success” over a given time frame.

By experimenting with different inputs, users can see how increasing time, reducing volatility, or raising expected return affects this probability. This makes the simulator a practical tool for building intuition about risk rather than a mechanism for predicting outcomes.

Together, these examples demonstrate how the GBM Stock Price Path Simulator can be used to explore realistic scenarios, test assumptions, and develop a deeper understanding of uncertainty in financial markets. The next section explains the exact mathematical formulas used to generate these paths and how they translate into the behavior you observe on screen.

Mathematical Model, Formulas, Limitations, and Intended Use

The GBM Stock Price Path Simulator is built on a well-established mathematical framework known as Geometric Brownian Motion (GBM). GBM is one of the most widely used models in quantitative finance and forms the backbone of classical option pricing theory, including the Black–Scholes model. This section explains the exact formulas used, why they look the way they do, what assumptions they rely on, and how the simulator should (and should not) be used.

Continuous-Time GBM Model

In continuous time, Geometric Brownian Motion models the evolution of an asset price S(t) using the stochastic differential equation:

dS(t) = μ·S(t)·dt + σ·S(t)·dW(t)

The first term (μ·S·dt) represents the deterministic growth component, while the second term (σ·S·dW) represents random fluctuations. Because both terms scale with S(t), percentage changes—not absolute changes—are modeled, which is why prices remain non-negative.

Discrete-Time Formula Used in This Simulator

Computers cannot simulate continuous time directly, so the GBM equation is discretized into small time steps Δt. This simulator uses daily trading steps (252 per year). The exact update rule implemented in the code is:

S(t + Δt) = S(t) × exp[ (μ − 0.5·σ²)·Δt + σ·√Δt·Z ]

Why the (μ − 0.5·σ²) Term Appears

One of the most confusing aspects of GBM for beginners is the(μ − 0.5·σ²) term in the exponent. This adjustment arises because GBM models log returns, not arithmetic returns.

While μ represents the expected arithmetic return, the expected growth rate of the logarithm of prices is lower by 0.5·σ². Without this correction, the model would systematically overestimate long-term growth. This term ensures that the expected value of S(t) evolves consistently with the continuous-time definition of GBM.

Interpretation of Drift and Volatility

In this simulator, drift (μ) represents the long-run average annual return, while volatility (σ) measures the uncertainty around that return. Importantly, volatility does not merely add noise—it fundamentally changes the distribution of outcomes.

Higher volatility increases dispersion, widens percentiles, and lowers the median outcome for a given drift due to the asymmetric nature of compounding. This explains why two assets with the same expected return but different volatilities can behave very differently over time.

Key Assumptions of the GBM Model

These assumptions make GBM mathematically elegant but also limit its realism. Real markets frequently violate all of the above conditions.

Limitations and Common Misuse

This simulator should not be used as a price prediction engine or trading signal generator. A common misuse is selecting drift and volatility values to force a desired outcome and then treating the result as a forecast.

GBM cannot model sudden crashes, earnings surprises, macro shocks, liquidity spirals, or behavioral feedback loops. It also ignores dividends, buybacks, interest rates, leverage, and taxes. As a result, outputs should be interpreted as conditional scenarios, not expected reality.

Proper Intended Use of This Simulator

The GBM Stock Price Path Simulator is best used as:

By experimenting with different inputs, users can develop intuition about uncertainty, risk, and the distribution of outcomes. When combined with domain knowledge, historical analysis, and risk management frameworks, this simulator can complement—but never replace—rigorous investment decision-making.

In short, this tool is designed to answer “what could happen under these assumptions?”—not “what will happen next.”

GBM Stock Price Path Simulator – FAQ

What does this GBM simulator actually show?

It shows many possible future price paths for a stock or index, based on your assumptions for expected annual return (drift) and annual volatility. It also summarizes the distribution of prices at the final time horizon and reports key percentiles and probabilities.

Why use Geometric Brownian Motion for stock prices?

Geometric Brownian Motion is a standard mathematical model that keeps prices non-negative and captures the compounding nature of returns. Although real markets are more complex, GBM is widely used in option pricing, risk management, and academic finance as a baseline for modeling asset prices.

Does this tool predict future stock prices?

No. The tool does not predict what will actually happen in the market. It illustrates hypothetical scenarios under the GBM model using your chosen parameters. Real-world outcomes can differ significantly, especially around major news events, regime changes, or structural shifts.

How should I choose drift and volatility values?

Many users base drift and volatility on historical data for the stock or index they are studying. Others experiment with a range of values to explore different scenarios, such as stress tests or optimistic and pessimistic cases. There is no single correct input; the goal is to understand how assumptions translate into a spread of possible outcomes.