The Claude Quant PlaybookDownload ebookDownload ebook

Gain needed to recover a loss

After a loss you have less money working for you, so you need a bigger percentage gain to climb back. The required gain grows faster and faster as the loss gets bigger.

Build a trading system with Claude.Download ebook

01The formula

the loss as a fraction, so a 25% loss is 0.25
the gain needed afterwards to get back to where you started

02See it move

03Where it is used

04Why traders use it

Losses and gains are not symmetric. Large drawdowns are expensive not just in money but in time, which is why risk control comes before return.

05Worked example

A 25% loss needs a 33.3% gain to get back to even: $100 becomes $75.00, and that smaller amount has to grow back. At 10% a year that takes 3.0 years.

06How it is built

  1. Start with 1. After a loss of you have .
  2. To get back to 1 you need .
  3. Solve: , so .
  4. At a yearly return , recovery takes years.

07The common mistake

Thinking a 30% loss is undone by a 30% gain. It leaves you at 0.7 × 1.3 = 0.91, still 9% down.

08In Python and LaTeX

x = 0.25
print('gain needed:', round(x / (1 - x), 4))  # 0.3333
g = \frac{x}{1 - x}

09Where it fits

Rather not code the maths yourself? Describe your trading idea and let AI build the bot.

Build a bot with AgenKit

The worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.