πŸ‡ΊπŸ‡Έ USA Tax Guide Β· Cost Basis

Crypto Cost Basis Methods Explained: FIFO, HIFO, LIFO & Specific Identification (2026)

The method you use to calculate your crypto cost basis can change your tax bill by thousands of dollars on the same trades. Here’s what the IRS actually allows in 2026 β€” including the critical distinction most guides get wrong about HIFO and LIFO.

I'm a developer, not a tax professional. This guide is researched from IRS notices, final regulations, and verified 2026 sources (linked throughout) but hasn't been reviewed by a CPA. Cost basis decisions have real compliance implications β€” verify before filing.

1. What crypto cost basis is and why it matters

YourΒ cost basis is the original value of a crypto asset for tax purposes β€” typically the purchase price plus any transaction fees paid at acquisition. When you dispose of a crypto asset, your taxable gain or loss is calculated as:

The formula

Capital gain (or loss) = Disposal proceeds βˆ’ Cost basis

If you bought 1 BTC for $30,000 (including fees) and later sold for $50,000, your capital gain is $20,000. But if you've bought the same asset multiple times at different prices β€” which most investors have β€” you need a method to determine which units you're treating as sold, and at what cost.

This is where cost basis methods come in. Because the same asset bought at different times has different costs, the method you choose determines which purchase lots are relieved when you sell β€” which directly affects how much gain you recognise, whether it’s short-term or long-term, and therefore how much tax you owe. The same trades, with different cost basis methods, can produce materially different tax bills.

2. What methods the IRS actually allows in 2026

This is where most crypto tax guides β€” and most crypto tax software interfaces β€” create serious confusion. Here is the accurate, IRS-compliant picture:
'
MethodIRS statusDocumentation required
FIFO (First-In, First-Out)Permitted β€” IRS defaultNone beyond normal records
Specific IdentificationPermitted β€” requires documentationContemporaneous lot-level records required
HIFO (Highest-In, First-Out)Not a standalone method β€” a Specific ID strategySame as Specific Identification
LIFO (Last-In, First-Out)Not a standalone method β€” a Specific ID strategySame as Specific Identification
Average Cost BasisNot permitted for US cryptoCannot be used

The most common misconception β€” HIFO and LIFO are not separate IRS methods

Most crypto tax software presents FIFO, LIFO, and HIFO as three separate, equally valid options in a dropdown menu. This is technically inaccurate. The IRS recognises two methods for crypto cost basis: FIFO and Specific Identification. HIFO and LIFO are lot-selection strategies executed within a valid Specific Identification framework. Choosing HIFO in your tax software without maintaining the underlying lot-level documentation that Specific ID requires does not give you a defensible position β€” if audited, the IRS can recompute your gains using FIFO and the difference could be substantial.

3. FIFO β€” the IRS default method

FIFO stands for First-In, First-Out. Under this method, when you sell crypto, the IRS treats the oldest units you acquired as the ones being sold first.
FIFO is the default. β€” if you don’t actively document which specific lots you’re selling, FIFO applies automatically. Since 2025, it applies on a per-wallet basis: the oldest units within each specific wallet or exchange account are sold first.

When FIFO works in your favour

If you've held older units long enough to qualify for long-term treatment (more than 366 days), FIFO sells those units first β€” locking in the lower long-term CGT rate. In a flat or moderately rising market where your older units have a reasonable cost basis, FIFO can produce good tax outcomes without the documentation burden of Specific Identification.

When FIFO works against you

In a rising market where you've accumulated positions over several years, FIFO sells your oldest, cheapest units first β€” typically your largest gains. If those units are still long-term (held 366+ days), the rate is lower, but the gain is larger. Investors who bought large amounts of BTC in 2019-2021 at low prices and have added to their position more recently will often find HIFO (within Specific ID) produces a significantly better outcome than FIFO.

4. Specific Identification β€” and what HIFO and LIFO actually are

Specific Identification (Specific ID) is the alternative to FIFO. Under Specific ID, you choose exactly which units (lots) you’re treating as sold, rather than defaulting to the oldest. This gives you control over the tax outcome β€” but it comes with strict documentation requirements.
To validly use Specific ID, you must have contemporaneous records showing:
  • The date and time each unit was acquired
  • Your cost basis and the fair market value at acquisition for each unit
  • The date and time each unit was sold or disposed of
  • The fair market value of each unit at disposal
  • Which specific lot was designated for disposal β€” documentedΒ before or at the time of the sale, not retroactively when filing

The retroactive identification trap

Before 2025, some investors applied Specific ID retrospectively at year-end β€” reviewing all transactions and choosing the most tax-efficient lot assignment after the fact. This is no longer permitted under Rev. Proc. 2024-28. Lot identification must now be established contemporaneously β€” at or before the time of disposal β€” and reflected in your records before you file. Selecting HIFO in tax software after the fact is not sufficient if you can't produce contemporaneous records proving you designated those specific lots at the time of sale.

HIFO within Specific ID: You designate the lots with the highest cost basis as the ones sold first. This minimises your realised gain on each sale β€” typically the most tax-efficient approach in a rising market. But it only works if you have the documentation to prove you chose those lots before selling.
LIFO within Specific ID: You designate the most recently acquired lots as the ones sold first. LIFO doesn’t always minimise the dollar amount of your gain β€” but it can be useful for managing holding periods. Selling recently acquired lots (which are likely short-term) first can preserve your older lots’ long-term status for future disposals.

Gain minimisation vs. holding period optimisation β€” they can conflict

HIFO minimises the immediate taxable gain by selling your highest-cost basis units first. But those units may have been acquired recently and are therefore short-term β€” taxed at ordinary income rates of up to 37%. A long-term lot with a lower cost basis might produce a larger gain but taxed at only 15%. Choosing between HIFO and FIFO isn't simply "which produces the smaller gain" β€” it's "which produces the lowest after-tax cost, accounting for both the gain amount and the applicable rate." Run the numbers for your specific bracket before defaulting to HIFO.

5. What is NOT allowed β€” the average cost basis trap

For stocks held in brokerage accounts, US investors can often use an average cost basis method β€” adding up all purchases and dividing by total units to get one average price per unit. This is straightforward and widely used for mutual funds.

Average cost basis is not permitted for US cryptocurrency

The IRS has not authorised average cost basis for digital assets. If you calculate your crypto gains using an average purchase price across all your holdings of a particular token, your tax reporting is incorrect and potentially underreports your gains in some years and overreports in others. Many crypto investors β€” particularly those who've come from stock investing β€” make this mistake without realising it. If you've been using average cost basis in a spreadsheet or via a method not supported by IRS guidance, speak with a tax professional about how to correct your historical reporting.

This is also relevant for UK investors who may be familiar with HMRC’s Section 104 pooling β€” which does function similarly to average cost basis. The US and UK use completely different cost basis frameworks. UK investors active in US crypto markets should not assume their HMRC method translates to IRS compliance.

6. The per-wallet rule β€” how it changes everything

Before 2025, many investors and most crypto tax software defaulted to a “universal wallet” approach β€” treating all holdings of the same crypto across every exchange, wallet, and cold storage device as a single pool, regardless of where the specific units were held.
This is no longer permitted. Under IRS final regulations effective January 1, 2025, cost basis must be tracked on a per-wallet and per-account basis.
ScenarioPer-wallet rule application
1 BTC on Coinbase + 1 BTC on KrakenTwo separate lots in two separate pools β€” cannot be combined for cost basis calculation
Sell 1 BTC on KrakenUse only lots held within Kraken to calculate the cost basis β€” cannot pull Coinbase lots
Transfer BTC from Coinbase to KrakenThe lot moves with the asset β€” cost basis and holding period of the specific units transferred must be tracked to their new wallet location
Multiple MetaMask addresses, same seed phraseTreated as one wallet β€” all addresses from the same seed phrase are one pool
Sub-accounts on the same exchangeIRS guidance is unclear β€” most professionals treat them as part of the same account

Transfers between wallets require cost basis tracking

When you move crypto between wallets you own, it's not a taxable event β€” but the cost basis of the specific units transferred must follow those units to their new location. Failing to track this means your records at the receiving wallet will have no basis data, creating a gap that could trigger an IRS mismatch notice when that exchange reports a sale on Form 1099-DA without a matching cost basis record.

7. IRS Notice 2026-20 β€” the relief still in effect this year

A significant practical issue emerged when the per-wallet and Specific ID rules first took effect: most centralized exchanges were not technically equipped to accept lot-specific instructions from customers at the point of sale. Under the permanent rules, failing to communicate your lot identification to the broker at or before the time of sale would default your transaction to FIFO β€” even if you had clear internal records showing you intended to sell a different lot.
IRS Notice 2025-7 temporarily waived the broker-notification requirement for 2025 transactions. In March 2026, the IRS issued Notice 2026-20, extending that relief through December 31, 2026.

What Notice 2026-20 means for you in 2026

Through December 31, 2026, you can use FIFO, HIFO, LIFO, or any other valid Specific Identification approach β€” and your own records control, even if they differ from what your exchange reports on Form 1099-DA. You do not need to notify your broker of your lot selection at the time of sale. However β€” your identification must still be recorded in your own books and records before the disposal. This relief removes the broker-notification requirement, not the contemporaneous-documentation requirement. If you claim HIFO but your records were assembled after the fact, the relief does not protect you.

This relief does not extend to self-custody wallets

Notice 2026-20's broker-notification relief applies only to transactions conducted through centralised brokers. For self-custody wallets (MetaMask, Ledger, Trezor, etc.), the standard Specific Identification documentation requirements apply in full β€” you must have contemporaneous records proving which lots you sold, with no broker notification relief available.

Source:Β IRS Notice 2026-20Β Β·Β IRS Notice 2025-7

8. Worked example: same trades, three methods, three different tax bills

You hold 3 ETH purchased at three different times in the same exchange wallet. ETH is now trading at $5,000 and you sell 1 ETH.

Your purchase lots β€” all in same wallet

Lot A β€” bought January 2024
$1,500 per ETH (long-term)
Lot B β€” bought March 2025
$3,200 per ETH (long-term)
Lot C β€” bought November 2025
$4,100 per ETH (short-term)
Selling price
$5,000 per ETH

Method 1 β€” FIFO (IRS default, sells Lot A first)

Cost basis used
$1,500 (Lot A)
Gain
$3,500
Holding period
Long-term (Lot A held 2+ years)
Tax at 15% long-term rate
$525
Tax owed
$525

Method 2 β€” HIFO within Specific ID (sells Lot C first β€” highest basis)

Cost basis used
$4,100 (Lot C)
Gain
$900
Holding period
Short-term (Lot C held <12 months)
Tax at 22% short-term rate (example bracket)
$198
Tax owed
$198

Method 3 β€” LIFO within Specific ID (sells Lot C first β€” most recent)

Same as HIFO in this case β€” Lot C is both most recent and highest basis
$198
Note: HIFO and LIFO produce different outcomes when the most recent lot is NOT the highest-cost lot
β€”

The key insight from this example

HIFO produced a $327 lower tax bill ($198 vs $525) β€” but the gain was taxed at the short-term rate because Lot C was recently acquired. At a higher income bracket (32% or 37%), the short-term rate on the smaller HIFO gain might actually exceed the long-term rate on the larger FIFO gain. For a taxpayer in the 37% bracket: FIFO would be $525 at 15% = $525. HIFO would be $900 at 37% = $333. HIFO still wins β€” but the margin narrows as the short-term rate rises. Always model both methods for your specific income level before deciding.

9. Frequently asked questions

Can I switch cost basis methods between tax years?
Yes β€” you can change your method from one tax year to the next without IRS approval. However, you cannot switch methods mid-year for the same asset in the same wallet. If you use FIFO for January through June transactions on a particular exchange, you must use FIFO for July through December on that same exchange in the same tax year. Also be careful: switching methods year-over-year can create inconsistencies in which lots remain β€” your remaining basis from year one becomes the starting point for year two, and method switches can cause errors if not handled carefully in your tax software.
Most crypto tax software presents HIFO, LIFO, and Specific ID as selectable options β€” but selecting HIFO in a dropdown does not automatically create the contemporaneous documentation required for valid Specific Identification. The software generates a report using HIFO logic, but if audited, you need to demonstrate that you designated those specific lots at or before the time of each sale. Whether your software generates and stores contemporaneous lot-identification records varies by platform. Check your platform’s documentation and, if using HIFO or LIFO, ensure you understand what records the software is actually creating and preserving.
Under IRS Notice 2026-20, your own contemporaneous records control through December 31, 2026 β€” even if they differ from the broker’s 1099-DA reporting. You report your own figures on Form 8949 and reconcile any differences. However, you must be prepared to explain and document the discrepancy if the IRS inquires. Keep all records showing which lots you sold, including dates, amounts, and basis calculations, and the reason for the difference from the broker’s reporting.
Yes β€” directly and significantly. Each lot has its own holding period from the day after acquisition. When you choose which lot to sell under Specific ID, you’re also choosing the holding period of that sale. Selling a lot acquired 8 months ago (short-term) vs. a lot acquired 18 months ago (long-term) are two completely different tax outcomes, regardless of the cost basis amount. Method selection is simultaneously a cost basis decision and a holding period decision.
Yes β€” since the per-wallet rule requires tracking cost basis separately per wallet and exchange, you can legitimately use FIFO on one exchange and HIFO (via Specific ID) on another. Each account is an independent tracking environment. However, you must apply the same method consistently within each wallet or account throughout the tax year β€” you cannot use FIFO for some trades and HIFO for others on the same exchange in the same year.
Continue reading