Back to Blog
Education9 min readMarch 7, 2026

The Complete Guide to Crypto PnL: How to Calculate Your Real Profit

The Most Important Number You Are Probably Getting Wrong

Ask ten crypto holders how much profit they have made, and nine of them will give you an incorrect answer. Not because they are lying, but because calculating real profit and loss (PnL) in crypto is surprisingly difficult.

You bought ETH at $2,000 and it is now at $3,500. Up 75%, right? Maybe. But did you account for the gas fees on every transaction? The swap fees? The tokens you bought at $3,000 during a DCA? The portion you sold at $2,500 during a dip?

Real PnL requires precision, and precision requires good tracking.

What Is PnL?

PnL stands for Profit and Loss. In crypto, it measures the difference between what you paid for your assets and what they are worth now (or what you sold them for).

There are two types:

Unrealized PnL

The profit or loss on assets you still hold. If you bought 1 ETH at $2,000 and ETH is now at $3,500, your unrealized PnL is +$1,500. This is a paper gain — it is not locked in until you sell.

Realized PnL

The profit or loss on assets you have already sold. If you bought 1 ETH at $2,000 and sold it at $3,500, your realized PnL is +$1,500 (minus fees).

Your total PnL is the sum of both.

How to Calculate Cost Basis

Cost basis is what you paid for an asset, including fees. This is the foundation of accurate PnL.

Simple Example

You buy 1 ETH for $2,000 with a $5 gas fee. Your cost basis is $2,005.

Multiple Purchases (DCA)

Most people buy the same token multiple times at different prices. This is where it gets complicated.

Example:

  • Buy 0.5 ETH at $1,800 = $900
  • Buy 0.3 ETH at $2,200 = $660
  • Buy 0.2 ETH at $3,000 = $600
  • Total: 1 ETH, total cost = $2,160. Average cost basis = $2,160 per ETH.

    Which Method to Use?

    There are several accounting methods:

  • Average cost: Total cost divided by total quantity (simplest)
  • FIFO (First In, First Out): When you sell, the oldest purchase is sold first
  • LIFO (Last In, First Out): When you sell, the newest purchase is sold first
  • Specific identification: You choose which lot to sell
  • The method you use affects your PnL calculation and your tax liability. Most jurisdictions default to FIFO or average cost.

    Common PnL Mistakes

    1. Ignoring Fees

    Gas fees, swap fees, bridge fees, exchange fees — they all eat into your profit. A trade that looks profitable might be break-even or negative after fees, especially on Ethereum mainnet where a single swap can cost $20-50 in gas.

    2. Forgetting About Failed Transactions

    On Ethereum, you pay gas even when a transaction fails. This is a pure cost that should be included in your PnL.

    3. Not Tracking Airdrops and Rewards

    If you received a $500 airdrop, that is income. Its cost basis is the value at the time you received it. If you later sell it for $800, your PnL on that airdrop is +$300 (not +$800).

    4. Ignoring Cross-Chain Movements

    When you bridge tokens from Ethereum to Arbitrum, you pay bridge fees. If you are not tracking this, you are understating your costs.

    5. Confusing Portfolio Value With Profit

    Your portfolio is worth $10,000. Great. But if you invested $12,000, you are actually down $2,000. Many people look at their balance and feel rich without realizing they are underwater.

    Tax Implications

    In most jurisdictions, crypto PnL has tax consequences:

  • Selling crypto for fiat: Taxable event (capital gains or losses)
  • Swapping one crypto for another: Taxable event in most countries
  • Receiving staking rewards or airdrops: Often treated as income
  • Moving between your own wallets: Not a taxable event
  • Providing liquidity: Complex — varies by jurisdiction
  • Accurate PnL tracking is not optional if you want to stay compliant with tax regulations.

    How Folio Calculates PnL

    Folio automatically calculates PnL for every token in your portfolio by:

  • Scanning transaction history across all 16 supported blockchains
  • Identifying buy/sell events including swaps and bridge transfers
  • Calculating cost basis using average cost method
  • Factoring in fees — gas, swap fees, and bridge costs
  • Showing real-time unrealized PnL based on current market prices
  • Tracking realized PnL from completed sales
  • The result is a per-token and total portfolio PnL that actually reflects reality.

    Why Manual Tracking Fails

    Spreadsheets break when you have hundreds of transactions across multiple chains. Manual tracking cannot account for DeFi interactions, token swaps, or complex yield farming positions. And most people simply stop updating their spreadsheet after the first week.

    Automated tracking is not a luxury. It is the only way to get accurate numbers at scale.

    The Bottom Line

    If you do not know your real PnL, you are making decisions in the dark. You might be holding a loser thinking it is a winner. You might be sitting on tax obligations you do not know about. You might be celebrating gains that do not exist after fees.

    Accurate PnL is the foundation of good portfolio management. Everything else — rebalancing, tax planning, performance analysis — depends on getting this number right.

    Start tracking with Folio — it's free.