Crypto Capital Gains Calculator: Import Your Trades (CSV)
Import your exchange history and see every disposal matched to the coins you bought: gains and losses by asset, short- and long-term, and a Form 8949-style CSV. Files are read in your browser and never uploaded.
Reads Coinbase transaction history, Kraken trades.csv and Binance spot trade history, or our for any other exchange or wallet. The file is read in your browser and never uploaded. Combine several exchanges by copying rows into the template.
Choose a CSV file to see your 2026 gains and losses by asset.
Uses 2026 IRS figures (IRS Rev. Proc. 2025-32). US federal only; excludes state tax. Not tax advice; see methodology.
The calculator above matches every sale, swap or spend in your file to the purchases before it, using the cost basis method you choose, and shows the gain or loss on each matched lot. Purchases from earlier years count toward cost basis; only disposals and income dated in the current tax year are totaled.
What the Calculator Does
Step
What happens
Read
Detects the file format (Coinbase, Kraken, Binance or template)
Normalize
Converts each row to a buy, sell or income event in USD
Match
Pairs each sale with earlier purchases by FIFO, HIFO or LIFO, per asset
Classify
More than one year held = long-term; otherwise short-term
Report
Totals by asset, a detail table and a Form 8949-style CSV
Crypto-to-crypto conversions on Coinbase are treated as a sale of one asset and a purchase of the other at the same dollar value, which is how US tax rules treat swaps.
What It Cannot See
Transfers between your own wallets are ignored; they are not taxable, but coins received from elsewhere need their original purchase in the file.
Pairs not priced in dollars (for example ETH/BTC on Binance) are skipped and listed, because the file has no USD value; add them through the template.
Margin and futures are not supported.
Per-wallet cost basis has been required since 2025; if you use several exchanges, combine them in one template file so lots are matched correctly. The downloaded report follows the Form 8949 columns, and the tax on the totals is estimated by the main crypto tax calculator.
Frequently Asked Questions
How do I calculate capital gains on crypto?
For each sale or swap, subtract the cost basis of the coins you disposed of (what you paid, plus fees) from the proceeds (what you received, minus fees). Coins held more than one year give a long-term gain; one year or less gives a short-term gain.
Which exchange files does the calculator read?
Coinbase transaction history, Kraken trades.csv and Binance spot trade history. For other exchanges and wallets, fill in our CSV template with date, type, asset, quantity, USD value and fee.
Is my file uploaded anywhere?
No. The file is read by your browser and the calculation runs on your device. Nothing is sent to a server or stored.
Why does it say a sale has no matching purchase?
The coins sold were bought on another exchange or in an earlier period that is not in the file. Add those purchases, or the calculator treats their cost basis as zero, which overstates the gain.
Can I use the report to file my taxes?
The CSV follows the Form 8949 columns and is a useful starting point, but check it against your records and the official instructions, or use tax software or a professional before filing.