Mathematics & Statistics · Game Theory, Ratings & Stochastic Processes
Gambler’s Ruin Bankroll Survival Probability & Expected Spins to Absorption Calculator: inputs, method, and how to read the result
Compute probability of hitting target bankroll N before ruin (0) and expected steps.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Starting Bankroll Units I: Starting bankroll in betting units (i).
- Target Goal Bankroll Units N: Target bankroll goal in betting units (N > i).
- Single Bet Win Probability Pct: Single-trial win probability p % (50% fair coin, 48.65% European roulette, 49.29% craps).
What the calculation includes
With the default values shown, Probability of Reaching Goal Before Ruin is 25.346 %. The calculation follows Gambler’s Ruin Probability Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Starting Bankroll Units I from 20 units to 22 units changes Probability of Reaching Goal Before Ruin from 25.346 % to 29.723 %. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.