Martingale Calculator
A martingale strategy doubles the amount you risk after every loss and goes back to the starting amount after a win. With a $10,000 account and $100 at risk to start, six losses in a row cost $6,300 and leave too little for the $6,400 seventh trade. This calculator shows the losing streak your account cannot get past, what that streak costs and how likely that streak is within your number of trades.
What Is the Martingale Strategy?
The martingale started as a betting system for even-money casino bets such as red or black at roulette: double the stake after every loss, so the first win wins back everything lost plus the first stake. In trading, the stake is the amount a trade risks, the money lost if the stop loss is hit. A trader running a martingale doubles that amount after each losing trade and drops back to the starting amount after a winning one.
The formula: after k losses in a row, starting at risk b with multiplier m, the total lost is b x (m^k - 1) / (m - 1) and the next trade risks b x m^k. The progression breaks when that next trade needs more than the account has left.
Why Doubling After Each Loss Raises the Risk of Ruin
Each winning round of a martingale earns the starting amount. Each extra loss in a streak roughly doubles what the streak has cost, and losing streaks run longer than most traders expect. At a 50% win rate, a run of six losses somewhere in 100 trades is more likely than not.
| Losses in a row | Risk on that trade | Total lost | Chance in 100 trades |
|---|---|---|---|
| 4 | $800 | −$1,500 | 97.3% |
| 5 | $1,600 | −$3,100 | 81.0% |
| 6 | $3,200 | −$6,300 | 54.6% |
| 7 | $6,400 | −$12,700 | 31.8% |
| 8 | $12,800 | −$25,500 | 17.0% |
| 9 | $25,600 | −$51,100 | 8.8% |
The chance is exact: at least one streak of that length anywhere in 100 trades. A $10,000 account stops at the six-loss row, with $3,700 left and a $6,400 trade next.
In the calculator's worked example, 46% of 10,000 simulated runs hit that streak within 100 trades. The same runs risking a flat $100 on every trade never ran out of money. Doubling leaves the edge where it was (zero, at a 50% win rate on 1:1 trades) and changes how the losses arrive: many small wins, then one loss of most of the account. That is the risk of ruin of a martingale: the size of the account sets how long the martingale lasts.
What Changes the Odds
Four inputs move the chance of breaking: the starting risk as a share of the account, the multiplier, the win rate and the number of trades. Each row below changes one of them from the worked example.
| Change from the example | Streak that breaks it | Chance in the trades shown |
|---|---|---|
| None: $100 start, x2, 50%, 100 trades | 6 losses | 46% |
| $50 start | 7 losses | 32% |
| $10 start | 9 losses | 6.4% |
| Multiplier 1.5 | 9 losses | 8.0% |
| Multiplier 3 | 4 losses | 86% |
| Win rate 60% | 6 losses | 15% |
| 200 trades | 6 losses | 63% |
| 500 trades | 6 losses | 84% |
A multiplier under 2 on 1:1 trades lowers the chance and also means the first win no longer covers the whole streak. More trades always raise the chance: a streak that is rare in 100 trades turns up in enough of them.
Martingale in Trading
Trades differ from roulette spins in ways that make the streak math harsher. A price that gaps past a stop loss can lose more than the trade was meant to risk. Brokers cap position sizes and margin, which ends the progression the way a table limit does at a casino. Win rates also drift: a setup that won half the time last month can win less this month.
Adding to a losing position is a close relative. Buying more of a falling stock lowers the average price and raises the amount riding on the stock at the same time. Raising the risk after a loss to win the money back fast has its own name, revenge trading.
How the Calculator Works
Every trade wins with the same probability, independent of the trades before it. A win pays the payoff ratio times the amount risked and a loss costs the amount risked. After a win the risk goes back to the starting amount and after a loss the risk is multiplied.
The progression breaks when the next trade would risk more than the account holds. The account is not at zero at that point: the loss is the whole streak.
The chance of breaking comes from 10,000 simulated runs that track the account trade by trade, so winning rounds that grow the account and lengthen the streak the account can take are counted. The runs use a fixed seed, so the same inputs always give the same answer. The streak, loss and risk figures use the starting account. The flat comparison runs the same trades at the starting risk and counts a run as out when less than one starting risk is left.
The losing streak table is exact, worked out one trade at a time with no simulation. No fees, slippage or gaps are included.
Frequently Asked Questions
The martingale strategy multiplies the amount you risk after every loss (usually by two) and goes back to the starting amount after a win. On a trade that pays what it risks, the first win recovers every loss in the streak plus the starting amount. The catch is the size of the trades a long streak needs: starting at $100, the eighth loss in a row is a $12,800 trade and the streak has cost $25,500.
With doubling and a starting risk b, the account has to hold b x (2^(k+1) - 1) to keep going after k losses in a row. A $10,000 account starting at $100 can take 6 losses: they cost $6,300 and the seventh trade needs $6,400 with $3,700 left. Seven losses would take $12,700. Halving the starting risk to $50 adds one loss to the streak the account can take.
After k losses in a row, starting at risk b with multiplier m, the total lost is b x (m^k - 1) / (m - 1) and the next trade risks b x m^k. With m = 2 that is b x (2^k - 1) lost and b x 2^k on the next trade. The chance of at least one streak of k losses in n trades has no short formula. The calculator works that chance out exactly, one trade at a time.
Doubling after a loss leaves the edge per dollar risked unchanged: win rate x payoff - loss rate. With a 50% win rate on 1:1 trades the edge is zero, flat or doubled. Doubling changes the shape of the results instead: many wins of the starting amount and a rare loss of most of the account. With $10,000, a $100 start and 100 trades, 46% of the simulated runs hit the streak that breaks the progression. Risking a flat $100, none of them ran out.
They are related. Averaging down adds to a position that is still open and losing, so the amount riding on one stock grows as the price falls. A martingale raises the risk of the next trade after a closed loss. Both put more money at stake the longer the losses run.
The anti-martingale (also called the reverse martingale) raises the risk after a win and cuts it after a loss. Risking a fixed percentage of the current account is a mild form of the anti-martingale: after losses the account is smaller, so the same percentage is fewer dollars. Losing streaks then shrink the trade size instead of growing it.
Related Tools
Practice trading with simulated money
Tradicted is a free trading practice app for iOS and Android where you buy or sell on candlestick charts from real market data with simulated money.
Scan to install