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 liewhen it comes to crypto taxes. However, they can look a lot different dependingon which tax numbers you report. The reason? Because there are different costbasis methods for calculating your gains that the IRS allows; using the rightcost basis method can either significantly lower, or add to your tax liability.

Every single trade, sale, or swap ofcryptocurrency is considered a taxable event. However, what many investors donot 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 togetherwhen sold.

What options do I have?

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

This article will walk you throughthe different cost basis methods, demonstrating how each impacts your capitalgains 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 taxsoftware, such as Kryptos.io, can make the whole process simpler and automateit for you.

Key Takeaways

FIFO LIFO HIFO crypto strategy is acost basis method that determine which of your crypto assets are deemed soldfirst.

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

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

- The IRS permits method switchingbut requires you to specifically identify your assets/conduct consistentdocumentation.

- Blockchain tax software likeKryptos.io can systematically calculate, develop lower tax liability, andcreate audit-proof documentation.

What is Cost Basis in Crypto?

Simply put, your cost basis is theprice you initially purchased your crypto, including transaction fees and otherexpenses. When selling/swap your crypto, your capital gain (or loss) iscalculated as follows:

How to Calculate Crypto Cost Basis?

Capital Gain = Sale Price - CostBasis

Example:

You purchased 1 ETH for $1200

You sell it later for $1300.

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

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

Why Cost Basis Methods Are Important

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

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 differenttaxes.

FIFO (First-In, First-Out)

How it Works:

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

Example:

Using our example with BTC, FIFOwould 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, butoften qualifies for long-term capital gains rates, as long as you're sellingafter holding the coin for over a year.

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

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

LIFO (Last-In, First-Out)

How to Use:

LIFO assumes that the most recentcoins purchased are sold first. LIFO can benefit you in a falling market or ifyour 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 treatmentand pay higher short-term rates.

How HIFO Crypto Tax Strategy Works?

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

Example:

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

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

Ideal for: Investors focused onminimizing taxes, and active traders.

Cons: It has the most stringentidentification requirement and requires meticulous record keeping for IRScompliance.

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 yourholding style, objectives, and level of activity. Ask yourself the questions:

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

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

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

Remember: Kryptos.io can simulatethe 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 - butunder 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          Costper unit

o          Quantitysold

o          Wallet/addressids, if applicable;

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

Changing methods inconsistentlybetween exchanges or years without documentation places you at a higher auditrisk.

Common Mistakes Investors Make

1. Assuming your exchange handleseverything for you: Most exchanges assume you use FIFO unless you export thedata and reprocess it yourself.

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

3. Not keeping good records: this isespecially true when using LIFO/HIFO as a lack of documentation can disallowyour claim.

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

Conclusion

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

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

Pro tip: Run your 2026 tradesthrough 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 bethousands.

About the author
Payam Masood
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