Home

Crypto Taxes and Recordkeeping

Crypto Cost Basis Methods: FIFO, LIFO, HIFO, and Specific Identification

Spot the edge. Swoop in.

The lot-selection method applied to a crypto disposal can change the reported gain by tens of thousands of dollars without changing a single fact about the trade itself. This guide explains how FIFO, LIFO, HIFO, and specific identification work, what the IRS actually recognizes, how the 2025 per-wallet tracking rules changed the playing field, and walks through a full worked example.

By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

Educational-use notice

This guide provides general U.S. federal tax information about crypto cost basis methods, not individualized tax, legal, accounting, or investment advice. The correct method for a given disposal depends on the taxpayer's facts, records, wallet structure, and elections made in prior years. Consult a qualified tax professional before applying any method to a real return.

Key Takeaways

Why the Cost Basis Method Matters

When a taxpayer holds crypto acquired at different times and different prices, and then disposes of only part of the position, a decision has to be made about which units were sold. That decision — the cost basis method — determines the adjusted basis used in the gain-or-loss calculation, and it can move the reported result substantially even though nothing about the sale itself changed.

Under Notice 2014-21, the IRS treats digital assets as property for U.S. federal income tax purposes, and general property tax principles apply. Property held in multiple lots at different costs has always required a lot-identification rule for partial dispositions; crypto is no exception. What makes crypto distinctive is that a single taxpayer can accumulate dozens or hundreds of lots across exchanges, wallets, staking rewards, and airdrops, often with incomplete records connecting them — which makes the choice of method, and the discipline of applying it correctly, more consequential than it typically is for a brokerage account holding a handful of stock purchases.

The method chosen also interacts with holding period. Units acquired more than one year before disposal generally qualify for long-term capital gain treatment, which can be taxed at preferential rates; units held one year or less are short-term and taxed at ordinary income rates. A method that minimizes the dollar amount of gain reported is not always the method that minimizes the tax actually owed, because the character of the gain matters as much as its size.

FIFO, LIFO, HIFO, and Specific Identification, Explained

The table below summarizes how each method orders lots for a disposal, and — importantly — which of them are independently recognized by the IRS versus which are outcomes achieved through a valid specific identification.

MethodHow lots are selectedIRS statusElection required?
FIFO (First-In-First-Out)The earliest-acquired units in the wallet or account are treated as disposed of firstRecognized as the default methodNo — applies automatically absent a valid specific identification
Specific IdentificationThe taxpayer designates the exact lot(s) disposed of, by acquisition date, time, and quantityRecognized as an elective methodYes — must be made and documented at or before the time of the transaction
LIFO (Last-In-First-Out)The most recently acquired units are treated as disposed of firstNot a named IRS method — an ordering rule applied through specific identificationYes — every disposal must satisfy the specific identification requirements
HIFO (Highest-In-First-Out)The units with the highest cost basis are treated as disposed of first, regardless of acquisition dateNot a named IRS method — an ordering rule applied through specific identificationYes — every disposal must satisfy the specific identification requirements

This distinction matters more than it might first appear. Tax software commonly offers "FIFO," "LIFO," and "HIFO" as interchangeable dropdown settings, which can create the impression that all three are equally IRS-sanctioned choices. Under IRS guidance, only two methods exist: FIFO, which is automatic, and specific identification, which is elective and comes with a documentation requirement attached to every disposal, not just a one-time software setting. LIFO and HIFO are simply descriptions of the ordering rule a taxpayer applies while making a valid specific identification — the identification requirement does not go away because a piece of software labeled the output "HIFO."

FIFO in Practice

FIFO is straightforward to apply and requires no additional documentation beyond the ordinary transaction records already needed for the ledger: it simply consumes the oldest lot first, then the next-oldest, and so on, until the disposed quantity is fully accounted for. Because FIFO is the default, a taxpayer who does not affirmatively identify specific lots for a disposal is treated as having sold FIFO-order units, whether or not that was the intent.

Specific Identification in Practice

Specific identification lets a taxpayer choose exactly which lot or lots to treat as sold, subject to two conditions: the units actually disposed of must in fact belong to the identified lot (the taxpayer cannot identify units they do not hold), and the identification must be made at or before the time of the transaction, with adequate records. A specific identification made after the fact — for example, reviewing the year's price history in April and then deciding which lots would have produced the best result — generally does not satisfy this requirement.

HIFO and LIFO orderings are simply strategies for choosing which lots to identify. A taxpayer using a "HIFO" approach is, in substance, making a specific identification of the highest-cost lot(s) available for each disposal; the same documentation and timing requirements apply as for any other specific identification.

Why the Difference Matters for Tax Owed

FIFO tends to consume the oldest, and often lowest-cost, lots first, which in a rising market typically produces the largest reported gain of the four approaches (though not always — it depends on the specific purchase history). HIFO-style identification is designed to minimize the reported gain on a given disposal by selecting the highest-basis lots available, regardless of when they were acquired. LIFO-style identification consumes the most recently acquired lots first, which tends to fall between FIFO and HIFO in a market that has trended upward over time. Because none of these outcomes are guaranteed — actual purchase history, especially with volatile assets, rarely moves in one direction — the worked example later in this guide walks through one concrete case.

Default Method vs. Affirmative Election

Understanding which method applies without action, and which requires the taxpayer to do something, is central to avoiding an unintentional FIFO result.

ScenarioMethod appliedWhat the taxpayer must do
No lot identified for a disposalFIFO (default)Nothing — this happens automatically
Taxpayer wants HIFO-style resultsSpecific identification, applying a highest-cost orderingIdentify the specific lot(s) at or before the transaction; document the identification
Taxpayer wants LIFO-style resultsSpecific identification, applying a most-recent-first orderingIdentify the specific lot(s) at or before the transaction; document the identification
Taxpayer wants a custom selection (e.g., to manage holding period)Specific identification, applying any documented ruleIdentify the specific lot(s) at or before the transaction; document the identification
Taxpayer set a "HIFO" toggle in tax software but never reviewed or documented lot selection at the time of each tradeUncertain — the software's label does not itself satisfy the documentation requirementReview whether contemporaneous identification exists for each disposal; if not, FIFO may be the technically supportable position

A practical consequence follows from this: a taxpayer who wants anything other than FIFO treatment carries the burden of making and preserving evidence of the election. Waiting until filing season to decide which lots "should" have been sold does not create a valid specific identification after the fact.

The 2025 Per-Wallet and Per-Account Basis Rule

For years, many taxpayers and tax software products applied cost basis methods on a universal, pooled basis — treating every unit of a given asset held anywhere (across every exchange account and wallet) as one combined inventory, and applying FIFO or a chosen method across that entire combined pool. That approach is no longer available for transactions from January 1, 2025 onward.

Under Rev. Proc. 2024-28, digital asset basis must generally be tracked separately within each wallet or account, rather than pooled universally across a taxpayer's entire holdings. In practice, this means a lot's basis sitting in Wallet A cannot be used to offset, or be selected for, a disposal that occurs in Wallet B — even if both wallets hold the identical asset and are owned by the same taxpayer. Each wallet or account effectively becomes its own basis-tracking unit.

This change interacts directly with the reporting regime introduced for digital-asset brokers: Form 1099-DA, required for covered transactions from January 1, 2025 onward, is filed on a per-broker, per-account basis. Per-wallet basis tracking keeps a taxpayer's own records structurally aligned with how brokers report, which supports reconciliation — but it also means that transferring assets between a taxpayer's own wallets, previously a basis-neutral non-event handled loosely by many pooled trackers, now requires more careful basis carry-over bookkeeping so the receiving wallet's per-wallet ledger correctly reflects the original acquisition date and cost.

The Rev. Proc. 2024-28 Safe Harbor for Existing Holdings

Because taxpayers who had been using universal, pooled tracking could not simply relabel their existing combined basis pool as belonging to specific wallets on January 1, 2025, Rev. Proc. 2024-28 provided a one-time safe harbor for making that transition. Under the safe harbor, a taxpayer could reasonably allocate their existing unused basis — generally, the basis in all units held as of January 1, 2025 — to the wallets and accounts actually holding those units, using either:

This one-time allocation is described as irrevocable and needed to be completed under the transition timeline the revenue procedure specified. A taxpayer who did not make a reasonable allocation under the safe harbor, or who cannot substantiate one, may face a more difficult reconstruction problem establishing per-wallet basis retroactively. This is an area where the specific facts — how many wallets, how the allocation was documented, whether it was done before the applicable deadline — matter a great deal, and professional review is warranted for anyone who held crypto across multiple wallets before 2025 and has not confirmed how their existing basis was allocated.

Worked Example: Same Disposal, Four Different Results

Hypothetical example — for education only.

A taxpayer holds four lots of the same asset in a single wallet, purchased at different times and prices:

LotAcquiredQuantityPrice per unitBasisHolding period as of the 7/15/2026 sale
Lot AJanuary 10, 20230.5$17,000$8,500Long-term
Lot BJune 5, 20240.5$52,000$26,000Long-term
Lot CNovember 20, 20240.5$37,000$18,500Long-term
Lot DMarch 1, 20250.5$62,000$31,000Long-term

Total holding: 2.0 units, total basis $84,000. On July 15, 2026, the taxpayer sells 1.0 unit (half the position) for $65,000 gross proceeds, paying a $100 disposition fee. Amount realized on the sale is $65,000 − $100 = $64,900, regardless of which lots are treated as sold. What changes with the method is which $64,900 of proceeds gets matched against which basis.

Amount realized (all methods):     $64,900

FIFO   — sells Lot A + Lot B:       basis $8,500 + $26,000 = $34,500
                                     gain  $64,900 - $34,500 = $30,400  (long-term)

LIFO   — sells Lot D + Lot C:       basis $31,000 + $18,500 = $49,500
                                     gain  $64,900 - $49,500 = $15,400  (long-term)

HIFO   — sells Lot D + Lot B:       basis $31,000 + $26,000 = $57,000
                                     gain  $64,900 - $57,000 = $7,900   (long-term)

Specific ID (taxpayer selects
Lot A + Lot D at trade time):       basis $8,500 + $31,000 = $39,500
                                     gain  $64,900 - $39,500 = $25,400  (long-term)
MethodLots soldBasis usedGain reported
FIFO (default)Lot A, Lot B$34,500$30,400
LIFO-style specific IDLot D, Lot C$49,500$15,400
HIFO-style specific IDLot D, Lot B$57,000$7,900
Custom specific IDLot A, Lot D$39,500$25,400

Every scenario above happens to produce a long-term gain in this example, because all four lots were held more than one year as of the sale date, so holding period does not create additional divergence here. The gain reported still ranges from $7,900 to $30,400 — a difference of $22,500 — purely as a function of which lots are identified, with no change to the amount actually received from the sale. This illustrates why the method (and, for anything other than FIFO, the taxpayer's contemporaneous identification and documentation) is not a minor mechanical detail: it is one of the largest levers on the reported result of an otherwise identical transaction.

In a scenario where some lots are short-term and others long-term, the "lowest gain" method is not automatically the "lowest tax" method — a HIFO-style selection that happens to consume a short-term lot can produce a smaller dollar gain that is taxed at a higher rate than a larger long-term gain from a different lot combination. Evaluating the after-tax result, not just the reported gain, generally requires modeling both the gain amount and the character of each candidate lot combination.

Misconceptions vs. Reality

MisconceptionReality
"HIFO is an IRS-approved cost basis method just like FIFO."HIFO is not independently named in IRS guidance. It is an outcome achieved through specific identification, which carries its own contemporaneous-documentation requirement for every disposal.
"My tax software has a HIFO setting, so my HIFO results are automatically valid."A software setting applies an ordering rule to the data the software has. It does not by itself create the contemporaneous record of identification that a valid specific identification requires, and it may not capture the taxpayer's complete cross-wallet transaction history.
"I can decide in April, while filing, which lots I 'meant' to sell last year."Specific identification must be made at or before the time of the transaction. An after-the-fact selection made while preparing the return generally does not satisfy the requirement, leaving FIFO as the applicable method.
"Since I use one exchange for everything, per-wallet tracking doesn't apply to me."Per-wallet and per-account tracking applies to every wallet and account structure, including a single exchange account. It becomes especially relevant the moment a taxpayer uses more than one wallet, exchange, or self-custody address for the same asset.
"The method that reports the smallest gain always minimizes my tax bill."Short-term and long-term gains can be taxed at different rates. A smaller short-term gain can result in more tax owed than a larger long-term gain, depending on the taxpayer's overall tax situation.
"I can pool basis across all my wallets like I used to, as long as I'm consistent."Universal pooling across wallets is no longer available for transactions starting January 1, 2025 under Rev. Proc. 2024-28, regardless of how consistently it is applied.
"Once I pick a method, I'm locked into it forever, for every wallet."The rules operate per-disposal and per-wallet, not as a single global lifetime election; but changing approaches between years or wallets should be done deliberately and documented, since consistency and potential IRS consent requirements can apply to certain changes.

Practical Checklist Before You Rely on a Cost Basis Method

Sources and Methodology

This guide is based on publicly available IRS guidance and regulatory materials as of August 2026. Key sources include:

This content was reviewed by the Swoopr Markets Education Team in August 2026 and reflects U.S. federal tax guidance available at that time. Tax law and IRS guidance change; verify current guidance, and consult a qualified tax professional, before relying on any information in this guide for an actual return.

Cost Basis Method FAQs

What cost basis method does the IRS use for crypto by default?

First-in-first-out (FIFO) is the default method. If a taxpayer disposes of crypto and has not made and documented a valid specific identification of the units sold, the earliest-acquired units in that wallet or account are treated as sold first.

Are LIFO and HIFO methods the IRS officially recognizes?

Not as separate named methods. IRS guidance recognizes FIFO and specific identification. LIFO (last-in-first-out) and HIFO (highest-in-first-out) describe ordering rules a taxpayer can apply when performing a valid specific identification — they are not independent methods with their own IRS rules, and the specific-identification documentation requirements still apply.

What makes a specific identification valid?

The taxpayer must identify the specific units being disposed of at or before the time of the transaction — for example by specifying the acquisition date, time, and quantity of the unit sold — and keep records showing that identification was made contemporaneously. An identification made after the fact, such as picking convenient lots months later while preparing a return, generally does not qualify.

What changed with per-wallet cost basis tracking starting in 2025?

Under Rev. Proc. 2024-28, taxpayers can no longer pool cost basis universally across every wallet and account. Starting January 1, 2025, basis must generally be tracked separately within each wallet or account, and a lot's basis in one wallet cannot be used to offset a disposal in a different wallet. The revenue procedure also provided a one-time, irrevocable safe-harbor method for allocating existing unused basis to specific wallets as of that date.

Can I switch cost basis methods between tax years?

General tax principles favor consistent application of an accounting method, and changing methods can in some circumstances require IRS consent. Within a single disposal, the method used should be documented and applied consistently with the taxpayer's records. This is a fact-specific area — consult a qualified tax professional before changing methods between years or across wallets.

Does choosing HIFO always produce the smallest tax bill?

Not necessarily. HIFO-style identification minimizes the gain recognized on the specific sale being calculated, but it does not account for holding period. A lower-gain lot that is short-term can be taxed at a higher rate than a higher-gain lot that qualifies for long-term treatment, so the lot with the smallest reported gain is not always the one that minimizes total tax owed.

What records do I need to support specific identification?

Records should show, for each disposal, which specific lot or lots were identified, the acquisition date and quantity of each lot, the basis of each lot, and evidence the identification was made at or before the time of the transaction — such as a contemporaneous note, an exchange confirmation naming the lot, or a tax-software log with a timestamp.

Does my exchange or tax software automatically identify lots correctly?

Not automatically in every case. A software setting labeled FIFO, LIFO, or HIFO applies an ordering rule to the software's own transaction history, but it may not see transfers in from other wallets, may not carry over the correct original basis, and does not by itself create the contemporaneous documentation that a valid specific identification requires. Review the software's output against your own records rather than assuming it is correct.

Related Reading