Crypto Taxes Explained: FIFO vs LIFO vs HIFO and Which Saves You the Most

Published April 13, 2026 · 7 min read · Finance

Last updated: April 13, 2026

Crypto Tax Calculator

Calculate gains with FIFO, LIFO, or HIFO and export a ready-to-use IRS Form 8949 CSV.

Try It Free →

FIFO sells your oldest crypto lots first and tends to realize long-term gains at lower rates. LIFO sells newest first and often triggers short-term gains taxed as ordinary income. HIFO sells the most expensive lots first to minimize the immediate tax bill. The right choice depends on your portfolio and income bracket — and the difference can be thousands of dollars in the same tax year.

If you sold, swapped, or spent any crypto last year, the IRS wants to know about it. Every disposal is a taxable event with a capital gain or loss, and the cost basis method you pick determines which specific coins you sold. Most casual crypto holders default to FIFO without realizing two other legal methods often save real money.

What Is Cost Basis?

Cost basis is what you paid for the coins you sold. Gain equals proceeds minus cost basis. Simple — until you've bought the same asset many times at different prices. Then the question becomes: which lot did you sell?

You didn't literally sell specific coins — crypto is fungible. But the IRS requires you to assign a cost basis to every taxable event, and the method you use matters.

A Side-by-Side Example

You bought BTC three times:

  • January 2022: 0.3 BTC at $40,000 ($12,000)
  • June 2023: 0.3 BTC at $30,000 ($9,000)
  • November 2024: 0.3 BTC at $80,000 ($24,000)

In March 2025, you sell 0.3 BTC for $85,000.

FIFO (First In, First Out): sells the oldest lot. Cost basis = $12,000. Gain = $73,000. Held more than 1 year — long-term. At 15% LTCG, tax = $10,950.

LIFO (Last In, First Out): sells the newest lot. Cost basis = $24,000. Gain = $61,000. Held only a few months — short-term, taxed as ordinary income. At a 32% bracket, tax = $19,520.

HIFO (Highest In, First Out): sells the most expensive lot, which is also the newest in this example. Cost basis = $24,000. Gain = $61,000. Same short-term treatment as LIFO. At 32%, tax = $19,520.

In this case, FIFO wins by a lot — $8,570 less tax. HIFO and LIFO produce identical numbers here only because the highest-cost lot happens to be the newest. In a real portfolio with mixed holding periods, the three methods diverge significantly.

When HIFO Wins

HIFO usually minimizes the immediate tax bill when your highest-cost lots are held long-term. Example: you bought BTC at $60k (2021, long-term) and at $30k (2023, long-term) and sell at $50k. HIFO uses the $60k basis for a long-term loss of $10k — great for offsetting other gains. FIFO uses the $30k basis for a $20k long-term gain. HIFO saves real money when the highest-cost lots are long-term.

Taxable Events (More Than You Think)

These all create a gain or loss you must report:

  • Selling crypto for USD
  • Swapping one crypto for another (BTC → ETH is taxable)
  • Spending crypto on goods or services
  • Staking rewards, mining income, and airdrops (ordinary income at fair market value when received)

The one thing that is not taxable: buying and holding. You only owe tax when you dispose of the asset. A coin that 10x'd but you haven't sold is unrealized — uncounted.

Short-Term vs Long-Term Holding Periods

This is where the biggest savings usually live. Hold an asset more than 365 days and you qualify for long-term capital gains rates: 0%, 15%, or 20% depending on your income. Sell in under a year and the gain is taxed as ordinary income — potentially 32%, 35%, or 37%.

For someone in the 24%+ bracket, extending a holding period past 365 days can cut the tax on that gain by nearly half. The Crypto Tax Calculator flags each lot's short- vs long-term status automatically, so you can see which sales to defer.

Can You Change Methods Year-to-Year?

Under current IRS guidance, yes — but you must apply your chosen method consistently within a tax year and be able to specifically identify lots. Most accountants recommend picking one method and sticking with it. Switching invites audit complexity.

IRS Form 8949

Every taxable sale goes on Form 8949: description, date acquired, date sold, proceeds, cost basis, gain/loss, and short- vs long-term designation. Our calculator exports a ready-to-use CSV in this exact format — drop it into TurboTax, H&R Block, or hand it to your CPA.

What About Lost or Stolen Crypto?

Lost coins (forgotten keys, dead hardware wallet) are generally a capital loss, but the specific rules are narrow and the IRS has tightened theft loss deductions post-TCJA. If this applies to you, talk to a CPA — the documentation matters.

Bottom Line

Run your numbers through the Crypto Tax Calculator with all three methods to see which legal option saves the most for your specific transactions. If you want to see how the remaining gain lands in your tax bracket, the Tax Bracket Visualizer shows the exact rate applied. Between the two, you'll know your real tax liability before you file — not after.

Tax Bracket Visualizer

See where your crypto gains land in your federal tax brackets.

Try It Free →

Frequently Asked Questions

Which crypto tax method is best?

There's no universal best. HIFO usually minimizes current-year tax when your highest-cost lots are long-term. FIFO often produces long-term gains at lower rates. LIFO is rarely optimal because it tends to realize short-term gains. Run all three through a calculator to see which fits your specific portfolio.

Is a crypto-to-crypto swap taxable?

Yes. Swapping BTC for ETH is a taxable event in the US. You recognize gain or loss on the BTC at its USD fair market value at the time of the swap. Many traders assume swaps are tax-free because no fiat changed hands. They are not.

Are staking rewards taxed when I receive them?

Yes. Staking rewards, mining income, and airdrops are ordinary income at the USD fair market value on the day received. When you later sell those coins, you realize additional capital gain or loss based on the difference between sale price and that FMV basis.

How long do I need to hold crypto for long-term gains?

More than 365 days. At 366 days, the gain qualifies for long-term capital gains rates (0%, 15%, or 20% based on income). Under 365, it's taxed as ordinary income at your marginal bracket — which can be nearly double the long-term rate.

Does the IRS really track crypto?

Yes. Major exchanges (Coinbase, Kraken, Gemini) report to the IRS. Starting in 2025, brokers are required to issue 1099-DA forms detailing your crypto transactions. If you've used a US-based exchange, the IRS likely already knows about your crypto activity.

Related Tools

🔒 Your data stays in your browser
Need help? Email us