Crypto Capital Gains Calculator

Estimate crypto gains and losses from your trades using FIFO, LIFO or HIFO, with a short and long-term split. A guide only, not tax advice.

Estimates only. Tax rules differ by country and change often, and some places treat crypto differently. Use this to organise your numbers, then check them with a tax professional.

Type is buy or sell. Fee is optional and in the same currency as the price. Dates as YYYY-MM-DD. Use one currency for all lines.

Did this tool help? Rate it Be the first to rate this tool

Estimate your crypto gains from a simple list

Paste your buys and sells and the calculator matches each sale to earlier purchases using FIFO, LIFO or HIFO, then reports proceeds, cost basis and the gain or loss for every sale, split into short-term and long-term using a holding period you choose. You also get a CSV to share with an accountant and a list of coins you still hold.

How the methods differ

  • FIFO sells your oldest coins first. It is the default in many jurisdictions.
  • LIFO sells your most recent purchases first.
  • HIFO sells the highest-cost coins first, which tends to lower gains.

What it does and does not do

Fees are added to the cost of a buy and subtracted from the proceeds of a sale. The calculator does not fetch prices, import exchange files, track transfers between wallets, or handle staking rewards, airdrops, mining income, swaps between coins or fiat conversions. Swaps and rewards usually have their own tax treatment, so enter them as separate buys and sells at their fair values if your rules say so.

Tax rules vary

Which methods are allowed, how long a holding must be to count as long-term, whether losses offset gains, and whether crypto is taxed as property, income or something else all depend on where you live. The optional tax rates here are rough and ignore allowances and loss carry-overs. This tool is not tax advice, so verify your results with a qualified professional or your tax authority.

Gains and losses on each sale

When you sell, swap or spend crypto for more than you paid, the difference is usually a capital gain, and a lower price creates a loss. The calculator subtracts your cost basis from the proceeds for each disposal and totals the result.

Records matter

Keep the date, amount, price and fees of every purchase and sale. The method used to match purchases to sales, such as first in first out, can change your result, and tax rules differ by country, including how long you held the asset and annual allowances.

Not tax advice

This tool gives an estimate for planning. Tax law changes and depends on your situation, so check official guidance from your tax authority or speak to a qualified adviser before filing. Nothing here is financial or tax advice.

Cost basis methods

FIFO sells the oldest coins first, LIFO the newest first and HIFO the highest-cost coins first. The method changes which gain is recorded, and so your tax. Some countries mandate a method or average cost, so check local rules.

Short and long term

In many places, holding an asset more than a year gives a lower rate. Keep records of dates, amounts, prices and fees, and ask a tax professional before filing. The calculator is an estimate, not tax advice.

Count the fees

Include trading fees and network fees in your cost basis and subtract them from sale proceeds. Missing fees overstates gains, so export your exchange history and check each trade before filing.

Frequently asked questions

Which cost basis method should I use?

Use the one your tax authority permits or requires. Some countries mandate a particular method or pooling rules.

Why does it say I sold more than I bought?

Earlier buys do not cover the sale. Add the missing purchases, including coins received by transfer.

Are fees included?

Yes. A buy fee raises your cost and a sell fee lowers your proceeds.

Does it handle swaps and staking rewards?

Not automatically. Record them as buys and sells at fair value if your rules treat them that way.

Is my data uploaded?

No. The calculation runs in your browser.

More in Web3 & Crypto SEO Tools