Your crypto position can look profitable one minute and turn red the next. Fees, funding, leverage, slippage, and mark price can all change the number you see on an exchange dashboard. That’s why understanding PnL in crypto isn’t just useful for active trading. It helps you read your actual profit or loss more clearly, avoid confusing paper gains with locked-in results, and make better decisions when the market moves fast.
Table of Contents
What Is PnL in Crypto?
PnL stands for profit and loss. In crypto trading, it shows whether a trade, open position, bot, asset, or portfolio is making money or losing money relative to your entry price, cost basis, margin, or invested amount.
PnL is one of the fundamental metrics used in cryptocurrency trading because it turns market moves into a clear number. A positive PnL means profit, while a negative PnL means loss. If your PnL is close to zero after fees and other costs, the trade is near breakeven.
Still, PnL isn’t one fixed number. It can be realized or unrealized, gross or net, shown as a dollar value or a percentage, and calculated differently across spot, futures, perpetual contracts, bots, and portfolio trackers. That’s why understanding PnL data is important before you use it to judge trading performance.
Why PnL Matters for Crypto Traders and Holders
PnL helps you see whether your trading strategies are actually working. It gives you a clearer picture of profits, losses, and performance over a specific period instead of relying on market sentiment or memory.
For crypto traders, PnL also supports risk management. It helps you identify patterns, review bad entries, compare strategies, and understand how fees, funding, leverage, and market conditions affect your final result.
PnL is also useful for holders. If you own multiple assets, keeping track of realized and unrealized PnL can help you understand current market value, potential losses, unrealized gains, and total portfolio performance. Just remember that PnL describes past or current performance. It doesn’t promise future profit, especially in volatile cryptocurrency markets.
What Is the Difference Between Realized and Unrealized PnL?
Most crypto platforms split PnL into two main categories: realized PnL and unrealized PnL. The difference is simple but important. Realized PnL comes from closed trades, while unrealized PnL reflects open positions or unsold crypto holdings.
Unrealized PnL as Open-Position Profit or Loss
Unrealized PnL is the profit or loss on an open position or an asset you still hold. It’s sometimes called paper profit or paper loss because it can change before you close the trade or sell the asset.
For example, if you bought BTC at $90,000 and the current price is $95,000, you may have unrealized profit. If the market drops to $85,000, that unrealized profit can turn into an unrealized loss. Nothing is locked in until you close the position.
Unrealized PnL can affect account equity, available collateral, margin requirements, and liquidation risk on derivatives platforms. That’s why it’s more than just a preview number in leveraged crypto trading.
Realized PnL as Locked-In Profit or Loss
Realized PnL is the profit or loss after a position is closed, settled, or sold. Once the trade is complete, the result is no longer affected by current market price.
For example, if you buy 1 ETH at $3,000 and sell it at $3,400, your realized profit before fees is $400. After trading fees and other costs, your actual profit may be lower.
Realized PnL usually affects your wallet balance or settled account balance. It’s the cleaner number to use when reviewing completed trades, total profits, total losses, and actual gains over time.
How Is Basic Crypto PnL Calculated?
At the basic level, a PnL calculation compares what you paid with what the asset or position is worth now or what you received when you closed it. The key inputs are entry price, exit price, quantity, and costs.
Entry Price, Exit Price, and Quantity
Entry price is the price at which you opened the trade or acquired the asset. Exit price is the selling price, closing price, or settlement price used when the position is closed. Quantity is the amount of crypto or contract exposure involved.
These inputs decide the raw profit or loss. If any of them are wrong, the final PnL will also be wrong.
Basic Spot PnL Formula
A simple spot PnL formula is:
PnL = (Exit Price × Quantity) − (Entry Price × Quantity) − Fees
You can also write it as:
PnL = (Exit Price − Entry Price) × Quantity − Fees
For example, say you buy 2 SOL at $150 each and later sell them at $180 each. Your gross PnL is:
($180 − $150) × 2 = $60
If total trading fees are $4, your net PnL is:
$60 − $4 = $56
That $56 is your actual profit after fees.
Current Value Minus Cost Basis
For open spot holdings, many traders compare current market value with cost basis. Cost basis is the total amount you paid to acquire the asset, including the purchase price and, depending on the accounting method, some acquisition costs.
A simple unrealized spot PnL formula is:
Unrealized PnL = Current Market Value − Cost Basis
For example, if your cost basis for a token position is $1,000 and its current market value is $1,250, your unrealized PnL is $250. If the current market value falls to $850, your unrealized PnL becomes −$150.
Positive PnL, Negative PnL, and Breakeven
Positive PnL means the position is profitable. Negative PnL means it’s losing money. Breakeven means the result is close to zero after fees, funding, and other costs.
This distinction sounds basic, but it matters in crypto because small costs can significantly impact the result. A trade that looks profitable before fees can become a net loss after trading fees, funding payments, spread, or slippage.
What Is Gross PnL vs. Net PnL?
Gross PnL and net PnL answer different questions. Gross PnL shows the raw trading result before costs. Net PnL shows the result after costs.
Gross PnL Before Costs
Gross PnL is the profit or loss before trading fees, funding fees, commissions, spread, or other execution costs are deducted. It’s useful for checking whether the trade direction was right.
For example, if you made $100 on price movement before paying $12 in fees and funding, your gross PnL is $100.
Net PnL After Costs
Net PnL is the final result after relevant costs are included. A simple formula is:
Net PnL = Gross PnL − Fees − Funding − Other Costs
Using the example above, your net PnL would be:
$100 − $12 = $88
Net PnL is usually the more useful number because it’s closer to your actual gain or actual loss.
How Does PnL Work for Long and Short Positions?
Long and short positions use opposite profit logic. A long position profits when price rises, while a short position profits when price falls.
Long Position Profit Logic
In a long position, you buy first and aim to sell later at a higher price. If the market price rises above your entry price, the position gains value. If it falls below your entry price, the position loses value.
Long positions are common in spot markets, margin trading, futures, and perpetual contracts.
Short Position Profit Logic
In a short position, you sell first or open short exposure, then aim to buy back or close later at a lower price. If the market falls, the short position profits. If the market rises, it loses money.
Short positions are usually used in derivatives or margin trading. They can be useful for hedging or trading a bearish view, but they also carry major risk because price can move against you quickly.
Long PnL Formula
A basic long PnL formula is:
Long PnL = (Current Price or Exit Price − Entry Price) × Quantity − Costs
For example, if you enter a long position at $100, exit at $120, and trade 5 units, your gross PnL is:
($120 − $100) × 5 = $100
Short PnL Formula
A basic short PnL formula is:
Short PnL = (Entry Price − Current Price or Buyback Price) × Quantity − Costs
For example, if you short at $100, close at $80, and trade 5 units, your gross PnL is:
($100 − $80) × 5 = $100
This is why short positions profit when prices fall.
How Is PnL Different in Spot, Futures, and Perpetuals?
Different crypto products require different PnL inputs. Spot holdings, futures contracts, and perpetual contracts don’t work the same way, so the displayed PnL may also differ.
Spot PnL vs. Owned Crypto Holdings
Spot PnL comes from crypto you own. If you buy an asset and still hold it, the PnL is unrealized. Once you sell or exchange it, the result becomes realized.
Spot PnL usually compares purchase price or cost basis with current price or selling price. For tax purposes, you may also need to track lots, acquisition dates, proceeds, and cost basis methods.
Futures PnL vs. Contract Exposure
Futures PnL comes from contract exposure instead of direct ownership of the underlying asset. A futures contract may have an expiry date and a settlement process, depending on the market and product.
On many derivatives platforms, unrealized PnL is calculated based on mark price instead of last traded price. When the position closes or settles, realized PnL is usually based on the actual closing price or settlement price, adjusted for relevant costs.
Perpetual Contract PnL Without Expiry
Perpetual contracts are derivatives that don’t have a standard expiry date. You can hold the position until you close it, get liquidated, or the platform’s rules force another outcome.
Perpetual PnL often uses mark price for unrealized PnL and liquidation calculations. Net PnL may also include funding fees, which can increase or reduce the final result even if price movement is small.
How to Get Free Crypto
Simple tricks to build a profitable portfolio at zero cost
Why Do Mark Price and Last Price Matter for PnL?
Mark price is a fair price reference used by many crypto derivatives platforms to calculate unrealized PnL and liquidation risk. It’s often derived from index price and other market data to reduce the impact of short-term spikes or manipulation.
Last traded price (or last price) is the price of the most recent trade on the exchange. It can move sharply in volatile or low-liquidity conditions.
This difference matters because your displayed PnL may look different depending on which price the platform uses. If unrealized PnL is calculated based on mark price, your own calculation using last price may not match the exchange dashboard.
Read more: Can My Crypto Go Negative?
How Do Funding Fees Affect Perpetual PnL?
Funding is one reason perpetual PnL can differ from a simple price-based calculation. You can be right about market direction and still lose part of the result to funding payments.
Funding Rate as a Perpetual Contract Mechanism
Funding rate is a mechanism used in perpetual contracts to help keep the perpetual contract price aligned with the broader spot market or index price.
Depending on market conditions, longs may pay shorts or shorts may pay longs. The exact formula and timing depend on the exchange and contract.
Funding Fee as a Payment Between Longs and Shorts
A funding fee is typically a payment between long and short traders, not a standard trading fee paid to the exchange. If the funding rate is positive, long positions often pay short positions. If it’s negative, short positions often pay long positions.
Because funding depends on position size and funding rate, larger leveraged positions can face larger funding adjustments.
Positive and Negative Funding Payments
Funding payments can be positive or negative for your account. If you receive funding, it can improve your net PnL. If you pay funding, it can reduce profit or increase loss.
This is especially important when you hold a perpetual position for a long time. Funding can add up and change the economics of the trade.
Funding Fees Inside Realized or Net PnL
Some platforms include funding inside realized PnL, net PnL, or closed-position history. Others show funding separately.
Before you judge trading performance, check how your exchange displays funding. Otherwise, you may misread your actual profit or net loss.
How Do Leverage, Margin, and Liquidation Change PnL?
Leverage lets you control a larger position with less collateral. It can amplify gains, but it also amplifies losses and liquidation risk.
Margin is the collateral that supports a leveraged position. If losses become too large relative to available margin and maintenance margin requirements, the platform can liquidate the position. Liquidation is a forced close that can turn unrealized losses into realized losses and reduce your wallet balance.
Leverage also changes how PnL percentage feels. A small market move can create a large return on margin, but the same move in the wrong direction can quickly damage equity and available collateral.
What Is the Difference Between Wallet Balance, Equity, and Available Collateral?
Wallet balance, account equity, and available collateral aren’t the same.
Wallet balance usually refers to the settled balance in your account. It’s affected by realized PnL, trading fees, funding fees, deposits, and withdrawals.
Account equity usually includes wallet balance plus or minus unrealized PnL on open positions. That means equity can change as the market moves, even if your wallet balance doesn’t.
Available collateral is the portion of your account that can support new or existing positions. It depends on equity, margin requirements, open positions, and platform rules. When unrealized losses grow, available collateral can shrink.
How Is PnL Percentage Different from PnL Value?
PnL value shows the amount of money gained or lost. PnL percentage shows performance relative to capital, margin, cost basis, or invested amount.
Absolute PnL in Dollars or Stablecoins
Absolute PnL is the dollar, stablecoin, or account-currency value of the profit or loss. For example, +$200 means you made $200 before or after costs, depending on whether the platform shows gross or net PnL.
This number is useful because it shows the direct financial gain or loss.
PnL Percentage as Normalized Performance
PnL percentage normalizes performance, which makes it easier to compare trades of different sizes.
A simple formula is:
PnL Percentage = PnL ÷ Capital Used × 100
For example, a $100 gain on $1,000 is a 10% gain. A $100 gain on $10,000 is a 1% gain. The absolute profit is the same, but the performance is different.
ROI and Return on Margin
ROI compares profit or loss with the capital invested over a specific period. Return on margin focuses on the profit or loss relative to the margin used in a leveraged trade.
These metrics can help savvy traders compare trading strategies, but they can also look misleading when leverage is high. A large return on margin may come with large liquidation risk.
Why Can Displayed PnL Differ from Final PnL?
The PnL you see during a trade may not match the final PnL after closure. Fees, funding, mark price, slippage, partial closes, and spread can all change the result.
Trading Fees Deducted at Close
Trading fees reduce final PnL. Many trades include both opening and closing fees, so the full cost may not be visible if you only look at price movement.
A trade can show positive PnL before fees and still produce a weaker net result after fees.
Learn more: Crypto Profit-Taking Strategies for Beginners
Funding Payments Added or Subtracted
Perpetual positions may include funding payments. If you pay funding, your net PnL drops. If you receive funding, your net PnL improves.
This can significantly impact longer-held positions.
Mark Price Differing from Last Price
If your platform uses mark price for unrealized PnL, your dashboard may not match a manual calculation based on last traded price.
This is common in derivatives because mark price is often used for liquidation-risk calculations and unrealized PnL.
Slippage Changing the Execution Price
Slippage happens when your actual execution price differs from the expected price. It can be caused by market volatility, low liquidity, large order size, or a wide bid-ask spread.
Slippage affects exit prices and can reduce actual profit or increase actual loss.
Partial Closes and Average Entry Changes
If you scale into or out of a position, your average entry price and quantity can change. That can make the PnL calculation harder to read at a glance.
Partial closes can also realize part of the PnL while the rest remains unrealized.
Spread and Low-Liquidity Effects
The bid-ask spread can reduce your realized result, especially in smaller coins or an overheated market with unstable liquidity.
Low liquidity can also make it harder to exit at the displayed market price. In those cases, execution quality can matter as much as direction.
How Does PnL Work for Portfolios and Multiple Coins?
PnL isn’t limited to one trade. It can also apply to a portfolio, bot, strategy, exchange account, or multiple crypto wallets.
Single-Position PnL vs. Portfolio PnL
Single-position PnL shows the result of one trade or one asset. Portfolio PnL combines multiple assets and positions to show a broader view of performance.
Portfolio PnL can include realized profit, unrealized profit, unrealized losses, total profits, total losses, and changes in current market value.
Realized and Unrealized PnL by Asset
Each asset can have its own realized and unrealized PnL. For example, your BTC position may have unrealized gains while your SOL position has realized losses.
Breaking PnL down by asset helps you identify which positions drive your portfolio performance.
Total PnL Across Multiple Holdings
Total PnL isn’t standardized across platforms. On one exchange, total PnL may include open and closed positions. On another, it may exclude fees, funding, transfers, or certain products.
Portfolio trackers can help, but they also depend on complete and accurate data. Always check what’s included before you treat total PnL as a comprehensive view.
How Do Cost Basis and Taxes Relate to Crypto PnL?
Tax PnL can differ from exchange-displayed PnL. For tax reporting, realized gain or loss usually depends on proceeds, cost basis, dates, quantities, fees, and local tax rules.
Cost basis is generally the amount you paid to acquire the asset, including certain acquisition costs. Proceeds are what you receive when you sell, exchange, or otherwise dispose of the asset. The difference between proceeds and cost basis helps determine taxable gain or loss.
You may also need to track tax lots and cost basis methods, such as FIFO or specific identification, depending on your jurisdiction. Because rules differ by country and can change, don’t rely only on an exchange dashboard for tax purposes.
How Can Beginners Calculate PnL Step by Step?
Calculating PnL becomes easier when you follow a simple process.
Step 1: Identify the Product Type
Start by identifying whether you’re calculating PnL for spot holdings, margin trading, futures, perpetual contracts, a bot, or a portfolio.
Different products use different inputs, costs, and price references.
Step 2: Find Entry Price and Quantity
Find the entry price and the quantity traded. For spot holdings, this may be your purchase price and token amount. For derivatives, it may be your contract entry price and position size.
Step 3: Choose Current, Mark, or Exit Price
Use the correct price for the situation. For open spot holdings, you may use current price. For open derivatives, the platform may use mark price. For closed trades, use the actual exit price, closing price, or settlement price.
Step 4: Calculate Gross PnL
Calculate the raw result before costs. For a long position, subtract entry price from exit or current price, then multiply by quantity. For a short position, subtract exit or current price from entry price, then multiply by quantity.
Step 5: Subtract Fees and Funding
Subtract trading fees, funding payments, commissions, and other relevant costs. This gives you net PnL.
Step 6: Convert PnL into Percentage
Divide PnL by the capital, margin, or cost basis used, then multiply by 100. This helps you compare performance across different position sizes.
Step 7: Label the Result as Realized or Unrealized
If the trade is closed or the asset is sold, the result is realized PnL. If the position is still open or the asset is still held, the result is unrealized PnL.
How Can Traders Track PnL More Accurately?
Accurate PnL tracking requires clean records. A dashboard can help, but it may not include every cost, transfer, tax lot, or platform-specific adjustment.
Exchange Dashboard Tracking
Exchange dashboards are useful for monitoring open positions, realized PnL, unrealized PnL, equity, available collateral, and recent trades.
They’re convenient, but they may not show every adjustment or match tax-reporting results.
Portfolio Tracker Tracking
Portfolio trackers can combine exchange accounts, wallets, and assets into one view. They’re useful when you trade across multiple platforms.
The quality of the output depends on the quality of the imported data.
Spreadsheet Tracking
Spreadsheets take more effort, but they give you control over formulas, assumptions, fees, dates, and cost basis.
They’re useful if you want to audit PnL manually or compare trading strategies over time.
API and CSV Exports
API and CSV exports help you review detailed trade history, funding payments, fees, deposits, withdrawals, and transfers.
They’re especially useful for active trading, tax preparation, and performance tracking.
Transaction History Cleanup
Clean transaction history is essential. Missing buys, sells, conversions, transfers, or fees can distort PnL.
Before you trust a final number, check whether all relevant transactions are included.
Fees, Transfers, and Missing Data
Fees, internal transfers, bridge transactions, and missing wallet data can make PnL look wrong. For example, a transfer between your own wallets shouldn’t be treated the same way as a sale.
If your tracker shows strange total PnL, missing data is one of the first things to check.
Final Thoughts
PnL helps you understand whether your crypto trades are working, but it’s only useful when you know what’s included. Realized PnL, unrealized PnL, gross PnL, net PnL, fees, funding, leverage, and tax records can all tell slightly different stories. Use PnL as a practical review tool, not a promise of future profit, and always check the numbers behind the dashboard.
FAQ
What does PnL mean in crypto?
PnL means profit and loss. It shows whether your crypto trade, position, asset, or portfolio is making money or losing money.
What is realized PnL?
Realized PnL is profit or loss from a closed trade or sold asset. It’s locked in and usually affects your wallet balance.
What is unrealized PnL?
Unrealized PnL is potential profit or loss on an open position or unsold asset. It changes with the current market price or mark price.
How do you calculate PnL in crypto?
A basic formula is: PnL = (Exit Price − Entry Price) × Quantity − Fees. For open holdings, compare current market value with cost basis.
Is positive PnL always actual profit?
No, positive unrealized PnL is only paper profit until you close the position, and final net PnL can change after fees, funding, and slippage.
Why is my final PnL different from displayed PnL?
Displayed PnL may use mark price, exclude fees, or update before funding and slippage are applied. Final PnL depends on actual execution and all costs.
Disclaimer: Please note that the contents of this article are not financial or investing advice. The information provided in this article is the author’s opinion only and should not be considered as offering trading or investing recommendations. We do not make any warranties about the completeness, reliability and accuracy of this information. The cryptocurrency market suffers from high volatility and occasional arbitrary movements. Any investor, trader, or regular crypto users should research multiple viewpoints and be familiar with all local regulations before committing to an investment.
