← Back to Surprising Paradoxes

Gambler's Ruin

Even in a perfectly fair game, a gambler with finite money playing against someone with infinite money (like a casino) will INEVITABLY go broke. The only question is when.

Current Balance
$100
Bets Made
0
🎰

Watch your random walk. When it hits $0, you're ruined!

Game Settings

50% = Fair, 47.37% = Roulette

Your Probability of RUIN

50.0%
Even with a fair game, you have a 50% chance of going broke before doubling up.

Session Statistics

Games played: 0
Times ruined: 0
Reached goal: 0
Observed ruin rate:
Avg. bets to ruin:

The Mathematics

P(ruin) = (q/p)^n - (q/p)^N / (1 - (q/p)^N)

where p = win prob, q = 1-p, n = starting units, N = goal units

The Mathematics of Certain Doom

In 1656, Blaise Pascal wrote to Pierre Fermat about a curious problem: if two gamblers play until one goes broke, what are the odds? This simple question launched probability theory—and revealed a brutal truth about gambling.

The Basic Setup

Imagine you walk into a casino with $100, and you'll bet $1 at a time on a fair coin flip (50/50 odds). Your goal is to double your money to $200. The casino effectively has infinite money compared to you.

The Shocking Truth: Even with perfectly fair odds, you have a 50% chance of losing everything before reaching your goal. And if you play long enough without a goal, ruin is 100% CERTAIN.

Why the House Always Wins

The gambler's ruin problem explains why casinos are profitable businesses:

The Random Walk Visualization

Your bankroll performs a "random walk"—at each bet, it moves up or down by $1. This walk continues until it hits either $0 (ruin) or your goal. The walk is constrained: there's an "absorbing barrier" at zero that you can never escape.

"This mistaken intuition—that a series of losing bets makes a winning bet more likely—is how casinos stay in business."
— MIT OpenCourseWare, Mathematics for Computer Science

The Probability Formula

For a fair game (p = q = 0.5), the probability of ruin before reaching goal N starting with n dollars is elegantly simple:

P(ruin) = 1 - n/N

Starting with $100 and trying to reach $200: P(ruin) = 1 - 100/200 = 0.50 = 50%

For an unfair game (like roulette where p = 18/38 ≈ 0.4737), the formula becomes:

P(ruin) = ((q/p)^n - (q/p)^N) / (1 - (q/p)^N)

With roulette odds trying to double $100: P(ruin) ≈ 99.99%!

Against an Infinite Opponent

If you keep playing against someone with unlimited funds (the casino), with no goal in mind:

P(eventual ruin) = 1 (certainty!)

Even with a fair game, you WILL eventually go broke. The random walk will inevitably hit zero given enough time. The expected number of bets until ruin is infinite, but ruin itself is certain.

Practical Applications Beyond Gambling

Bankruptcy: A company with finite capital competing against larger firms faces "corporate gambler's ruin." Random market fluctuations can eventually drain its resources.

Species Extinction: Small populations face genetic "gambler's ruin." Random fluctuations in births and deaths can drive a population to zero—extinction is an absorbing barrier.

Trading: Day traders with limited capital face the same mathematics. Even with edge, drawdowns can wipe them out before their strategy pays off.

The Lesson

The gambler's ruin teaches us that variance is dangerous when resources are finite. It's not enough to have good odds—you need to survive long enough for the odds to work in your favor. This is why:

"The market can remain irrational longer than you can remain solvent."
— John Maynard Keynes