Skip to main content

Advanced Cost Basis Methods Explained: FIFO, LIFO & HIFO for Crypto Investors

FIFO vs LIFO vs HIFO crypto tax explained. Learn how cost basis methods affect capital gains and reduce IRS crypto taxes.

Advanced Cost Basis Methods Explained: FIFO, LIFO & HIFO for Crypto Investors

Introduction

It’s true that numbers never lie when it comes to crypto taxes. However, they can look a lot different depending on which tax numbers you report. The reason? Because there are different cost basis methods for calculating your gains that the IRS allows; using the right cost basis method can either significantly lower, or add to your tax liability.

Every single trade, sale, or swap of cryptocurrency is considered a taxable event. However, what many investors do not realize is that if you acquired the crypto at different times and prices, you have some options with respect to how those assets are matched together when sold.

What options do I have?

The options come in the form of FIFO, LIFO or HIFO crypto cost basis— which allow you flexibility in determining which coins you are considered to have sold first, and how much tax you owe on the gain.

This article will walk you through the different cost basis methods, demonstrating how each impacts your capital gains and exploring which one might suit your crypto investment approach best. You'll also find real-world examples for each method and see how crypto tax software, such as Kryptos.io, can make the whole process simpler and automate it for you.

Key Takeaways

FIFO LIFO HIFO crypto strategy is a cost basis method that determine which of your crypto assets are deemed sold first.

- Your selected method has a direct impact on your capital gains and therefore tax liability.

- HIFO usually results in the lowest tax but requires intensive documentation and IRS-compliant identification.

- The IRS permits method switching but requires you to specifically identify your assets/conduct consistent documentation.

- Blockchain tax software like Kryptos.io can systematically calculate, develop lower tax liability, and create audit-proof documentation.

What is Cost Basis in Crypto?

Simply put, your cost basis is the price you initially purchased your crypto, including transaction fees and other expenses. When selling/swap your crypto, your capital gain (or loss) is calculated as follows:

How to Calculate Crypto Cost Basis?

Capital Gain = Sale Price - Cost Basis

Example:

You purchased 1 ETH for $1200

You sell it later for $1300.

Capital Gain = $1300 - $1200 = $1,00

If you have purchased the same crypto multiple times, but at different prices, the method you choose to determine which coin is sold can make a big difference.

Why Cost Basis Methods Are Important

Let's imagine that you have multiple lots of Bitcoin, purchased at different times and prices. When you sell 1 BTC, how you determine which purchase is being sold, really directly impacts your tax.

Let’s say you bought:

• 1 BTC in Feb 2021 for $20,000

• 1 BTC in April 2022 for $40,000

• 1 BTC in Sept 2023 for $30,000

Now you sell 1 BTC in March 2026 for $50,000. Here is how each method affects your gain:

MethodAssumes Sold FromCost BasisTaxable Gain
FIFOFirst Bought (Feb 2021)$20,000$30,000
LIFOLast Bought (Sept 2023)$30,000$20,000
HIFOHighest Cost (Apr 2022)$40,000$10,000

Now, did you see that - Same coin, same sale – Yet completely different taxes.

FIFO (First-In, First-Out)

How it Works:

FIFO presumes the first coins you purchased are the first you sell. This method is IRS's default method (if you do not request a different method).

Example:

Using our example with BTC, FIFO would treat the Jan 2021 coin (cost basis of $20,000) as the sold first.

Capital Gain = $50,000 - $20,000 = $30,000

FIFO may yield higher gains, but often qualifies for long-term capital gains rates, as long as you're selling after holding the coin for over a year.

Best for: Long-term investors who purchased way back in the day and prefer tax simplicity.

Downsides: FIFO also could deliver higher tax bills if your older coins were purchased for cheap.

LIFO (Last-In, First-Out)

How to Use:

LIFO assumes that the most recent coins purchased are sold first. LIFO can benefit you in a falling market or if your most recent purchases were at a higher price when using Last-in First-out.

Example:

LIFO would sell the Aug 2023 coin (basis $30,000).

LIFO Crypto Capital Gains = $50,000 - $30,000 = $20,000

Best Used For: Traders who frequently buy and sell in volatile markets.

Downside: Gains generated may not qualify for long wins treatment and pay higher short-term rates.

How HIFO Crypto Tax Strategy Works?

HIFO is the most tax efficiency method. It assumes that you sell the highest-cost coins first, which will be the smallest possible capital gain.

Example:

HIFO crypto tax strategy would sell the Mar 2022 coin (cost basis of $40,000).

HIFO Capital Gain = $5,000 - $4000 = $1,000

Ideal for: Investors focused on minimizing taxes, and active traders.

Cons: It has the most stringent identification requirement and requires meticulous record keeping for IRS compliance.

FIFO vs LIFO vs HIFO: Side-by-Side

MethodCost BasisGainBest ForIRS Risk
FIFO$20,000$30,000Simplicity, Long-term holdersLow
LIFO$30,000$20,000Traders in bear marketsModerate
HIFO$40,000$10,000Tax-efficient tradersHigh (requires strict recordkeeping)

How to Choose Best Cost Basis Method Crypto?

The right method will depend on your holding style, objectives, and level of activity. Ask yourself the questions:

• Am I holding my assets for long periods of time? → FIFO

• Do I buy/sell in bursts of short durations? → LIFO

• Am I trying to minimize taxes with all my power? → HIFO

Remember: Kryptos.io can simulate the tax implications of all methods and you can select the one that works best— while providing IRS documentation.

Can You Change Methods?

Yes, the IRS allows change - but under rigid conditions.

Here are some key things:

•           FIFOis the default unless a different method is specified.

•           LIFOand HIFO requires specific identification - you need to be able to track:

o          Dateof acquisition

o Cost per unit

o Quantity sold

o          Wallet/addressids, if applicable;

•           Youare required to report all of these on Form 8949, by specifically matching upto the units sold.

Changing methods inconsistently between exchanges or years without documentation places you at a higher audit risk.

Common Mistakes Investors Make

1. Assuming your exchange handles everything for you: Most exchanges assume you use FIFO unless you export the data and reprocess it yourself.

2. Using different methods across wallets and not keeping track: This will cause discrepancies in your filings.

3. Not keeping good records: this is especially true when using LIFO/HIFO as a lack of documentation can disallow your claim.

4. Using multiple tax tools that do not use the same method: Using one reliable platform like Kryptos.io will keep you using the same methodology.

Conclusion

Selecting the right cost basis method isn’t just an accounting manipulation — it’s a legitimate tax strategy. Whether you are using the straightforward FIFO, the more tactical LIFO or the more aggressive HIFO, understanding the mechanics of each cost basis method will help you create the best tax strategy for your crypto trades.

Don’t get blindsided by bad tracking or IRS rules. With accurate tracking apps like Kryptos.io, you can eliminate the guesswork — turning your information into smart, auditable numbers regardless of how complicated your portfolio gets.

Pro tip: Run your 2026 trades through all three methods and look for the one that gives you a tax savings; you'll be surprised at how much money you might save and it could even be thousands.

About the author
Payam Masood
Former Head of Content and Social Media - Kryptos
FAQs

Q: What's the IRS's standard cost basis method?

A: It's FIFO (First-In, First-Out), unless you specifically choose and can prove you're using a different method.

Q: Is HIFO (Highest-In, First-Out) allowed?

A: Yes, it is legal, but you still need to follow the rules for specific identification and maintain a complete transaction history.

Q: Can I change my cost basis method every year?

A: You can change your cost basis method every year, but you must apply the method uniformly for the entire year. And you need to maintain thorough record keeping of any changes you make.

Q: Can I use one cost basis method on Coinbase and a different cost basis method on Binance?

A: You *could* technically do this, but I would not recommend it. Unless it is well documented and well supported, the IRS might see this as potentially manipulative behavior.

Related articles

Ready when you are

File your crypto taxes in minutes.

Generate an audit-ready report aligned to your jurisdiction. No credit card required.

See pricing