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
Traders Must Know: How to Calculate PnL Profit and Loss — Understand Completely with One Chart and One Table
Many new traders entering the space watch their account numbers fluctuate and feel panicked. Are they making a profit or a loss? Should they cash out floating gains? How do they calculate it clearly? Actually, this involves the core concept of crypto trading—PnL (Profit and Loss). Mastering PnL is like giving your trading account X-ray vision, so you always know whether you’re making money or not.
The Basic Framework of PnL: One Formula Explained
PnL boils down to two words—current value minus cost basis. But don’t underestimate this simple formula; it leads to several calculation dimensions.
First, you need to understand a concept called MTM (Mark-to-Market). What does that mean? It means the value of your held coins is calculated based on real-time market prices, not your purchase price. For example, you bought some ETH at $1,950, and today the market price rises to $1,970. The MTM value is $1,970. The difference, $20, is your current floating profit. Conversely, if the price drops to $1,940, you have a floating loss of $10. This is the most direct reflection of PnL.
Unrealized PnL vs Realized PnL—Confusing, huh?
These are the most commonly confused terms in the PnL world. Simply put:
Unrealized profit/loss is the difference between the current value of your held coins and your cost basis. For example, you bought some ETH contracts at an average of $1,900, and now the mark price is $1,600. Your unrealized PnL is a loss of $300. The key point is “not yet executed”—the coins are still in your possession.
Realized profit/loss is the actual money that has been settled. When you hit the “sell” button, it’s considered realized. For example, you bought 10 DOT at $70 each and sold them at $105 each. Your realized PnL is $35, and this money has actually entered your account. Conversely, if you sold at $55, it’s a loss of $15.
The difference is crucial: unrealized PnL fluctuates with market prices, while realized PnL is “final” and no longer changes.
Three Major PnL Calculation Methods—Choosing the Wrong One Can Cost You
Different traders use different methods. The key is to pick the one that suits you best.
FIFO (First-In, First-Out): The most straightforward approach. Suppose Bob bought 1 ETH at $1,100 first, then another at $800. A year later, he sells 1 ETH at $1,200. The system assumes he’s selling the “first bought” one, so the realized PnL is $1,200 - $1,100 = $100 profit. This method is suitable for traders with clear records and low trading frequency.
LIFO (Last-In, First-Out): The opposite idea—selling the “most recently bought” coins. Using the same example, if Bob sells at the $800 cost basis, the PnL is $1,200 - $800 = $400. This method can have tax advantages and is favored by traders who operate flexibly based on market conditions.
Weighted Average Cost: Designed for those holding many coins and trading frequently. Suppose Alice bought 2 BTC at $1,500 and $2,000, totaling $3,500. The average cost per BTC is $1,750. If she sells 1 BTC at $2,400, the PnL is $2,400 - $1,750 = $650. This method is especially suitable for platform tokens or swing traders.
Opening, Closing, Floating Profits—The Complete PnL Lifecycle
A full trading story looks like this:
You start by opening a position—buying coins in the market. For example, buying 10 DOT at $70 each. This is the starting point of unrealized PnL. Your PnL is floating, fluctuating with market prices.
When you decide to close the position—sell those 10 DOT at $100 each—that’s when the profit becomes realized. The $30 profit per coin turns from “paper” into “real cash,” and the realized PnL is settled.
Regularly reviewing open positions helps you manage your investments better. That’s why many traders recommend “regularly review and analyze open and held positions.”
PnL from the Beginning of the Year to Now (YTD)
If you’re a long-term holder, you want to see whether you’ve made money this year. Use the Year-To-Date (YTD) method. It’s simple—compare the value of your holdings at the start of the year with the current value.
For example: On January 1, 2022, you held ADA worth $1,000. Now, on January 1, 2023, those ADA are worth $1,600. Your unrealized profit for the year is $600. This profit isn’t realized yet but helps you see your long-term return.
Perpetual Contracts PnL Is a Different Ballgame
For perpetual contract traders, PnL calculation is more complex. Perpetuals have no expiry date—you can hold long or short positions indefinitely, as long as your margin is sufficient.
Calculating total PnL involves adding both realized and unrealized PnL. But you also need to consider funding rates—periodic settlements between longs and shorts. These fees directly impact your overall profit or loss. In practice, high funding rates can eat into your gains, sometimes more than market moves.
Three Hidden Costs in PnL Calculation You Should Not Ignore
The simplified versions above don’t cover everything. Real PnL calculations involve three “roadblocks”:
To accurately calculate PnL, all these variables must be considered.
To Master PnL Accurately, Tools Are Key
Instead of manual calculations, use tools. There are specialized PnL spreadsheets and automated trading bots that help analyze performance and identify profit patterns. Especially for high-volume traders, tools can greatly improve efficiency and reduce errors.
Understanding the deeper logic behind PnL calculation helps you evaluate your trading strategies more precisely. Whether analyzing each trade’s profit/loss, assessing returns in percentage, or dealing with the complexities of perpetual contract PnL, the most important thing is to find a method that fits your trading style. That way, every gain and loss becomes clear, and your future decisions are more informed.