The FIFO vs LIFO crypto tax question comes down to one thing: which coins you "sell" on paper when you cash out. FIFO sells your oldest coins first, LIFO sells your newest, and HIFO sells your highest-cost coins first. On the exact same trade history, that single choice can change your reported capital gain by thousands of dollars, and all three can be perfectly legal if you follow the rules.
Most guides explain the three methods in the abstract and leave you guessing about the actual dollar impact. This one runs one identical set of trades through FIFO, LIFO, and HIFO so you can see the gap in real numbers, then covers the IRS specific-identification and consistency rules that decide whether you are even allowed to use the method you want.
FIFO vs LIFO vs HIFO: What Each Method Actually Means#
A cost-basis method is just the rule for deciding which purchase a sale is matched against. Every time you buy crypto you create a tax lot: an amount, a date, and a cost. When you sell, the method picks which lot (or lots) you are unloading, and that lot's cost basis sets your gain or loss.
Here is the plain-English version of each:
- FIFO (First In, First Out): sells your earliest-purchased coins first. The default in most accounting and the one the IRS assumes if you do nothing.
- LIFO (Last In, First Out): sells your most recently purchased coins first.
- HIFO (Highest In, First Out): sells the coins with the highest cost basis first, regardless of purchase date.
Key idea: none of these methods change which coins physically leave your wallet. They only change which purchase lot the IRS treats the sale as coming from. It is an accounting decision, not a trading decision.
HIFO is not a separate IRS-blessed category. It is a way of applying specific identification, where you point to specific lots when you sell. We will get to why that distinction matters for your records.
The Worked Example: Same Trades, Three Tax Bills#
Abstract definitions are useless until you see the dollars. Let's run one buyer through all three methods. Assume these Bitcoin purchases earlier in the year:
| Lot | Date bought | Amount | Price per BTC | Cost basis |
|---|---|---|---|---|
| A | January | 1 BTC | $20,000 | $20,000 |
| B | March | 1 BTC | $35,000 | $35,000 |
| C | June | 1 BTC | $50,000 | $50,000 |
Now you sell 1 BTC in November for $55,000. You held three lots; only one "sells" on paper. Watch what each method does to your taxable gain.
| Method | Lot sold | Cost basis used | Sale price | Taxable gain |
|---|---|---|---|---|
| FIFO | Lot A (oldest) | $20,000 | $55,000 | $35,000 |
| LIFO | Lot C (newest) | $50,000 | $55,000 | $5,000 |
| HIFO | Lot C (highest cost) | $50,000 | $55,000 | $5,000 |
Same sale, same $55,000 of cash in your pocket, and the reported gain ranges from $5,000 to $35,000. If you are in a 24% federal bracket, that is the difference between roughly $1,200 and $8,400 of tax on this one transaction. Multiply across a year of trading and the method genuinely matters.
In this clean example LIFO and HIFO happen to pick the same lot, because the newest lot is also the most expensive. That is common in a rising market but not guaranteed. The next section shows where they split.
When HIFO beats LIFO (and FIFO loses)#
Change one detail. Suppose your March buy was the priciest, not your June buy:
| Lot | Date bought | Price per BTC |
|---|---|---|
| A | January | $20,000 |
| B | March | $52,000 |
| C | June | $48,000 |
Sell 1 BTC for $55,000 again:
- FIFO sells Lot A → basis $20,000 → gain $35,000.
- LIFO sells Lot C → basis $48,000 → gain $7,000.
- HIFO sells Lot B → basis $52,000 → gain $3,000.
HIFO wins because it always reaches for the highest-cost lot, wherever it sits in time. LIFO only grabs the most recent one, which is not always the most expensive. This is exactly why HIFO is the go-to for traders chasing the lowest legal bill, and why running all three at once is the only way to know your real best case.
Which Crypto Tax Method Is Lowest? It Depends on Your Timeline#
There is no method that is always lowest. The lowest-tax method depends on your buy history and, critically, on how long you have held each lot. Two forces pull in different directions:
- Maximizing cost basis (HIFO) shrinks your current-year gain.
- Holding period decides whether that gain is taxed at the lower long-term rate or the higher short-term rate.
In the US, lots held over one year qualify for long-term capital gains rates (0%, 15%, or 20% for most filers), while lots held a year or less are short-term and taxed as ordinary income, which can run much higher. HIFO can quietly work against you here. By selling your highest-cost lots, you often sell your newest lots, which are more likely to be short-term.
Watch out for the long-term trap. A method that posts a smaller gain on paper but taxes it at the short-term rate can cost you more than FIFO that posts a bigger long-term gain at a lower rate. The right answer is the one with the lowest tax owed, not the lowest gain reported.
This is the single most common mistake people make when they eyeball cost-basis methods by hand. The only reliable way to know which method wins for your trades is to compute the actual tax under each, factoring in short-term versus long-term. A side-by-side breakdown removes the guesswork.
The Rules: Specific Identification and Consistency#
You cannot just pick HIFO because it looks good. The IRS has specific requirements, and skipping them is where people get into trouble.
You must be able to specifically identify lots#
FIFO is the IRS default. To use anything else (LIFO, HIFO, or any specific-identification approach), you must be able to adequately identify the exact units you sold. Per IRS guidance on virtual currency, that means your records show, for each unit:
- The date and time you acquired it.
- Your cost basis and the fair market value at acquisition.
- The date and time you sold or disposed of it.
- The fair market value at disposal and the amount you received.
If you cannot produce that lot-level detail, you default to FIFO whether you like it or not. This is why clean records (or a tool that keeps them for you) are not optional for LIFO or HIFO.
Consistency within an asset#
You generally apply a method consistently across a given asset and tax year rather than cherry-picking a different method for each individual sale to manufacture the perfect outcome. Choosing HIFO for your Bitcoin lots and applying it consistently is fine. Inventing a one-off rule per transaction is not the spirit of specific identification.
The wash-sale wrinkle#
The classic wash-sale rule that blocks claiming a loss when you rebuy the "substantially identical" security within 30 days applies to stocks and securities. Crypto has historically sat in a gray area because tax law often treats it as property rather than a security, which is why many crypto traders have harvested losses in ways stock traders cannot.
Treat this as a moving target, not settled law. Rules around crypto reporting and basis tracking are tightening, including new broker reporting requirements rolling out for the 2025 tax year and beyond. Do not build a strategy on the assumption that today's gaps stay open. When in doubt, talk to a crypto-savvy tax professional.
How to Compare the Methods on Your Own Trades#
You do not have to do this math by hand across hundreds of trades. The practical workflow is short.
Step 1: Export your full trade history#
Pull a CSV from every exchange and wallet you used: Coinbase, Binance, Kraken, and anywhere else. You need complete buy and sell history, because a missing buy lot silently inflates your gains. Most exchanges offer a transactions or tax export in account settings.
Step 2: Run all three methods at once#
Drop your CSVs into the free crypto tax calculator and let it compute FIFO, LIFO, and HIFO side by side. Comparing them in a single view is the entire point, because the lowest method for your specific history is rarely obvious from the trade list. The calculation runs entirely in your browser, so your trade history never leaves the tab.
Step 3: Read the gain and the holding period#
Do not stop at the headline gain number. Look at how much of each method's gain is short-term versus long-term. A method with a slightly higher total gain that is mostly long-term can beat a lower-gain method that is mostly short-term. Pick the method with the lowest tax owed, not the smallest gain.
Step 4: Lock in the method and export Form 8949#
Once you choose, generate your IRS Form 8949 with the lot-level detail that backs up your method. Keep that documentation. If you ever face a question about why you used HIFO, the per-lot record is your proof that you specifically identified the units you sold.
Step 5: Stay consistent next year#
Whatever you choose, apply it consistently within each asset. Changing methods year to year is allowed in many cases, but it must be deliberate and documented, not an accident from losing your records.
Beyond Capital Gains: Don't Forget the Rest of Your Picture#
Cost-basis method only governs your sales. Two other items trip people up:
- Crypto income (staking rewards, airdrops, mining, interest) is usually taxed as ordinary income at fair market value when you receive it, separate from capital gains, and it sets the cost basis for those coins going forward.
- Your overall tax position: a big crypto gain can push you into a higher bracket, change how your salary is taxed, or interact with other income. If you want to sanity-check the bracket impact of a realized gain against your wages, a quick pass through a free salary and tax calculator gives you the surrounding context.
Picking the smartest cost-basis method is one lever. It is a powerful one, but it works best when you see it inside your whole annual picture.
The Bottom Line on FIFO vs LIFO Crypto Tax#
The FIFO vs LIFO crypto tax decision, with HIFO as the usual third option, is one of the few fully legal ways to lower your crypto tax bill without changing a single trade. On the worked example above, the same $55,000 sale produced a taxable gain anywhere from $5,000 to $35,000 purely from the method.
Three things to remember:
- FIFO is the safe default and the easiest to defend, but it often produces the largest gain in a rising market.
- HIFO usually produces the lowest current-year gain, but only if you keep lot-level records to satisfy specific identification, and it can backfire by triggering short-term rates.
- The truly lowest method is the one with the lowest tax owed, which means checking the holding period, not just the gain. Run all three on your real trades, compare the tax, and keep the Form 8949 that backs it up.
If you would rather not pay $49 to $199 a year for a SaaS tool to do this, our free crypto tax calculator gives you the same FIFO/LIFO/HIFO comparison and Form 8949 export at no cost. For longer-horizon planning, seeing how a held position compounds over years with a compound interest calculator can change whether you sell now or wait for the long-term rate.
Frequently Asked Questions#
Is HIFO allowed for crypto taxes? Yes, in the US, HIFO is allowed as a form of specific identification. You must keep records showing the date, cost basis, and disposal details of each unit you sold, otherwise the IRS defaults you to FIFO. HIFO is not a separate blessed category on its own; it is a way of applying specific identification by always selling the highest-cost lot first.
Which cost-basis method gives the lowest crypto tax? There is no universal winner. HIFO usually produces the smallest current-year gain because it sells your most expensive coins first, but it can push you into higher short-term rates if those lots are newer. The genuinely lowest method is the one with the lowest tax owed after accounting for short-term versus long-term holding periods, which is why running FIFO, LIFO, and HIFO side by side is the only reliable way to decide.
Can I switch from FIFO to HIFO between tax years? In many cases yes, but the change must be deliberate and documented, and you generally apply your chosen method consistently within each asset for that year. You cannot retroactively re-pick a different method for past filed returns to lower an old bill, and you cannot cherry-pick a different method for each individual sale to manufacture the perfect outcome.
Do I need special records to use LIFO or HIFO? Yes. FIFO is the default and needs the least proof. To use LIFO or HIFO you must be able to specifically identify the exact units you sold, with their acquisition date, cost basis, disposal date, and proceeds. A calculator that tracks every tax lot and exports Form 8949 keeps that documentation for you so the method holds up if questioned.
Does the wash-sale rule apply to crypto? Historically the formal wash-sale rule has applied to stocks and securities, and crypto has often been treated as property, leaving a gap many traders used for loss harvesting. This is an unsettled, tightening area of law with new reporting requirements arriving for 2025 and later tax years, so do not assume the gap stays open. Confirm your situation with a crypto-aware tax professional before relying on it.
How do I report my chosen method to the IRS? You report your gains and losses on IRS Form 8949 and Schedule D, with the cost basis reflecting your chosen method per lot. There is no separate form to "elect" HIFO; your records and the basis figures you report are the election. Keep the lot-level detail and the generated Form 8949 as your supporting evidence in case of a later question.



