FIFO vs LIFO vs HIFO crypto tax explained. Learn how cost basis methods affect capital gains and reduce IRS crypto taxes.
A: It's FIFO (First-In, First-Out), unless you specifically choose and can prove you're using a different method.
A: Yes, it is legal, but you still need to follow the rules for specific identification and maintain a complete transaction history.
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.
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.
Discover how fragmented Historical Crypto Data can increase Compliance Risk in crypto taxes. Learn how Kryptos.io helps investors and crypto startups track wallets, DeFi, NFTs, and cost basis accurately.
Web3 finance demands portfolio tracking, compliance automation, and real-time reporting. Discover why basic tax software isn't enough.
Learn about the crypto inheritance problem, risks of lost private keys, and how portfolio tracking tools like Kryptos simplify crypto tax reporting and asset management.
Generate an audit-ready report aligned to your jurisdiction. No credit card required.
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.
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.
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:
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.
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:
| Method | Assumes Sold From | Cost Basis | Taxable Gain |
|---|---|---|---|
| FIFO | First Bought (Feb 2021) | $20,000 | $30,000 |
| LIFO | Last Bought (Sept 2023) | $30,000 | $20,000 |
| HIFO | Highest 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.
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.
| Method | Cost Basis | Gain | Best For | IRS Risk |
|---|---|---|---|---|
| FIFO | $20,000 | $30,000 | Simplicity, Long-term holders | Low |
| LIFO | $30,000 | $20,000 | Traders in bear markets | Moderate |
| HIFO | $40,000 |
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.
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.
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.
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.
| $10,000 |
| Tax-efficient traders |
| High (requires strict recordkeeping) |