Profit and Loss, commonly abbreviated as PnL, is a fundamental concept in trading and investing. It represents the change in value of a trader's positions over a specific period. PnL can be categorized into two main types: realized and unrealized. Understanding the difference between these two and knowing how to calculate them is crucial for effective portfolio management and risk assessment.
When you hold open positions, your PnL is unrealized—meaning it fluctuates with market movements. Once you close those positions, the unrealized PnL becomes realized, locking in the profit or loss.
Realized vs. Unrealized PnL: Key Differences
What Is Realized PnL?
Realized PnL refers to the actual profit or loss generated from completed trades. It is calculated based on the entry price and the exit price of a position. Since it relates solely to closed positions, realized PnL is not affected by current market prices—only the executed trade prices matter.
What Is Unrealized PnL?
Unrealized PnL, also known as "paper" profit or loss, reflects the current value of open positions. It changes continuously due to market volatility and is a critical factor in margin calculations and liquidation risks. Unrealized PnL is always computed using the latest market price and is denominated in the settlement currency.
👉 Explore advanced trading tools
How to Calculate PnL for Different Contract Types
The method for calculating PnL varies depending on the type of financial contract involved. Below, we break down the formulas and provide examples for inverse and linear contracts.
Inverse Contract Long Position
For a long position in an inverse contract (e.g., BTCUSD), the PnL is calculated as follows:
PnL = Opening Value – Closing Value = [(Contract Quantity × Contract Size) / Opening Price] – [(Contract Quantity × Contract Size) / Closing Price]
Example:
If a trader buys 1000 BTCUSD contracts at $6000 and sells them at $7000, the profit is:
[(1000 × 1) / 6000] – [(1000 × 1) / 7000] = 0.0238 BTC
Inverse Contract Short Position
For a short position in an inverse contract, the formula is:
PnL = Closing Value – Opening Value = [(Contract Quantity × Contract Size) / Closing Price] – [(Contract Quantity × Contract Size) / Opening Price]
Example:
If a trader sells 1000 BTCUSD contracts at $6000 and buys them back at $5000, the profit is:
[(1000 × 1) / 5000] – [(1000 × 1) / 6000] = 0.0333 BTC
Linear Contract Long Position
For a long position in a linear contract (e.g., ETHUSD or XRPUSD), the PnL calculation is:
PnL = Closing Value – Opening Value = Contract Quantity × Contract Size × Closing Price – Contract Quantity × Contract Size × Opening Price
Example:
If a trader buys 500 ETHUSD contracts at $120 and sells them at $130, with a contract size of 0.005, the profit is:
500 × 0.005 × 130 – 500 × 0.005 × 120 = $25
Linear Contract Short Position
For a short position in a linear contract, use:
PnL = Opening Value – Closing Value = Contract Quantity × Contract Size × Opening Price – Contract Quantity × Contract Size × Closing Price
Example:
If a trader sells 500 XRPUSD contracts at $0.15 and buys them back at $0.14, with a contract size of 5, the profit is:
500 × 5 × 0.15 – 500 × 5 × 0.14 = $25
👉 Learn more about trading strategies
Frequently Asked Questions
What is the difference between realized and unrealized PnL?
Realized PnL refers to profits or losses from closed trades, while unrealized PnL reflects the current value of open positions that haven't been settled yet.
Why does unrealized PnL change frequently?
Unrealized PnL is based on live market prices, which fluctuate constantly due to supply, demand, and external market factors.
How is PnL calculated for leverage trading?
The same formulas apply, but leverage magnifies both gains and losses. Always consider leverage ratios when interpreting PnL.
Can PnL be negative?
Yes, a negative PnL indicates a loss, whether realized or unrealized.
Why is PnL important for traders?
PnL helps traders evaluate performance, manage risk, and make informed decisions about entering or exiting positions.
Do all platforms display PnL the same way?
Most platforms follow similar principles, but the exact presentation may vary. Always check your platform’s documentation for specifics.