Article

How to Calculate Profit Factor (With Worked Examples)

The profit factor formula, two worked examples, how fees and breakeven trades change the result, and why the number needs a large sample before you trust it.

How to Calculate Profit Factor (With Worked Examples) — Forex & Crypto Trading Journal Guide by Edgelog

Profit factor answers a simple question: over a set of trades, how many dollars did the winners make for every dollar the losers lost? It is one of the most useful single numbers in a trading review because it combines how often you win with how much you win and lose.

This guide shows how to calculate profit factor step by step, with two worked examples, the details that change the result, and how to read the number without fooling yourself.

The profit factor formula

Profit factor = gross profit ÷ gross loss

  • Gross profit is the sum of every winning trade.
  • Gross loss is the sum of every losing trade, written as a positive number.

A result above 1.0 means the winners made more than the losers lost over the sample. Exactly 1.0 is breakeven, and below 1.0 the losers outweighed the winners. If you only need the division, the profit factor calculator does it for you. The rest of this guide is about getting the inputs right, because that is where most profit factor calculations go wrong.

How to calculate profit factor step by step

  1. Pick one sample. One strategy, one account and a fixed date range. Mixing a demo account with a live one, or two unrelated strategies, gives a number that describes neither.
  1. Use closed trades only. An open position has no final result yet.
  1. Use each result after costs. Take every trade after commission, swap and any other fee your broker charges.
  1. Sort the results. Winners are above zero, losers below zero, and breakeven trades are exactly zero.
  1. Add up each side. The winners give gross profit; the losers give gross loss once you drop the minus sign.
  1. Divide gross profit by gross loss.

Worked example: 20 forex trades

Here are a trader's last 20 closed EUR/USD trades, after fees:

  • 9 winners: +$120, +$85, +$210, +$60, +$140, +$95, +$180, +$75 and +$115
  • 10 losers: −$80, −$65, −$100, −$90, −$70, −$85, −$60, −$95, −$75 and −$80
  • 1 breakeven trade: $0

Gross profit is $1,080 and gross loss is $800, so the profit factor is 1,080 ÷ 800 = 1.35. The account made $280 over the 20 trades even though it lost more trades than it won: the win rate is 9 out of 19 decided trades, about 47%.

The same result can be written another way, which shows the two levers you have: profit factor = (number of wins × average win) ÷ (number of losses × average loss). Here the average win is $120 and the average loss is $80, so (9 × 120) ÷ (10 × 80) = 1.35.

Win more often, or make the average win larger relative to the average loss, and the profit factor rises. The win rate calculator shows how those two numbers interact.

Worked example: how fees change the result

Costs matter most for active traders. Suppose a scalping strategy shows 55 winners worth $1,500 and 45 losers worth $1,200 before fees. That is a profit factor of 1.25, which looks fine.

Now add fees of $4 per trade. Each winner shrinks by $4 and each loser grows by $4. Assuming none of the winners was smaller than the fee, gross profit falls to $1,500 − 55 × $4 = $1,280 and gross loss rises to $1,200 + 45 × $4 = $1,380.

The profit factor is now 1,280 ÷ 1,380 ≈ 0.93, and the strategy loses money.

This is the most common profit factor calculation mistake: using the platform result before commission and swap. Always calculate it on net results.

Breakeven trades, partial closes and open positions

  • Breakeven trades add nothing to either side, so they do not change the profit factor. They do change the win rate if you count them as losses, which is why it helps to keep them separate.
  • Partial closes. Platforms often record each partial close as its own line. Decide whether a trade means each closing line or the whole position, and stay consistent.
  • Open positions stay out until they are closed.
  • Deposits, withdrawals and transfers are not trades. Leave them out, even if they appear in the same statement.

What is a good profit factor?

There is no universal threshold, and you should be wary of anyone who offers one without asking about your sample. What the number can tell you:

  • Below 1.0: over this sample, the losers outweighed the winners.
  • Close to 1.0: roughly breakeven. A small change in costs or a handful of trades can tip it either way.
  • Above 1.0: the winners outweighed the losers. How much room above 1.0 you need depends on your costs, how stable the result is from month to month, and how many trades it is based on.

Sample size decides whether the number means anything. A profit factor from 15 trades can be pushed far above 2.0 by one large winner. Treat it as directional after a few dozen trades and more reliable as the sample grows past 100.

A very high profit factor on a large sample deserves a second look too: it can come from holding losing trades open until they recover, which works until the one time it does not.

Profit factor, win rate and expectancy

These three numbers answer different questions, so read them together:

  • Win rate: how often you win. It ignores how large the wins and losses are.
  • Profit factor: how much you won in total compared with how much you lost.
  • Expectancy: the average result per trade, which is net profit divided by the number of trades. In the first example that is $280 ÷ 20 = $14 per trade.

A strategy can have a low win rate and a healthy profit factor, or a high win rate and a profit factor below 1.0. To see what a given win rate and payoff can do over many trades, try the equity curve simulator. Short definitions of each metric are in the trading glossary.

Calculate it by segment

An account-level profit factor is a health check. The useful decisions come from splitting it: by setup, by session, by instrument and by direction. A blended 1.35 can hide one setup that pays well and another that loses money, and dropping the losing one requires learning nothing new.

In a spreadsheet, if column F holds each trade result after fees, the profit factor is =SUMIF(F:F,">0")/ABS(SUMIF(F:F,"<0")). Add a setup column and use SUMIFS to repeat the calculation for each setup. It works, but it needs careful upkeep as the sheet grows.

Where Edgelog fits

Edgelog calculates profit factor from your closed trades after fees: on the dashboard for the trades in view, and for each day in the journal. It shows a dash instead of a number until there is at least one losing trade, because the ratio cannot be calculated without one.

MetaTrader trades arrive through the free EdgelogSync Expert Advisor (see the MT5 trading journal guide), Binance, Bybit and OKX history arrives over read-only API keys (see the crypto trading journal guide), and other brokers can be imported from CSV or Excel. The Playbook shows each setup with its trade count, net P&L and win rate, and the P&L calendar shows each day at a glance.

Frequently asked questions

What is the profit factor formula?

Profit factor = gross profit ÷ gross loss, where gross profit is the sum of all winning trades and gross loss is the sum of all losing trades as a positive number. Use closed trades and results after fees.

Can profit factor be negative?

No. Both inputs are positive, so the lowest possible value is 0, which means there were no winning trades. If there are no losing trades, the ratio cannot be calculated at all.

Should I include commission and swap?

Yes. Use each trade after commission, swap and any other fee. For active traders, the difference between a profit factor before and after costs is often the difference between a profitable strategy and a losing one.

How many trades do I need before profit factor means something?

There is no exact number, but a few dozen trades of the same strategy is a minimum for a rough read, and the figure becomes more reliable past 100 trades. Recalculate it as the sample grows rather than judging a strategy on one good or bad month.

Summary

To calculate profit factor, add up your winning trades, add up your losing trades as a positive number, and divide the first by the second, using closed trades after fees from one consistent sample. Above 1.0 the winners outweighed the losers, below 1.0 the reverse. The number becomes useful when the sample is large and when you split it by setup, session and instrument.

This article is educational and is not financial advice. Past results, including your own journal statistics, do not guarantee future returns.

Related posts