Crypto Profit/Loss Calculator
Calculate the absolute profit or loss on a cryptocurrency trade by subtracting the buy price from the sell price and multiplying by the quantity held. Use it for quick trade evaluation, tax-event planning, and tracking realized vs unrealized gains across coins and positions.
Last updated: May 2026
Compare with similar
About this calculator
The formula is: profit/loss = (sell price − buy price) × quantity. A positive result is a realized capital gain; a negative is a realized loss. The formula uses the price difference per coin times the number of coins traded. For dollar-cost-averaged positions where you bought at multiple prices, use the average cost basis as buy price (total spent ÷ total coins acquired). Edge cases: a sell price equal to buy price returns zero (break-even, but trading fees turn this into a small loss in practice); selling below cost basis returns a negative number (loss). The formula does NOT include: trading fees (typically 0.1-1% per trade on centralized exchanges, much higher on decentralized exchanges due to gas + slippage + protocol fees), spread costs (the gap between bid and ask), taxes on gains (15-37% in US depending on holding period and bracket), or network fees for self-custody transfers. For tax purposes, the IRS treats crypto as property: short-term gains (held under 1 year) are taxed at ordinary income rates; long-term gains (held over 1 year) at preferential capital-gains rates (0/15/20%). Wash-sale rules currently do NOT apply to crypto in the US, allowing tax-loss harvesting strategies that aren't available for stocks (this may change with future legislation). Every crypto-to-crypto trade (BTC → ETH, for example) is a taxable event in the US, not just crypto-to-fiat — many traders are surprised by this and underreport. For cost-basis tracking across many trades, use tax software (CoinTracker, Koinly, TaxBit) rather than manual calculations.
How to use
Example 1 — Profitable BTC trade. You bought 0.5 BTC at $42,000 each and sold at $58,000. Enter 42000 for Buy Price, 58000 for Sell Price, 0.5 for Quantity. Result: $8,000 profit. Verify: (58000 − 42000) × 0.5 = 16000 × 0.5 = $8,000. ✓ Subtract trading fees (typically $30-100 total round-trip on a centralized exchange) for net profit ~$7,900. If held under a year, this is a short-term gain taxed at your ordinary income rate (10-37%); held over a year, it's long-term at 0/15/20%. Example 2 — Loss on altcoin. You bought 100 ETH at $3,200 and sold at $2,400. Enter 3200, 2400, 100. Result: −$80,000. Verify: (2400 − 3200) × 100 = −800 × 100 = −80,000. ✓ A $80,000 capital loss can offset other capital gains for tax purposes; if you have no offsetting gains, up to $3,000/year can offset ordinary income (US), with the rest carrying forward to future years. Tax-loss harvesting (selling losers to bank losses for tax purposes) is currently allowed for crypto in the US without the 30-day wash-sale restriction that applies to stocks — a notable advantage for active traders.
Frequently asked questions
How are crypto profits and losses taxed in the US?
The IRS treats cryptocurrency as property, not currency. Capital gains tax applies: short-term gains (assets held one year or less) are taxed at your ordinary income rate (10-37% in 2024); long-term gains (held over one year) at preferential rates (0% for taxable income under $47,025 single / $94,050 joint, 15% for most middle-income, 20% for high earners). Losses can offset other capital gains; net losses can offset up to $3,000 of ordinary income per year with excess carrying forward indefinitely. EVERY crypto-to-crypto swap is a taxable event (selling BTC to buy ETH triggers capital gains on the BTC sale at fair market value). Mining, staking rewards, and airdrops are taxable as ordinary income at fair market value when received. For 2026 tax year, the IRS Form 1099-DA requires brokers to report crypto transactions, dramatically improving compliance enforcement.
What is the difference between realized and unrealized gains?
Realized gains are profits or losses from completed sales — actually exchanging your crypto for fiat, another crypto, or goods/services. These are taxable events. Unrealized gains are paper profits or losses on positions you still hold — your portfolio is "up" or "down" on paper, but no tax event has occurred. Many crypto investors confuse these and worry about tax on unrealized gains, which is not how the system works. You only owe tax when you sell, trade, spend, or otherwise dispose of the asset. Long-term holders who never sell never pay capital gains tax (though stepped-up basis on inheritance can eliminate gains entirely for heirs). Tax-loss harvesting requires realizing the loss by actually selling; unrealized losses don't reduce your tax bill until you sell.
Should I include trading fees in profit calculations?
Yes — fees materially reduce real profitability and matter for both economic and tax decisions. Centralized exchange fees: typically 0.1-1% per trade (Coinbase 0.5-1.49% for retail, 0.0-0.4% for Coinbase Advanced/Pro; Binance 0.1% base; Kraken 0.16-0.26%). DEX fees: protocol fee 0.05-1% + gas (Ethereum gas can be $5-50+ depending on congestion + slippage 0.1-5%+ depending on liquidity). Round-trip fees on a $10,000 trade can easily reach $50-300 on centralized exchanges, $100-1000+ on Ethereum DEXes. For tax purposes, fees are added to cost basis (or subtracted from proceeds), reducing taxable gain. For accurate net profit, always subtract round-trip fees from the calculator output.
What are the most common mistakes people make calculating crypto profits?
The biggest is forgetting fees, which can swing close-to-breakeven trades into losses. The second is using FIFO vs specific-identification cost basis without understanding the tax implications — specific-ID (identifying which exact coins you're selling) usually minimizes taxes but requires meticulous record-keeping. The third is treating crypto-to-crypto swaps as non-events when they're fully taxable; many traders underreport for years and face IRS audits. The fourth is not tracking cost basis across exchanges, wallets, and DeFi protocols; cost basis follows the coin through every transfer, and losing track in DeFi makes accurate tax reporting impossible. The fifth is celebrating "profits" denominated in stablecoins or volatile crypto without converting to fiat for tax purposes; the IRS requires fiat-denominated reporting. The sixth is ignoring wash-sale opportunity: crypto isn't covered by the 30-day wash-sale rule, so you can sell at a loss and immediately rebuy — locking in the loss for tax purposes while maintaining the position.
When should I not use this calculator?
Skip it for tax reporting — use dedicated crypto tax software (CoinTracker, Koinly, TaxBit, ZenLedger) that handles cost-basis tracking across exchanges, DeFi protocols, and wallets, applies FIFO/LIFO/HIFO/specific-ID methods, and generates Form 8949 and Schedule D correctly. It is the wrong tool for staking rewards, mining income, airdrops, or DeFi yields, which are taxed as ordinary income at fair market value when received (not as capital gains). Do not use it for DeFi positions with impermanent loss, where the value calculation requires modeling liquidity pool dynamics rather than simple price differences. For NFT trades, this formula doesn't capture royalty payments to creators or marketplace fees. For derivatives (futures, options, perpetuals), use position-specific calculators that handle leverage, funding rates, and liquidation prices. And for any significant tax planning decisions, consult a CPA familiar with cryptocurrency taxation — penalties for misreporting can be severe.