Martingale Betting

One unit on red, doubled after every loss until it wins. Watch a crowd of players run the system for a thousand sessions, then change the bankroll and see what a deeper ladder buys.

Loading interactive simulation...

Lesson

The theory — Martingale Betting

The martingale betting system stakes one unit on an even-money chance, doubles the stake after every loss and stops at the first win, which nets one unit. With a bankroll that covers k bets, 2k − 1 units, a session loses all of it with probability qk; its expected result is 1 − (2q)k and its expected stake is the sum of (2q)i for i from 0 to k − 1, and the ratio of the two is p − q exactly. In probability a martingale is a process whose expected next value, given everything so far, is its present value: the mathematics of a fair game.

What each symbol means

B
the bankroll, in units of the first bet
k
the bets the bankroll covers, the largest k with 2k − 1 ≤ B
q
the chance of losing one bet, 1 − p
R
the result of one session: +1, or −(2k − 1)
S
the total staked in one session
X
the number of lost sessions among n
Assumes
Every session starts again at one unit with the bankroll topped up, and every bet pays even money and loses the whole stake on zero. A table limit cuts the ladder exactly as a smaller bankroll does.

Doubling wins almost every session and loses the house edge on every unit it stakes 🖖

Press 1,023 units, 1,000 sessions. Bet 1 unit on red, double after each loss, stop at the first win: whatever came before, that win nets one unit, because each bet is one more than everything lost before it. With 1,023 units you can afford ten bets, 1 + 2 + … + 512, so a session ends one unit up unless red fails ten times running, which happens in 0.1275% of sessions. Then all 1,023 are gone. The grey dashed line is the system as it feels from the inside, a unit a session. The expected result of a session is 0.998725 × 1 − 0.001275 × 1,023 = −0.3056. A session stakes 11.308 units on average, since most end on the first or second bet and a few climb the ladder, and the ratio of the two, taken before rounding, is −2.7027%, which is −1/37, the edge of a single bet on red, to every digit. It holds at every bankroll, because a session is only a string of bets and each loses 1/37 of its stake on average, whatever its size. Press A fair coin and the expected result is exactly 0. This is Doob's optional stopping theorem, and Kyle Siegrist's textbook gives the gambler's version of it plainly: if the games are fair or unfavorable, "no stopping time, regardless of how cleverly designed, can help the gambler". A session that is over within ten bets is the plainest case. The name belonged to gamblers first. Roger Mansuy finds it in the abbé Prévost's dictionary of 1750, doubling the stake after each loss at faro "in order to quit with a sure profit, provided that he wins once", and Jean Ville carried the word into probability in 1939.

Almost every session wins, and after 1,000 sessions most players are behind 🖖

Stay on 1,023 units, 1,000 sessions and look at the crowd: 400 players, each with the bankroll topped back up after a loss. Every line climbs a unit a session and falls 1,023 at a lost one. Lost sessions are rare, 0.1275% each, but a player plays a thousand of them. After 1,000 sessions 27.92% have never lost one and stand at +1,000. Everyone else has lost at least once, and a single loss already leaves a player at 999 − 1,023 = −24, so 72.08% are behind. The median player's first lost session is the 544th; press 100 sessions and 88.02% are still unbeaten. The average after 1,000 sessions is 1,000 × (−0.3056) = −305.6, the purple dashed line, and the lower panel shows that no player stands there. The totals can only be 1,000, −24, −1,048 and on down in steps of 1,024, since each lost session costs the 1,023 and the unit it did not win. What the system does is pack the loss into rare lumps of 1,023, which is why it feels like winning for so long.

A deeper ladder makes the system lose more per session 🖖

Press 63 units: six bets deep. Sixty-three units cover six bets, a session loses them all 1.8336% of the time, and the expected result is −0.1735 a session. With 1,023 units it is −0.3056. Press A million units: 1,048,575 units cover twenty bets, a session is lost only 1.63×10⁻⁴% of the time, and the expected result is −0.7047. The bankroll table shows where the extra loss comes from. A deeper ladder is reached rarely, but when it is reached it bets far larger amounts, so the expected stake rises, 6.420, 11.308, 26.072, and the edge takes 2.7027% of every unit of it. With the million units, 99.84% of players get through 1,000 sessions without a loss and finish 1,000 up, and the average is still −704.7, paid by the 0.16% who lose 1,048,575 at once. Casanova, recalling the Venice Carnival of 1754 in his memoirs, played a ladder six bets deep: "I never lost the sixth card. If I had lost it, I should have been out of funds" (Grinstead and Snell quote him). On a fair coin every bankroll gives exactly 0, however deep. Only an unlimited bankroll escapes: it wins one unit with certainty, at an expected stake per session that is infinite. The next rung turns the same doubling round. The St Petersburg game pays a pot that doubles with every toss, and its expected value is infinite.

Problem solved in full

  1. Buying a clean thousand sessions 4 steps

    On European red, how large a bankroll gives a 90% chance of playing 1,000 sessions without losing one, and what does it cost per session? Press 1,023 units, 1,000 sessions first: the page gives the chance for 1,023 units.

    Open this problem in the tool

    1. From the page, ten bets deep:

    2. For 90% the chance of losing one session has to fall to:

    3. Each extra bet multiplies that chance by q = 19/37, so the ladder must be at least this deep:

    4. Fourteen bets need 214 − 1 units, and the expected result follows from the same formula:

    Answer

    16,383 units, fourteen bets deep, give 91.52%. Thirteen bets, 8,191 units, give only 84.14%. The price is the expected result, −0.4526 a session instead of −0.3056, so −452.6 over the thousand sessions instead of −305.6. Sixteen times the bankroll buys the better chance and the larger expected loss together.

Learning path

Fair games that ruin you

References (3)