PipWardenStart free

Drawdown recovery and losing-streak calculator

Three calculators in one: the gain that undoes a drawdown, the losing streak that reaches your loss limits, and the exact odds of a run of losses. Results update as you type.

Loading the calculator…
On this page
  1. How it works
  2. Drawdown and losing-streak formulas
  3. Worked examples
  4. Pitfalls
  5. How PipWarden handles this

To recover a drawdown d, the balance needs a gain of d ÷ (1 − d): a 20% drawdown needs a 25% gain, and a 50% drawdown needs 100%. The gain is always bigger than the loss, because it has to come from a smaller balance.

This drawdown calculator also counts how many losses in a row take an account to a daily or maximum loss limit, and gives the exact odds of a losing streak for a loss rate you assume. It measures losses only: no projected balance, no recovery time.

How it works

The calculator has three tabs:

  • Recovery. Enter a drawdown: how far the balance is below its high point, in %. You get the gain needed to recover it, and a table from 10% to 90%.
  • Streak to limit. Enter your risk per trade, how each loss is sized, and a max drawdown and daily loss limit. You get the drawdown after a run of losses, the losses that reach each limit, and how many full stop-outs fit in one day.
  • Streak odds. Enter a loss rate (your own assumption, not a forecast) and a number of trades. You get the chance of at least one run of 4 to 12 losses in a row, and the expected longest losing run.

Losses can be sized two ways. As a share of the current balance, each loss is a little smaller than the one before. As a fixed amount, a share of the starting balance, every loss is the same size, which suits a limit that counts from the starting balance. The inputs stay in the page address, so a scenario can be shared.

Drawdown and losing-streak formulas

With d the drawdown, r the risk per trade, n a number of losses in a row and D a loss limit, all as fractions, drawdown(n) is the drawdown after n losses and losses(D) the number of losses in a row that reaches D. Here ceil rounds up to a whole loss.

gain(d) = d ÷ (1 − d)

share of the current balance:
drawdown(n) = 1 − (1 − r)^n
losses(D) = ceil(ln(1 − D) ÷ ln(1 − r))

fixed amount:
drawdown(n) = n × r
losses(D) = ceil(D ÷ r)

The streak odds come from exact dynamic programming, not a simulation. With q the loss rate and k the run length, let a(n) be the chance that n trades hold no run of k losses. Then a(n) = 1 while n is below k, a(k) = 1 − q^k, and after that:

a(n) = a(n − 1)
       − (1 − q) × q^k × a(n − k − 1)

The first run of k ends exactly at trade n when the k trades up to n lose, the trade before them wins, and the trades before that hold no run. The chance of at least one run in N trades is 1 − a(N). The expected longest run adds up the chances of a run of at least 1, 2, 3 losses and so on.

Worked examples

All numbers below are illustrative and come straight from the calculator.

Drawdown Gain needed to recover
10% 11.11%
20% 25.00%
30% 42.86%
50% 100.00%
75% 300.00%
90% 900.00%

Pitfalls

  • Where the drawdown is measured from. Here it counts from the balance before the losses. Some prop-firm limits count from the starting balance, and some trail the highest balance or equity, which leaves less room after a good run. Check your account’s exact rule.
  • A limit is not a cap on the loss. A limit checked before each order stops new trades. Trades already open run to their own stops, and gaps or slippage can make a loss larger than the stop. The daily-limit example above shows how far past the limit a day can end.
  • The loss rate is an assumption. A short record says little about the next hundred trades. The odds treat every trade as independent with the same loss rate, but real losses often cluster around news or a change in the market, so real streaks can be longer.
  • Streaks are about the whole sample. A 54.6% chance of a 6-loss run is the chance that one shows up somewhere in 100 trades, not in the next six.
  • Size and limits go together. The same streak is a drawdown at a small risk per trade and can end an account at a large one. The position size calculator turns a risk per trade into a lot size, and the risk-reward calculator shows the win rate a trade needs to break even.

How PipWarden handles this

PipWarden runs as an Expert Advisor in MT5 on a Windows PC or VPS, not on a phone. It sizes every trade from your risk per trade as a share of the account’s equity when the order goes in (the “% of current balance” mode above), using your broker’s tick value and volume step. If that risk is too small for the broker’s minimum lot, the bot skips the trade rather than raising the risk.

Your daily loss limit (5% by default) and position caps are checked before every order. The day’s loss counts from the balance at the start of the UTC day and includes open trades’ floating losses. Once it reaches the limit, no new trades open until the next UTC day. The limit stops new trades, not open ones: trades already open run to their own stops, so a day can end past the limit. The bot has no overall drawdown stop of its own, so a prop firm’s maximum loss is yours to track. You can pause the bot or use the kill switch at any time.

See how it works and the risk controls, and read the risk disclosure before you trade.

Frequently asked questions

How much do I need to gain to recover a 50% loss?
100%. After a 50% drawdown the balance is half of what it was, so it has to double to get back. The formula is d ÷ (1 − d): 0.5 ÷ 0.5 = 1, or 100%.
How many losing trades in a row are normal?
It depends on the loss rate and on how many trades you take. If each trade loses half the time, 100 trades hold a run of 6 or more losses in a row more often than not (54.6%), and the expected longest run is 6.0 losses. At an assumed 60% loss rate, a run of 8 or more in 100 trades is close to a coin flip (49.0%). These assume independent trades; real losses can cluster, so real runs can be longer.
How is maximum drawdown calculated?
Maximum drawdown is the largest fall from a high point to a later low, as a share of the high point: (high − low) ÷ high. Some prop-firm limits are measured from the starting balance instead, and some trail the highest balance or equity, so check the rules of the account you trade.
How many losses until I hit a 5% daily limit?
At a fixed 1% of the starting balance per trade, the 5th loss reaches 5.00%. At 1% of the current balance, 5 losses leave the day 4.90% down and a 6th takes it to 5.85%. At a fixed 2%, 2 losses are 4.00% down and a 3rd ends the day 6.00% down.
Fixed % or fixed dollar risk: which drains slower?
Risking a percentage of the current balance drains slower, because each loss is a little smaller than the one before. Twenty losses in a row at 1% of the current balance are 18.21% down; at a fixed 1% of the starting balance they are 20.00% down. The gap is small over short runs and grows over long ones.
Why is the gain needed bigger than the loss?
Because the gain has to come from a smaller balance. From 100 down to 80 is a 20% loss, but getting the missing 20 back from 80 takes 25%.
Does this calculator predict my drawdowns?
No. It does exact arithmetic on the numbers you enter. The streak odds depend on a loss rate you assume and treat every trade as independent, which real trades often are not. On purpose, it shows no recovery time, no chance of recovering and no future balance.
Embed this calculator on your site

Free to use on your site or blog. It sizes itself to fit; please keep the line with the link under it.

<iframe src="https://pipwarden.com/embed/drawdown-calculator" title="Drawdown calculator" width="100%" height="1000" style="border:0;max-width:760px" loading="lazy" data-pipwarden-embed></iframe>
<script async src="https://pipwarden.com/embed.js"></script>
<p style="font-size:13px">Free calculator by <a href="https://pipwarden.com/tools/drawdown-calculator" rel="nofollow">PipWarden</a></p>

Educational content, not financial advice. Forex and CFDs are traded on margin and are high risk: you can lose money, and more than your deposit with some brokers. Examples use made-up numbers and show no real results. Read the risk disclosure.