Crypto Tools

Crypto Tax P&L Calculator — FIFO Capital Gains, No Account

🔒 Runs in your browser

Track crypto buy and sell transactions and calculate realized gains using FIFO (first in, first out) cost basis. See short-term versus long-term gains, unrealized gains on remaining holdings, and export a CSV of all transactions. Nothing is sent to a server — all calculations run in your browser. Not tax advice; consult a qualified professional.

How to use this tool

  1. Enter your buy and sell transactions: date, asset, quantity, price, and fee.
  2. The calculator applies FIFO cost basis to compute realized gains.
  3. Download a CSV of all transactions and your P&L summary.

Transactions

DateCoinBuy/SellAmountPrice per UnitFeeAction
Tax Disclaimer: This calculator is provided for informational purposes only. Results are not tax advice. Consult a qualified tax professional or CPA before using this data for tax filing. Tax treatment of crypto varies by jurisdiction.

About Crypto Tax P&L Calculator

This calculator turns a list of crypto buy and sell transactions into a realized profit-and-loss report using the first-in, first-out (FIFO) cost basis method. You add transactions one row at a time, entering the date, the coin ticker, whether it was a buy or a sell, the quantity, the price per unit at the time, and any fee you paid. As soon as a row exists, the tool sorts every transaction chronologically and walks through them in order, building a queue of purchase lots for each coin and consuming the oldest lots first whenever a sell occurs.

FIFO matters because it decides which purchase a sale is paired against, and that pairing determines your gain. When you sell, the calculator pulls from your earliest remaining purchase lot, computes a cost basis per unit that includes a share of the buy fee spread across that lot, and subtracts a proportional share of the sell fee from the proceeds. The result for each matched portion is shown as a separate realization event with the sale date, the original purchase date, the amount, the cost basis per unit, the effective sale price, the gain or loss, and the number of days the position was held. If a sale is larger than the oldest lot, it spills into the next lot, so one sell can produce several events.

Three summary cards roll everything up: total realized gains, total realized losses, and total fees paid across all transactions. Coins you bought but have not fully sold appear under Current Holdings, showing the remaining amount and the aggregate cost basis still sitting in your portfolio. The Export to CSV button downloads a file containing every realization event, an unrealized-holdings section, and the summary totals, ready to open in a spreadsheet or hand to whoever prepares your return.

A few limits are worth knowing. The tool reports the holding period in raw days and does not split results into short-term versus long-term tax buckets, because that threshold and the rates attached to it differ by country. It does not fetch live prices, apply wash-sale rules, or handle transfers between your own wallets. Treat the output as an estimate to organize your records, not as tax advice; crypto tax treatment varies by jurisdiction and changes over time, so confirm anything you intend to file with a qualified tax professional. Every calculation runs locally in your browser, so your transaction history is never uploaded.

Frequently Asked Questions

What does FIFO cost basis mean and why does it change my result?
FIFO stands for first-in, first-out: when you sell a coin, the calculator assumes you are selling the units you bought earliest. Because your earliest purchases often have a different price than your most recent ones, the choice of which lot to match against directly changes the reported gain or loss. FIFO is a common default and is accepted or required in many jurisdictions, but some places allow other methods such as specific identification, which this tool does not implement.
How are transaction fees handled?
Buy fees are folded into the cost basis: the fee on a purchase lot is spread across the units in that lot, raising the effective cost basis per unit. Sell fees reduce your proceeds proportionally to the portion of the sale being matched. The summary also reports the total of all fees you entered, across both buys and sells, as a separate figure.
Does it separate short-term and long-term gains?
Not automatically. Each realization event shows the number of days the position was held so you can apply your own jurisdiction's threshold, but the tool does not classify gains into short-term or long-term categories or apply tax rates. In the United States, for example, the long-term threshold is more than one year, but that rule and its rates differ from country to country.
What happens if I sell more than I bought?
When a sell quantity exceeds the purchase lots on record for that coin, the calculator matches as much as it can against your existing lots and stops. The unmatched portion does not generate a realization event. This usually signals a missing buy transaction, such as a transfer in from another wallet that was never recorded, so review your inputs if you see fewer events than expected.
Can it pull in current prices to show what I owe?
No. The calculator works entirely from the prices you type for each transaction. It does not connect to any price feed or exchange, so it cannot value your unrealized holdings at today's market price or estimate a final tax bill. It organizes the cost-basis math; the rates and current valuations are up to you.
Is the CSV export suitable for filing taxes?
The CSV is a structured record of your realization events, remaining holdings, and totals that you or your accountant can use as a working document. It is not a tax form and is not formatted for any specific tax authority. Use it to organize your data, then rely on a qualified professional or official software for the actual filing.
Is my transaction data sent anywhere?
No. Every step, from sorting transactions to matching lots and generating the CSV, runs in your browser. Your dates, amounts, prices, and coin names are never transmitted to a server.
Is this tax advice?
No. This calculator is for informational and record-keeping purposes only. Crypto tax rules vary widely by country and change frequently, and edge cases such as airdrops, staking income, forks, and wallet transfers are outside its scope. Consult a qualified tax professional before using these figures for any filing.
Embed this tool on your site

Free. One line of HTML — the tool runs in your visitor's browser, no data sent to anyone.

<iframe src="https://brevio.pro/embed/crypto-tax-calculator" width="100%" height="600" loading="lazy" style="border:1px solid #e5e5e5;border-radius:8px" title="Crypto Tax P&L Calculator — brevio"></iframe>
<p style="font:12px/1.4 sans-serif"><a href="https://brevio.pro/tools/crypto-tax-calculator">Crypto Tax P&L Calculator</a> by <a href="https://brevio.pro">brevio</a></p>
More free toolsSee all 492 →
Crypto Tax P&L Calculator — FIFO Capital Gains, No Account | brevio