The formulas behind the calculator
The calculator measures a trade in units of risk R: a win pays RR, a loss costs 1. Costs c — commission, spread and slippage, also in R — are paid on every trade, so the win shrinks to RR − c and the loss grows to 1 + c. Three formulas follow:
Breakeven win rate = (1 + c) / (1 + RR). At RR 2 it is 1 / 3 = 33.33%; with 0.1 R of costs, 1.1 / 3 = 36.67%.Minimum RR = (1 + c) / win rate − 1. At a 45% win rate, 1 / 0.45 − 1 ≈ 1.22; with 0.1 R of costs, 1.1 / 0.45 − 1 ≈ 1.44.Expectancy = win rate × (1 + RR) − (1 + c), in R. At 45% and RR 2, 0.45 × 3 − 1 = +0.35 R; with 0.1 R of costs, +0.25 R.
With no costs these are the familiar 1 / (1 + RR) and (1 − win rate) / win rate. What expectancy means and why R is the convenient unit is explained in «Trading expectancy»; how to get a trade's RR from its entry, stop and target — in «Risk/reward ratio (RR)».
What to enter
- RR. Ideally your average win divided by your average loss over closed trades — then 1 R is your average loss. A planned RR (target / stop) works for judging a setup before entry, but realised wins are often smaller than planned. Both «2» and «1:2» are accepted.
- Win rate. The share of winning trades over a sample of at least 50–100 trades; over 20 trades it is close to noise. The field is optional — leave it empty and the calculator shows only the breakeven win rate.
- Costs, R. Round-trip commission, spread and slippage divided by the trade's risk. A $200 risk with $8 commission and $12 of spread and slippage gives (8 + 12) / 200 = 0.1 R. If your RR comes from net trade results, costs are already in it — leave 0.
Minimum RR for your win rate
The reverse question: you know your win rate — how many times larger than the average loss must the average win be for the strategy not to lose?
| Win rate | Minimum RR | With 0.1 R of costs |
|---|---|---|
| 30% | 2.33 | 2.67 |
| 40% | 1.5 | 1.75 |
| 45% | 1.22 | 1.44 |
| 50% | 1 | 1.2 |
| 60% | 0.67 | 0.83 |
| 70% | 0.43 | 0.57 |
Costs lift the breakeven win rate by c / (1 + RR). At RR 2, 0.1 R of costs adds 3.33 percentage points; at RR 1 it adds 5 (55% instead of 50%), and 0.2 R adds 10 (60%). The lower the RR, the more each tenth of an R in costs hurts — which is why strategies with RR near 1 and tight stops depend on commission and spread the most.
How to read the result
The breakeven win rate is a floor, not a target: below it the strategy loses whatever the position size. The gap between your win rate and the breakeven one is your margin — how many percentage points the win rate can drop before expectancy turns negative.
Example. A 45% win rate looks fine, but if the average win is only 1.1 times the average loss, the breakeven win rate is 1 / 2.1 = 47.62% and expectancy is 0.45 × 2.1 − 1 = −0.055 R. With an $80 average loss that is −$4.40 per trade. There are two ways out: lift the win rate above 47.62% — by more than 2.62 percentage points — or lift the average win above 1.22 times the average loss, from $88 to more than $97.78.
Positive expectancy does not protect you from a losing streak. To see what drawdown your statistics produce at your risk per trade, use the risk of ruin calculator.
Your breakeven win rate in Davinchu
The Davinchu trading journal already has both inputs for this calculator: on the «Overview» tab, the «Statistics» card shows «Winrate» and «Payoff (avg W / avg L)» — average win divided by average loss. For trades from connected accounts the journal uses the net result, including commission and swap, so costs are already inside Payoff and the cost field should stay at 0. The calculator computes expectancy with the same formula as the journal, only in R: multiply it by «Average loss» from the same card and you get the journal's «Expectancy» in money, up to rounding.
The «Instruments», «Sessions», «Setups» and «Duration» sub-tabs show the win rate and average R of each group: a group with a negative average R is losing, however good its win rate looks. The Free plan connects two accounts at no cost.