Profit Factor in Trading: Formula, Calculator and Examples
A high win rate can hide costly losses. Calculate profit factor from closed trades, see what fees and one large winner change, and compare the same results in a different order.
Author · Editor
- Author
- Mykola Zavarov
- Editor
- Andriy Bondarenko
Reviewed

The essentials
Profit factor divides the total profit from winning trades by the absolute total loss from losing trades, using one consistent cost basis.
A value above 1 describes a positive result in the selected sample. It does not establish future profitability or a safe level of risk.
Profit factor ignores trade order. The same winning and losing amounts can produce different drawdowns.
What is profit factor in trading?
Profit factor (PF) compares the money made on winning trades with the money lost on losing trades. A PF of 2 means that the selected results contain $2 of winning P&L for every $1 of losing P&L. It does not mean a 200% return on your account, and it is not the percentage of trades you won.
The formula is: profit factor = total winning P&L ÷ absolute total losing P&L. For example, $600 of gains and $300 of losses give a PF of 2 and an overall result of +$300. The loss total is entered as a positive magnitude in the denominator.
TradingView’s definition uses realized results and excludes positions that are still open. Keep the date range, currency and treatment of trading costs consistent before adding your results.
Calculate profit factor from your closed trades
The example starts with five completed results in USD: +300, +200, +100, −150 and −150. Change a result to see which total moves. Then compare the full sample with the same sample excluding its largest winner.
Choose whether your entries already include costs. The before-cost mode subtracts the same cost from every completed trade; it is a teaching shortcut. If actual costs differ between trades, enter each trade’s final net result instead.
From trades to a ratio
See exactly where your profit factor comes from
The example starts at PF 2. Change a result, add a cost or test how much one winner contributes.
600.00 ÷ 300.00 ≈ 2.00
Sum of winning results ÷ absolute sum of losing results
- Winning results
- 600.00 USD
- Losses, as a positive amount
- 300.00 USD
- Closed trades
- 5
- Win rate
- 60%
- Total result after costs
- 300.00 USD
- Average result per trade
- 60.00 USD
- Costs deducted in this calculation
- 0.00 USD
Closed results on the selected cost basis. A historical sample does not establish future returns.
Follow each trade into the totals
| Trade | Entered amount | Result after costs | Counted in |
|---|---|---|---|
| Trade 1 | 300.00 | 300.00 | Winning total |
| Trade 2 | 200.00 | 200.00 | Winning total |
| Trade 3 | 100.00 | 100.00 | Winning total |
| Trade 4 | -150.00 | -150.00 | Loss total |
| Trade 5 | -150.00 | -150.00 | Loss total |
How much does one winner matter?
Temporarily remove one largest winning result after costs. The original trades remain unchanged.
Turn on the comparison to see the effect on the same sample.
This is a sensitivity check, not a reason to delete a real trade. Tied largest winners: only the first is excluded.
Profit factor: 2.00. Winning results: 600.00 USD. Losses: 300.00 USD. Closed trades: 5.
Model and calculation details
All entries are completed trade results in USD. Open positions, deposits, withdrawals and currency conversion are excluded. Use consistent grouping for partial exits.
Before-cost mode subtracts the same non-negative cost from every trade, then reclassifies each net result. It does not subtract a total fee only from the winning bucket.
Zero-result trades remain in the trade count and the win-rate denominator; they add nothing to the profit-factor totals. Average results can contain fractional cents and are rounded only for display.
The model provides arithmetic for the entered sample. It does not select a strategy, estimate statistical confidence or predict an account's risk.
Read the ratio and the money result together
The calculator sorts each result into the winning, losing or break-even group on the selected cost basis. In the starting example, 300 + 200 + 100 = 600 in the winning group; the two losses total 300. Dividing 600 by 300 gives 2. Subtracting 300 from 600 gives the sample’s +300 result.
Profit factor | What it says about the selected sample | What it leaves unanswered |
|---|---|---|
Below 1 | Total losses exceed total gains on the chosen cost basis. | Whether different conditions or a different strategy would improve it. |
Exactly 1 | Winning and losing totals are equal. | Whether all relevant costs have been included. |
Above 1 | Gains exceed losses on the chosen cost basis. | Whether the result will persist or how much risk produced it. |
Scroll sideways to compare all columns ↔
A PF of 2 could come from gains of $600 against losses of $300, or $60,000 against $30,000. The ratio is identical while the money amounts differ. It also has no time unit: the same PF over a week and over three years does not describe the same pace of returns.
How commissions and other costs change profit factor
First decide what each P&L entry contains. Results calculated from actual execution prices already reflect the prices at which you traded. Subtracting a separate spread or slippage estimate again can count the same effect twice. Commissions, financing and other charges may appear in separate fields; reconcile them with the report you are using.
If the five starting amounts are before costs and every completed trade costs $10, the net results become +290, +190, +90, −160 and −160. The winning total is now $570 and the losing total is $320. PF becomes 570 ÷ 320 = 1.78125, or approximately 1.78. The overall result is +$250.
Apply costs to each trade before deciding which group it belongs to. A +$5 result with $10 of costs becomes −$5 and belongs in the losing group. Subtracting every cost only from the winning total would miss that change.
Platform reports often call the two buckets “gross profit” and “gross loss”. Those labels alone do not tell you whether every commission or financing charge has been allocated in the way you expect. State your basis explicitly and use it for both totals. TradingView’s strategy documentation explains why cost settings matter in a backtest.
Profit factor, win rate and average result answer different questions
The starting sample has three winners out of five trades, so its win rate is 60%. The average winner is $600 ÷ 3 = $200; the average losing amount is $300 ÷ 2 = $150. Dividing those averages gives a payoff ratio of about 1.33—not the profit factor of 2.
Metric | Starting sample | Question answered |
|---|---|---|
Profit factor | 600 ÷ 300 = 2 | How much winning P&L is there per unit of losing P&L? |
Win rate | 3 ÷ 5 = 60% | What share of the completed trades finished positive? |
Average win / average loss | 200 ÷ 150 ≈ 1.33 | How large is the average winner relative to the average loser? |
Average result per trade | (600 − 300) ÷ 5 = $60 | What is the observed mean result per completed trade? |
Scroll sideways to compare all columns ↔
A high win rate can still lose money. Four gains of $25 and one loss of $150 produce an 80% win rate, PF 100 ÷ 150 ≈ 0.67 and a −$50 result. One gain of $300 and two losses of $100 produce a win rate of about 33.33%, PF 1.5 and a +$100 result. These are arithmetic examples, not suggested trading approaches.
The calculator includes break-even trades in its trade count and win-rate denominator. They add nothing to either PF total. For a planned entry, stop and target, use the risk/reward calculator. A planned price ratio and an observed series of closed results are different inputs.
What is a good profit factor?
There is no universal PF threshold that proves a strategy is good. Values such as 1.5 or 2 can be descriptive reference points, but their meaning depends on costs, the amount of data, position sizes, the test period and the losses that occurred along the way.
Check how much of the result depends on one trade. In the starting sample, removing the largest winner of +$300 leaves +$200, +$100, −$150 and −$150. PF falls from 2 to 1. The sensitivity comparison highlights that dependence; it does not mean the real winning trade should be removed from your records.
Larger trades carry more weight in a money-based PF. A strategy that changed its position size can therefore produce a different picture from one trading a fixed size. Splitting the history into relevant periods or setups may reveal differences, provided you also retain the full record and avoid selecting only favourable segments.
Five trades demonstrate the arithmetic, not reliability. Nor does a fixed count such as 100 or 200 automatically establish a persistent advantage. Consider how varied the observations are and whether results survive realistic costs and data that were not used to tune the strategy.
The same profit factor can hide different drawdowns
Profit factor uses totals, so rearranging the same completed results leaves it unchanged. This separate example always starts at $1,000 and uses the original five after-cost results. Its order controls do not use edits from the calculator above.
Switch the order of the gains and losses. The ending balance remains $1,300 and PF remains 2, but the fall from an earlier balance peak can change. The example tracks balance only after each completed trade; it does not show unrealized losses while positions were open.
Same trades, different path
Profit factor does not show the order of your losses
Reorder the same five closed results. Profit factor stays at 2, while the largest fall from a previous balance peak changes.
Every path uses +300, +200, +100, −150 and −150 USD after costs. Starting balance: 1,000 USD. No deposits or withdrawals.
- Profit factor
- 2.00
- Final balance
- 1,300.00 USD
- Largest balance fall · USD
- 300.00
- Largest balance fall · %
- 18.75%
Closed trades
All examples use the same chart scale. The exact balance, previous peak and fall are listed in the table below.
The balance rises to 1,600 and then falls to 1,300: a 300 USD fall, or 18.75% of that peak.
This is drawdown of the closed-trade balance. Open-position losses and intratrade equity drawdown are not shown.
| Step | Trade result | Balance | Peak so far | Fall from peak | Fall from peak · % |
|---|---|---|---|---|---|
| Start | — | 1,000.00 | 1,000.00 | 0.00 | 0% |
| 1 | 300.00 | 1,300.00 | 1,300.00 | 0.00 | 0% |
| 2 | 200.00 | 1,500.00 | 1,500.00 | 0.00 | 0% |
| 3 | 100.00 | 1,600.00 | 1,600.00 | 0.00 | 0% |
| 4 | -150.00 | 1,450.00 | 1,600.00 | 150.00 | 9.38% |
| 5 | -150.00 | 1,300.00 | 1,600.00 | 300.00 | 18.75% |
At each step: fall = previous or current peak − balance. Percentage fall = fall ÷ that peak × 100. Take the largest observed value.
Gains first. Profit factor 2. Final balance 1,300.00 USD. Largest balance fall 300.00 USD; largest percentage fall 18.75%.
Model and calculation details
This separate example uses fixed teaching data; it does not inherit the editable trades above. Each path contains the same five net results, only in a different order.
Starting balance is included as the first peak. Money drawdown and percentage drawdown are calculated independently at each closed-trade step; in other datasets their maxima can occur at different steps.
No price path, position sizing, margin call or prop-firm loss rule is simulated. Reordering past results is an explanation of the metric, not an attainable trading plan.
Why the drawdown denominator matters
With all three winners first, the balance reaches $1,600 before the two losses bring it to $1,300. That is a $300 decline from the peak, or 18.75%. With the two losses first, the balance falls from $1,000 to $700: also $300, but 30% of that earlier peak.
A drawdown percentage uses the relevant preceding peak, not automatically the opening balance or the final balance. The MetaTrader 5 report documentation distinguishes balance and equity drawdown. A list of closed P&L cannot reconstruct the price movements, margin pressure or floating losses between those observations.
Reordering the trades is an explanation of information PF omits. It does not represent alternative trades you could necessarily have executed. A prop firm’s trailing drawdown rule is a separate account condition; this example does not determine whether an account would pass it.
Why your calculation may differ from a platform report
Before deciding that one number is wrong, compare the inputs. The same label can sit above calculations with different filters or trade grouping.
- Use the same completed-trade date range and the same currency. Deposits, withdrawals and open P&L are not trade outcomes for this calculation.
- Check whether commissions, swap and other charges are included in each result or recorded separately. Do not subtract a charge twice.
- Check how partial closes and multiple fills are grouped. Several profitable and losing exits may be one completed position in one report and separate records in another.
- Compare full-precision totals before comparing rounded PF values. A displayed 1.00 can conceal a ratio slightly above or below 1.
- Separate simulated results from actual execution records. Backtest costs and fill assumptions affect the P&L from which PF is calculated.
For a backtest, keep the strategy settings fixed when examining previously unused data. Repeatedly tuning to the same history can overfit it; TradingView’s testing notes also discuss selection bias. A high backtest PF alone is not evidence of the same live result.
Profit factor: common questions
Is a profit factor of 2 good?
It means the chosen winning total is twice the losing total, provided losses are nonzero. On that cost basis the sample is positive. Whether the result is useful also depends on the sample, costs, position sizes and drawdowns; 2 is not a universal approval threshold.
Can profit factor be below 1 or equal to 0?
Yes. A value below 1 means losses exceed gains on the chosen basis. If the sample contains losses but no positive results, PF is 0. With no losses, the denominator is zero and a finite PF cannot be calculated.
What does an infinite profit factor mean?
It usually indicates positive gains with no losing amount in the selected sample. There is no finite ratio to report. The calculator explains that state instead of treating infinity as a quality score. With no trades, or only zero results, PF is also undefined.
Does profit factor include commissions?
It depends on the P&L inputs and the report’s accounting. For a net calculation, allocate the relevant costs to each completed trade, then separate positive and negative results. If entries already include those costs, leave them unchanged.
How is profit factor different from expectancy?
PF is a ratio of winning and losing money totals. The historical average result divides the overall P&L by the number of completed trades. An expected future result requires assumptions about future outcomes; it is not established merely by calculating either historical number.
How many trades do I need?
You can calculate a finite PF as soon as the sample includes a losing amount, but a small sample can be dominated by one observation. No fixed trade count proves reliability. Examine the full history, costs, market conditions and results outside the data used to develop the strategy.