b2KIT

Crypto Tax Calculator

Calculate cryptocurrency capital gains using FIFO, LIFO, or HIFO with transaction import, wash sale detection, and tax lot tracking.

Tested tool guide Tested browser tools Checked August 16, 2026

What Crypto Tax Calculator does, with a checked example

One cryptocurrency sale can produce different reported gains depending on which purchase lot it consumes. This calculator matches disposals under FIFO, LIFO, or HIFO, tracks the acquisition lots used and left over, imports transaction records, and flags possible wash-sale patterns. The common surprise is that changing the lot method changes both the current realized gain and the basis remaining for later disposals, while sale proceeds stay the same. Imported financial records are processed in the browser and are not uploaded.

Worked example

A concrete input and expected output from the current implementation.

Input

Enter three BTC transactions: 2025-01-10 buy 1 BTC for $10,000; 2025-02-10 buy 1 BTC for $20,000; 2025-03-10 sell 1 BTC for $30,000. Set every fee to $0.

Expected output

FIFO: $20,000 realized gain, with 1 BTC at $20,000 basis remaining. LIFO: $10,000 realized gain, with 1 BTC at $10,000 basis remaining. HIFO: $10,000 realized gain, with 1 BTC at $10,000 basis remaining. Wash-sale matches: none.

FIFO assigns the $10,000 purchase to the sale, so the gain is $30,000 - $10,000 = $20,000. LIFO and HIFO assign the newer, higher-basis $20,000 purchase, so the gain is $30,000 - $20,000 = $10,000.

How the result is produced

1

Lot selection

Each acquisition creates a BTC or other asset lot with a quantity, date, and cost basis. On a disposal, FIFO takes the oldest available units, LIFO takes the newest, and HIFO takes the highest-basis units. A partial disposal draws only the required quantity. The calculator subtracts the basis of the matched units from proceeds to report the realized gain or loss.

2

Tracking and flags

Imported transaction data supplies the asset, date, quantity, and value used in lot matching. The tax-lot result identifies which acquisitions were assigned to each disposal and what inventory remains under the chosen method. Wash-sale detection surfaces loss-and-repurchase patterns for review without turning that flag into a definitive statement about whether a particular loss is allowed on a tax return.

Good uses

  • Compare the realized gain from a planned cryptocurrency sale under FIFO, LIFO, and HIFO.
  • Reconcile exchange or wallet transaction records with the acquisition lots remaining after partial disposals.
  • Find cryptocurrency loss sales with nearby repurchase activity that may require tax review.

Limits and checks

  • The result is only as complete as the acquisition history. Missing purchases, deposits, fees, or opening lots can leave disposals unmatched or give them the wrong basis.
  • Selecting FIFO, LIFO, or HIFO is a calculation assumption, not proof that the method or lot identification satisfies the rules applicable to a particular return.
  • Review imported classifications carefully. Treating a wallet transfer as a disposal, or importing both sides as separate economic transactions, can distort quantities and gains.

Common questions

Does the calculated gain equal the tax I owe?

No. The output is a realized capital gain or loss based on transaction values and the selected lot method. Actual tax due can depend on jurisdiction, holding period, other income, deductions, loss limitations, and transaction classification. Use the result as a lot calculation and reconciliation record, not as a complete tax return.

Does a wash-sale warning mean the loss is disallowed?

No. It marks a transaction pattern that may need review. Whether a loss is restricted depends on the law that applies, the asset and accounts involved, and the complete sequence of transactions. Confirm the treatment with current primary guidance or a qualified tax professional before changing basis or excluding a loss.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools