Home / Blog / US Cost Basis
US Cost Basis

FIFO vs LIFO vs HIFO: Crypto Cost Basis Methods 2026 (US Per-Wallet Rule)

Updated for the 2026 tax year · ~10 min read

You bought Bitcoin three times in 2024 — at $30,000, $50,000, and $70,000. In 2026 you sell one Bitcoin for $90,000. What is your taxable gain?

The answer depends entirely on which accounting method you use. Use FIFO and your gain is $60,000. Use HIFO and your gain is $20,000. Same sale, same proceeds — but a $40,000 difference in taxable income that could cost you over $10,000 in tax.

This is the world of crypto cost basis methods. Understanding FIFO, LIFO, and HIFO — and especially the 2025 per-wallet rule that changed everything — is one of the highest-leverage things a US crypto investor can learn. Here is the complete 2026 guide.

What is cost basis?

Cost basis is what you originally paid for a cryptocurrency, including fees. When you sell, swap, or spend it, your taxable gain is the proceeds minus the cost basis. Get this number wrong — or fail to track it — and you can end up paying tax on the full sale amount, which is almost always wrong.

The complication: most active crypto investors buy the same coin multiple times at different prices. When you later sell, the IRS needs to know which specific units you sold. That is what cost basis methods determine.

The three methods, explained simply

FIFO (First-In, First-Out)

The oldest units are treated as sold first. If you bought BTC in January, March, and June, then sold some in December, FIFO treats the January BTC as the one you sold.

FIFO is the IRS default. If you do not document anything else, the IRS assumes FIFO. In a rising market, FIFO usually produces the largest gain — because your oldest units have the lowest cost basis.

LIFO (Last-In, First-Out)

The newest units are treated as sold first. If you bought BTC in January and again in June, LIFO treats the June BTC as the one you sold. In a rising market, this generally produces a smaller gain than FIFO — the recent purchase has a higher cost basis than the old one.

HIFO (Highest-In, First-Out)

The most expensive units are treated as sold first — regardless of when you bought them. HIFO is the most tax-efficient method in most cases, because selling your highest-cost units produces the smallest gain (or largest loss).

The critical distinction the IRS makes

Important: Under IRS rules, FIFO is the only standalone method. HIFO and LIFO are not separate methods — they are lot-selection strategies used within a broader IRS-approved method called Specific Identification.

This sounds like a technicality but it matters hugely. To use HIFO or LIFO, you must qualify for Specific Identification, which requires:

Without that documentation, the IRS will default you to FIFO, no matter what method you intended to use. This catches many investors at audit time.

The 2025 per-wallet rule (this changed everything)

Starting January 1, 2025, the IRS requires cost basis tracking on a wallet-by-wallet and account-by-account basis. Before this, many investors used a “universal wallet” approach — treating all of their Bitcoin across every exchange and wallet as one pool. That is no longer allowed.

This was established in 2024 final regulations under § 1.1012-1(j) and applies to all crypto held by US taxpayers.

What this means in practice

If you hold Bitcoin on Coinbase, Kraken, and a hardware wallet:

If you transfer crypto between your own wallets, you carry the cost basis with it — but the receiving exchange usually shows “unknown basis” until you supply records.

Worked example: FIFO vs HIFO

Sara is a US freelance designer who bought Bitcoin three times in 2024, all on Coinbase:

In 2026, she sells 1 BTC at $100,000.

Under FIFO: Sara is treated as selling the January coin. Gain = $100,000 − $40,000 = $60,000 taxable gain.

Under HIFO (Specific ID): Sara identifies the September coin as the one sold. Gain = $100,000 − $80,000 = $20,000 taxable gain.

At a 22% marginal rate plus 5% state tax (27% effective), the difference is:

When FIFO might actually be better

HIFO is usually the lowest-tax option in the short term, but FIFO has a hidden advantage in the US: it tends to push your gains into long-term capital gains territory faster. Long-term gains (held over one year) are taxed at 0%, 15%, or 20% federally — much lower than short-term ordinary rates that can exceed 37%.

Sometimes the older lot you would sell under FIFO is already long-term, while the newer lots you would sell under HIFO are still short-term. In that case, FIFO can produce lower tax overall, even with a larger nominal gain. This is one of the situations where professional tax software (or a CPA) earns its fee.

Average cost: not allowed in the US

Some other countries (including Canada and the UK) use an averaging method — pooling all units of the same crypto into one average cost. The US does not allow average cost for crypto. Crypto is classified as property, not as a security like a mutual fund, so the averaging rule that applies to mutual funds does not apply here. US taxpayers must use FIFO or Specific Identification.

Form 1099-DA and the 2026 broker reporting era

Starting with 2025 transactions (filed in early 2026), brokers must issue Form 1099-DA reporting gross proceeds. For 2026 transactions onwards, brokers must also report adjusted cost basis for “covered” digital assets — meaning assets that were both acquired and held within the same broker account.

This dramatically increases the IRS's ability to match what you report against what brokers report. The era of casual crypto tax reporting is over. If your numbers do not line up with the 1099-DA the IRS receives, expect a notice.

How to choose and apply a method

  1. Decide before you trade. Specific Identification requires you to identify the lot before execution, not at tax time.
  2. Use the same method consistently within a wallet for the full year. You can change methods between years, but not mid-year within a single wallet.
  3. Keep contemporaneous records. Screenshots, exchange statements, transaction IDs, dates, and prices — archived as the year goes on, not reconstructed in April.
  4. Use software. If you have more than 20 transactions a year across multiple wallets, manual tracking is not realistic. Modern crypto tax tools (Koinly, CoinTracker, CoinLedger, ZenLedger, Recap, and others) automate the per-wallet cost basis rule and let you compare FIFO vs HIFO outcomes before filing.

Common cost-basis mistakes to avoid

Bottom line

FIFO is the IRS default and the simplest option. HIFO usually saves the most tax in the short term, but only if you have the records to support Specific Identification. As of 2025, all of this is applied per wallet — you cannot pool across exchanges. From 2026, brokers will report cost basis to the IRS via Form 1099-DA, making accuracy more important than ever.

The right method depends on your situation, but the wrong move is doing nothing — because doing nothing means FIFO with possibly missing basis, and that is the most expensive option of all. Use the calculator below to model your tax under different scenarios, and confirm your specific situation with a qualified CPA before filing.

Estimate your crypto tax in 30 seconds

Free, private, and updated for the 2026 tax year — US, Canada & UK.

Open the calculator →
Disclaimer: This article is general educational information for the 2026 tax year, not personal tax advice. Crypto tax rules are complex and change often. Always confirm your situation with a qualified CPA, accountant, or tax professional before filing.