Futures
Access hundreds of perpetual contracts
TradFi
Gold
One platform for global traditional assets
Options
Hot
Trade European-style vanilla options
Unified Account
Maximize your capital efficiency
Demo Trading
Introduction to Futures Trading
Learn the basics of futures trading
Futures Events
Join events to earn rewards
Demo Trading
Use virtual funds to practice risk-free trading
Launch
CandyDrop
Collect candies to earn airdrops
Launchpool
Quick staking, earn potential new tokens
HODLer Airdrop
Hold GT and get massive airdrops for free
Launchpad
Be early to the next big token project
Alpha Points
Trade on-chain assets and earn airdrops
Futures Points
Earn futures points and claim airdrop rewards
After years of trading, I’ve realized that one of the most overlooked aspects by beginners is the correct calculation of PnL. Don’t underestimate this as just a simple concept—mastering it can save you a lot of unnecessary losses.
Let’s start with the basics. PnL stands for profit and loss, reflecting the change in your position’s value over a period of time. But there’s a lot of complexity behind it, not just a rough calculation of buy price minus sell price. Many traders get confused about the difference between realized and unrealized PnL, which leads to confusion about their account status.
First, I’ll explain the concept of Mark-to-Market (MTM). Simply put, it’s valuing your holdings based on current market prices. For example, if you hold Bitcoin, its value fluctuates with the market price in real time. This is the foundation for calculating PnL.
Realized PnL refers to the profit or loss you confirm after closing a position. For instance, if I bought BTC at $1500 and later sold it at $2400, the realized PnL is a $900 profit. Until you sell, it doesn’t count as realized. This is crucial—many people mistake unrealized paper gains for actual profits, only to regret it when they get trapped.
Conversely, unrealized PnL is the paper profit or loss of your current open positions, calculated at the current market price. For example, I bought ETH contracts at $1900, and the current mark price is $1600, so my unrealized PnL is a $300 loss. This number fluctuates daily with market prices.
There are several common methods to calculate PnL. First-In, First-Out (FIFO) calculates based on the earliest purchase prices. Last-In, First-Out (LIFO) uses the most recent purchase prices. The weighted average cost method is more complex—it averages all purchase prices weighted by volume. I personally prefer the weighted average because it more accurately reflects my average cost.
For example, suppose Alice buys BTC twice: first at $1500 for 1 BTC, then at $2000 for 1 BTC. Later, she sells 1 BTC at $2400. Using the weighted average method, her total cost is $3500 for 2 BTC, so the average cost per BTC is $1750. Selling at $2400 yields a profit of $650. This method provides a more realistic reflection of your actual costs.
Another useful approach is to look at year-to-date (YTD) performance. If you’re a long-term investor, comparing your portfolio value at the start and end of the year helps you see your unrealized gains or losses over that period.
Perpetual contract PnL calculation is a bit more complex. You need to account for both realized and unrealized PnL, and sum them for total PnL. In practice, you also need to consider trading fees, funding rates, and other hidden costs—not just the simple numbers.
Honestly, accurately calculating PnL is crucial for optimizing your trading strategies. Only by understanding how much you’ve gained or lost on each trade can you identify your mistakes. Many trading platforms and tools can automatically calculate your PnL—for example, Gate.io offers dedicated analysis tools that give you a clear view of your account’s profit and loss. But understanding the underlying calculation logic is still very helpful in becoming a more rational and disciplined trader.