Martingales explained: fair games, conditional expectation and finance
A martingale is a model of a fair game relative to a specified flow of information: your conditional expected future value equals your current value. It can rise, fall and have substantial risk. The condition concerns what you can predict from what you already know.
That distinction matters in finance. A discounted asset can be a martingale under a pricing probability measure without being a good forecast of realised returns. A betting strategy called “the martingale system” can double after losses without satisfying the conditions needed to turn an optional-stopping argument into a profit claim.

What is a martingale?
Let be a random value at time , and let represent all information available by that time. A process is a martingale under probability measure when it is adapted to that information, has , and satisfies
“Adapted” means that the value at time is known using information available at . The integrability condition ensures the expectations are well defined. The final equality is the fair-game condition.
Read the equation as: after using everything currently observed, the average of possible future values is the value you have now. In a discrete-time game, checking the one-step condition at every date is enough to establish the multi-step condition by repeated conditioning.
The information specification belongs in the definition. A price process that looks unpredictable from yesterday’s prices could become predictable if the observer also knew tomorrow’s earnings announcement. It is incomplete to call a process a martingale without saying under which probability law and information flow.

A fair random walk, worked through
Start with . At each step, add or , independently with equal probability. After observing the first step, suppose you have . The next value is either 2 or 0, each with probability one half:
If the first step was a loss, the next value is either 0 or :
Both branches satisfy the same conditional equality. That is stronger than saying the overall average at date 2 is zero.
This walk is risky. After two steps, its possible values are with probabilities . Its variance is 2 even though its expected gain is zero. Fairness does not mean that the next result is close to the current value, and it does not mean every realised participant breaks even.
You can verify the branches without simulation:
from itertools import product
paths = list(product((-1, 1), repeat=2))
for first in (-1, 1):
future = [a + b for a, b in paths if a == first]
print(first, sum(future) / len(future))
# -1 -1.0
# 1 1.0Independence is sufficient for this construction, but it is not part of the general martingale definition. Increments can have state-dependent variance and remain conditionally mean zero. A process can therefore be a martingale while its volatility is predictable.
Why a constant mean is not enough
Take a fair random variable . Set , reveal at date 1, define , and set .
Every date has unconditional mean zero. But once is observed,
The date-2 value is completely predictable from the date-1 observation. The process fails the martingale condition even though a chart of its cross-sectional mean would be flat.
This is a practical simulation lesson. Checking that an estimated discounted stock mean matches today’s price is useful, but it checks only one unconditional implication. It cannot certify every conditional expectation in the model. Conditional checks can group continuations by a known current state, provided the grouping and simulation are consistent with the model.
Brownian motion supplies a continuous-time example
For standard Brownian motion , future increments are independent of the past and have mean zero. With its usual information flow,
The process is a martingale. Its square is not: independent Gaussian increments give
Consequently is a martingale. Subtracting time compensates for the expected accumulation of squared noise.
Similarly, if with constant coefficients, the compensated process is a martingale. The original process generally has drift. The exception is .
The exponential correction
A more financially useful example is
for a constant . Why subtract the variance term? A zero-mean Gaussian with variance satisfies . Exponentiation increases the average because it is convex. The correction offsets that increase.
Write in terms of its current value:
The second factor has conditional mean one, so . This proof establishes the martingale property for this constant-coefficient exponential on finite horizons; it does more than observe a zero drift symbol in a stochastic differential equation.

The chart fixes time and three possible Brownian states. Each experiment draws 100,000 independent continuations to time 1. The error bars describe finite simulation uncertainty. These are synthetic continuations from specified states, not historical stock-price observations.
For general stochastic integrals, “zero drift” initially identifies a local martingale under suitable conditions. A local martingale is a broader technical class; additional integrability conditions are needed to conclude that it is a true martingale. Do not extend the constant-coefficient result to every stochastic-volatility model without checking those conditions.
What is a martingale in risk-neutral pricing?
Then is a martingale under . Discounting removes the risk-free growth, and the exponential correction handles the noise.
This does not say that the stock’s expected return in the physical world is . Under a forecasting measure , its modelled drift might be . Pricing and forecasting use different expectations for different purposes.
Dividends require care. With continuous proportional dividend yield , the ex-dividend stock has risk-neutral drift . Its discounted ex-dividend price alone is generally not a martingale. The discounted gains process, including dividends received, is the relevant object; equivalently, the discounted value of a strategy that reinvests the dividends has the martingale property in this model.
Does stopping a fair game create an advantage?
Suppose you play the fair walk for at most three rounds and stop early if you reach . The stopping time is bounded. The optional-stopping theorem applies to this discrete-time integrable martingale and gives expected stopped value zero.
The paths that reach the profit target do not tell the whole story. Some paths finish the third round with a loss. An evaluation that counts successful exits while omitting unfinished or losing games changes the experiment.
The doubling-after-losses system makes the same omission easy to hide. After a loss, double the next stake so that a future win recovers the accumulated losses and adds one unit. A long losing run then demands an exponentially large stake. Removing a maximum stake and a final stopping date does not justify applying a bounded-stopping theorem to the resulting limiting strategy. Finite bankrolls and borrowing limits matter even before that mathematical issue.
A checkpoint before moving on
Consider . Is it a martingale? No: conditional expected future value is . Subtracting recovers Brownian motion and the martingale condition.
Now consider . Its unconditional mean is , and its conditional drift over is also . The compensated quantity is the martingale. These two examples distinguish deterministic drift compensation from the correction created by squaring random increments.
For a first pass, remember the three things to state: the random process, the information available, and the probability measure. Then calculate a conditional expectation rather than relying on a flat average chart.
Read next, practise and download
Sources and further study
Go deeper with lessons, derivations and worked exercises behind this article.