HisabCalc

Crypto Tax FIFO Calculator

Work out the taxable gain on a crypto sale using first-in-first-out cost basis, and the tax at your applicable rate.

Enter your numbers

Example: 100

Example: 150

Example: 1

Example: 200

Example: 15

Result
Share on WhatsApp

Figures are computed on your device; nothing is sent anywhere.

Formula

costBasis = sum of earliest lot costs matched to the units sold; capitalGain = proceeds - costBasis; taxPayable = capitalGain x taxRate / 100 if the gain is positive

How the calculation works

Enter the cost of the earliest lots you hold and the number of units sold from those lots at the sale price.

The tool matches the sold units to the earliest purchase costs first, following the FIFO method used for capital gains.

It subtracts that matched cost from the sale proceeds to give the gain and applies your tax rate only when the gain is positive.

Common mistakes

When to use it

Worked example

Buying 1 unit at 100 and another at 150, then selling 1 unit for 200, matches the earliest lot at 100. The gain is 100 and at a 15 percent rate the tax is 15.

Cost basis 100.00
Capital gain 100.00
Tax payable 15.00

Common questions

Why does FIFO matter for crypto tax?

Under FIFO the oldest coins are treated as sold first, so the cost basis and the resulting gain change with the order you bought your units.

Last updated: 2026-10-03