Gambler's Ruin Calculator

The Gambler's Ruin Calculator computes the probability of wining a game, the probability of losing all your money (ruin) and the expected number of bets before ruin. The computations apply to a fair game (probability of winning a bet is 0.5) and an unfair game (probability if winning a bet is not equal to 0.5).

Gambler's Ruin Calculator
Probability of winning one bet:
Starting $ amount:
Target $ amount:


Computational Notes:

Key Variables

Probabilities for Fair Game (p = .5)

Probability of ruin (Losing all money) = (N - i) / N

Probability of reaching target $ amount =1 - Probability of ruin (Losing all money)

Expected number bets for the game = i * (N - i)

Probabilities for Unfair Game (p <> .5)

Probability of ruin (Losing all money) =(r**N - r**i) / (r**N - 1)

Probability of reaching target $ amount = 1 - Probability of ruin (Losing all money)

Expected number bets for the game = i / (q - p) - N / (q - p) * (1 - r**i) / (1 - r**N)

All Investing and Money Calculators