Realized vs Unrealized PnL
This distinction is the most essential concept for a beginner to learn. If you lack domain in distinguishing between these two, you will eventually fall into poor risk management and highly emotional decision-making.
Unrealized PnL
Unrealized PnL refers to the profit or loss on an open position. Some traders may call it paper profit or paper loss, due to the fact that this number doesn’t yet translate into real additional money or real loss of money in your account.
It is theoretical, fluctuates with the current market price, and affects your liquidity but not your balance until you close the trade.
In practice, if you buy Bitcoin at $90,000 and the price rises to $92,000, you have an unrealized profit of $2,000. If the market crashes down to $30,000 before you sell, that profit turns to dust and you now have a huge loss.
Realized PnL
Realized profit or loss only occurs when you close the trade. This is the final value that will get credited to or debited from your account balance.
It is static and final, plus it is a taxable event in many jurisdictions. This number represents the actual buying power you can withdraw or reinvest.
| Feature |
Unrealized PnL |
Realized PnL |
| Status |
Active/Open |
Closed/Final |
| Value Type |
Theoretical/Floating |
Actual/Fixed |
| Impact |
Changes Account Equity |
Changes Account Balance |
| Risk |
Subject to Market Volatility |
Zero (Risk is lifted) |
Nowadays, most modern trading software will calculate PnL automatically. However, knowing the calculation will help you verify the data on the platform and understand your exposure.
The formula changes depending on whether you’re long or short. That is, buying or selling.
Calculating for Long Positions
(Close Price – Entry Price) x Position Size
Example:
You buy 10 shares of a stock at $150. If the price rises to $160:
(160 – 150) x 10 = $100 Profit
Calculating for Short Positions
(Entry Price – Close Price) x Position Size
Example:
You short a currency pair at 1.1000 with the size of 10,000 units. The price then falls down to 1.0900:
(1.1000 – 1.0900) x 10,000 = $100 Profit
These are, of course, simple examples based on entry and exit points. These calculations become even more complex with leverage products like futures, where you must account for contract multipliers and tick values.
Accounting for Fees and Costs in PnL
Newer traders and investors tend to commit the mistake of looking at gross PnL and assume it represents their net profit. But realized profit will always be lower than gross profits due to transaction costs in fees.
To determine your true performance, you must subtract these costs:
- Commissions and other fees that are charged by the broker per trade or per lot;
- Spread, which is the difference between the buy/ask and the sell/bid price. This is the immediate loss you incur at the moment you open a trade;
- Swap and overnight fees you must pay to hold a leveraged position from one day to the other;
- Slippage, which is the difference between your expected price and the actual execution price.
So your net PnL formula looks more closely to the following:
Gross PnL – (Commissions + Swaps + Spread + Additional Costs)
If you’re involved in high-frequency scalping trading strategies, these costs can eat up to 20-30% of your gross profits. You should always evaluate your strategy based on Net PnL.
PnL Metrics: Viewing Percentage and Ratio
Although $500 profit can look impressive on a $1,000 account, it is a very negligible value on a $1 million account.
To actually reveal and measure performance, traders tend to use percentage and ratio metrics.
Some key metrics include:
Return on Investment (ROI)
This is a very popular metric among business owners. It measures the gain relative to the capital used in the trade.
(Net PnL ÷ Cost Basis) x 100
Profit Factor
Individuals tend to use this metric to evaluate the performance of their trading system over time.
Gross Profit ÷ Gross Loss
A profitable system will have a profit factor equal or higher to 1.5. If the profit factor is below 1.0, the strategy is actually losing money and you must apply changes to it.
Risk/Reward Ratio
This metric compares your potential risk to your potential reward on a single trade. If you risk $100 to make $300, your ratio is 1:3. Over time, maintaining a positive risk-reward ratio is critical for survival, even if your win rate is lower than 50%.
PnL Impacts on Margin and Risk Management
Your P&L directly impact your ability to hold trades. Before we continue, it is essential that you understand the concepts of balance and equity.
• Balance: Cash in the account + Realized PNL
• Equity: Balance + Unrealized PnL
If you have an open position where you’re losing money, your unrealized losses will reduce your equity. If your equity falls below a maintenance margin level required by your broker, it’ll trigger a margin call, where the broker may forcibly close your position to prevent further damage.
Those trading futures and leveraged positions must monitor their PnL to ensure they have enough margin to support their open trades. Especially in volatile markets, rapid swings in unrealized PnL can quickly liquidate an account, even if the trade would’ve eventually been profitable.