Skip to main content
1099-DA Guides12 min readUpdated Mar 2026

FIFO vs LIFO vs HIFO: Which Cost Basis Method Saves You Money?

Compare FIFO, LIFO, and HIFO cost basis methods for crypto taxes. See real examples showing which method lowers your tax bill the most.

By FCT Editorial

FIFO vs LIFO vs HIFO: Which Cost Basis Method Saves You Money?

The cost basis method you choose for your FIFO crypto taxes can mean the difference between owing $2,000 and owing $8,000. That's not a typo. Most crypto investors never think about cost basis, and they end up overpaying the IRS by thousands of dollars every year. Whether you're comparing FIFO vs LIFO crypto strategies or exploring HIFO crypto tax optimization, understanding how each method works is the single most impactful decision you can make at tax time.

In this guide, we'll break down all three methods with the same set of purchase lots so you can see exactly how each one affects your tax bill.

Quick Answer

Your cost basis method determines which coins the IRS considers "sold" when you dispose of crypto. FIFO (First In, First Out) sells your oldest coins first. LIFO (Last In, First Out) sells your newest coins first. HIFO (Highest In, First Out) sells the coins you paid the most for first. In most cases, HIFO produces the lowest taxable gain because it matches your highest-cost purchases against the sale price, shrinking your profit on paper.


What Is Cost Basis in Crypto?

Cost basis is what you originally paid for an asset, including any fees. When you sell crypto, your taxable gain (or loss) is calculated as:

Sale Price - Cost Basis = Capital Gain or Loss

If you bought 1 ETH for $1,500 and sold it for $3,000, your cost basis is $1,500 and your capital gain is $1,500. Simple enough when you've only bought once.

But most crypto investors don't buy once. They buy repeatedly at different prices over months or years. When you sell a portion of your holdings, the IRS needs to know which coins you sold. That's where the cost basis method comes in.

Your choice of method doesn't change how much crypto you own or how much cash you received. It changes which purchase lot gets matched to the sale, and that changes your taxable gain, your holding period, and your tax rate.

For a broader overview of how crypto is taxed, check out our complete guide to crypto taxes.

The Purchase Lots We'll Use

To make comparisons fair, we'll use the same three purchase lots across every example:

LotDate PurchasedAmountPrice Per ETHTotal Cost
Lot 1January 15, 20241 ETH$1,200$1,200
Lot 2June 10, 20241 ETH$3,500$3,500
Lot 3November 5, 20241 ETH$2,800$2,800

The sale: You sell 1 ETH on March 1, 2026 for $4,000.

Now let's see how each method handles this sale.

FIFO Explained (First In, First Out)

FIFO is the most common cost basis method and the one the IRS applies by default if you don't specify otherwise. It assumes you sell your oldest coins first.

How FIFO Works

Using our example, FIFO matches the sale against Lot 1 (your earliest purchase):

  • Cost basis: $1,200 (Lot 1, purchased January 15, 2024)
  • Sale price: $4,000
  • Capital gain: $4,000 - $1,200 = $2,800
  • Holding period: January 2024 to March 2026 = over 1 year (long-term)

Because you held for more than a year, this qualifies as a long-term capital gain, taxed at 0%, 15%, or 20% depending on your income bracket. For most people, that's 15%.

Tax owed at 15%: $420

When FIFO Works Well

FIFO tends to benefit you when crypto prices have been falling over time, because your oldest coins were purchased at higher prices. It also tends to produce long-term capital gains more often, since it always pulls from your oldest lots first. Long-term rates are significantly lower than short-term rates for most taxpayers.

When FIFO Hurts

In a rising market, FIFO can be painful. Your oldest purchases are usually your cheapest, which means FIFO creates the largest possible gain when prices have gone up since you first started buying. That's exactly what happened in our example above.

LIFO Explained (Last In, First Out)

LIFO flips the order. It assumes you sell your newest coins first.

How LIFO Works

LIFO matches the sale against Lot 3 (your most recent purchase):

  • Cost basis: $2,800 (Lot 3, purchased November 5, 2024)
  • Sale price: $4,000
  • Capital gain: $4,000 - $2,800 = $1,200
  • Holding period: November 2024 to March 2026 = over 1 year (long-term)

Tax owed at 15%: $180

When LIFO Works Well

LIFO shines when you've been buying at increasingly higher prices. Your most recent purchases carry the highest cost basis, and selling those first minimizes your gain.

It can also be useful for active traders who make frequent purchases. If you bought crypto last week and the price jumped, LIFO lets you match that recent, higher-cost purchase against your sale.

When LIFO Hurts

LIFO can backfire in two ways. First, if prices have been dropping, your newest coins are your cheapest, and LIFO would create a larger gain than FIFO. Second, because LIFO always selects recent purchases, it's more likely to produce short-term capital gains taxed at your ordinary income rate, which could be as high as 37%.

In our example above, Lot 3 happened to be old enough to qualify as long-term. But if you had purchased it in December 2025 instead, the same gain would be taxed at your ordinary income rate, potentially more than doubling your tax bill.

HIFO Explained (Highest In, First Out)

HIFO is the method that tax professionals often recommend. It matches sales against whichever lot has the highest cost basis, regardless of when it was purchased.

How HIFO Works

HIFO matches the sale against Lot 2 (the lot with the highest per-unit cost):

  • Cost basis: $3,500 (Lot 2, purchased June 10, 2024)
  • Sale price: $4,000
  • Capital gain: $4,000 - $3,500 = $500
  • Holding period: June 2024 to March 2026 = over 1 year (long-term)

Tax owed at 15%: $75

Why HIFO Usually Wins

The math is straightforward. By always selecting the lot with the highest purchase price, HIFO minimizes your taxable gain on every single sale. In our example, HIFO produced a gain of just $500, compared to $2,800 with FIFO. That's an 82% reduction in taxable gains.

HIFO doesn't guarantee long-term treatment, since the highest-cost lot might be a recent purchase. But the smaller gain often more than compensates for a higher tax rate. To understand how different crypto tax rates affect your bottom line, it helps to model both scenarios.

Is HIFO Allowed by the IRS?

Yes. HIFO falls under the IRS's Specific Identification method (more on that below). As long as you can adequately identify which coins you're selling, you're allowed to choose the highest-cost lots. The key requirement is proper record-keeping. You need documentation showing which specific lot was sold in each transaction.

Side-by-Side Comparison

Here's the same sale analyzed under all three methods:

FIFOLIFOHIFO
Lot SelectedLot 1 ($1,200)Lot 3 ($2,800)Lot 2 ($3,500)
Cost Basis$1,200$2,800$3,500
Capital Gain$2,800$1,200$500
Holding PeriodLong-termLong-termLong-term
Tax Rate15%15%15%
Tax Owed$420$180$75
Tax Savings vs FIFO--$240$345

HIFO saves $345 compared to FIFO on a single 1 ETH sale. Scale that across dozens or hundreds of transactions over a year, and the difference can be enormous.

It's worth noting that the "savings" from HIFO aren't free money. By using your highest-cost lots now, you're left with lower-cost lots for future sales, which will produce larger gains later. HIFO is a tax deferral strategy as much as it is a tax reduction strategy. But deferring taxes has real value, especially if your income or tax bracket changes over time.

Specific Identification Method

Both HIFO and LIFO are technically forms of Specific Identification, the IRS-approved method that lets you choose exactly which lot to sell. FIFO is the default if you don't specify.

To use Specific Identification, you need to:

  1. Identify the lot at the time of sale. You can't go back later and retroactively pick the most favorable lot.
  2. Keep adequate records. Your records must show the date of acquisition, the cost basis, and the date of disposition for each lot.
  3. Use a consistent method. While you can technically switch methods between tax years (see below), you should apply the same method consistently within a given year.

Crypto tax software like FastCryptoTax handles all of this automatically. The software tracks every lot, applies your chosen method across all transactions, and generates IRS-ready reports with the proper documentation.

Which Method Is Best for Different Scenarios?

There's no single answer. The best crypto cost basis method depends on market conditions and your personal tax situation.

Bull Market (Prices Rising Over Time)

Best choice: HIFO

When prices are climbing, your recent purchases tend to have higher cost bases. HIFO cherry-picks those high-cost lots to minimize your gains. LIFO can also work well here, since recent purchases are typically the most expensive. FIFO is usually the worst option in a bull market because it forces you to sell your cheapest, oldest coins first.

Bear Market (Prices Falling Over Time)

Best choice: FIFO or HIFO

When prices are dropping, your oldest coins might actually have the highest cost basis. In this case, FIFO and HIFO can produce similar results. LIFO would be the worst choice because your newest coins were bought at the lowest prices, creating the largest gains.

The real opportunity in a bear market is crypto tax-loss harvesting, where you sell losing positions to offset gains elsewhere.

Mixed Market (Volatile Prices)

Best choice: HIFO

When prices have bounced up and down, you likely have a mix of high-cost and low-cost lots scattered across your purchase history. HIFO handles this best because it doesn't care about chronological order. It always finds the most favorable lot regardless of when you bought it.

Active Traders with Frequent Purchases

Best choice: HIFO

If you're making weekly or daily purchases, you'll accumulate dozens of lots at varying prices. HIFO can sift through all of them and consistently select the most tax-efficient lot for each sale. Managing this manually would be nearly impossible, which is why crypto tax software is essential for active traders.

Long-Term Holders

Best choice: FIFO (sometimes)

If you're primarily a long-term holder who rarely sells, FIFO might actually work in your favor. Since it always selects the oldest lot, it maximizes your chances of qualifying for long-term capital gains treatment. If the difference in cost basis between your lots is small, the lower long-term tax rate from FIFO could outweigh the higher gain.

IRS Rules on Switching Methods

Can you switch from FIFO to HIFO between tax years? Yes, but with caveats.

The IRS allows you to change your accounting method, but you need to apply the new method consistently going forward. You can't use FIFO for some transactions and HIFO for others within the same tax year (unless you're using Specific Identification for all of them, which is what HIFO effectively is).

Here are the key rules:

  • You can choose a different method each tax year. There's no requirement to use the same method forever.
  • You can't retroactively change a prior year's method. Once you've filed using FIFO for 2025, you can't go back and re-file using HIFO for that year (outside of an amended return).
  • Consistency within a tax year matters. Apply the same method to all dispositions of a given asset within the year.
  • Document your choice. Keep records showing which method you used and why.

If you're unsure which method to pick, the best approach is to run your transactions through all three and compare the results before filing.

How FastCryptoTax Lets You Toggle Between Methods

This is where software makes all the difference. FastCryptoTax supports FIFO, LIFO, and HIFO and lets you switch between them with a single click in your settings.

Here's how it works:

  1. Connect your wallets and exchanges. FastCryptoTax automatically imports all your transactions and builds your complete purchase lot history.
  2. Go to Settings and select your cost basis method. Choose FIFO, LIFO, or HIFO.
  3. View your tax report. The report instantly recalculates all gains and losses using your selected method.
  4. Compare methods. Toggle between FIFO, LIFO, and HIFO to see which one produces the lowest tax liability for your specific situation.
  5. Download your report. Once you've chosen the best method, export your tax report in IRS-compatible formats.

You don't need to understand the accounting details. The software handles lot matching, holding period calculations, and wash sale considerations automatically. All you need to do is compare the bottom-line numbers and pick the method that works best for you.

This content is for informational purposes only and does not constitute tax, legal, or financial advice. Consult a qualified tax professional for advice specific to your situation.

Frequently Asked Questions

No. The IRS does not require FIFO for cryptocurrency. FIFO is the default method applied when no other method is specified, but you're free to use LIFO, HIFO, or any Specific Identification method as long as you keep adequate records.
In most cases, yes. HIFO minimizes your capital gains on each individual sale by selecting the highest-cost lot. However, there are edge cases where FIFO might be better, particularly if it qualifies a gain as long-term while HIFO would produce a short-term gain. The difference in tax rates could outweigh the difference in gain amount.
Yes. You could use HIFO for your Bitcoin transactions and FIFO for your Ethereum transactions. The IRS treats each cryptocurrency as a separate asset, so you can apply different methods to different assets as long as you're consistent within each asset for the tax year.
If you can't prove your cost basis, the IRS may treat it as zero. That means your entire sale proceeds become taxable gain. This is sometimes called the "zero cost basis" problem, and it can result in a significantly higher tax bill than necessary.
Not exactly. Specific Identification is the broader IRS method that lets you choose which lot to sell. HIFO is a specific strategy within Specific Identification that always picks the highest-cost lot. You could also use Specific Identification to pick lots based on other criteria, like holding period.
It's not recommended. You should apply one method consistently across all dispositions of a given asset within a single tax year. You can switch methods between tax years, but mid-year changes can create complications and may draw IRS scrutiny.
There's no specific form to declare your cost basis method. However, your tax records should clearly document which method you used. If you're audited, you'll need to show that you applied your chosen method consistently and have the records to support your reported gains and losses.
Yes. Most states follow federal tax treatment for capital gains, so the cost basis method you choose for your federal return will carry through to your state return. Some states have additional rules, so check your state's specific guidelines. For step-by-step filing instructions, see our guide on [how to file crypto taxes](/blog/how-to-file-crypto-taxes).

Ready to File Your Crypto Taxes?

FastCryptoTax generates your complete crypto tax report in minutes. Import from 300+ exchanges and wallets, get your Form 8949 and Schedule D, and file with confidence.

Get Started Free