Position size and break-even win rate calculator

Two questions to answer before any trade: how big can it be if I only accept to lose a fixed share of my account, and how often does this setup need to win just to break even? Both tools below run in your browser, in plain JavaScript, with nothing sent anywhere.

1. Position size from your risk

riskAmount  = account * riskPct / 100
lossPerCoin = |entry - stop|
quantity    = riskAmount / lossPerCoin
notional    = quantity * entry

The stop distance sets the size: a tight stop allows a bigger position, a wide stop a smaller one, and the loss at the stop stays the same. When the position value is larger than the account, the size only fits with leverage.

2. Break-even win rate from your target

R            = |target - entry| / |entry - stop|
breakEvenWin = 1 / (1 + R)

With a target three times as far as the stop (R = 3), the setup breaks even if it wins 25% of the time. Fees are taken from each win and added to each loss, so they push the break-even rate up, most of all on short stops.

What these numbers cannot do

The loss equals the planned risk only if you exit exactly at the stop. On thin markets, the price can jump past it, and slippage adds to fees. A break-even rate says nothing about whether a setup really wins that often: only a record of past trades can tell you that.