Financial Calculators
Crypto P&L Calculator - Profit & Loss
Calculate your cryptocurrency profit or loss using FIFO, LIFO, or average cost basis. Add multiple purchase lots, set a sell price and exchange fee, and see your total gain/loss, break-even price, and per-lot breakdown.
Purchase lots
Total P&L
$9,950.00
+24.88%
Cost basis
$40,000.00
Avg $40,000.00/coin
Net proceeds
$49,950.00
Fees: $50.00
Break-even price: $40,040.04
| Segment | Value | Percentage |
|---|---|---|
| Cost Basis | $40,000.00 | 80.1% |
| Profit | $9,950.00 | 19.9% |
Crypto P&L basics
Your profit or loss on a cryptocurrency trade is calculated as:
P&L = (Sell Price × Quantity) − Exchange Fees − Cost Basis
A positive result is a realized gain; a negative result is a realized loss. Unrealized P&L is the gain or loss on coins you still hold (i.e., have not sold).
Cost basis methods
When you buy the same cryptocurrency multiple times at different prices, you need a rule to determine which coins you are selling.
- FIFO (First In, First Out): oldest coins are sold first. If prices have risen over time, FIFO tends to produce the largest gains and the highest tax bill, but also qualifies more holdings for long-term capital gains treatment.
- LIFO (Last In, First Out): most recently purchased coins are sold first. May minimize gains in a rising market. Note: the IRS has challenged LIFO for crypto in some guidance.
- Average Cost: all purchases are blended into a single per-unit cost. Simple to track and commonly used for mutual funds; permitted for crypto by many exchanges' reporting.
Break-even price
The break-even price is the sell price at which you would have exactly zero P&L after fees. It equals your average cost basis divided by (1 − fee rate). Knowing your break-even helps you set realistic price targets.
Tax considerations
In the United States, cryptocurrency is treated as property by the IRS. Gains held for more than one year qualify for lower long-term capital gains rates (0%, 15%, or 20% depending on income). Gains held for one year or less are taxed as ordinary income. Each sale, trade, or exchange of crypto is a taxable event, including crypto-to-crypto swaps. This calculator does not constitute tax advice; consult a qualified professional for your specific situation.
Tax reporting note
Every crypto-to-crypto trade and crypto-to-fiat sale is a taxable event in the US. The IRS requires reporting on Form 8949 (Sales and Other Dispositions of Capital Assets), which rolls up to Schedule D on your Form 1040. This includes swapping BTC for ETH, staking rewards, airdrops, and DeFi yield farming. IRS Notice 2014-21 established the "property" classification, and subsequent guidance (Revenue Ruling 2019-24, Notice 2023-27) expanded on specific transactions. Many taxpayers are surprised to learn that simply exchanging one crypto for another triggers a reportable gain or loss.
Unrealized vs. realized gains
An unrealized gain is the increase in value of an asset you still hold - it exists on paper only. A realized gain occurs when you sell the asset and lock in the profit. For tax purposes, only realized gains are taxable. Unrealized gains do not appear on your tax return until you dispose of the asset. However, tracking unrealized P&L helps you understand your portfolio's performance and plan future tax strategies (e.g., tax-loss harvesting).
DCA scenario
Dollar-cost averaging (DCA) means buying fixed amounts of crypto at regular intervals. This creates multiple tax lots - separate purchase records with different costs and dates. When you sell, the cost basis depends on which lot you sell (FIFO, LIFO, or specific ID). Over time, your average cost basis is the sum of all purchase amounts divided by total quantity held. DCA reduces timing risk but complicates tax reporting; software like CoinTracker, Koinly, or TaxBit can track lot-level details automatically.