Does the Martingale system work?
No. On 20,000 seeded European-wheel sessions, Martingale walked away $200 up 68.7% of the time and still lost $32.19 per session on average: −$2.52 for every $100 wagered, the house edge within sampling noise.
How Martingale is played
- Bet one unit ($5) on red.
- After a loss, double the previous stake.
- After a win, go back to one unit. Each completed cycle nets exactly one unit.
What 20,000 sessions show
Sessions that finished ahead were up $200 on average; sessions that finished behind were down $542.52. 31.3% of sessions ended because the next stake no longer fit the bankroll or the table limit.
Martingale converts many small wins into one rare, very large loss. Seven losses in a row take the stake from $5 to $640, past the $500 table limit, and the cycle can no longer be finished. The high success rate is real; it is paid for by the sessions that hit that wall.
The median session lasted 76 spins. The median longest losing run was 6 spins in a row (the worst of 20,000 was 7), and one session in ten put at least $320 on the table in a single spin.
European versus American wheel
The same 20,000 seeds, replayed on a double-zero wheel. The second zero roughly doubles the edge to $5.26 per $100 wagered. Measured return goes from −$2.52 to −$5.47 per $100, and the mean session from −$32 to −$73.
| Metric | European (one zero) | American (two zeros) |
|---|---|---|
| Walked away +$200 | 68.7% | 63.4% |
| Busted (stake no longer fit) | 31.3% | 36.6% |
| Hit the 500-spin cap | 0.0% | 0.0% |
| Finished in profit | 68.7% | 63.4% |
| Mean result per session | −$32 | −$73 |
| Median final bankroll | $1,200 | $1,200 |
| 10th / 90th percentile | $420 / $1,200 | $410 / $1,200 |
| Mean amount wagered | $1,276 | $1,330 |
| Return per $100 wagered | −$2.52 | −$5.47 |
The code that produced these numbers
This Lua is the strategy as Engineer mode runs it, inside the same sandbox and kernel. A test in the repository replays it against the bulk generator on fixed seeds and fails the build if the two ever disagree by a single dollar.
-- Martingale: double the stake after every loss, return to one unit after a win.
-- Session rules shared by every 0xroulette.com/systems page:
-- $5 unit, $500 table max, walk away at +$200, and stop the moment
-- the next stake can't be covered by the bankroll or the table limit.
local UNIT, TABLE_MAX, TARGET = 5, 500, 200
local step
local function reset() step = 0 end
local function place(ctx)
return { { type = "red", amount = UNIT * 2 ^ step } }
end
local function settle(result)
if result.net > 0 then step = 0 else step = step + 1 end
end
-- Shared wrapper: enforces the session rules around place/settle.
strategy = {}
local start, stopped
function strategy.setup(ctx)
start, stopped = ctx.bankroll, false
reset()
end
function strategy.bet(ctx)
if stopped or ctx.bankroll >= start + TARGET then
stopped = true
return {}
end
local bets, stake = place(ctx), 0
for _, b in ipairs(bets) do
if b.amount > TABLE_MAX then stopped = true end
stake = stake + b.amount
end
if stake > ctx.bankroll then stopped = true end
if stopped then return {} end
return bets
end
function strategy.on_spin(ctx, result)
if not stopped then settle(result) end
end
Session rules
- Bankroll / unit
- $1,000 / $5
- Exit rules
- walk away at +$200 ($1,200); 500 spins; stop when the next stake exceeds the bankroll or the table maximum
- Table maximum
- $500 per bet
- Seeds
- 20,000 per wheel from master seed
0x6d2e6c8b, identical for every system
Limitations
One bankroll, one unit size, one table limit, and one walk-away target. A bigger bankroll or a higher limit moves where a progression breaks; it does not change the return per dollar wagered. Spins are fair and independent, as on a correctly functioning wheel or a certified RNG. Physical wheel bias is a separate question, covered on Physics.