Crypto Tax: HIFO vs FIFO Method Explained

Autor: Trading-Setup Editorial Team

Veröffentlicht:

Aktualisiert:

Kategorie: Trading Education

Zusammenfassung: Crypto tax liability depends on cost-basis lot selection, fees, holding periods, and jurisdictional rules; FIFO uses oldest lots, while LIFO uses newest permitted lots.

How Crypto Cost Basis Changes Your Taxable Gain

Crypto tax does not depend only on the price you receive. It also depends on which purchase lot is matched with the sale. That choice determines the cost basis assigned to the units disposed of and therefore changes the taxable gain or loss.

Consider three Bitcoin lots:

If you sell 0.5 BTC for $35,000, the matched lot creates one of three results:

The market price is the same in every case. Only the assigned lot changes. That is why tax reporting can look very different from the investor’s cash result.

Fees also matter. A purchase fee may increase the basis, while a selling fee may reduce the proceeds, depending on the applicable tax rules. Transfers between wallets usually do not create a disposal by themselves, but a swap from one crypto asset to another often does. Staking rewards, mining income, airdrops, and gifts can enter the tax calculation under separate rules, so they should not be mixed casually with ordinary purchase lots.

The timing of a sale can create a second difference. When the matched lot has been held for a shorter or longer period, the transaction may fall into a different tax category. In the United States, the one-year mark is especially important for federal capital-gain treatment. Other countries use different holding periods, pooling rules, or exemptions.

A useful way to review a planned sale is to ask:

Cost basis is therefore the bridge between a blockchain transaction and the number reported on a tax return. A small lot-selection difference can produce a large change in taxable income, especially after several purchases at sharply different prices.

FIFO: How First-In, First-Out Works

FIFO applies the oldest available purchase lot to a disposal first. The rule follows the acquisition date, not the wallet address, exchange account, or current market value. If several lots exist, the earliest lot is used until its quantity is exhausted. The next sale then moves to the next oldest lot.

For example, an investor holds three separate BTC lots:

A sale of 0.6 BTC uses the full March 2022 lot and 0.2 BTC from the October 2023 lot. The remaining inventory is 0.1 BTC from the October lot and 0.5 BTC from May 2024. This lot-by-lot movement is the practical core of FIFO.

FIFO is useful when an investor wants a clear chronological trail. Each disposal can be traced through the inventory in date order, which may simplify reconciliation across several accounts. It also prevents arbitrary selection of a newer lot when older units remain available, where the relevant tax rules require a default ordering method.

Partial sales need careful treatment. A disposal of 0.15 BTC does not remove an entire purchase if the original lot contained 0.4 BTC. Instead, the sold quantity is carved out of that lot, while the balance remains available for a later transaction. The same principle applies to assets bought in small recurring amounts.

FIFO can produce an unexpected result after a long period of price growth. The oldest units may have a much lower acquisition value than the current market price. Selling them can therefore expose a larger built-in gain than selling a newer lot would. The chronological rule is simple, but its tax effect is not always gentle.

Transfers require special care. Moving coins between wallets that belong to the same taxpayer may preserve the original acquisition date and cost data rather than creating a new FIFO lot. A transfer record should connect the outgoing units with the incoming units. Without that link, the same coins can appear to be sold twice or lose their original purchase history.

FIFO is not a universal legal rule. Some jurisdictions require a different pooling or matching system, and some permit a taxpayer to identify specific units instead. Its use must therefore be assessed under the applicable country and account rules.

For a reliable FIFO calculation, retain the following details for every lot:

Used correctly, FIFO is more than “sell the oldest coins.” It is a running inventory process that assigns each partial disposal to the earliest unmatched units and preserves the remainder for future reporting.

LIFO: When the Latest Purchase Is Sold First

LIFO can be useful when recent purchases carry a higher acquisition value than older holdings. It matches the newest available units to a disposal first, which may reduce the gain recognized at that moment. The result depends on the actual lot values, not simply on whether the market is rising.

Imagine an investor bought 0.6 ETH in three batches:

A sale of 0.2 ETH under LIFO matches the latest batch, acquired at $2,700 per coin. If the sale price is $3,000, the gain assigned to that disposal is $300. The older lots stay in the account for later transactions. This can preserve earlier, lower-cost units instead of using them immediately.

LIFO is not the same as choosing whichever transaction looks best after the sale. The ordering must be applied under a permitted tax method, and the selected lot must be identifiable. Depending on the jurisdiction, records may need the asset quantity, acquisition time, wallet or account reference, transaction ID, and the link between the selected lot and the disposal.

Exchange records may not show the full tax identity of a unit. A withdrawal can break the visible history, while a deposit may appear like a new holding even though it is not a new purchase. LIFO calculations across several platforms therefore need a unified transaction history, not separate spreadsheets that treat each account as an isolated pool.

The method can also change the character of the remaining inventory. By using newer lots first, older units remain available for future sales. That may affect the holding-period profile of later disposals. A lower gain today can therefore be paired with a larger gain later, a different holding period, or both.

LIFO may fit an investor who expects to sell newer holdings, wants to retain older units, and can prove the required lot selection. It is less suitable when the local tax system does not recognize the method or when the records cannot support unit-level matching. In that situation, a calculation that looks tidy may still be difficult to defend.

Before applying LIFO, check three points:

LIFO is therefore a sequencing choice with lasting effects. It can shape the tax result of the current sale, but it also rearranges which lots remain for the next one.

HIFO: Why the Highest-Cost Coins Are Used First

HIFO means matching a disposal with the available lot that has the highest cost per unit. It is a form of specific lot selection, not a rule based on the purchase date. The key question is which eligible lot carries the greatest basis at the time of the sale.

This approach is most useful when the same asset was acquired at widely different prices. For example, a trader may hold three ETH lots with unit costs of $900, $1,800, and $2,600. If the current sale price is $2,900, HIFO selects the $2,600 lot first. The selected lot leaves only a $300 gain per ETH, before applicable fees and adjustments.

HIFO can also select a lot that does not have the latest acquisition date. The newest purchase is not necessarily the most expensive one, especially after a volatile market period. A proper HIFO review compares the unit basis of all eligible lots rather than assuming that recent means costly.

When a sale covers more than one lot, the ranking continues. The highest-basis units are used first, followed by the next highest basis. If a lot is only partly used, its unused quantity keeps its original basis and remains available for a later disposal.

HIFO may be attractive when an investor wants to manage a large gain in a particular tax year, offset other gains, or avoid selling a low-basis lot during a sharp price rise. Selecting expensive units, however, removes those high-basis lots from the portfolio and leaves lower-basis units behind. Future disposals may then show larger gains.

The highest-cost lot is not always the best lot for the whole tax return. A lower current gain may come with a short holding period, while a slightly larger gain from another lot may qualify for more favorable treatment under local rules. HIFO should therefore be tested against both basis and holding-period effects.

For each HIFO selection, keep evidence showing:

In the United States, HIFO generally depends on acceptable specific identification and timely, consistent records. Rules can differ for pooled holdings, custodial accounts, transfers, and assets received as rewards.

HIFO is best viewed as a planning lens: it can reduce the gain attached to a chosen disposal while changing the tax profile of the inventory that remains.

Worked Example: Comparing FIFO, LIFO, and HIFO

Assume an investor buys 1.2 ETH in three separate lots:

The investor later sells 0.7 ETH for $3,000 per ETH. The sale proceeds are $2,100. The result changes because each method matches that sale with different units.

FIFO uses the oldest units first. It matches 0.4 ETH from the $1,200 lot and 0.3 ETH from the $2,000 lot. The assigned basis is $1,080:

0.4 × $1,200 + 0.3 × $2,000 = $1,080

The resulting gain is $1,020:

$2,100 − $1,080 = $1,020

LIFO starts with the newest units. It matches the full 0.3 ETH lot bought at $2,800 and 0.4 ETH from the $2,000 lot. The assigned basis is $1,640, producing a gain of $460.

HIFO ranks the lots by unit cost. It also uses the 0.3 ETH lot at $2,800, then takes 0.4 ETH from the $2,000 lot. In this example, HIFO and LIFO produce the same result because the newest lot also has the highest unit cost.

The comparison is:

The difference between FIFO and HIFO is $560 of recognized gain. This does not mean that $560 has disappeared. The unused units now carry different tax histories. Under FIFO, 0.2 ETH remains from the $2,000 lot and 0.3 ETH from the $2,800 lot. Under LIFO or HIFO, the remaining units include the lower-cost $1,200 lot. A later sale may therefore show a larger gain under LIFO or HIFO.

Now change the purchase prices without changing the dates:

For the same 0.7 ETH sale, FIFO still follows the dates. LIFO uses the final $2,000 lot first, while HIFO selects the $2,800 lot first. This shows why LIFO and HIFO should not be treated as synonyms. LIFO follows time; HIFO follows cost.

The example also reveals a practical issue: a method must be applied to quantities, not just to whole transactions. A partial sale can consume part of one lot and part of another. Rounding, fees, and token units can alter the final figures by small amounts, so calculations should retain full precision until the tax return is prepared.

Before filing, compare the result for each method with the applicable holding-period treatment and local rules. The lowest gain on paper is not always the lowest final tax bill.

When HIFO Can Lower Your Current Taxable Gain

HIFO can lower the gain reported for a current disposal when the selected lot has a much higher basis than the other eligible lots. This is most visible in a portfolio built through recurring purchases, market dips, and later entries at elevated prices.

Its value is not limited to a simple reduction in one transaction. HIFO can support year-end tax planning when an investor has several disposals to manage and wants to keep reported gains within a chosen range. For example, a taxpayer may sell part of a position, use high-basis lots first, and avoid pushing more income into a higher marginal bracket. The exact result depends on the country, tax year, and full income picture.

HIFO may also help when the investor has already realized gains elsewhere. A high-basis lot can reduce the net amount of gains reported for the year, while a low-basis lot would create a larger taxable figure. This can be especially relevant after a strong market move, when the gap between older and newer purchase prices is wide.

Consider a portfolio with 2 BTC available for sale:

If the investor sells 0.5 BTC for $55,000, selecting the $49,000 lot creates a $6,000 gain. Selecting the $18,000 lot would create a $37,000 gain. The difference is $31,000 of reported gain for the same sale price and quantity.

HIFO can be less attractive when a lower-basis lot has a valuable holding period. In some tax systems, selling that lot may qualify for a lower rate or a special exemption. A high-basis lot may reduce the nominal gain but still produce a worse final tax result if its holding period receives less favorable treatment.

Another limitation appears when the asset is sold at a loss. HIFO may use the lot with the smallest loss, while another eligible lot could create a larger loss. If the taxpayer can use losses against gains, the apparently “best” HIFO result may not be the most useful one.

Before choosing HIFO for a planned sale, compare:

HIFO lowers the current taxable gain only when the selected high-basis lot is legally valid, properly matched, and evaluated within the wider tax position. It is a planning choice, not an automatic tax saving.

How Holding Periods Affect the Method You Choose

The holding period can change the tax result even when two lots have similar costs. It measures how long the specific units were owned before disposal. The relevant period normally starts after acquisition and ends on the disposal date, but local rules can define the counting method differently.

This creates a trade-off when choosing a lot. A newer lot may have a higher cost and produce a smaller gain, while an older lot may already qualify for a lower long-term rate. The better choice is not always the lot with the highest basis. Compare the basis benefit with the rate that applies to that lot.

For U.S. federal tax, property held for one year or less is generally treated as short-term. Property held for more than one year is generally long-term. The exact rate then depends on taxable income and filing status. The one-year boundary is important: a sale one day too early can change the treatment.

For example, imagine two eligible lots:

The newer lot creates the smaller nominal gain. Yet the older lot could create the lower tax bill if the long-term rate is much lower than the investor’s ordinary income rate. A calculation based on gain alone misses that difference.

Timing can matter near the anniversary of a purchase. If there is no urgent need to sell, waiting until the lot passes the applicable long-term threshold may improve its tax treatment. Market risk remains, of course. A price drop during the waiting period can outweigh the tax benefit, so this is not a risk-free tactic.

Lot selection can also produce mixed holding periods in one disposal. A sale may draw units from several acquisitions, leaving part of the result short-term and part long-term. Each portion should be calculated separately rather than assigning one holding period to the whole transaction.

Watch for special rules that can interrupt a simple date count:

A sound comparison should show both the expected gain and the expected tax category for every eligible lot. In the United States, the Internal Revenue Service explains capital-asset holding periods in Topic No. 409.

The practical lesson is sharp: the best lot is the one that fits the full tax calculation, not automatically the oldest, newest, or most expensive unit.

Specific Identification and Recordkeeping Requirements

Specific identification requires more than knowing the purchase price. You must be able to show exactly which units were assigned to each disposal and preserve that link after the transaction is complete.

For U.S. taxpayers, the identification record should generally contain:

The timing of the instruction matters. A later spreadsheet entry may explain what happened, but it may not prove that the lot was identified when the sale occurred. Keep contemporaneous evidence, such as an exchange confirmation, order record, account statement, or signed internal allocation note.

Digital assets often move between platforms. A wallet transfer should be tied to the original acquisition record, with the quantity, transaction hash, sending address, receiving address, and network fee recorded. This creates an audit trail without treating the transfer as a fresh purchase.

Do not merge unlike records into one average figure when the chosen method needs lot-level data. A CSV file from an exchange may show trade quantity and price, while a blockchain explorer shows movement but not the original tax basis. Both records may be needed to reconstruct the chain of ownership.

Reconcile the inventory after each disposal. The total quantity acquired, transferred, sold, and still held should balance. Small gaps can come from network fees, token dust, failed transactions, or rounding. Investigate those gaps before preparing the tax return.

Keep a separate file for unusual events, including:

In the United States, IRS Revenue Procedure 2024-28 discusses transition rules for digital-asset basis allocation, including wallet and account information. The applicable rule can depend on the tax year and transaction type, so current official guidance should be checked before filing.

Preserve original exports, confirmations, wallet records, valuation evidence, and the final calculation used for the return. Do not rely on a dashboard alone. Platforms can change, close, or limit access, while tax records may need to support a position years later.

Country Rules: Why the Correct Method Depends on Your Tax System

The correct cost-basis method depends on local tax law. FIFO, LIFO, and HIFO are not universal accounting choices. A method accepted in one country may be restricted, irrelevant, or replaced by a pooling rule in another.

United States: Taxpayers may generally use specific identification when they can identify the units sold and support that choice with reliable records. This can make HIFO or LIFO possible. If no valid identification is made, the applicable default rule may apply. Current federal guidance should be checked for the tax year involved, because digital-asset reporting rules continue to develop.

United Kingdom: The U.K. does not normally use a simple FIFO or HIFO approach for all crypto disposals. Matching rules can apply to same-day acquisitions and purchases made within the following 30 days. Other holdings may fall into a Section 104 pool, where the allowable cost is calculated across the pooled asset. A U.K. investor who imports a U.S.-style HIFO calculation may therefore report the wrong basis.

Germany: The treatment can depend on whether the activity is private asset management, business activity, or another taxable category. Private disposals may involve a one-year holding-period rule and country-specific methods for identifying units. Frequent trading, lending, staking, and other activities can change the analysis. FIFO should not be assumed without checking the current facts and the relevant tax guidance.

Canada: Canada generally relies on an adjusted cost base rather than selecting the highest-cost or newest individual lot. The cost of identical properties is combined into an average basis. HIFO and LIFO may therefore have no direct role in the final calculation.

Cross-border taxpayers face an extra complication. A move to another country, a foreign exchange account, or a change in tax residence does not necessarily preserve the same basis method. The departure country may calculate a final disposal, while the new country may apply a different opening value or matching rule.

Before choosing a method, establish these points:

Use primary sources for the final position. The U.S. Internal Revenue Service, HM Revenue & Customs, the Canada Revenue Agency, and the German federal tax administration publish country-specific material. Those pages are useful starting points, but complex portfolios may still require professional advice.

The safest conclusion is straightforward: select the method only after identifying the governing tax system. A neat calculation based on the wrong country’s rules is still an incorrect tax calculation.

How to Choose Between FIFO, LIFO, and HIFO

Choose between FIFO, LIFO, and HIFO by matching the method to your legal options, tax goal, and ability to apply it consistently. A method that looks attractive in a single trade may be less useful across a full tax year.

Start with a legal screen. Confirm that your tax system accepts the method and that the asset is eligible for the relevant treatment. If local rules require pooling, same-day matching, or another calculation, do not force a U.S.-style lot method onto the data.

Next, define the decision goal for the year. Some investors want to reduce taxable income now. Others want to preserve older lots, realize losses, or avoid selling units with an unfavorable tax category. Those goals can point to different choices.

Do not compare methods by looking only at the current transaction. Run a full-year projection. Include planned sales, earlier disposals, available losses, expected income, and the lots that remain after each choice. This reveals whether a short-term benefit merely moves a larger gain into a later year.

Portfolio structure matters, too. A long-term holder with many wallets may value a rule that is easy to audit. An active trader with hundreds of partial fills may need a method that can handle precise quantity matching without unexplained gaps. The method should fit the data, not just the investor’s preference.

Use a decision sequence such as this:

  1. Identify the governing tax jurisdiction.
  2. Remove methods that are not legally available.
  3. List every eligible lot and its holding period.
  4. Model the tax result under each remaining method.
  5. Check the inventory left after the proposed disposals.
  6. Adopt the method only if the allocation can be supported by contemporaneous records.

Consistency is especially important. Switching methods whenever a sale produces a better-looking number can create an unreliable tax history and may conflict with local reporting rules. If circumstances change, document why the calculation changed and obtain advice before filing an amended or current return.

For a quick decision, ask one final question: Am I choosing the method for a defensible tax plan, or merely for the smallest number on today’s screen? The first is sound planning. The second can become an expensive shortcut.

Conclusion: Match the Method to Your Tax Goal and Keep Clear Records

The best method is the one that meets three tests: it is allowed where you file, it supports your real tax objective, and you can prove every allocation later. A lower figure for one sale is not enough. Think in tax years, not isolated trades.

Before finalizing a return, create a short review file that shows:

Separate tax calculations from trading records. Keep the original exchange exports, wallet data, valuation sources, and submitted reports in read-only form. Save the calculation version and date as well. This makes later corrections far easier than rebuilding the result from memory.

Review the records at least once before year-end and again before filing. Look for missing deposits, duplicate transactions, negative balances, unmatched transfers, and fees recorded in the wrong currency. These checks often reveal errors that a method comparison alone cannot find.

If the portfolio includes lending, staking, derivatives, wrapped tokens, or activity across several jurisdictions, a written review from a qualified tax professional is sensible. Ask for a clear answer on the specific transactions, not only a general opinion about FIFO or HIFO.

Tax rules and digital-asset reporting practices can change. For the United States, consult current IRS digital-asset guidance. For another country, use its tax authority’s latest publications and preserve the version used for your filing.

Bottom line: choose a lawful method that matches your actual objective, apply it without improvisation, and maintain an evidence trail that another person could follow. That discipline matters more than chasing a seemingly perfect result from one transaction.

This article provides general information, not personal tax advice.

Useful links on the topic