You bought Bitcoin at $60,000. You sold at $70,000. "I made $10,000!" you tell your friend.
But wait... you also:
- Bought 0.5 BTC at $50,000 (sold at $70,000)
- Bought 0.3 BTC at $65,000 (sold at $55,000 โ loss!)
- Received 0.1 BTC from a friend (when it was $40,000)
What's your REAL profit? And how do you calculate it for taxes?
If you don't know the answer, you're going to have a bad time with the IRS (or your local tax authority).
Let's break down exactly how to calculate crypto profits/losses, the difference between FIFO/LIFO, and how to never mess up your taxes again.
The Basic Profit Formula (You Must Know This)
Profit = Selling Price - Cost Basis Example:- Cost Basis: $60,000 (what you paid)
- Selling Price: $70,000 (what you sold for)
- Profit: $10,000
The "Which Bitcoin Did I Sell?" Problem)
Imagine you bought Bitcoin THREE times:
- 0.5 BTC at $50,000 (Total: $25,000)
- 0.3 BTC at $60,000 (Total: $18,000)
- 0.2 BTC at $70,000 (Total: $14,000)
Now you sell 0.5 BTC at $80,000.
Question: WHICH 0.5 BTC did you sell?- The $50K ones? (Profit = $15,000)
- The $70K ones? (Profit = $5,000)
FIFO vs. LIFO vs. HIFO (Tax Methods)
FIFO (First-In, First-Out) โ MOST COMMON
How it works: You sell the OLDEST coins first. Example:- Bought 0.5 BTC at $50K (Month 1)
- Bought 0.5 BTC at $70K (Month 6)
- Sell 0.5 BTC at $80K โ Uses the $50K coins (oldest)
LIFO (Last-In, First-Out)
How it works: You sell the NEWEST coins first. Example:- Bought 0.5 BTC at $50K (Month 1)
- Bought 0.5 BTC at $70K (Month 6)
- Sell 0.5 BTC at $80K โ Uses the $70K coins (newest)
HIFO (Highest-In, First-Out) โ BEST FOR TAXES)
How it works: You sell the HIGHEST-COST coins first. Example:- Bought 0.5 BTC at $50K
- Bought 0.5 BTC at $70K
- Sell 0.5 BTC at $80K โ Uses the $70K coins (highest cost)
How to Track Your Cost Basis (Don't Do This Manually!)
Tracking 100+ trades manually in Excel? You'll mess up and get audited.
Method 1: Crypto Tax Software (RECOMMENDED)
Koinly (Visit Site):- Connects to Coinbase, Binance, MetaMask
- Automatically calculates FIFO/LIFO/HIFO
- Generates IRS Form 8949 + Schedule D
- Cost: $49-$179/year
- Better UI than Koinly
- Integrates with TurboTax
- Cost: $59-$299/year
Method 2: Exchange-Native Tracking
Coinbase:- Settings โ "Taxes" โ Download 1099 form
- Uses FIFO by default
- Wallet โ "Transaction History" โ Export CSV
- Uses FIFO by default
Method 3: Coin Advice Profit Calculator (Free & Simple)
How to use it:- Go to Profit Calculator
- Enter: Coin, Buy Price, Sell Price, Quantity
- Select FIFO/LIFO
- See profit/loss + ROI instantly
Real-World Example: Calculating a Messy Portfolio)
Your 2026 trades:- Jan 1: Buy 1 BTC at $60,000
- Mar 1: Buy 0.5 BTC at $50,000
- Jun 1: Buy 0.3 BTC at $70,000
- Sep 1: Sell 1 BTC at $80,000
- Dec 1: Sell 0.5 BTC at $90,000
- Uses 1 BTC from Jan 1 ($60K cost basis)
- Profit: $80K - $60K = $20,000
- Uses 0.5 BTC from Mar 1 ($50K cost basis)
- Profit: $90K - $50K = $40,000 per BTC ร 0.5 = $20,000
- Uses 0.3 BTC from Jun 1 ($70K) + 0.7 BTC from Mar 1 ($50K)
- Profit: (0.3 ร $10K) + (0.7 ร $30K) = $3,000 + $21,000 = $24,000
- Uses 0.5 BTC from Jan 1 ($60K)
- Profit: $90K - $60K = $30,000 per BTC ร 0.5 = $15,000
ROI (Return on Investment) โ The Percentage That Matters)
ROI = (Profit รท Cost Basis) ร 100 Example:- Invested: $10,000
- Sold for: $15,000
- Profit: $5,000
- ROI: ($5,000 รท $10,000) ร 100 = 50%
- 10-30%: Decent (better than stocks)
- 50-100%: Excellent (bull market)
- 500%+: Life-changing (but rare)
- -50%: Ouch (bear market)
Crypto-to-Crypto Taxes (The Hidden Trap!)
You trade 1 BTC (worth $60K) for 20 ETH (worth $60K).
You just triggered a taxable event! The math:- Cost basis of 1 BTC: $50,000
- Sold for: $60,000 (in ETH)
- Taxable gain: $10,000 (YES, even though you didn't cash out to USD!)
- BTC โ ETH
- ETH โ USDC
- ANY crypto-to-crypto trade
- Buying crypto with USD (no gain/loss yet)
- Transferring between YOUR wallets (not taxable)
- Donating to charity (tax-deductible in many countries)
Short-Term vs. Long-Term Capital Gains)
In the US (2026 rates):Short-Term (Held < 1 Year)
Tax rate: Ordinary income tax (10-37%) Example:- Buy BTC at $60K
- Sell 6 months later at $80K
- Profit: $20,000
- Tax: $20,000 ร your tax bracket (e.g., 24% = $4,800)
Long-Term (Held > 1 Year)
Tax rate: Preferential rate (0-20%) Example:- Buy BTC at $60K
- Sell 13 months later at $80K
- Profit: $20,000
- Tax: $20,000 ร 15% = $3,000 (save $1,800!)
Tools to Calculate Profits & Taxes)
1. Coin Advice Profit Calculator (Free)
- Quick profit/loss calculations
- ROI modeling
- FIFO/LIFO comparison
- Best for: Quick checks without software
2. Koinly ($49-$179/year)
- Full tax reporting
- FIFO/LIFO/HIFO automatic
- IRS Form 8949 + Schedule D
- Best for: US taxpayers
3. CoinTracker ($59-$299/year)
- Better UI than Koinly
- TurboTax integration
- Best for: People who hate spreadsheets
4. Coin Advice Portfolio Tracker (Free)
- Track total portfolio P&L
- Real-time profit/loss
- Best for: Monitoring your overall performance
The Bottom Line)
Calculating crypto profits isn't optional. The IRS (and tax authorities worldwide) WILL come knocking.
To stay safe:- Choose FIFO or LIFO (FIFO = higher taxes, LIFO = lower)
- Use tax software (Koinly, CoinTracker)
- Track EVERY trade (even crypto-to-crypto)
- Hold 1+ years for lower long-term tax rates
- Use Profit Calculator for quick checks
Ready to calculate your profits? Use our Profit Calculator for quick ROI checks, Portfolio Tracker to monitor total P&L, and tax software (Koinly/CoinTracker) for IRS-compliant reporting.
Want to learn more about taxes? Read our Crypto Taxes Guide and Dollar-Cost Averaging to reduce your taxable events.