FIFO and HIFO are the two most common ways to calculate your taxable gain when you sell crypto, and for the rest of 2026 you're allowed to pick either one, even if your exchange's own tax tools can't actually execute a trade that way. FIFO (First In, First Out) treats your oldest coins as the ones you sold, which usually means a bigger taxable gain if the price has climbed since you bought. HIFO (Highest In, First Out) treats your most expensive coins as the ones you sold, which usually produces a smaller gain, sometimes even a loss. The catch is that this flexibility comes from a temporary IRS safe harbor that runs out on December 31, 2026. After that, the default reverts to FIFO on any account where your broker can't process a real specific-identification instruction at the moment you sell.
What's Actually the Difference Between FIFO and HIFO?
FIFO assumes you sold the coins you've held the longest, while HIFO assumes you sold the coins that cost you the most. Both are "cost basis methods," rules for matching a sale to a specific purchase so you can figure out the gain or loss. If you bought Bitcoin three separate times at three different prices and later sell only part of your holding, the method you use decides which of those three purchase prices gets subtracted from your sale price. LIFO (Last In, First Out) and plain Specific Identification, where you name the exact lot yourself, are the other two methods that show up in crypto tax software, but FIFO and HIFO are the two that come up in almost every real decision, because they sit at opposite ends of the outcome: FIFO tends to realize your oldest, often lowest-basis coins first, and HIFO tends to realize your most expensive, often smallest-gain coins first.
What Happens If You Don't Pick a Method at All?
The IRS treats your earliest-acquired units in that account as sold first. This is the FIFO default, and it applies automatically, account by account, any time you sell crypto without having specifically identified which lot you're selling before the trade settles. Critically, this identification has to happen at or before the time of sale. You cannot sell first and decide afterward, while filing your return, that you meant to sell your highest-cost lot instead. If you want anything other than FIFO, you need to have told your exchange, or documented in your own records, which lot you were selling before that trade went through.
Why Does the IRS Currently Let You Use HIFO If FIFO Is the Default?
Because most exchanges still don't have the software to accept a specific-lot instruction from a customer in real time, and the IRS doesn't think it's fair to force FIFO on everyone just because the industry isn't ready. That relief started with IRS Notice 2025-7 and was extended through December 31, 2026 by IRS Notice 2026-20. Under this relief, you can keep your own written records showing you're using HIFO, or naming specific lots, even if the 1099-DA your broker eventually sends assumes FIFO by default. The relief only covers digital assets actually held in the custody of a broker, like coins sitting on a centralized exchange, and it doesn't change the information-reporting rules that apply to the broker itself. It's a bridge for taxpayers, not a permanent rule change.
How Much Could Choosing HIFO Over FIFO Actually Save You?
Here's a simplified example using round numbers. Say an investor built a 1.5 BTC position on the same exchange wallet across three separate purchases: 0.5 BTC bought in January 2023 for $30,000 total, 0.5 BTC bought in December 2024 for $60,000 total, and 0.5 BTC bought in June 2025 for $90,000 total. That's three lots with cost bases of $15,000, $30,000, and $45,000. Now say they sell 0.5 BTC today for $50,000, and all three lots happen to qualify as long-term holdings (owned more than a year), so the comparison isn't muddied by different tax rates.
- Under FIFO: the sale is matched to the oldest lot, the $15,000 basis. Gain: $35,000. At a 15% long-term capital gains rate, that's $5,250 in tax.
- Under HIFO: the sale is matched to the most expensive lot, the $45,000 basis. Gain: $5,000. At 15%, that's $750 in tax.
That's $4,500 less in tax owed on this one sale by choosing HIFO instead of FIFO. But look at what's left. Under FIFO, the investor is still holding the $30,000 and $45,000 lots, higher basis, smaller future gains. Under HIFO, they're left holding the $15,000 and $30,000 lots, lower basis, bigger future gains. The total embedded gain across the full 1.5 BTC position hasn't changed at all. HIFO didn't erase tax, it just moved which slice of the gain gets taxed now versus later.
Is HIFO Just Better Than FIFO, Then?
Not automatically. HIFO defers tax rather than eliminating it, and deferral is only valuable if you expect to be in a similar or lower tax bracket later, or if you'd rather keep more cash working for you today. There's also a real record-keeping cost: using anything other than FIFO means you need to track and document your lots carefully enough to defend the method on an audit, and you need to reconcile your own numbers against whatever your broker's 1099-DA reports, since the two won't match if your broker assumes FIFO while you're using HIFO. One more limit worth knowing: these methods generally apply within a single wallet or exchange account, not across all your crypto holdings at once. A separate, one-time rule, Rev. Proc. 2024-28, allowed investors to reallocate unused basis across their different wallets and accounts as they stood on January 1, 2025, but that was a one-time transition, not something you get to redo every year.
What Changes on January 1, 2027?
The temporary relief ends, and the permanent rule takes over. From that date forward, if you want to use HIFO or specific identification, your broker's platform actually has to be able to accept and execute that instruction at the time of the trade, not just let you keep your own side records. Any account where your exchange still can't do that will default to FIFO, full stop, with no backdoor safe harbor to fall back on the way there is through the end of 2026. If you've been relying on your own records to override FIFO, 2026 is the year to find out whether your exchange's actual tax tools will support that going into 2027, not after the fact.
What Should You Actually Do Before December 31, 2026?
- Check whether your exchange's tax center actually supports lot selection, not just whether it lets you export a FIFO-only report. Some do, many still don't.
- Document your chosen method in writing before you sell, not after. The IRS requires the identification to happen at or before the time of the trade.
- Reconcile your own records against your 1099-DA. If your broker reports FIFO numbers but you're using HIFO on your return, keep the paperwork that shows why they differ.
- Remember this is separate from how staking rewards get taxed. Cost basis method decides the gain or loss when you sell; it doesn't change the income tax owed when rewards are received, which our breakdown of how crypto staking rewards are taxed covers in more depth.
- Don't confuse this with the wash sale question. Cost basis method and the wash sale rule are two different mechanics that both affect your crypto tax bill; see our explainer on whether the wash sale rule applies to crypto for the other half of that picture.
None of this is a reason to trade differently or chase a lower tax bill by itself. It's a record-keeping decision that has to be made correctly, and on time, to even be available to you. FIFO is simple and requires nothing from you. HIFO and specific identification can lower this year's bill, but only if you've done the paperwork before the sale, not after, and only while the current relief is still in effect through the end of 2026.
β
Spicy Investing
