
PnL in Trading Meaning: How to Calculate Profit and Loss
What is PnL in trading? Learn how floating vs. realized gains work and how profit and loss affect margin. Read the full guide.
By Trader Faculty Team
Direct Answer
What is PnL in trading? PnL stands for Profit and Loss, the financial gain or loss from an open or closed position. Unrealized PnL reflects the floating, marked-to-market value of open trades (valued at current market prices), while realized PnL is the result locked into your account balance when you close.
PnL stands for profit and loss, the total financial gain or loss from a trading position or an entire account. Traders use it to measure results, track net risk, and follow overall performance across Forex, stocks, and CFDs (contracts for difference, which track a price without owning the asset).
Watching your account value shift with every market tick can feel like a rollercoaster. Behind those moving numbers is a simple calculation that affects your account equity, margin requirements, and decision-making.
If you've ever asked "what is PnL in trading?", the key idea is the distinction between floating paper values and settled cash. Understanding it can help you manage your trading capital more carefully. You may also see people search "PnL in trading in trading," which refers to the same idea.
Quick Takeaways
- PnL stands for Profit and Loss, tracking total net gains or losses on open and closed trading positions.
- Realized PnL is permanently locked in when a trade is closed, while Unrealized (Floating) PnL fluctuates continuously with market price movements.
- Floating losses reduce your usable free margin right away, which can raise the risk of a broker margin call even before you close the trade.
- Net PnL accounts for trading costs like spreads, commissions, and overnight swap fees, showing your bottom-line result.
What Is PnL in Trading?
In trading, PnL stands for Profit and Loss, the net monetary gain or loss from trading financial instruments. Whether you trade stocks, derivatives, or currencies, it tracks how the value of your positions has changed relative to your entry price.
When you evaluate PnL, it helps to distinguish between gross profit and net profit. Gross PnL reflects purely the price difference between your entry price and exit price multiplied by your trade volume. Net PnL subtracts all operational transaction costs—including broker spreads, commissions, exchange fees, and overnight swap charges.
Gross PnL = (Exit Price - Entry Price) × Position Size
Net PnL = Gross PnL - Total Transaction Fees
When you open a trade, your initial Net PnL often displays as slightly negative. This occurs because your broker charges the spread—the difference between the buy (ask) and sell (bid) price—or deducts an upfront commission when the order executes.
Realized vs. Unrealized PnL: The Core Difference
The distinction between realized and unrealized profit and loss is one of the key ideas in risk management.
Unrealized PnL (often called floating PnL) reflects the current value of open positions marked-to-market (valued at current market prices). Because the trade remains active, this number changes with every tick of price action. Floating profit is not banked cash; it represents temporary valuation.
Realized PnL occurs only when you close a position. Closing the trade settles the final price difference, converting floating gains or losses into cash that permanently adjusts your account cash balance.
| Feature | Unrealized (Floating) PnL | Realized PnL |
|---|---|---|
| Position Status | Open position | Closed position |
| Account Impact | Affects Equity and Usable Margin | Affects Account Cash Balance directly |
| Stability | Fluctuates constantly with price movements | Fixed and locked into account ledger |
| Settlement | Marked-to-market in real-time | Fully settled upon trade exit |
Many beginner traders fall into a psychological trap known as loss aversion (feeling losses more strongly than equal gains). They hold onto trades with growing unrealized losses, refusing to close them because "it isn't a real loss until you close the trade." In reality, floating losses reduce your available account equity right away.
How to Calculate PnL in Trading
Calculating PnL requires tracking entry prices, exit (or current market) prices, and contract specifications.
For a long position (buying expecting price to rise), PnL increases when the market moves above your entry price:
Long PnL = (Current or Exit Price - Entry Price) × Contract Size × Volume
For a short position (selling expecting price to fall), PnL increases when the market drops below your entry price:
Short PnL = (Entry Price - Current or Exit Price) × Contract Size × Volume
Example 1: Stock Trade (Long)
Suppose you buy 100 shares of a stock at $50 per share.
- Entry Value: $50 × 100 = $5,000
- Price rises to $55.
- Gross PnL: ($55 - $50) × 100 = +$500 profit
- If you pay a $5 entry fee and $5 exit fee, your Net PnL is $500 - $10 = +$490.
Example 2: Forex Trade (Leveraged Short)
Suppose you open a short trade on EUR/USD for 1 standard lot (100,000 units) at an entry price of 1.0850.
- Price drops to 1.0800 (a 50-pip move; a pip is the fourth decimal place in most currency pairs).
- Gross PnL: (1.0850 - 1.0800) × 100,000 = +$500 profit.
When trading leveraged instruments, small price moves (measured in pips in forex) can create larger dollar impacts because position size is magnified relative to your deposited capital, which also magnifies losses.
How Floating PnL Affects Your Account Margin
A common misconception is that open trades don't affect your account until closed. In fact, floating PnL updates your Account Equity as prices move:
Account Equity = Cash Balance + Floating Unrealized PnL
Your available margin—the cushion required to open new positions or keep existing ones active—is tied directly to Equity, not your static Cash Balance:
Usable (Free) Margin = Account Equity - Used Margin
If you hold a losing trade with a deep floating loss, your account Equity drops. As Equity declines, your Usable Margin shrinks proportionally. If Equity drops below the broker's minimum Maintenance Margin threshold (the equity required to keep positions open), you may receive a margin call (a demand to add funds). Your broker may also trigger a stop-out, closing open positions to help prevent a negative balance.
3 Common PnL Mistakes Beginners Make
1. Treating Unrealized Gains as Spendable Cash
Open profits feel like bankable gains, which can tempt beginners to open larger follow-up positions before securing their profits. Until a trade is closed, a sudden market reversal can erase floating gains.
2. Overlooking Hidden Transaction Costs
Focusing only on gross price movement can lead traders to miscalculate profitability. Frequent trading across wide spreads, or holding leveraged positions through rollover hours (when negative swap rates may apply), can turn a positive gross result into a net loss.
3. Holding Floating Losses Due to Loss Aversion
Refusing to cut losing trades because "it is not a realized loss yet" is a common reason accounts suffer large losses. Protecting your account can involve predefined stop-loss orders (orders that close a trade at a set price). Some brokers also offer a guaranteed stop loss (a stop-loss that closes at your price even in a gap, often for an extra fee) for a firmer exit point.
Conclusion
So, what is PnL in trading? It's the running tally of your gains and losses across open and settled positions. With PnL in trading explained above, you can see how separating floating gains from realized results helps you manage usable margin and avoid surprise stop-outs.
By counting net transaction fees and setting disciplined risk limits, you can use PnL as a clearer measure of your results. Trading always carries the risk of losing capital, leverage can magnify losses, and past performance doesn't guarantee future results.
Frequently Asked Questions
What is PnL in trading and what does it stand for?
PnL stands for Profit and Loss. It measures the net financial gain or loss from a single position, a trading strategy, or an entire account over a specific timeframe.
What is the main difference between realized and unrealized PnL?
Unrealized (floating) PnL changes continuously as long as a trade remains open, directly impacting account equity. Realized PnL is permanently locked into your account cash balance once you exit the trade.
Does floating negative PnL affect my account margin?
Yes. Floating negative PnL reduces your account equity as prices move. Because usable (free) margin is equity minus used margin, deep unrealized losses reduce available margin and can trigger a margin call.
Why is my PnL negative immediately after opening a trade?
Your initial PnL is often negative because the broker charges the spread (the gap between the bid and ask price) or deducts an execution commission when your trade opens.
What is the difference between gross PnL and net PnL?
Gross PnL calculates raw profit or loss based purely on price difference and trade volume. Net PnL subtracts all trading costs, including spreads, commissions, and overnight swap fees, showing your true bottom-line result.
Keep learning
Risk & Money Management
One good article won't save your account. A risk framework will.
7 lessons quiz
Start the courseThe Trader Faculty Team writes and reviews every guide together — pairing hands-on market experience with a curriculum-first approach to trading education. One good syllabus, taught in the order that makes you better.





