Transactions
Cost basis and crypto taxes (US overview)
When you sell crypto for more than you paid, you may have a capital gain; if less, a capital loss. Cost basis is what you paid (including fees in many cases). FIFO, LIFO, and average cost are different ways to match sells to earlier buys when you have multiple purchases.
This calculator helps you explore those totals for simple buy/sell histories. It does not handle every taxable event (swaps, income, wash sales, multi-wallet consolidation) and does not apply federal or state tax rates. For complex portfolios, use specialized crypto tax software or a qualified CPA.
How This Calculator Works
Enter buys and sells
List each transaction with date, type, quantity, price, and fees.
Pick a matching method
FIFO, LIFO, or Average Cost determines how sells consume purchase lots.
View gains and losses
See totals for proceeds, cost basis, gains, losses, and net result.
About Crypto Tax Calculator
Add buy and sell transactions, choose a cost basis method, and calculate total gains, losses, and net result. Calculations run in your browser. Output is an estimate for education and planning— not IRS filing software.
FIFO
Matches sells to your oldest purchase lots first.
LIFO
Matches sells to your newest purchase lots first.
Average cost
Uses a blended average price across remaining holdings.
How to Use This Tool
Add transactions
Enter buy and sell rows with date, amount, price per unit, and optional fees.
Choose cost basis method
Select FIFO, LIFO, or Average Cost to match sells with purchases.
Calculate
The tool pairs sells with buys and totals gains, losses, proceeds, and cost basis.
Review net result
See total gains, losses, and net gain or loss—not an estimated tax payment.
Consult a professional
Use results for planning; a CPA or crypto tax software is needed for accurate filing.
Pro Tips
- This tool summarizes gains and losses—it does not calculate tax owed
- FIFO is common for matching lots, but holding period still affects tax rates
- Swaps, staking rewards, and airdrops may be taxable—track them separately
- Keep exchange CSV exports and wallet history for complete cost basis
- Consider our capital gains calculator for a single sale estimate
- Speak with a tax professional before filing