Crypto tax gain/loss calculator (FIFO)
Paste your buy/sell history, get realized gain/loss per sale using first-in-first-out cost basis — the calculation runs entirely in your browser, nothing is ever uploaded to any server.
1. Format your data as CSV
One transaction per line: date, asset, type (buy or sell), quantity, price per unit. Header row optional.
| date | asset | type | qty | price |
|---|---|---|---|---|
| 2026-01-15 | BTC | buy | 0.5 | 62000 |
| 2026-03-02 | BTC | sell | 0.2 | 71000 |
| 2026-02-01 | ETH | buy | 4 | 1900 |
2. Paste or upload
Why FIFO
First-in-first-out matches each sale against your oldest remaining purchase lots first. It's the default/required method in many jurisdictions when you haven't specifically elected another method (like specific-ID or HIFO) — check your own jurisdiction's rules, since this varies and this tool doesn't know which country you're in.
This is a calculation aid, not tax advice. Verify the output before filing anything, and consult a real tax professional for your specific situation.