PnL Tracking for Crypto Traders: The Ultimate Guide
Knowing whether you made or lost money seems simple—until you're trading across multiple exchanges, dealing with DeFi complexity, and preparing for tax season. This guide covers everything from basic P&L calculation to professional-level portfolio tracking.

- Track realized P&L (closed trades) separately from unrealized P&L (open positions).
- Always include fees in P&L calculations—they significantly impact true performance.
- For multi-exchange trading, aggregate data into a single view for accurate total P&L.
- Thrive auto-tracks your P&L along with your emotions and spots your patterns before you do.
P&L Fundamentals
P&L (Profit and Loss) is the foundation of all trading analysis. It's the ultimate measure of whether your trading is working. But calculating it correctly— especially in crypto—is more complex than it appears.
Realized P&L
Profit or loss from closed positions. Money actually gained or lost. Creates taxable events. Affects your real account balance.
Unrealized P&L
Paper profit or loss on open positions. Can change until position is closed. Not taxable until realized. Useful for monitoring.
How to Calculate P&L
Spot Trading P&L
For spot trades (buying and selling actual crypto):
Formula: P&L = (Exit Price - Entry Price) × Quantity - Fees
Example: Long Trade
- Buy 0.5 BTC at $50,000 = $25,000 spent
- Sell 0.5 BTC at $55,000 = $27,500 received
- Trading fees: $50 (0.1% each way)
- P&L = $27,500 - $25,000 - $50 = $2,450
- Percentage return: $2,450 / $25,000 = 9.8%
Futures/Perpetual P&L
For leveraged positions:
Formula: P&L = (Exit - Entry) × Quantity × Contract Size - Fees - Funding
Example: Leveraged Long
- Open long 1 BTC-PERP at $50,000 with 5x leverage
- Margin used: $10,000
- Close at $52,000
- Price gain: $2,000 (4% on notional)
- Return on margin: $2,000 / $10,000 = 20%
- Subtract fees and any funding paid
Don't Forget Funding Rates
For perpetual futures, funding payments are a significant P&L component:
- Positive funding: longs pay shorts
- Negative funding: shorts pay longs
- Calculate total funding paid/received over hold period
- True P&L = Price P&L ± Funding P&L - Fees
P&L Calculator
Use this calculator to quickly determine your profit or loss on any trade:
Tracking P&L Across Multiple Exchanges
Most active traders use multiple exchanges. You might use Binance for spot, Bybit for perpetuals, and a DEX for DeFi. Tracking total P&L requires aggregating all this data.
The Multi-Exchange Challenge
- Different data formats from each exchange
- Different fee structures to account for
- Time zone differences in timestamps
- Deposit/withdrawal tracking between exchanges
- No native "total portfolio" view
Solution Approaches
Option 1: Manual Aggregation
- Export CSV from each exchange
- Standardize data format
- Combine in spreadsheet
- Build formulas for total P&L
- Pros: Free, full control
- Cons: Time-consuming, error-prone
Option 2: Portfolio Tracker
- Use dedicated tracking software
- Connect via API or CSV import
- Automatic aggregation
- Pros: Saves time, fewer errors
- Cons: Monthly cost, data privacy
Option 3: Trading Journal with Import
- Import trades from all exchanges
- Unified view with analytics
- P&L plus additional insights
- Pros: P&L plus performance analysis
- Cons: Requires consistent logging
Percentage vs. Dollar P&L
Both views matter, but for different purposes.
Dollar P&L
- Shows actual money made/lost
- Relevant for budgeting and lifestyle
- Required for tax reporting
- Can be misleading for comparing trades of different sizes
Percentage P&L
- Normalizes for position size
- Better for comparing trades
- More useful for strategy analysis
- Doesn't show absolute impact on account
Best Practice
Track both. Use percentage P&L for analyzing trade quality and strategy performance. Use dollar P&L for understanding actual account growth and tax implications.
P&L Dashboard Example
A proper P&L dashboard should show multiple views of your performance:
Smart money building positions
Open Interest
↑ Rising
Volume
● High
Funding Rate
~ Neutral
Price Action
→ Sideways
Large players are accumulating. Rising OI with stable price suggests new positions are being built. Watch for a breakout.
DeFi P&L: The Complexity Beast
DeFi P&L tracking is significantly more complex than CEX trading.There are multiple sources of gain and loss that need separate tracking.
Types of DeFi P&L
Swap P&L
When you swap tokens on a DEX:
- Record input token and value at swap time
- Record output token and value at swap time
- Any difference plus gas fees is your P&L
- Later selling the output token creates additional P&L
Liquidity Provision P&L
When providing liquidity:
- Track value at deposit time
- Track fee earnings over time
- Track impermanent loss
- Track value at withdrawal
- Total P&L = Withdrawal Value + Fees - Deposit Value - IL
Yield Farming P&L
- Track principal deposited
- Track rewards earned (at time of earning)
- Track reward token price changes
- Track any principal changes
- Gas costs for harvesting
Lending/Borrowing P&L
- Interest earned on supplied assets
- Interest paid on borrowed assets
- Liquidation losses if applicable
- Reward token earnings
DeFi Tracking Solutions
- DeBank: Portfolio tracking across chains
- Zapper: DeFi dashboard with history
- Manual tracking: Wallet address scanning + spreadsheet
P&L and Tax Implications
Every realized P&L creates a taxable event in most jurisdictions.Proper P&L tracking makes tax season much easier.
Taxable Events in Crypto
- Selling crypto for fiat
- Trading one crypto for another
- Using crypto to buy goods/services
- Receiving crypto as payment (income)
- Earning staking/mining rewards
Cost Basis Methods
FIFO (First In, First Out)
Oldest coins are sold first. Most common method, required in many jurisdictions.
LIFO (Last In, First Out)
Newest coins sold first. Can minimize taxes in rising markets by selling higher-cost basis coins.
Specific Identification
You choose which specific coins to sell. Maximum flexibility but requires detailed record-keeping.
Average Cost
Total cost divided by total quantity. Simpler but less tax optimization potential.
Records to Maintain
- Date and time of every transaction
- Type of transaction (buy, sell, trade, etc.)
- Amount of crypto involved
- Fair market value at time of transaction
- Cost basis for assets sold
- Fees paid
- Wallet addresses involved
Common P&L Tracking Mistakes
1. Ignoring Fees
A trader doing 100 trades per month with $5 average fees loses $500/month to fees alone. Over a year, that's $6,000. If your strategy makes $10,000 gross, fees reduce it to $4,000 net. Always include fees in P&L.
2. Mixing Realized and Unrealized
Looking at total portfolio value and thinking you've "made" money while positions are still open is dangerous. You haven't made anything until you close the position. Track them separately.
3. Forgetting Funding Payments
Perpetual traders often forget that funding accumulates. A position held for a week during 0.03% funding (paid every 8 hours) loses 0.63% to funding alone. At 10x leverage, that's 6.3% of your margin.
4. Not Tracking Transfers
Moving crypto between exchanges isn't P&L, but failing to track it makes your exchange-specific P&L inaccurate. Track all deposits and withdrawals.
5. Using Wrong Price Data
Your execution price may differ from the "current price" shown on charts due to slippage. Use actual fill prices, not chart prices.
6. Neglecting DeFi Complexity
DeFi generates P&L from multiple sources that are easy to miss: swap slippage, impermanent loss, reward tokens, gas fees. Track all of them.
P&L Tracking Tools Compared
Different tools offer different capabilities for P&L tracking:
| Feature | Spreadsheet | Koinly/CoinTracker | Thrive |
|---|---|---|---|
| Trade import | Manual/CSV | API + CSV | API + CSV |
| Multi-exchange | Build yourself | Yes | Yes |
| Real-time P&L | Manual update | Yes | Yes |
| Fee tracking | Manual | Yes | Yes |
| Funding rates | Manual | Limited | Yes |
| Tax reports | Build yourself | Yes (primary focus) | Export |
| Trading analytics | Build yourself | Limited | Full |
| Emotion tracking | Manual | No | Yes |
| AI insights | No | No | Yes |
| Primary use | DIY | Tax prep | Trading improvement |
P&L Tracking Best Practices
Daily Practices
- Record every trade immediately
- Include all fees in calculations
- Note funding payments for perpetuals
- Keep unrealized P&L monitoring separate
Weekly Practices
- Calculate total weekly P&L
- Compare to targets and historical average
- Analyze P&L by asset, strategy, time
- Verify exchange balances match records
Monthly Practices
- Generate monthly P&L statement
- Track running yearly P&L
- Review fee totals—are they acceptable?
- Reconcile all exchange accounts
Annual Practices
- Calculate total annual P&L by cost basis method
- Prepare tax documents or export for tax software
- Archive all records
- Review yearly performance trends
Frequently Asked Questions
What is the difference between realized and unrealized P&L?
Realized P&L is profit or loss from closed positions—trades where you've sold and locked in the outcome. Unrealized P&L is paper profit or loss on open positions that could still change. Only realized P&L affects your actual account balance and creates taxable events.
How do I calculate P&L for a crypto trade?
Basic formula: P&L = (Exit Price - Entry Price) × Quantity - Fees. For a long trade: if you bought 1 BTC at $50,000 and sold at $55,000 with $50 in fees, your P&L = ($55,000 - $50,000) × 1 - $50 = $4,950. For shorts, reverse the price calculation.
How do I track P&L across multiple exchanges?
You need to aggregate data from all exchanges into a single view. Export CSV files from each exchange and import into a tracking tool, or use a platform that connects via API. Calculate P&L per exchange first, then aggregate for total performance.
What cost basis method should I use for crypto taxes?
Common methods: FIFO (First In, First Out), LIFO (Last In, First Out), and Specific Identification. FIFO is most common and required in some jurisdictions. LIFO can minimize taxes in rising markets. Check your country's tax rules for requirements.
How do I track DeFi P&L?
DeFi is complex: track swaps, LP positions, yield farming rewards, and impermanent loss separately. For swaps, record input and output values. For LPs, track deposit value, withdrawal value, and rewards earned. Use DeFi-specific tools or manual tracking with wallet address scanning.
Should I track P&L in USD or BTC?
Track in your home fiat currency (USD, EUR, etc.) for tax purposes and overall performance assessment. Some traders also track in BTC to measure performance against simply holding Bitcoin. Thrive tracks both so you can see either view.
How often should I calculate my trading P&L?
Calculate P&L for each closed trade immediately (automated is best). Review daily P&L at end of session. Calculate weekly and monthly totals during reviews. For tax purposes, ensure accurate year-end P&L calculations well before filing deadlines.
Do I need to track fees in my P&L?
Yes, fees significantly impact true P&L, especially for active traders. A trader doing 100 trades with $5 average fees pays $500/month in fees alone. Track trading fees, funding fees (for perpetuals), withdrawal fees, and any other costs.