Skip to main content
aifinhub
Backtesting & Validation Formula

Profit Factor Formula

Profit factor is gross profit divided by gross loss: the total of all winning trades over the absolute total of all losing trades. A profit factor above 1.0 means the system made money; 1.5 to 2.0 is solid; above 2.0 is strong but should be checked for overfitting on small samples. It folds win rate and payoff ratio into one figure.

By AI Fin Hub Research · AI Fin Hub Team
Best Next MoveCalculators

Position Sizing under Edge Variance

Bayesian-Kelly bet sizing when your edge is itself uncertain. Compare deterministic Kelly, Bayesian-adjusted, and conservative lower-bound versions.

CalculatorOpen ->

On This Page

Formula

Copy the exact expression or work through it step by step below.

ProfitFactor = GrossProfit / |GrossLoss| Equivalently: PF = (WinRate x AvgWin) / ((1 - WinRate) x AvgLoss)

Variables

GrossProfit

Gross profit

Sum of the profits from all winning trades, before costs are netted across the book. It is the total upside the strategy produced.

GrossLoss

Gross loss

Sum of the losses from all losing trades, as an absolute value. Dividing gross profit by this gives the ratio of money made to money lost.

WinRate

Win rate

Fraction of trades that won. The equivalent form shows profit factor as the product of win rate and average win over loss rate and average loss, exposing how both inputs drive it.

AvgWin, AvgLoss

Average win and loss

Mean profit of winners and mean loss of losers. A high average win relative to average loss can carry a profit factor above 1 even with a sub-50% win rate.

Step By Step

  1. 1

    Sum the profit of all winning trades to get gross profit.

    30 winners averaging 400 each give gross profit 12,000.

  2. 2

    Sum the loss of all losing trades, as a positive number, to get gross loss.

    70 losers averaging 100 each give gross loss 7,000.

  3. 3

    Divide gross profit by gross loss.

    12,000 / 7,000 = 1.714.

  4. 4

    Interpret the result: above 1.0 is profitable, with 1.5 to 2.0 considered robust over a meaningful sample.

    1.71 indicates a healthy edge if the trade count is large enough to trust.

Worked Example

Mean-reversion system, 100 trades, low win rate

Winners

30 trades, avg 400

Losers

70 trades, avg 100

Gross profit = 30 x 400 = 12,000. Gross loss = 70 x 100 = 7,000. Profit factor = 12,000 / 7,000 = 1.714. Cross-check via the win-rate form: (0.30 x 400) / (0.70 x 100) = 120 / 70 = 1.714.

Profit factor of about 1.71 despite a 30% win rate, because winners are four times the size of losers. This is the inverse of a typical trend system: here the edge comes from large, infrequent wins. A profit factor near 1.7 is solid, but on only 100 trades the standard error is wide, so confirm it holds out-of-sample before scaling size.

Common Variations

Recovery factor: net profit divided by maximum drawdown, a profitability-per-risk variant.
Expectancy: average profit per trade, which (unlike profit factor) carries the scale of edge in currency, not just the ratio.
Adjusted profit factor: removes the single largest winning trade to test how dependent the result is on one outlier.

Try These Tools

Run the numbers next

Sources & References

Related Content

Keep the topic connected

Planning estimates only — not financial, tax, or investment advice.