Back icon

Back

Contents

    Back to top

    What is PnL and How to Calculate it?

    Time read icon
    Updated March 18, 2026
    What is PnL and How to Calculate it?
    Image Written by: Demetris Makrides

    Demetris Makrides

    Senior Business Development Manager

    Time read icon
    June 18, 2025
    Time read icon
    7
    Views icon
    2402
    Image Written by: Vitaly Makarenko

    Vitaly Makarenko

    Chief Commercial Officer

    P&L stands for profit and loss. In trading, it shows how much money you have made or lost on a position, a series of trades, or your account over a chosen period.

    If a position is still open, the result is usually shown as unrealized P&L. Once the trade is closed, it becomes realized P&L. Many brokers and trading platforms calculate open positions using current market prices, while realized P&L is tied to completed trades and may include commissions and fees, depending on the reporting method.

    That is the basic idea. But in practice, P&L is more than a simple scorecard. It affects how traders judge performance, size positions, manage margin, and decide whether a strategy is actually working. A trader who does not understand P&L usually ends up misunderstanding risk as well.

    What Is the P&L Formula?

    For most spot, stock, and CFD trades, the starting point is simple:

    Position typeGross P&L formula
    Long position(Exit price – Entry price) × Quantity
    Short position(Entry price – Exit price) × Quantity

    That gives you gross P&L before trading costs.

    To get net P&L, subtract the costs of trading:

    Net P&L = Gross P&L – commissions – spread/markup – financing or overnight charges – other applicable fees

    That last part matters more than many beginners expect. Spreads, commissions, and overnight funding can all reduce your final result, which is why the number you first calculate manually is not always the number that ends up in your statement.

    What Does a Simple P&L Example Look Like?

    Imagine you buy 100 shares of a stock at $50 and sell them at $54.

    Your gross P&L is:

    ($54 – $50) × 100 = $400 profit

    If your total commissions and fees were $8, then your net P&L would be:

    $400 – $8 = $392 profit

    That is the version most traders should care about. Gross P&L tells you what the market move was worth. Net P&L tells you what you actually kept.

    How Do You Calculate P&L Step by Step?

    If you want to keep the process simple, calculate P&L in four steps:

    1. Identify your entry price

    This is the price where the trade started.

    2. Identify your current price or exit price

    If the trade is still open, use the current market price. If the trade is closed, use the exit price.

    3. Measure the price difference

    For a long trade, subtract entry from current or exit price.
    For a short trade, subtract current or exit price from entry.

    4. Multiply by position size

    That gives you gross P&L. Then subtract fees and trading costs to estimate net P&L.

    This logic works well for many instruments, but not every market expresses P&L the same way.

    Is P&L Calculated the Same Way for Every Asset?

    The core logic stays the same across markets: price change multiplied by exposure. But the details vary by instrument.

    For stocks or many CFDs, you can often use a straightforward price-difference-times-quantity formula.

    For futures, you usually need to know the contract size, tick size, and tick value or contract multiplier.

    That is why the same visible price move can produce very different dollar results in different markets.

    What Is the Difference Between Realized and Unrealized P&L?

    This is one of the most important distinctions for traders.

    TypeWhat it meansWhen it changes
    Unrealized P&LProfit or loss on an open positionChanges constantly with the market
    Realized P&LProfit or loss on a closed tradeLocks in when the trade is closed

    Unrealized P&L is sometimes called floating P&L. It shows what your result would be if you closed the position right now. Realized P&L is the profit or loss that has already been booked after a trade is closed.

    A quick example makes this easier to see. If you buy an asset at $100 and it rises to $108, you have an unrealized gain of $8 per unit while the trade is still open. Once you sell it, that gain becomes realized.

    What Is the Difference Between Gross and Net P&L?

    A lot of trading content stops too early and treats P&L as just price difference times size. That is useful, but incomplete.

    In real trading, the more useful number is usually net P&L.

    Gross P&L only tells you what the market move was worth.
    Net P&L reflects what remains after costs such as:

    • spread or markup
    • commissions
    • overnight financing or swap charges
    • exchange or platform fees, where applicable

    For leveraged products in particular, overnight charges can make a noticeable difference if positions are held for more than one session.

    Where Do Traders Usually See P&L on a Trading Platform?

    Most modern trading platforms show P&L in the positions, portfolio, or account area.

    Traders usually see some combination of:

    • open or unrealized P&L
    • realized P&L
    • account equity
    • used margin
    • free margin
    • account balance

    Many broker statements also separate open-position P&L from closed-trade P&L, and some markets are marked to market on a regular basis rather than only when a trader closes a position manually.

    That is another reason not to overload this article with platform brand names. The exact screen layout changes from broker to broker, but the underlying concepts are the same.

    How Does P&L Affect Margin and Leverage?

    P&L does not just tell you whether a trade is winning or losing. It also affects your account mechanics in real time.

    When an open trade moves against you, your equity falls. As equity falls, your free margin shrinks. If losses become too large and your equity drops below the broker’s margin requirement, you may face a margin call or forced position reductions.

    The reverse is also true. Profits increase equity and can improve your available margin. But that does not make higher leverage safer. Leverage amplifies both gains and losses, which is why unrealized P&L can swing much faster in leveraged markets than newer traders expect.

    How Does P&L Move Through a Trade?

    Sometimes the easiest way to explain P&L is visually:

    Open trade

    Market price changes

    Platform recalculates unrealized P&L

    Account equity rises or falls

    Margin availability changes

    Trade closes

    Unrealized P&L becomes realized P&L

    That sequence is simple, but it explains why P&L matters so much. It is not just a number on the side of the screen. It changes what you can do next.

    What Mistakes Do Traders Make When Reading P&L?

    Many traders understand the formula but still misread what the number means in practice.

    Treating unrealized profit as locked-in profit

    An open gain is not final. It can disappear before the position is closed.

    Ignoring costs

    A trade can look good on a chart and still underperform once spreads, commissions, and financing are included.

    Looking only at dollar P&L

    A $200 gain means very different things on a $2,000 account and a $200,000 account. P&L should be judged in context, not only in cash terms.

    Forgetting contract specifications

    In futures and some derivatives, contract size and tick value matter just as much as price movement.

    Focusing only on realized losses

    Open losses still reduce equity and can create margin pressure even before the position is closed.

    How Can Traders Use P&L to Improve?

    P&L becomes useful when it moves from being a scoreboard to being a diagnostic tool.

    Good traders do not just ask, “Did I make money?” They ask:

    • Was the result worth the risk I took?
    • Are my winners larger than my losers?
    • Are trading costs eating too much of my edge?
    • Is one setup consistently profitable while another is not?
    • Am I making money because of skill, or because of a few outsized trades?

    That is why a solid review process usually looks at more than total P&L. It also looks at drawdown, average win, average loss, win rate, risk-reward ratio, and performance by setup or time period.

    What Matters More Than the Raw P&L Number?

    A single P&L figure can be misleading on its own.

    A trader who makes $500 may feel successful, but that result means very little without context. Was it earned with careful risk control, or by taking oversized leverage? Was it net of costs? Did it come from one lucky trade while the rest of the strategy was weak?

    The most useful way to read P&L is in combination with:

    • percentage return
    • drawdown
    • position size
    • time period
    • net result after costs
    • consistency over multiple trades

    That is where P&L becomes genuinely valuable. It stops being a vanity metric and starts becoming a decision-making tool.

    Final Thoughts

    P&L is one of the most basic concepts in trading, but it is also one of the most misunderstood. At its simplest, it is the money you make or lose from a position. But once you look closer, it also tells you how price movement, position size, leverage, margin, and trading costs interact inside your account.

    If you understand how to calculate P&L, distinguish realized from unrealized results, and read net P&L instead of only the headline number, you are already thinking more clearly than many market beginners. And that matters, because better P&L awareness usually leads to better risk decisions.

    FAQ

    What does P&L mean in trading?

    P&L stands for profit and loss. It shows how much a trader gains or loses on a position. It can be realized (from closed trades) or unrealized (from open trades).

    How is profit or loss calculated on a trade?

    For long positions, subtract the entry price from the exit price and multiply by the position size. For short positions, reverse the order.

    What’s the difference between realized and unrealized P&L?

    Realized P&L reflects actual profits or losses from closed trades. Unrealized P&L shows the current value of open positions based on live prices.

    Why does P&L matter for margin trading?

    P&L affects your account equity. Losses reduce available margin, which can lead to margin calls. Profits increase equity and trading flexibility.

    Which tools help track P&L in real time?

    Platforms like MetaTrader, cTrader, and TradingView display live P&L. Tools like Myfxbook offer deeper analytics by importing trade history from connected accounts.

    Updated:

    March 18, 2026
    Views icon
    2402

    Senior Business Development Manager

    Dealing expert with over 8 years of expertise in executing complex financial transactions, navigating market fluctuations, and delivering strategic insights to drive profitability

    19 March, 2026

    IB Trap: Why Being a Master IB is Losing You 60% of Revenue

    Here is the hard truth. The Master IB trap happens when your business becomes too successful for the model you are using.

    Read more

    Read more icon

    16 March, 2026

    Quadcode Invests in Game 7 to Scale Prop and Retail Trading Innovation

    Quadcode Invests in Game 7 We’re excited to share that Quadcode has made a strategic investment in Game 7, the company behind FPFX, PropAccount.com, and BullRush. This investment reflects our belief in the continued evolution of retail trading and in the growing role of technology-driven products across prop trading, prediction markets, and adjacent high-engagement trading […]

    Read more

    Read more icon

    13 March, 2026

    How to Start a Stock Brokerage in 2026: Requirements, Costs and the Key Steps to Launch

    Starting a stock brokerage in 2026 is still possible, but it is not a lightweight business. It sits at the intersection of regulation, technology, operations, and trust. If you want to do it properly, you need more than a trading app and a legal entity. You need a workable business model, the right jurisdiction, enough […]

    Read more

    Read more icon