PnL, or Profit and Loss, is a critical metric in trading that reflects the change in value of a trader’s open or closed positions. It represents the financial outcome of trading activities over a specific period. Understanding PnL helps traders assess performance, manage risk, and make informed decisions. PnL can be categorized into two types: realized and unrealized, each serving a distinct purpose in evaluating trading results.
Understanding Realized and Unrealized PnL
What is Realized PnL?
Realized PnL refers to the actual profit or loss generated from positions that have been fully closed. It is calculated based on the difference between the entry price and the closing price of the trade. Since it stems from completed transactions, realized PnL is fixed and does not change with market fluctuations. This metric is crucial for performance evaluation, as it reflects the tangible outcomes of trading strategies.
What is Unrealized PnL?
Unrealized PnL represents the profit or loss on open positions that have not yet been closed. It fluctuates continuously with changes in the market price of the asset. Unrealized PnL provides a snapshot of potential gains or losses but remains theoretical until positions are liquidated. It is a key factor in risk management, as it influences margin requirements and liquidation risks. Mark prices are often used to calculate unrealized PnL accurately, ensuring fairness and preventing market manipulation.
👉 Explore real-time trading tools
How to Calculate PnL for Different Contract Types
The method for calculating PnL varies depending on the type of contract—whether it is inverse or linear, and whether the position is long or short. Below, we break down the formulas and provide examples for each scenario.
Inverse Contract Long Position
For a long position in an inverse contract, the PnL is calculated by subtracting the close value from the open value. The formula is:
PnL = Open Value – Close Value = [(Contract Quantity × Contract Size) / Open Price] – [(Contract Quantity × Contract Size) / Close Price]
Example:
If a trader buys 1,000 BTCUSD contracts at $6,000 and sells them at $7,000, the profit is:
[(1,000 × 1) / 6,000] – [(1,000 × 1) / 7,000] = 0.0238 BTC
Inverse Contract Short Position
For a short position in an inverse contract, the PnL is derived by subtracting the open value from the close value. The formula is:
PnL = Close Value – Open Value = [(Contract Quantity × Contract Size) / Close Price] – [(Contract Quantity × Contract Size) / Open Price]
Example:
If a trader sells 1,000 BTCUSD contracts at $6,000 and buys them back at $5,000, the profit is:
[(1,000 × 1) / 5,000] – [(1,000 × 1) / 6,000] = 0.0333 BTC
Linear Contract Long Position
For a long position in a linear contract, the PnL is calculated by subtracting the open value from the close value. The formula is:
PnL = Close Value – Open Value = Contract Quantity × Contract Size × Close Price – Contract Quantity × Contract Size × Open Price
Example:
If a trader buys 500 ETHUSD contracts at $120 and sells them at $130, the profit is:
500 × 0.005 × 130 – 500 × 0.005 × 120 = $25
Linear Contract Short Position
For a short position in a linear contract, the PnL is determined by subtracting the close value from the open value. The formula is:
PnL = Open Value – Close Value = Contract Quantity × Contract Size × Open Price – Contract Quantity × Contract Size × Close Price
Example:
If a trader sells 500 XRPUSD contracts at $0.15 and buys them back at $0.14, the profit is:
500 × 5 × 0.15 – 500 × 5 × 0.14 = $25
👉 Get advanced calculation methods
Importance of PnL in Trading
PnL is a fundamental tool for traders to measure success and manage portfolios. Realized PnL helps in evaluating past performance and tax reporting, while unrealized PnL aids in monitoring current exposure and making timely decisions. Accurate PnL calculation ensures transparency, supports risk management strategies, and enhances overall trading discipline.
Frequently Asked Questions
What is the difference between realized and unrealized PnL?
Realized PnL refers to profits or losses from closed positions, while unrealized PnL reflects the current value of open positions. Realized PnL is fixed, whereas unrealized PnL changes with market prices.
How is PnL calculated for crypto futures?
PnL calculation depends on the contract type. For inverse contracts, it involves the difference in contract values based on price reciprocals. For linear contracts, it is based on the direct difference between entry and exit prices.
Why is mark price used for unrealized PnL?
Mark price is used to prevent manipulation and ensure fair valuation of unrealized PnL, especially in volatile markets. It reduces the risk of unnecessary liquidations caused by price discrepancies.
Can PnL be negative?
Yes, PnL can be negative, indicating a loss. For realized PnL, it means a loss on closed trades. For unrealized PnL, it suggests that open positions are currently underwater.
How does leverage affect PnL?
Leverage amplifies both profits and losses. While it can increase potential gains, it also raises the risk of significant losses, impacting both realized and unrealized PnL.
Is PnL the same as ROI?
No, PnL measures absolute profit or loss in monetary terms, while ROI (Return on Investment) calculates the percentage gain or loss relative to the initial investment.