LIFO (Last In, First Out): What Is LIFO (Last In, First Out)?LIFO (Last In, First Out) is an accounting and tax-lot method that treats the most recently acquired units of an asset as the first units sold, disposed of, or transfLIFO (Last In, First Out): What Is LIFO (Last In, First Out)?LIFO (Last In, First Out) is an accounting and tax-lot method that treats the most recently acquired units of an asset as the first units sold, disposed of, or transf

LIFO (Last In, First Out)

2026/08/07 17:20
#Intermediate

What Is LIFO (Last In, First Out)?

LIFO (Last In, First Out) is an accounting and tax-lot method that treats the most recently acquired units of an asset as the first units sold, disposed of, or transferred.

In crypto, LIFO is usually discussed when users calculate cost basis for digital asset sales.

If a user bought the same token at different prices and later sells only part of the position, LIFO assumes the latest purchase lot is sold first.

This can change the reported gain or loss because each lot may have a different acquisition price, date, fee, and holding period.

LIFO is not a blockchain consensus rule, wallet feature, or trading order type.

It is a recordkeeping method used to decide which tax lots are matched to a crypto disposal.

Because digital asset tax rules differ by country, users should always check local rules before using LIFO for reporting.

How LIFO Works in Crypto

LIFO works by sorting crypto purchase lots from newest to oldest.

When a sale happens, the newest available lot is matched first.

If the sale amount is larger than the newest lot, the method continues to the next newest lot until the full sale amount is covered.

For example, a user buys 1 ETH in January, 1 ETH in April, and 1 ETH in August.

If the user sells 1 ETH in December using LIFO, the August ETH is treated as the unit sold.

If the user sells 2 ETH, the August and April lots are treated as sold.

The gain or loss is then calculated by comparing sale proceeds with the cost basis of those matched lots.

Crypto Cost Basis

Cost basis is the original value assigned to a crypto asset for gain or loss calculation.

For a purchased token, cost basis usually includes the purchase price and certain transaction costs when allowed under local rules.

The IRS digital assets page states that digital assets are considered property for U.S. federal tax purposes.

This matters because property sales generally require users to calculate gain or loss.

The basic formula is sale proceeds minus cost basis equals capital gain or capital loss.

LIFO affects the cost basis side of that formula by choosing the most recently acquired units first.

A different method can produce a different result from the same trading history.

LIFO vs. FIFO

FIFO means First In, First Out.

FIFO treats the earliest acquired units as sold first.

LIFO treats the latest acquired units as sold first.

The IRS digital asset FAQ explains that if specific identification requirements are not met, the default identification rule generally treats units as sold in order from the earliest acquisition date.

That default approach is FIFO-like because it starts with the oldest units.

LIFO may produce a lower gain in a rising market if the newest units have a higher basis.

FIFO may produce more long-term holding periods if the oldest units were held for more than one year.

LIFO vs. HIFO

HIFO means Highest In, First Out.

HIFO chooses the highest-cost units first, regardless of acquisition date.

LIFO chooses the newest units first, regardless of cost.

If the newest units are also the highest-cost units, LIFO and HIFO may produce the same result.

If the newest units are not the highest-cost units, the results can be different.

HIFO is often used to reduce current taxable gains when allowed and properly documented.

LIFO is often used when a user wants a clear chronological rule based on the most recent acquisition first.

LIFO and Specific Identification

In many crypto tax discussions, LIFO is best understood as a lot-selection strategy under specific identification.

Specific identification means the user identifies the exact units being sold, disposed of, or transferred.

The IRS FAQ says users may identify units by using details such as purchase date and time or purchase price, as long as the identification is sufficient and proper records are kept.

This is important because simply deciding after the fact that LIFO would be helpful may not be acceptable.

A user generally needs records showing which units were identified at or before the relevant transaction time.

The rule is especially important for active crypto traders who have many purchases, transfers, swaps, and wallet movements.

Without proper records, a tax authority may require a default method instead of the user’s preferred LIFO result.

U.S. Digital Asset Rules and LIFO

In the United States, digital asset cost basis rules changed significantly for transactions beginning in 2025.

The IRS FAQ says specific identification can be made by identifying the particular digital asset units sold, disposed of, or transferred, and by maintaining adequate records.

The FAQ also says that when specific identification is not properly made, the default rule treats units as sold in order from the earliest acquisition date.

The IRS Notice 2026-20 extended temporary relief through December 31, 2026, for adequate identification of certain broker-custodied digital assets during the relief period.

The notice gives examples of specific identification methods based on earliest acquired, latest acquired, or highest basis.

This makes LIFO relevant because “latest acquired” is the practical idea behind Last In, First Out.

Users should still confirm how their broker, wallet records, tax software, and tax professional handle the method before relying on it.

Wallet-by-Wallet Tracking

Crypto tax-lot tracking is not only about choosing LIFO, FIFO, or HIFO.

It also depends on where the assets are held.

Modern U.S. rules generally require users to track basis by wallet or account rather than using one universal pool across all wallets.

This means a LIFO calculation should usually be applied to the units available in the specific wallet or account involved in the sale.

A user should not assume that a new lot in one wallet can automatically be matched to a sale from another wallet.

Transfers between wallets should carry basis information with the units transferred.

Poor transfer records can make LIFO calculations difficult or unreliable.

LIFO and Holding Period

LIFO can affect holding period because the newest units are usually the units sold first.

In tax systems that distinguish short-term and long-term capital gains, this can be important.

If the newest crypto units were acquired recently, a LIFO sale may create a short-term gain or loss.

If the oldest units were held for more than one year, FIFO might produce long-term treatment where LIFO would not.

This means LIFO does not always reduce tax.

A lower gain from higher recent basis may be offset by less favorable short-term treatment in some cases.

Users should compare both cost basis and holding period before choosing a method.

Example of LIFO in a Rising Market

A user buys 1 BTC for $40,000 in January.

The user buys another 1 BTC for $60,000 in June.

The user sells 1 BTC for $70,000 in December.

Under FIFO, the January lot is sold first, so the gain is $30,000 before fees and other adjustments.

Under LIFO, the June lot is sold first, so the gain is $10,000 before fees and other adjustments.

In this example, LIFO creates a lower current gain because the most recent purchase had a higher cost basis.

However, the June lot may also have a shorter holding period, which can matter for tax treatment.

Example of LIFO in a Falling Market

A user buys 1 ETH for $4,000 in January.

The user buys another 1 ETH for $2,500 in June.

The user sells 1 ETH for $2,000 in December.

Under FIFO, the January lot is sold first, creating a $2,000 loss before fees and other adjustments.

Under LIFO, the June lot is sold first, creating a $500 loss before fees and other adjustments.

In this example, LIFO produces a smaller loss than FIFO.

This shows why LIFO is not automatically better in every market environment.

LIFO and DeFi Transactions

LIFO can become complicated in DeFi because users may swap tokens, provide liquidity, receive LP tokens, bridge assets, wrap tokens, stake assets, or claim rewards.

Each activity may create new units, new basis, income, or a taxable disposal depending on jurisdiction and transaction details.

A simple LIFO rule may be easy for basic buy-and-sell activity but harder for DeFi portfolios.

For example, staking rewards may have a basis equal to their value when received under certain tax systems.

Liquidity pool deposits and withdrawals can also create uncertain or complex tax analysis in some jurisdictions.

Users should keep transaction hashes, timestamps, fair market values, token amounts, wallet addresses, and protocol names.

LIFO is only as reliable as the records supporting it.

LIFO and Crypto Tax Software

Crypto tax software may support LIFO, FIFO, HIFO, average cost, or specific identification workflows.

However, software support does not automatically mean the method is accepted for every user in every jurisdiction.

Users should check whether the method is allowed, whether it must be elected before sale, and whether it must be applied per wallet or account.

They should also check whether the software correctly imports transfers, fees, staking rewards, bridge activity, and DeFi transactions.

A missing transfer can make the software assign the wrong basis to a wallet.

A wrong timestamp can change which lot is considered the newest under LIFO.

Users should review reports before filing rather than trusting automated outputs blindly.

LIFO Outside the United States

LIFO is not accepted everywhere for crypto tax reporting.

For example, the HMRC cryptoassets pooling manual explains that the United Kingdom commonly uses pooling rules for cryptoassets where tokens are dealt in without identifying particular assets.

Under that approach, the U.K. can apply same-day rules, 30-day matching rules, and Section 104 pooling instead of a simple LIFO method.

Other countries may use average cost, FIFO, specific identification, or special local rules.

This is why a glossary definition should not be treated as a tax filing instruction.

The same trade history can produce different tax results in different countries.

Users should follow the rules of their own tax residence and reporting obligations.

Benefits of LIFO

The first benefit of LIFO is that it can match recent sales with recent purchases in a clear chronological way.

The second benefit is that it may reduce current taxable gains in rising markets when recent lots have higher cost basis.

The third benefit is that it can reflect a trader’s preference to keep older long-term holdings untouched.

The fourth benefit is that it can be easier to explain than more optimized methods when records are clean.

The fifth benefit is that it can support structured trading plans when applied consistently and properly documented.

These benefits depend on local rules and accurate records.

A method that looks useful on a spreadsheet may still fail if documentation is weak.

Risks of LIFO

The first risk is noncompliance if the method is not allowed or not properly documented in the user’s jurisdiction.

The second risk is short-term holding period treatment because LIFO often sells newer lots first.

The third risk is worse tax outcomes in falling markets if recent lots have lower basis than older lots.

The fourth risk is recordkeeping complexity across wallets, accounts, chains, bridges, and DeFi protocols.

The fifth risk is mismatch between user records and broker-reported forms.

The sixth risk is changing regulation, especially as digital asset reporting rules continue to mature.

Users should treat LIFO as a serious accounting choice, not as a casual after-the-fact adjustment.

How to Use LIFO Carefully

Start by confirming whether LIFO or a latest-acquired specific identification approach is allowed under local tax rules.

Record the method before the sale, disposal, or transfer when required.

Track each crypto lot by wallet or account, acquisition date and time, amount, cost basis, fees, and transaction hash.

Keep transfer records that show which lots moved between wallets.

Compare LIFO with FIFO, HIFO, and other permitted methods before choosing a strategy.

Review whether selling newer lots creates short-term gains or losses.

Work with a qualified tax professional when trades, DeFi activity, cross-chain transfers, or large balances are involved.

Common Misunderstandings About LIFO

One common misunderstanding is that LIFO means the blockchain actually sells the newest coins first.

The blockchain does not know a user’s tax-lot method in that way.

LIFO is a reporting and accounting convention, not a physical movement rule for tokens.

Another misunderstanding is that LIFO always reduces tax.

LIFO can reduce gains in some rising-market examples, but it can also reduce losses or create short-term treatment.

A third misunderstanding is that users can choose LIFO after seeing the year-end result.

In many systems, tax-lot identification must be made and documented before or at the time of the disposal.

FAQ

What does LIFO mean in crypto?

LIFO means Last In, First Out, and it treats the most recently acquired crypto units as the first units sold or disposed of.

Is LIFO a trading order type?

No, LIFO is a tax-lot and accounting method, not a trading order type like a limit order or market order.

How does LIFO affect crypto taxes?

LIFO affects which purchase lots are matched to a sale, which can change cost basis, gain or loss, and holding period.

Is LIFO always better than FIFO?

No, LIFO can be better or worse depending on price history, holding period, tax rates, and local rules.

Does LIFO sell the newest coins onchain?

No, LIFO is a recordkeeping method and does not change how tokens move on the blockchain.

Can U.S. crypto users use LIFO?

U.S. users may be able to use a latest-acquired specific identification approach when requirements are satisfied, but they should confirm current rules and documentation needs.

What happens if no specific identification is made?

Under current IRS guidance, the default rule generally treats digital asset units as sold in order from the earliest acquisition date.

Does the U.K. allow LIFO for crypto?

The U.K. generally applies cryptoasset pooling and matching rules rather than a simple LIFO method for many fungible cryptoassets.

What records are needed for LIFO?

Useful records include acquisition date and time, amount, cost basis, fees, wallet or account, transaction hash, sale details, and documented lot-selection instructions.

Should beginners use LIFO?

Beginners should use LIFO only after confirming that it is allowed, properly documented, supported by records, and suitable for their tax situation.

Conclusion

LIFO (Last In, First Out) is a crypto cost basis method that treats the newest acquired units as sold first.

It can materially change reported gains, losses, and holding periods when a user acquired the same digital asset at different times and prices.

LIFO may reduce current gains in rising markets when recent lots have higher basis, but it can also create short-term treatment or produce worse results in other situations.

The method is especially sensitive to recordkeeping because users must know exactly when each lot was acquired, where it was held, and which units were disposed of.

In the United States, LIFO is best understood as a latest-acquired specific identification strategy that must fit current IRS rules and documentation requirements.

In other countries, rules may be very different, and some systems use pooling or average-cost approaches instead.

Crypto users should not choose LIFO only because it sounds tax-efficient.

They should compare it with FIFO, HIFO, and other permitted methods, then confirm the choice with accurate records and professional guidance.

In crypto, LIFO is simple in concept but demanding in practice because every wallet, transfer, fee, and transaction can affect the final calculation.