venko.tech

How to Choose a Cost Basis Method for Crypto Taxes

The tax treatment of crypto trades depends on which cost basis method you pick. FIFO. LIFO. HIFO. Each produces a different taxable gain from the same transaction. The difference can be hundreds or thousands of dollars. You need to understand why.

Start with a concrete example. Imagine a single wallet that holds only Bitcoin. Three buys at different prices, then one partial sale.

Buy 1: 1 BTC at $20,000. Buy 2: 1 BTC at $30,000. Buy 3: 1 BTC at $50,000.

You now own 3 BTC. Your average cost per coin is $33,333.33, but that number is irrelevant for capital gains. What matters is which specific coin you sell.

Now sell 1 BTC for $45,000.

Here is how each method calculates the realized gain.

FIFO - First In, First Out

FIFO assumes you sell the oldest coin first. That is Buy 1, purchased at $20,000. Proceeds: $45,000. Cost: $20,000. Realized gain: $25,000. You pay tax on $25,000. FIFO is the default for most tax software and the IRS default for securities. No tracking required beyond the date of each purchase.

LIFO - Last In, First Out

LIFO assumes you sell the newest coin first. That is Buy 3 at $50,000. Proceeds: $45,000. Cost: $50,000. Realized gain: negative $5,000. A capital loss. You can offset that loss against other gains. Under FIFO you had a $25,000 gain. Under LIFO you have a $5,000 loss. The difference: $30,000 in taxable income. No small swing.

HIFO - Highest In, First Out

HIFO sells the coin with the highest cost basis first. Among your three lots, that is again Buy 3 at $50,000. Same result as LIFO here: a $5,000 loss. But HIFO can diverge from LIFO when the newest coin is not the most expensive. For example, if Buy 3 had been $40,000 and Buy 2 had been $50,000, HIFO would sell Buy 2, while LIFO would sell Buy 3. HIFO always minimizes the gain by selling the highest-cost lot. That is its sole purpose.

Why the choice matters

Under FIFO you pay tax on $25,000. Under LIFO you report a $5,000 loss. That is a $30,000 swing in taxable income. For someone in the 22% marginal bracket, FIFO means about $5,500 in extra tax compared to LIFO. For someone in the 37% bracket, about $11,000.

You cannot freely choose after the fact. The IRS requires you to use a consistent method for all assets in a single account unless you specifically identify the lots you sell. Specific identification is the only way to use HIFO or to mix methods across lots. You must record which lot you sold at the time of the trade.

What tax software supports

Most major crypto tax software supports FIFO and LIFO. CoinLedger, Koinly, and Cointracker all do. HIFO is less common. It requires that the software track every lot by its unique ID - the transaction hash and the output index for UTXO chains, or the wallet address and receipt block for account-based chains. Free or cheap tier tools usually do not maintain that granularity. They average costs across lots or default to FIFO.

If you want HIFO, you likely need paid software that supports lot-level accounting. Tools like Accointing or specific-ID services within Ledger’s tax center offer it. You must also record your intent at the time of sale. That means keeping a spreadsheet or using a wallet that labels each UTXO. Without that record, you cannot defend the HIFO election in an audit.

Which method is right for you

There is no universal answer. If you expect your income to rise, deferring gains with HIFO may make sense. If you want simplicity, FIFO is the IRS default and supported everywhere. If you have losses elsewhere, LIFO can realize a loss now to offset them. The only wrong answer is picking a method without checking your software’s capabilities first. Run a trial report under each method your tool offers. Compare the dollar totals. Then decide based on your own numbers, not advice.

Not financial advice. venko.tech publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to portfolio