Parrondo's Paradox Calculator
Enter the win probabilities for Game A and the two states of Game B, then pick a playing strategy. The calculator uses Markov chain analysis to find the long-run win probability and expected capital drift for each strategy, proving that two individually losing games can produce a winning combination.
What is Parrondo's Paradox?
Parrondo's Paradox, discovered in 1996 by Spanish physicist Juan Manuel Rodriguez Parrondo, is the counterintuitive result that two individually losing gambling games can be combined into a winning strategy. It sounds impossible: if every individual game you play loses money in the long run, how can playing them together make you richer? The answer lies in how the games interact through a shared state, typically your current capital. When you mix the games, you spend less time in the losing states of Game B and more time in the winning states, shifting the overall balance above 50%. The paradox is a rigorously proven mathematical fact, not a trick, and has been applied in biology (genetic drift), economics (portfolio theory), and physics (Brownian ratchets).
How the two games work
Game A is a simple biased coin: you win $1 with probability p (slightly less than 0.5, typically 0.495) and lose $1 otherwise. Playing it alone guarantees a slow drift toward zero. Game B depends on your current capital divided by 3. If your capital is exactly divisible by 3 (the 'trap' state), you face very unfavorable odds (win prob 0.095). If your capital is NOT divisible by 3, you face very favorable odds (win prob 0.745). At first glance Game B seems attractive because you spend most time in the good state. But the Markov chain analysis shows that Game B's steady-state win probability settles around 49.6%, just below 50%, so it too loses in the long run when played alone. The trap state at capital mod 3 = 0 is visited just often enough to drag the average below fair.
Why mixing the games works: the Markov chain explanation
The key insight is that Game A and Game B have opposite effects on the mod-3 state of your capital. Game A moves capital up or down by 1, redistributing the mod-3 state. When you intersperse A and B plays, Game A effectively breaks the cycle that keeps dragging you into Game B's trap state. The Markov chain for a 50/50 random mix has a different steady-state distribution: the fraction of time spent in the trap state (capital mod 3 = 0) drops from about 38.4% to about 34.5%, and the overall win probability rises to about 50.8%. This is enough to flip the sign of the drift from negative to positive. You go from losing roughly 1 cent per round in each game alone to gaining roughly 1.6 cents per round by mixing them. The mathematical tool for computing this is the transition matrix of the combined Markov chain, whose left eigenvector with eigenvalue 1 gives the steady-state probabilities.
How to use this calculator
Enter the win probability for Game A (p), and the two win probabilities for Game B: p1 for the 'trap' state when capital mod 3 equals 0, and p2 for all other states. Choose your playing strategy from the dropdown: A only, B only, strict alternation (ABAB), the AABB pattern, or a random 50/50 mix. The calculator solves the Markov chain analytically and shows the long-run win probability, expected drift per round, and the steady-state distribution of capital mod 3 for your chosen strategy. The chart shows the expected capital trajectory over time for all three scenarios side by side so you can see the paradox visually. To reproduce the classic Parrondo result, use the default values: p=0.495, p1=0.095, p2=0.745.
Classic Parrondo's paradox probability values
| Game | Condition | Win probability | Drift per round |
|---|---|---|---|
| Game A | Always | 0.495 | -0.0100 |
| Game B | Capital mod 3 = 0 | 0.095 | - |
| Game B | Capital mod 3 != 0 | 0.745 | - |
| Game B | Long-run (Markov) | ~0.49565 | -0.00870 |
| A,B mix (random) | Long-run (Markov) | ~0.50785 | +0.01570 |
The original game probabilities used by Juan Parrondo. Each game loses alone, but any mixed strategy wins.
Frequently asked questions
Is Parrondo's paradox real or just a trick?
It is mathematically proven. Parrondo's paradox arises from a genuine property of Markov chains: two transition matrices that individually lead to a losing drift can combine into one with a positive drift. It is not an artifact of small samples or incorrect probability calculations. The effect has been demonstrated experimentally with physical ratchets and observed in biology.
Can I use this at a casino?
No. The paradox requires a specific capital-dependent interaction between the two games. Standard casino games are statistically independent of your current capital (the roulette wheel does not know how much money you have). Without that coupling, mixing losing games produces only a weighted average of losing strategies, which still loses.
What is the mod-3 trap state?
Game B's rules depend on whether your capital is divisible by 3. When capital mod 3 equals 0, you face the very bad odds (0.095 win probability). When it equals 1 or 2, you face favorable odds (0.745). The trap is that even with mostly favorable plays, you visit the divisible-by-3 state just often enough to drag the overall expected value below 50%. The Markov chain visits state 0 about 38.4% of the time when playing Game B alone.
Why does alternating between A and B help?
Game A shifts your capital by +1 or -1 with nearly equal probability, which changes the capital mod 3 value randomly. This disrupts the pattern that keeps Game B cycling back to the trap state. Specifically, A plays reduce the fraction of time spent in the mod-3=0 trap state from about 38.4% to about 34.5%, tilting the overall win rate just above 50%.
Do ABAB and AABB give the same result?
In this calculator both are modeled as a 50/50 blend of Game A and Game B steps, which gives identical long-run win probabilities under the blended Markov chain model. In a more detailed simulation, the exact sequence can produce small differences, but both reliably produce the winning paradox for the classic probability values.
What happens if I change the probability values?
The paradox is not guaranteed for all probability combinations. It emerges when: (1) both games individually lose (win prob below 0.5), (2) the capital-dependent structure of Game B creates a strong enough trap, and (3) Game A's uniform random walk disrupts that trap effectively. If the bias is too large or the trap is not strong enough, mixing may not flip the overall result to winning.
What real-world systems exhibit this paradox?
Parrondo's paradox has been identified in genetic drift in biology (where two deleterious mutations can combine to produce a beneficial effect), in models of financial portfolio diversification, in ecology (where two individually declining species stabilize when mixed), and in the physics of Brownian ratchets and molecular motors. It has even been proposed as an explanation for certain evolutionary phenomena where random genetic drift interacts with selection.