Skip to content
Omnikalc

Gambler's ruin calculator: can you reach your target before going broke?

Enter your bankroll, bet size, target and win probability to get the chance of reaching the target, the chance of ruin and the expected number of bets.

Updated on
Your inputs
$

Value out of range

$

Value out of range

$

Value out of range

%

Value out of range

Results

Chance of reaching the target

0.003%

Very unlikely: the house edge wins over many bets
Chance of going broke first
99.997%
Expected number of bets before the game ends
1,901
House edge per bet
5.26%
Risk of ruin if you never stop (infinite play)
100.00%

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.

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.

Frequently asked questions

What is the gambler's ruin problem?

It asks the chance that a player who bets repeatedly with a fixed probability of winning each round reaches a target bankroll before running out of money. It is a classic result in probability.

Why is the chance of reaching the target so low?

Each bet has a small house edge, and the more bets you place the more it matters. To reach a target you must win many more bets than you lose, which becomes unlikely when the odds are slightly against you.

Does a larger bet help?

Yes. Fewer, larger bets reduce the number of rounds the house edge applies to, which raises the chance of hitting a modest target. Betting everything at once gives the best odds of doubling, equal to the win probability.

What if the odds are in my favor?

With a winning probability above 50 percent, the risk of ruin becomes small if you have enough bankroll, which is why professional players and investors manage position size carefully.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.