Skip to main content

Crypto Tax Lot Calculator

Calculate capital gains using FIFO, LIFO, HIFO, and specific identification for crypto trades. Enter values for instant results with step-by-step formulas.

Share this calculator

Formula

Capital Gain = (Sell Qty x Sell Price) - Sum(Used Lot Qty x Lot Price)

The capital gain or loss is calculated by subtracting the cost basis (original purchase price) of the specific lots being sold from the total sale proceeds. Different lot selection methods (FIFO, LIFO, HIFO) determine which lots are used first.

Worked Examples

Example 1: FIFO vs HIFO Comparison

Problem: You bought 1 BTC at $20,000 (Jan), 1 BTC at $35,000 (Jun), and 0.5 BTC at $50,000 (Dec). You sell 1.5 BTC at $65,000.

Solution: FIFO: Uses Jan lot (1 BTC at $20,000) + Jun lot (0.5 BTC at $17,500) = cost basis $37,500\nGain = $97,500 - $37,500 = $60,000\n\nHIFO: Uses Dec lot (0.5 BTC at $25,000) + Jun lot (1 BTC at $35,000) = cost basis $60,000\nGain = $97,500 - $60,000 = $37,500

Result: HIFO saves $22,500 in taxable gains compared to FIFO

Example 2: Tax Impact of Lot Selection

Problem: You have 3 lots: 2 BTC at $16,500, 1.5 BTC at $27,000, 0.5 BTC at $42,000. You sell 1.5 BTC at $65,000. Compare all methods.

Solution: Proceeds = 1.5 x $65,000 = $97,500\nFIFO cost basis: 1.5 x $16,500 = $24,750 => Gain = $72,750\nLIFO cost basis: 0.5 x $42,000 + 1.0 x $27,000 = $48,000 => Gain = $49,500\nHIFO cost basis: 0.5 x $42,000 + 1.0 x $27,000 = $48,000 => Gain = $49,500\nLOFO cost basis: 1.5 x $16,500 = $24,750 => Gain = $72,750

Result: HIFO/LIFO save $23,250 in taxable gains vs FIFO/LOFO

Frequently Asked Questions

What is the FIFO method for crypto tax lot accounting?

FIFO stands for First In, First Out. Under this method, the earliest purchased cryptocurrency units are considered sold first when you dispose of your holdings. For example, if you bought 1 BTC in January at $20,000 and another 1 BTC in June at $30,000, selling 1 BTC would use the January lot first. FIFO is the default method used by the IRS if you do not specify a particular lot identification method. Many tax software tools automatically apply FIFO because it is straightforward and widely accepted by tax authorities across jurisdictions globally.

How does HIFO help minimize crypto capital gains taxes?

HIFO stands for Highest In, First Out, meaning the lots with the highest cost basis are sold first. This strategy minimizes your capital gains because selling high-cost lots first reduces the difference between your sale proceeds and cost basis. For instance, if you have lots purchased at $15,000, $30,000, and $45,000 per BTC, HIFO would use the $45,000 lot first, producing the smallest gain or even a loss. The IRS permits specific identification of lots, which effectively allows HIFO, provided you maintain adequate records identifying each lot at the time of sale.

What records do I need to keep for crypto tax lot identification?

The IRS requires detailed records for every cryptocurrency transaction including the date of acquisition, the cost basis in USD at the time of purchase, the amount of cryptocurrency acquired, the date of sale or disposal, the fair market value at the time of sale, and any fees or commissions paid. For specific identification methods like HIFO, you must also document which specific lots you intended to sell at the time of the transaction. Exchange records, wallet addresses, blockchain transaction hashes, and screenshots of orders all serve as valid documentation for your records.

Can I use different lot methods for different crypto transactions?

Yes, the IRS allows taxpayers to use specific identification on a per-transaction basis, meaning you can choose different lots for different sales throughout the year. However, you must clearly identify which lots you are selling at the time of the transaction, not retroactively at tax filing time. Some exchanges support lot selection directly in their interface, while others require you to track this independently. It is important to remain consistent in your record-keeping and to be able to demonstrate your chosen method to the IRS if audited. Consult a tax professional familiar with cryptocurrency to ensure full compliance.

What is a crypto wallet and which type should I use?

A wallet stores your private keys. Hot wallets (software) are convenient for frequent trading. Cold wallets (hardware like Ledger or Trezor) are more secure for long-term storage. Never share your seed phrase.

What is dollar-cost averaging in crypto?

DCA means buying a fixed dollar amount of crypto at regular intervals regardless of price. This reduces the impact of volatility and removes the stress of timing the market. It is widely recommended for long-term crypto investors.

References