Crypto Cost Basis: FIFO, HIFO and Specific ID Explained (2026)

Updated October 21, 2026 · Tax year 2026

Cost basis is what you paid for crypto, including purchase fees. When you sell, swap or spend coins, your gain or loss is the proceeds minus the cost basis of the specific units disposed of. Which units count depends on the method: FIFO (first in, first out) applies by default; specific identification lets you choose units, which includes approaches such as HIFO (highest cost first) when you keep adequate records. Since January 1, 2025, basis must be tracked per wallet or account.

Key Takeaways

What Goes Into Cost Basis

Acquired byCost basis
Buying with dollarsPrice paid + fees
Swapping another coinDollar value of what you gave up (or received) at the time
Staking, mining, airdropsFair market value when received (taxed as income)
GiftGenerally the giver’s basis (carryover)
InheritanceFair market value at the date of death (stepped up)

FIFO vs HIFO vs LIFO: Same Trades, Different Tax

You bought 1 BTC at $30,000 in 2023 and 1 BTC at $90,000 in 2026, then sold 1 BTC for $100,000 in 2026.

MethodLot soldGainTerm
FIFO2023 lot$70,000Long-term
HIFO2026 lot$10,000Short-term
LIFO2026 lot$10,000Short-term

HIFO cuts today’s gain but leaves low-basis coins for later, and short-term gains are taxed at higher rates, so the “best” method depends on your situation. The crypto capital gains calculator compares methods on your own file.

The Per-Wallet Rule

Before 2025 many investors pooled all their coins into one universal basis. From January 1, 2025, units are matched within each wallet or account. Moving coins between your own wallets keeps their original basis and purchase date; record the transfer so the basis follows the coins. Checklist: crypto tax records for self-custody wallets.

Brokers and Form 1099-DA

Brokers report proceeds for sales from 2025 and basis for covered assets acquired from 2026, using FIFO unless you give them standing instructions to use another method. If your own method differs from the broker’s, report your figures and keep records that support them. More: Form 1099-DA explained.

Missing Basis

If you cannot document basis, the IRS can treat it as zero. Rebuild it from exchange exports, bank and card statements, emails and on-chain history. Guidance on identifying units is in IRS FAQs on virtual currency transactions.

Frequently Asked Questions

What is cost basis in crypto?

Cost basis is what you paid for a coin, including fees. When you sell or swap, your gain or loss is the proceeds minus the cost basis of the units you disposed of.

Which cost basis method should I use for crypto?

The IRS allows specific identification if you can identify the units you sell; otherwise first-in, first-out (FIFO) applies. Methods such as HIFO are forms of specific identification and need adequate records.

What is the per-wallet cost basis rule?

Since January 1, 2025, cost basis must be tracked separately for each wallet or account. Units sold from one wallet are matched only with units held in that wallet.

What happens if I do not know my cost basis?

Without records the IRS may treat basis as zero, making the whole sale taxable. Rebuild basis from exchange exports, bank records and blockchain history.

Official sources cited on this page

This page is general information, not tax advice. See our methodology for sources and how we check figures.