Profit Factor in Trading: Formula, Examples and Good Values
Profit factor divides gross profit by gross loss. Learn the formula, a worked forex example, what 1.3, 1.5 and 1.8 mean, and how costs and trade count distort it.

Profit factor is gross profit divided by gross loss. A value above 1.0 means the winning trades earned more than the losing trades cost, 1.0 is break-even, and anything below 1.0 is a net loss. It is the quickest single number for judging a trading system, but only when you calculate it after costs and from enough trades. This guide shows the formula, a worked forex example, what values like 1.3, 1.5 and 1.8 suggest, and how to check the figure against a system whose rules and code you can read. The robots in our collection of Forex robots with source code ship with their trading rules, so you can trace every trade behind a profit factor back to the logic that produced it.
TL;DR
-
Profit factor = total gross profit ÷ total gross loss, both taken from the same set of closed trades.
-
Above 1.0 is profitable on paper. Many traders treat roughly 1.5 or higher, measured on out-of-sample trades and after costs, as a reasonably good system.
-
Spread, commission, swap and slippage can pull a backtest profit factor down by a lot. Always use a net figure.
-
A profit factor from 20 trades says very little. Read it together with win rate, average trade, drawdown and trade count.
-
A very high value is often a warning sign of overfitting, not a better strategy.
What profit factor measures
Profit factor answers one question: for every dollar the system lost, how many dollars did it win? A profit factor of 1.5 means the winners produced $1.50 for every $1.00 given back by the losers.
Two things make it popular. It is unitless, so you can compare a EUR/USD system with a GBP/JPY system, or a $1,000 account with a $50,000 account. And it folds win rate and payoff size into one ratio: a system that wins rarely but wins big and a system that wins often but wins small can land on the same value.
What it does not tell you is how deep the account fell on the way, how many trades the figure rests on, or whether the trades came in an order you could have survived. That is why it is a starting filter, not a verdict.
How to calculate profit factor
The formula has three steps.
-
Add up every winning trade. This is gross profit.
-
Add up every losing trade as a positive number. This is gross loss.
-
Divide gross profit by gross loss.
Profit factor = gross profit ÷ gross loss
A worked example
Suppose a EUR/USD system closed 40 trades in a backtest:
| Item | Value |
|---|---|
| Winning trades | 18 |
| Losing trades | 22 |
| Gross profit | $2,700 |
| Gross loss | $1,800 |
| Net profit | $900 |
| Win rate | 45% |
| Average win | $150 |
| Average loss | about $81.82 |
Profit factor = 2,700 ÷ 1,800 = 1.50.
Notice the win rate is below 50%. The system still works because the average winner is nearly twice the average loser. This is why win rate alone is a poor guide.
The same ratio can be written another way, which helps when you want to reason about a strategy before testing it:
Profit factor = (win rate × average win) ÷ (loss rate × average loss)
With our numbers: (0.45 × 150) ÷ (0.55 × 81.82) = 67.5 ÷ 45 = 1.50. If you know two of the three quantities, you can see what the third must be.
Edge cases to handle
-
No losing trades. Gross loss is zero and the ratio is undefined. Most platforms show infinity or a blank. Treat it as a sign of too few trades, not a perfect system.
-
Open trades. Calculate from closed trades only, or mark open ones to market and say so. Mixing the two makes figures hard to compare.
-
One giant winner. If a single trade supplies most of the gross profit, remove it and recalculate. The result shows how fragile the figure is.
What is a good profit factor?
There is no official threshold. Published guides differ, and the answer depends on strategy type, market, costs and sample size. Still, some anchors are useful.
John Ehlers and Ric Way, in their paper Evaluating Trading Systems, define profit factor as the ratio of gross winnings to gross losses. Their Monte Carlo example uses 55% winners and a profit factor of 1.5, measured on out-of-sample trades, as a reasonably good trading system. Out-of-sample means trades the system was not tuned on, a point we return to below.
Here is how many traders read common values. Treat the labels as rules of thumb, not as facts about any particular system.
| Profit factor | Rough reading |
|---|---|
| Below 1.0 | Loses money |
| 1.0 | Break-even before any further costs |
| 1.1 to 1.3 | Thin edge. Costs or a slightly worse spread can erase it |
| 1.3 to 1.5 | Plausible edge if the sample is large and costs are included |
| 1.5 to 2.0 | Solid, if it holds out of sample |
| Above 2.0 | Verify carefully. Often a small sample, a tuned parameter or a missing cost |
Is 1.3, 1.5 or 1.8 good?
-
1.3: The system makes $1.30 per $1.00 lost. On a high-frequency forex system with tight margins per trade, this can be workable, but spread changes would hit it hard. A 10% rise in average loss alone would take it to about 1.18.
-
1.5: Gross profit is half again as large as gross loss. This is the figure the Ehlers and Way example treats as reasonably good, and it leaves room for costs to rise somewhat before the system turns unprofitable.
-
1.8: Strong, provided it comes from hundreds of trades and survives a test on data the system has never seen. On a short sample, 1.8 is easy to produce by luck.
The better question is not “is this number good?” but “how far can it fall before the system stops making money?” A profit factor of 1.5 can absorb a 33% increase in gross loss before reaching 1.0. A 1.1 can absorb about 10%.
Profit factor and win rate belong together
The two figures describe the same trades from different angles. Ehlers and Way show that the same average profit per trade can come from different mixes of percent winners and profit factor: a trend-following system with few winners but a large profit factor can match a swing system with more winners and a lower one. So a profit factor should always be read next to the win rate and the average win and loss.
For your own tests, record four numbers side by side:
-
Profit factor
-
Win rate
-
Average win divided by average loss (the payoff ratio)
-
Number of trades
If profit factor is high but the win rate is 25%, you need the psychological and capital tolerance for long losing streaks. If win rate is 75% and profit factor is only 1.2, a few oversized losses are carrying the result, and you should look at how they happen.
Profit factor in forex: use the net number
Forex adds costs that a simple profit-and-loss total can hide. The profit factor you should trust is the net one, with every cost applied to each trade.
Spread. You buy at the ask and sell at the bid, so every round trip starts slightly behind. Our guide to forex bid, ask, spreads and costs explains how this works. A backtest that fills at the mid price flatters the result.
Commission. Some accounts charge a fixed amount per lot on top of a tighter spread. It is a cost on every trade, winner or loser.
Swap. Positions held overnight pay or earn a financing charge. For systems that hold for days, swaps can matter as much as spread.
Slippage. The fill differs from the price the rule asked for. How you define the reference price changes how much slippage you measure, which we cover in slippage in trading and the reference price.

How costs change the example
Take the 40-trade system above and assume a cost of $5 per trade (spread, commission and slippage combined). Costs reduce each winner and enlarge each loser:
-
Gross profit after costs: $2,700 − (18 × $5) = $2,610
-
Gross loss after costs: $1,800 + (22 × $5) = $1,910
-
Net profit factor: 2,610 ÷ 1,910 = about 1.37
The headline 1.50 became 1.37 with a modest cost. A system with smaller average trades, such as a scalper, is hit far harder, because the same $5 is a larger share of each trade. This is why short-term systems need a higher gross profit factor than longer-term ones to net the same result.
When you compare two profit factors, check that both include costs and that the cost assumptions are the same.
How many trades do you need?
A profit factor of 2.0 from 12 trades is a handful of coin flips. A profit factor of 1.4 from 600 trades across several market conditions is much more informative. There is no magic count, but as a working rule, treat anything under a few dozen trades as anecdote and look for a sample that includes trending, ranging and volatile periods.

It also helps to look at profit factor over time. Split the test into yearly blocks and compute each. If one year produces 3.0 and four years hover around 1.0, the full-period figure is misleading.
Why a high profit factor can mislead
A chase for the biggest number leads to the most common error in system development: tuning a strategy until the backtest looks great. Each parameter you adjust to raise profit factor fits the system a little more to the past and a little less to the future.
Here is what to check.
-
Out-of-sample results. Fit the rules on one block of history and measure on another. Our article on in-sample and out-of-sample backtesting shows how to set this up. The Ehlers and Way example uses out-of-sample trades for exactly this reason.
-
Parameter sensitivity. Move each parameter up and down by 10 to 20%. If profit factor collapses, you found a peak, not a plateau. See parameter robustness and sensitivity for the method.
-
Position sizing. Compounding and lot-size rules change the dollar amounts of wins and losses over time, and so they change the ratio. Read position sizing sensitivity in tests before comparing runs.
-
Shared exposure. If you run several robots at once, their trades may stack in the same direction on the same pair. Individual profit factors then say little about the combined risk. Robot portfolios and shared exposure covers this.
-
Code you have not verified. If AI wrote part of the logic, a bug can inflate results, for example by peeking at a future bar. Verifying AI-generated trading code shows how to test for it.
Metrics to read next to profit factor
Profit factor compresses a whole history into one ratio. Pair it with these:
-
Maximum drawdown: the largest peak-to-trough fall in equity. A 1.6 profit factor with a 45% drawdown is a very different experience from 1.6 with 12%.
-
Expectancy: average profit per trade, after costs. It tells you what each trade is worth in money.
-
Average win to average loss: shows whether the edge comes from size or from frequency.
-
Longest losing streak: the practical test of whether you could keep trading the system.
-
Trade count and period covered: the context that makes the other numbers believable.
Using profit factor to inspect a robot
A profit factor is only as informative as your ability to see what produced it. With a closed system, you receive a number and have to trust it. With a system whose rules and code are open, you can rebuild the number yourself: export the trades, recompute gross profit and gross loss, add your broker’s actual spread and commission, and see how the figure moves when you change an input.
A workable routine:
-
Read the entry, exit and stop rules so you know what kind of system it is (trend, mean reversion, breakout) and what profit factor range to expect.
-
Run the test on a period you did not use for any adjustment.
-
Apply realistic costs for your account type and the pair you trade.
-
Recompute profit factor, win rate, average trade and drawdown.
-
Vary one parameter at a time and note how the ratio changes.
-
Only then think about adapting the rules to your own setup.
Where TradeAndRoll fits
Each robot in our collections comes with its trading rules, its source code and AI prompt ideas, so you can examine how a strategy works and how it is implemented, then rebuild its profit factor under your own assumptions. Our free demo with 10 Forex robots includes market data in CSV files, which you can load to practice exactly the calculation above before deciding on anything further.

When you want a wider set of systems to analyze, the 30 additional Forex robots are available from the same site, and an optional monthly plan adds 20 more robots each month for 99 EUR per month plus applicable taxes. Trading carries risk of loss, and the trading risk disclosure explains it in full. No profit factor, however well measured, guarantees future results. The initial collection contains 30 robots in addition to the ten in the free demo, for a one-time €270 plus applicable taxes.
The systems are delivered with Python source code, rules and research prompts. Market-data CSV files are included only in the demo; purchases are arranged by email at info@tradeandroll.com.
FAQ
What does a profit factor of 1.5 mean?
It means the winning trades earned $1.50 for every $1.00 the losing trades lost, so gross profit is 50% larger than gross loss. Ehlers and Way use 1.5, together with 55% winners and out-of-sample data, as an example of a reasonably good system. It only counts if costs are included and the sample is large enough.
Is a profit factor of 1.3 good?
It can be profitable, but the margin is thin. A 1.3 profit factor falls to roughly 1.18 if average losses rise 10%, so a wider spread or more slippage can erase much of the edge. It deserves a robustness test and a net-of-cost recalculation before you rely on it.
Can profit factor be too high?
Yes. Very high values, such as 3.0 or more, often come from small samples or from parameters tuned too closely to past data. Test the system on out-of-sample data and check how the ratio changes when you move inputs by 10 to 20%.
How is profit factor different from win rate?
Win rate counts how often trades win. Profit factor compares the dollars won with the dollars lost. A system winning 40% of trades can have a profit factor of 2.0 if its winners are much larger than its losers, and a system winning 70% can sit below 1.0 if a few losses are huge.



