If you keep betting until you either hit a goal or lose everything, what are your odds? This gambler’s ruin calculator uses the classic probability result to find the chance of reaching your target bankroll, the chance of going broke first, the expected number of bets and the house edge, from your bankroll, bet size and win probability.
How the calculation works
With i = bankroll ÷ bet, N = target ÷ bet, p the win probability, q = 1 − p and r = q ÷ p:
- If p = 50 %, the chance of reaching the target is i ÷ N
- Otherwise it is (1 − r^i) ÷ (1 − r^N)
- Expected number of bets = i ÷ (q − p) − N ÷ (q − p) × chance of reaching the target
- House edge = q − p
Example
A $1,000 bankroll, $10 bets, a $2,000 target and an even-money bet on American roulette that wins 47.37 % of the time. You need to double your money, and the chance of doing so before going broke is only about 0.003 %. The game lasts about 1,900 bets on average, at a house edge of 5.26 %.
Why it matters
The result shows why a casino can let players bet freely: with any house edge, the longer you play, the more certain ruin becomes. The same math applies to traders and anyone sizing risky bets, where the ratio of capital to position size drives the chance of survival.
Good to know
The model assumes independent bets of equal size with a constant probability, which fits roulette or coin flips but not blackjack with card counting or sports betting with changing odds. Real bankrolls also face table limits and variance. If gambling feels hard to control, help is available through national helplines and support groups.
Related tools
The Kelly criterion calculator sizes bets with an edge, the expected value calculator measures what a bet is worth, and the lottery odds calculator shows chances of winning a draw.