What this calculator does
Crypto Cost Basis Calculator works out what every coin you sold, swapped or spent cost you, and the gain or loss on it, the way US federal tax rules ask: separately for each wallet or exchange account, oldest units first unless you identified others before selling, and with each lot’s exact holding period. You get Form 8949 rows to hand to your accountant or type into tax software, your income from rewards, and the coins you still hold at the end of the year.
How to use it
- In Coinbase, generate a transaction history report and download it as a CSV file. For any other wallet or exchange, fill in the template: one row per transaction with the date, type, asset, amount and dollar value.
- Drop all the files on the calculator. A file counts as one wallet unless its rows name their own.
- Pick the tax year. Keep FIFO unless you recorded a different choice before each sale.
- Read What needs your attention: it points to every row with a missing cost or value, by file and row number.
- Download the Form 8949 rows, and keep the year-end lots file to start next year from.
A worked example
You bought 1 BTC in January 2025 for $40,000 plus a $100 fee, and another in June 2025 for $60,000. In March 2026 you sell 1.5 BTC for $150,000 and pay $150 in fees. Under FIFO the January coin leaves first: its share of the proceeds is $99,900 against a cost of $40,100, a long-term gain of $59,800, because you held it for more than a year. The half coin from June cost $30,000 and brings in $49,950, a short-term gain of $19,950. Half a bitcoin stays in the wallet with a cost of $30,000, ready for next year.
What it handles
- Purchases, sales, swaps between coins, spending, gifts, and income from rewards or staking.
- Fees: added to the cost of a purchase, taken off the proceeds of a sale or a swap.
- Moves between your own wallets: a send and the matching receive are paired, the coins keep their original cost and date, and the network fee counts as spent.
- Every version of the Coinbase report, including Advanced Trade purchases paid with another coin and the ETH2 to ETH change.
What it never guesses
A row without a dollar value, or coins sold that no file shows you acquiring, is never filled in with an invented number. Each one is listed with its file and row, and kept out of the totals until you add the missing history. Dollar stablecoins without a value can be counted at $1.00 a unit, and the result says how many rows that affected.
Limitations
- US federal rules only. Other countries use their own methods.
- Kraken and Binance exports carry no dollar values for most trades, so for now they go into the template.
- NFTs, DeFi lending and derivatives are not covered. There are no wash-sale adjustments: under current law that rule covers stocks and securities, not coins you hold directly.
- The result is an estimate to check against your records, not tax advice.