Skip to content

Profit factor

Profit factor compares total winning P&L with loss magnitude. See a net-of-cost ledger, zero-loss cases and why trade grouping changes the ratio.

Profit factor is the sum of profitable trades' profit and loss divided by the magnitude of losing trades' P&L, using the same trade definition, currency and cost basis throughout. It measures how much positive trade P&L the strategy generated for each unit of realised losses. A value above one means the included trades made money overall. It does not establish that the strategy earned an attractive return on capital or will remain profitable.

Add the winners, then add the losses

For eligible completed trades with P&Ls Π1,…,ΠN\Pi_1,\ldots,\Pi_N, define

G=∑i=1Nmax⁡(Πi,0),L=∑i=1Nmax⁡(−Πi,0).G=\sum_{i=1}^{N}\max(\Pi_i,0),\qquad L=\sum_{i=1}^{N}\max(-\Pi_i,0).

Then, when L>0L>0,

PF=GL,∑i=1NΠi=G−L=L(PF−1).\mathrm{PF}=\frac{G}{L},\qquad \sum_{i=1}^{N}\Pi_i=G-L=L(\mathrm{PF}-1).
The denominator is a positive loss magnitude, not a signed negative number. Profit factor is dimensionless: both sums use the same currency. With a positive denominator, a factor above one means positive total P&L, one means break-even and below one means negative total P&L.
Trading reports often call GG “gross profit” and LL “gross loss”. Here those labels refer to separate sums of winning and losing net trade P&Ls; “gross profit” does not mean that fees were excluded. TradeStation's definition, for example, explicitly accounts for commissions and specified strategy slippage. Always check the report's cost settings.

Consider four synthetic closed round trips, measured in USD:

TradeNet P&L (USD)
A+10
B+20
C−5
D−15
Commission and execution-price effects are already included. This example has no financing charges, borrow charges, distributions or taxes. Positive P&Ls sum to 3030 USD, while losses total 2020 USD in magnitude. Therefore profit factor is 30/20=1.530/20=1.5, and total net P&L is 30−20=1030-20=10 USD.
Four synthetic closed trades have net P&L in USD of +10, +20, −5 and −15. Positive net P&L sums to 30 USD and loss magnitude to 20 USD, giving profit factor 1.5 and total net P&L +10 USD.
Four synthetic closed trades have net P&L in USD of +10, +20, −5 and −15. Positive net P&L sums to 30 USD and loss magnitude to 20 USD, giving profit factor 1.5 and total net P&L +10 USD.
Original synthetic closed-trade ledger in USD. The bars compare sums of net trade P&L: 1.50 USD of positive P&L for each 1 USD of realised loss magnitude. Bar lengths share a common scale.
The figure does not say the investor earned a 50% return. No capital base or holding period has been specified. Multiplying every trade P&L by the same positive constant preserves the ratio while changing the money gained and lost.

The ledger convention is part of the statistic

For the example, a trade is a complete round trip from no position back to no position; partial fills and exits belong to that round trip. Include trades whose final exit occurs in the declared reporting window, even if their entry preceded it. State the strategy, instruments, window, time zone, currency-conversion rule and treatment of multi-leg positions. Real trading engines can offer different fill-grouping and matching methods.

Grouping can change the answer even when total P&L is unchanged. If A and C were legs of one strategy trade, their combined P&L would be +5+5 USD. The grouped ledger would be +5,+20,−15+5,+20,-15: positive P&L of 2525 USD divided by loss magnitude of 1515 USD, or 5/35/3, rather than 1.51.5. Total net P&L would still be 1010 USD. Compare reports only after aligning their grouping rules.

Use P&L after the specified transaction costs and carrying charges. Allocate costs consistently before classifying trades as winners or losers; a small pre-cost gain can become a net loss. Execution costs already reflected in fill prices must not be deducted again. The Financing, Borrow and Transaction Costs lesson develops that ledger distinction and cost stress tests; the full lesson requires membership, with a public preview.

Exactly zero net-P&L trades contribute to neither sum. They leave profit factor unchanged, although including them in a trade count changes mean P&L per trade. Open positions are excluded from this closed-trade calculation; disclose their marked P&L separately. Keeping a losing position open can make a closed-trade report look better without improving the account's economic value.

Observed closed-trade recordProfit-factor interpretation
Losses exist, no positive P&LZero: G=0G=0 and L>0L>0
Positive P&L exists, no lossesNo finite ratio: G>0G>0 and L=0L=0; some reports display infinity
No eligible trades, or only zero-P&L tradesUndefined: G=L=0G=L=0

A display of infinity means no losses were observed under that reporting convention. It is not evidence of zero future downside. Keep these states distinct rather than replacing every missing denominator with zero.

Different from payoff ratio and expectancy

Profit factor uses totals. The payoff ratio uses average winning P&L divided by average loss magnitude. If W>0W>0 trades win, D>0D>0 trades lose, and their respective means are w‾\overline w and ℓ‾\overline\ell, then
PF=Ww‾Dℓ‾=WD×w‾ℓ‾.\mathrm{PF}=\frac{W\overline w}{D\overline\ell} =\frac{W}{D}\times\frac{\overline w}{\overline\ell}.
In the four-trade example, the average win is 1515 USD and the average loss magnitude is 1010 USD. The payoff ratio is 1.51.5 too, because there are two winners and two losers. Equal values here do not make the two statistics interchangeable. Profit factor combines winning frequency and payoff size; the hit rate counts winners without measuring their sizes.

Historical mean net P&L is another statistic:

Π‾=G−LN=104=2.5 USD per trade.\overline\Pi=\frac{G-L}{N}=\frac{10}{4}=2.5\ \text{USD per trade}.
This sample mean is often used to estimate trade expectancy. A forward-looking expectation requires assumptions about future outcomes, costs and sizing. Profit factor 1.51.5 is neither a 1.5 USD expected profit per trade nor a forecast of that expectation.

Read it alongside the path and the search history

Profit factor ignores the order of the trades. Reordering the same P&Ls preserves the ratio but can change drawdown, funding needs and the time spent recovering losses. It also hides concentration: excluding the largest winner from the example would leave positive P&L of 1010 USD against losses of 2020 USD, giving a factor of 0.50.5 and net P&L of −10-10 USD. That sensitivity check does not justify deleting the trade; it shows how much the result depends on it.
Report the trade counts, money totals, open exposure, cost assumptions and drawdown alongside the ratio. Examine performance across periods and instruments, and distinguish results used to select the strategy from genuinely out-of-sample evidence. Choosing the best profit factor from many backtests can select historical noise; Bailey and co-authors' research on backtest overfitting explains why selection history matters across performance measures.
The Backtest Evaluation lesson extends this report to capital-adjusted returns, drawdowns, concentration and robustness. Full access requires membership, with a public preview.

Sources

Last updated
  • trade statistics
  • backtesting
  • performance measurement
  • net profit and loss
← Back to the glossaryBack to top ↑