Crypto Cost Basis Calculator

FIFO, HIFO or LIFO — what each method does to your tax bill.

2
$
1
$
1.5
$
2
$
%
1
%
%
Cost basis of the coins sold
—

Adjust any input above — results update instantly and stay on your device.

Capital gain
—
Tax owed
—
Cash you keep after tax
—
Average cost per coin sold
—
Cheapest method here
—
Tax difference across methods
—
Tax under FIFO
—
Tax under HIFO
—
Tax under LIFO
—

How to use this crypto cost basis calculator

Crypto tax has one rule that generates all the confusion: every disposal is a taxable event. Selling, trading, spending, or converting to fiat all count. Only holding does not. That makes the cost basis method a decision with real money attached.

The three methods

  • FIFO — first in, first out. The default, and the one most exchanges report. On a rising market this produces the highest gain and the highest tax, because the cheapest coins are sold first.
  • HIFO — highest in, first out. Sells your most expensive coins first, producing the lowest gain and the lowest tax. This is specific identification, which is legal but requires that you can prove which units you sold.
  • LIFO — last in, first out. Produces the highest gain and the highest tax. Rarely chosen, and not always available.

What the difference is worth

Consider buying 2 coins at $18,000, 1 at $42,000 and 1.5 at $65,000, then selling 2 coins at $55,000. The three methods produce three different cost bases, and the tax differences can run into thousands of dollars on a single sale.

The spread between the cheapest and most expensive method is what the calculator reports. When it is large relative to your gains, the method choice genuinely matters and is worth the effort of exporting transaction-level data. When it is small, the admin cost of HIFO outweighs the saving.

Long-term versus short-term

Holding more than one year turns the gain into a long-term gain taxed at preferential rates. Holding less than a year means the entire gain is taxed as ordinary income, up to 37%. On a large gain this is worth several thousand dollars, and it is another reason the ordering of your purchases matters — if you have an old lot and a new lot, you may be able to choose which one you disposed of.

The fee drag

Exchange fees are subtracted from the proceeds, which reduces your gain slightly and therefore your tax. The calculator applies the fee percentage to the sale proceeds. Fees on the purchase side are capitalised into the cost basis instead, which has the same effect.

Getting your transaction data

This is the practical bottleneck. Before assuming a method works, check whether your exchange can export per-transaction cost basis and acquisition dates. Most major exchanges can produce a CSV or a Form 1099-DA, and for large balances it is worth the effort. Without transaction-level data you are limited to FIFO, and if you hold on an exchange that does not report at all, you may need to reconstruct the history yourself — which is why keeping records from the start is worth the trouble.

Frequently asked questions

Which cost basis method should I use?

The default for crypto is FIFO, and it is the method the IRS expects unless you can specifically identify the units you sold. HIFO minimises the gain on a sale and LIFO maximises it — HIFO produces the lowest tax, but it is not the default and exchanges do not always support it.

Is HIFO legal for crypto?

Yes. Specific identification is permitted, but you must be able to prove which units you disposed of. Some exchanges do not support HIFO or LIFO reporting at all, and some do not let you export per-transaction cost data. Check your exchange's tax export before relying on a method your platform cannot produce.

How is crypto taxed in the US?

Crypto is treated as property. Every disposal is a taxable event, including spending it on something. A gain held more than one year is taxed at long-term capital gains rates; under a year, at your ordinary income rate up to 37%. Losses can offset other capital gains.

Do I owe tax if I never sell?

Generally no, because there is no realisation without a disposal. But moving crypto between your own wallets is not a disposal, and neither is receiving it as payment for work in some cases — although receiving crypto as compensation is a taxable event at the value received on the day it was paid.

More free calculators

Every tool on Jisua Tools runs entirely in your browser. No sign-up, no data collected, results are instant.

Browse all tools