St. Petersburg paradox

Flip a fair coin until it comes up tails. You win coins, where is the number of heads before the first tails. How much would you pay to play?

The probability of each outcome: . Multiply payoff by probability, sum over every outcome:

The expected payoff is infinite. Yet almost no one would pay more than $20 or $30 to play. This is the St. Petersburg paradox, posed by Nicolas Bernoulli to Pierre Rémond de Montmort in 1713 and named for the journal in which his cousin Daniel published the famous resolution from St. Petersburg in 1738.

Play it yourself

Click through a few rounds. Most pay $1 or $2; every so often you’ll hit a $32, $64, or higher. Those rare jackpots are exactly what your gut keeps refusing to weight properly when it sets the price.

Press Play a round to start. The pot starts at $1 and doubles on every heads.
pot: $1
— no flips yet —
Most rounds pay $1, $2, or $4. Every so often a streak of heads sends the pot to $32, $64, or higher. Those rare jackpots are exactly what makes the expected value diverge — the bigger they get, the rarer they get, but each tier contributes the same $0.50 to the mean.

What it looks like at scale

Run thousands of rounds at a chosen ticket price. The cumulative net climbs steadily downward — until a single jackpot lifts the curve, or doesn’t. Each tier of payoff contributes the same to the mean, so doubling the games you simulate increases the running mean by roughly a constant. The empirical mean drifts up logarithmically and never settles.

Buying 1000 tickets at $10: net −$3099 • biggest win $1024 • 69 of 1000 games beat the ticket price
−3000−2000−100002004006008001000ticket #cumulative profit / loss ($)
Payoff frequency — theoretical (filled) vs your run (outlined)
00.10.20.30.40.50.6012345678910log₂(payoff) = k (win 2ᵏ coins)frequency
Running mean payoff — never settles
05101520252004006008001000game numberrunning mean payoff
Sample mean after 1000 games
$6.9
Theoretical E[X]
Top: the running net of payoff − ticket price. Try $5, $10, $25 — almost every price looks "obviously losing" until a single huge jackpot lifts the curve. Middle: empirical payoff frequencies match the theoretical 2⁻⁽ᵏ⁺¹⁾ shape closely. Bottom: the mean drifts up logarithmically with games and never converges.

Why the sum diverges

Each tier of payoff — $1, $2, $4, $8, … — contributes exactly to the expected value. Doubling the prize compensates for halving the probability, infinitely many times.

This is the signature of a fat-tailed distribution. Rare events grow large enough, fast enough, that they dominate the average. The St. Petersburg payoff has no finite variance and no finite mean. A single catastrophic payoff can dwarf the cumulative result of every game played before it — which is what your running-mean curve keeps demonstrating.

In the empirical world, this regime is everywhere. Insurance losses, financial crashes, viral epidemics, war casualties, book sales, city sizes — all live in fat-tailed territory. Nassim Taleb popularized the term black swan for the rare extreme events that drive long-run aggregates in such distributions. St. Petersburg is the cleanest mathematical example.

Bernoulli’s resolution: utility, not cash

Daniel Bernoulli’s 1738 fix: people don’t maximize expected dollars, they maximize expected utility. If utility grows as , then doubling wealth feels equally good no matter where you start — your second million matters far less than your first hundred dollars.

Apply that to St. Petersburg. The payoffs grow exponentially, but their utility grows only linearly in , which the halving probabilities cancel. The expected utility, , is finite for any starting wealth. There is a fair, finite price.

This was the birth of expected utility theory and modern decision theory under uncertainty. It also reframes risk in a way that connects to the rest of probability: insurance, hedging, and the Kelly criterion (which sizes bets to maximize expected log-wealth) all rest on the same concavity that resolves the paradox.

The casino doesn’t have infinite money

Bernoulli’s argument was philosophical. There’s a more mundane resolution: no real casino can pay an infinite prize. Cap the payoff at the casino’s bankroll and the expected value collapses to something modest:

Casino bankroll $1.0M (220) → fair ticket $11.00
051015202530102030405060log₂(bankroll cap)fair price ($)
jump to
With any finite bankroll the expected payoff is just N/2 + 1 dollars, where the casino can pay at most 2N. Even at world-GDP scale the fair ticket is around $26. That's why no real casino runs the game — and why everyone's intuition about the price is right after all.

A casino with a million-dollar bankroll can offer the game fairly for about $11 a ticket. Even one with the entire world economy as backing only gets to around $26. The “infinity” lives entirely in the tail beyond any plausible bankroll — exactly where intuition has been refusing to look the whole time.

Karl Menger’s twist

In 1934, Karl Menger asked whether unbounded utility could rescue the paradox in a more devious form. Replace the payoff with one that grows fast enough to outrun any concave utility function — say, . The expected utility blows up again. The conclusion: utility must be bounded to escape paradoxes of this shape. Real preferences appear to satisfy this, but it’s a stronger assumption than Bernoulli’s original logarithm.

Gabriel Cramér had already anticipated part of this in a 1728 letter to Nicolas Bernoulli, proposing both a square-root utility and a payoff cap as resolutions — predating Daniel’s published account by a decade. The paradox has been a stress-test for decision theory ever since.

Practical implications

  • Heavy-tailed payoffs demand more than the sample mean. Use medians, trimmed means, or full distribution summaries when the variance might not exist.
  • Insurance is the social institution built on concave utility — pooling fat tails so each participant pays a small premium against rare ruin.
  • The Kelly criterion for sizing risky bets maximizes expected log-wealth, the practical descendant of Bernoulli’s utility argument.
  • Whenever someone quotes an expected value for a payoff with unbounded upside — lottery jackpots, venture investments, viral content — pay attention to the tail before paying for the ticket.