Crypto Profit & Loss Calculator — Track Your Real Gains and Losses
Calculate crypto profit or loss from buy and sell prices, including fees. See net P&L in both fiat and percentage terms for any crypto trade.
Crypto prices move fast and people often lose track of whether they're actually profitable after fees. Bought ETH at multiple prices? Sold part of the position? The CalcHub Crypto P&L Calculator calculates your net position, average buy price, and total profit or loss — in both percentage and fiat terms — across any combination of buys and sells.
The Core Calculations
For a simple single buy/sell: P&L = (Sell Price − Buy Price) × Quantity − Fees ROI% = (Sell Price − Buy Price) / Buy Price × 100But most crypto holders buy in multiple tranches — DCA purchases, multiple exchange buys, airdrops. In that case, calculate average cost basis first:
Average Cost Basis = Total Amount Spent / Total Coins HeldHow to Use the Calculator
- Enter each buy transaction (date, quantity, price, fee)
- Enter each sell transaction (date, quantity, price, fee)
- Get total invested, total received, fees paid, net P&L, and overall ROI%
- See unrealized P&L if you still hold a position (enter current market price)
Example: Multi-Tranche Bitcoin Purchase
| Transaction | Date | BTC Amount | Price (₹) | Fees (₹) |
|---|---|---|---|---|
| Buy 1 | Jan 2024 | 0.1 BTC | ₹33,00,000/BTC | ₹330 |
| Buy 2 | Mar 2024 | 0.05 BTC | ₹60,00,000/BTC | ₹300 |
| Buy 3 | Jul 2024 | 0.05 BTC | ₹55,00,000/BTC | ₹275 |
If current price is ₹70,00,000/BTC:
Position value: 0.20 × ₹70,00,000 = ₹14,00,000
Unrealized P&L: ₹14,00,000 − ₹9,05,905 (with fees) = +₹4,94,095 (+54.6%)
Don't Forget Fees
Crypto fees compound significantly for active traders:
- Exchange trading fees: 0.1–0.5% per trade
- Gas fees: variable, can be ₹100–₹2,000+ per Ethereum transaction
- Network withdrawal fees: fixed per token
- Spread: difference between buy and sell price on less liquid pairs
A trader making 50 trades per month at 0.3% fee per side pays 0.6% round-trip × 50 trades = 30% of position size in fees annually. High-frequency trading erodes returns quickly.
Realized vs Unrealized P&L
Unrealized P&L (paper gains/losses) — position still open; value at current market price vs cost basis. Realized P&L — position closed; actual money received vs actual money spent.Only realized P&L is taxable in most jurisdictions. Unrealized gains that subsequently reverse result in no tax liability — though in India, the 30% flat tax on crypto gains applies when you sell.
How is crypto P&L calculated for tax purposes in India?
Under Indian tax law (effective April 2022), profits from virtual digital assets (VDAs) including cryptocurrency are taxed at a flat 30% with no deductions allowed except cost of acquisition. Additionally, 1% TDS is deducted on crypto transactions above ₹50,000 (or ₹10,000 for individuals) by exchanges. Use the crypto tax calculator for detailed tax calculations.
What's the FIFO method for crypto cost basis?
FIFO (First In, First Out) assumes you sell the oldest coins first. If you bought 1 ETH at ₹1,00,000 and later 1 ETH at ₹2,00,000, then sell 1 ETH at ₹3,00,000, FIFO calculates profit as ₹3,00,000 − ₹1,00,000 = ₹2,00,000. India's tax authority currently uses cost-of-acquisition matching; consult a CA for specific guidance on multi-tranche positions.
Does the P&L calculator work for altcoins and tokens?
Yes — the calculation works identically for any cryptocurrency. The challenge with altcoins is historical price data and accurate fee records. Use exchange export features to download complete transaction histories rather than entering manually.