Home/Guides/

FIFO vs HIFO vs specific identification for crypto taxes (2026)

Last updated 2026-11-24 · Sources linked on every listing

Short answer: your gain on a crypto sale is the amount realized minus the basis of the specific units treated as sold, so which units count matters. If you don't identify them, the IRS default is FIFO (oldest units first). You can use HIFO (highest cost first), LIFO (newest first) or any other specific identification if you identify the units on time and can prove their basis. Since Jan. 1, 2025, this is done wallet by wallet. For coins at an exchange, Notice 2026-20 lets you make the identification in your own records through Dec. 31, 2026.

FIFO vs HIFO vs LIFO vs specific ID at a glance

MethodWhich units count as soldIRS statusTypical effect
FIFOEarliest acquired units in that wallet or accountDefault if you don't adequately identify (FAQ Q41; FAQ 86; Treas. Reg. 1.1012-1(j)(3)(i))In a rising market, older and cheaper coins go first: bigger gains, but more often long-term
HIFOHighest-basis unitsA specific identification method (Notice 2025-7 example)Usually the smallest gain or largest loss on that sale, but can be short-term
LIFOLatest acquired unitsA specific identification method (Notice 2025-7 example)Recent units are often short-term
Specific ID (lot by lot)Units you pick for each saleAllowed if you identify and substantiate (FAQ Q39-Q40; FAQ 82)Full control, such as picking a lot held over a year, but the most record keeping

Average cost isn't on the list. We found no IRS guidance allowing average cost for crypto. The examples the IRS gives are all ways of picking specific units.

Worked example: FIFO vs HIFO (hypothetical)

Hypothetical numbers for illustration only. Fees are ignored and all units sit in the same wallet.

LotBoughtUnitsCost (basis)
AJan. 10, 20241 BTC$40,000
BMar. 5, 20251 BTC$90,000
CAug. 1, 20251 BTC$110,000

On Feb. 2, 2026 you sell 1 BTC for $100,000.

MethodLot soldArithmeticResultHolding period
FIFOA$100,000 − $40,000$60,000 gainLong-term (held over a year)
HIFOC$100,000 − $110,000$10,000 lossShort-term (Aug. 2, 2025 to Feb. 2, 2026)
LIFOC (newest)$100,000 − $110,000$10,000 lossShort-term
Specific ID of lot BB$100,000 − $90,000$10,000 gainShort-term

The difference between FIFO and HIFO here is $70,000 of reported gain ($60,000 gain vs a $10,000 loss). Two things to notice. First, the HIFO loss is short-term and the FIFO gain is long-term, and they're taxed differently (see 2026 crypto tax rates). Second, the lots you don't sell keep their basis. Under HIFO, cheap lot A is still in the wallet, so the gain is pushed into a later sale rather than erased. The holding period starts the day after you acquire a unit (IRS digital asset FAQ 50).

What the IRS says about specific identification

The IRS virtual currency FAQ (Q39) says you "may choose which units ... are deemed to be sold" if you can specifically identify them and substantiate your basis. Q40 says you identify units by a unique digital identifier, or by records for all units of that coin in a single account, wallet or address showing:

  1. the date and time each unit was acquired,
  2. your basis and the fair market value of each unit when acquired,
  3. the date and time each unit was sold, exchanged or disposed of, and
  4. the fair market value of each unit when disposed of and the money or property received.

Q41 says that without that, units are deemed sold FIFO. The newer digital asset FAQs (added Dec. 15, 2025) apply this to post-2024 transactions. For an unhosted wallet (FAQ 82), you must identify the units in your books no later than the date and time of the sale, using an identifier such as purchase date and time or purchase price, and keep records showing those units left that wallet. A non-broker hosted wallet follows the same rule (FAQ 83). FAQ 95 says your records must support the positions on your return.

What HIFO needs in practice: a per-wallet lot list with acquisition date, time and cost, a written rule (such as "highest basis first") recorded before the sales it covers, and software or a ledger that applies it inside each wallet, not across wallets. Treating HIFO as an after-the-fact choice at tax time doesn't meet the "no later than the date and time of the sale" timing.

The wallet-by-wallet rule since Jan. 1, 2025

Treas. Reg. 1.1012-1(j), from T.D. 10000, sets ordering rules for units of the same digital asset held in the same wallet or account, with separate rules for units at a broker and units you hold yourself. Notice 2026-20 explains that the rules apply on an account-by-account basis, consistent with Code section 1012(c). In practice you can no longer run one "universal" FIFO or HIFO queue across all your exchanges and wallets.

Rev. Proc. 2024-28 safe harbor

If you used a universal method before 2025, Rev. Proc. 2024-28 lets you allocate unused ("unattached") basis to wallets and accounts holding the same number of remaining units, as long as the allocation is reasonable, based on your records and made as of Jan. 1, 2025 (IRS FAQ 93). A specific unit allocation had to be completed before the earlier of your first sale of that type of digital asset on or after Jan. 1, 2025, or the due date (including extensions) of your 2025 return. Details are in wallet-by-wallet basis and the Rev. Proc. 2024-28 safe harbor.

Exchanges: standing orders and the 2025-2026 relief

The permanent rule. For units held at a broker, you identify the units to the broker no later than the time of the sale, using identifiers the broker designates (IRS FAQ 85). Treas. Reg. 1.6045-1(d)(2)(ii)(B), the broker reporting side, says "a standing order or instruction for the specific identification of digital assets is treated as an adequate identification made at the date and time of sale," and "in the case of a broker that offers only one method of making a specific identification, such method is treated as a standing order." If you give no adequate identification, that paragraph has the broker report units in order from the earliest acquired (after first reporting any units it didn't acquire for you, when it lacks transfer-in records), and Treas. Reg. 1.1012-1(j)(3)(i) treats them as sold FIFO for your taxes.

The relief. Many exchanges couldn't yet accept per-sale instructions, so Notice 2025-7 let you, for 2025, identify units held at a broker in your own books and records by the time of the sale (for example by purchase date and time or price), or record a standing order there before the sale. Notice 2026-20 (IRB 2026-15) extended that relief period through Dec. 31, 2026. While you use it:

That's why your exchange's 1099-DA can show different basis than your tracker. Uphold, for example, says it uses HIFO, while many trackers default to FIFO. Report your own figures on Form 8949 and keep the records. Blank or $0 basis? See 1099-DA missing cost basis.

Choosing and documenting a method

  1. Write down the method for each wallet and exchange account before you sell, and date it.
  2. At exchanges, check whether you can set a standing order (many offer FIFO or HIFO). From 2027, unless the IRS extends the relief, that broker-side instruction is what counts.
  3. Use a tracker that computes basis per wallet. CoinLedger (code CRYPTOTAX10 for 10% off) and Koinly both let you choose a basis method. Affiliate links; disclosure. Compare in best crypto tax software or Koinly vs CoinLedger.
  4. Remember fees adjust basis and amount realized (gas fees), and HIFO losses feed tax-loss harvesting and deducting crypto losses. Coinbase Help says the wash sale rule does not currently apply to crypto; see crypto wash sale rule.

Years of trades across many wallets, a missed safe-harbor allocation or an IRS letter? A crypto-savvy CPA can rebuild your basis per wallet and defend the method. Browse the crypto CPA directory, find a crypto CPA near you or search by state.

What we couldn't confirm

Sources

General information, not tax advice. Sources checked 2026-11-27.

FAQ

What is the default cost basis method for crypto?

FIFO (first in, first out). The IRS virtual currency FAQ (Q41) says that if you don't specifically identify units, they're deemed sold in chronological order beginning with the earliest unit you acquired. Since 2025 the default applies wallet by wallet: for an unhosted wallet, IRS digital asset FAQ 86 says units are treated as sold from the earliest units acquired in that wallet; for units at a broker, the regulations apply FIFO to the units held at that broker.

Is HIFO allowed for crypto taxes?

Yes, as a form of specific identification. The IRS lets you choose which units you sold if you can specifically identify them and substantiate their basis (virtual currency FAQ Q39). Notice 2025-7 lists the highest basis as an example of a method of specifically identifying units. There is no separate 'HIFO election'; you need timely identification and records for each sale.

What is HIFO accounting?

HIFO (highest in, first out) treats the units with the highest cost basis as the ones sold. Because the most expensive units go first, it usually produces the smallest gain or the largest loss on that sale. It can also turn a long-term gain into a short-term result if the high-cost units were bought recently, so it isn't automatically the lowest tax.

Is LIFO allowed for crypto?

LIFO (last in, first out) is also a specific identification method: Notice 2025-7 lists 'the latest acquired' as an example. Like HIFO, it only applies if you identify the units on time and keep the records; otherwise FIFO applies.

Is switching from FIFO to HIFO a change in accounting method?

No. Notice 2025-7 says a method of specifically identifying units, such as earliest acquired, latest acquired or highest basis, is not a method of accounting to which sections 446 or 481 apply (citing Treas. Reg. 1.1012-1(j)(4)). You don't file Form 3115 to change it, but each identification must still be timely and documented.

Do I have to track crypto cost basis wallet by wallet?

Yes, for transactions on or after Jan. 1, 2025. Treas. Reg. 1.1012-1(j) sets ordering rules for units of the same digital asset held in the same wallet or account, with separate rules for units at a broker and units you hold yourself. Rev. Proc. 2024-28 gave a safe harbor to move leftover basis from a universal (all-wallet) method into each wallet as of Jan. 1, 2025.

Do I have to tell my exchange which units I'm selling?

Normally yes, for units held at a broker: you specify the units to the broker by the time of the sale, or use a standing order. Treas. Reg. 1.6045-1(d)(2)(ii)(B) treats a standing order as an adequate identification at the time of sale, and if a broker offers only one specific identification method, that method is treated as your standing order. For 2025 and 2026, Notice 2025-7 and Notice 2026-20 also let you identify units, or record a standing order, in your own books and records before the sale.

Has the Notice 2025-7 relief been extended past 2026?

Not as of Nov. 27, 2026. Notice 2026-20 extended the relief through Dec. 31, 2026 and says taxpayers can't rely on it for sales after the relief period ends. We found no IRS notice extending it into 2027. For 2027 sales at a broker, plan to give the broker your identification or standing order by the time of sale.

Does my 1099-DA have to match my HIFO calculations?

Not necessarily. Notice 2026-20 says that if you made an adequate identification in your own books and records under the relief, the units sold for tax purposes are the ones in your records, regardless of whether the broker's information matches. The relief doesn't change what the broker reports on Form 1099-DA, so report your own figures on Form 8949 and keep the records.

What records do I need to use HIFO or specific identification?

The IRS virtual currency FAQ (Q40) says records for the units in a single account, wallet or address must show the date and time each unit was acquired, your basis and fair market value when acquired, the date and time each unit was disposed of, and the fair market value and amount received when disposed of. For unhosted wallets, FAQ 82 adds that you must identify the units in your books no later than the time of the sale and keep records showing they left that wallet.