Cost Basis Calculator

Track multiple buys across exchanges. Get your true average cost basis, unrealized P&L, and partial sale analysis under FIFO, LIFO, or HIFO.

Buy Lots

DateQuantityPrice / Coin (USD)Fees (USD)ExchangeCost

CSV Import Format

date,quantity,price_per_coin,fees_usd,exchange
2022-01-15,1000,0.75,2.50,Coinbase
2022-06-01,500,0.38,1.25,Kraken
Note: Starting in 2025, the IRS requires per-wallet basis tracking rather than pooled basis across exchanges. This calculator uses pooled basis for simplicity — consult a tax professional for per-wallet tracking. Fees added to cost basis are IRS-correct for reducing gains.
Break-Even Calculator →Tax Liability Estimator →