Cryptocurrency Tax

Crypto Cost Basis: FIFO vs HIFO Explained

Published 21 June 2026 · Reviewed & signed by a licensed professional
Crypto cost basis methods - Tranzesta guide

If you have traded, sold, or spent digital assets, understanding your crypto cost basis is the single most important step in calculating what you owe the IRS. Cost basis is what determines whether a transaction produces a taxable gain or a deductible loss, and the accounting method you choose can change your tax bill by thousands of dollars. With new reporting rules arriving, getting this right has never mattered more.

Your crypto cost basis is the original value of a digital asset for tax purposes, usually the price you paid plus fees. When you sell or dispose of the asset, your gain or loss equals the proceeds minus the cost basis. The accounting method you apply decides which units are sold first.

What crypto cost basis actually means

In plain terms, your cost basis is what you originally invested to acquire a coin or token, expressed in U.S. dollars at the time of acquisition. If you bought 1 ETH for $2,000 and paid a $20 transaction fee, your cost basis is generally $2,020. When you later dispose of that asset, the IRS treats it like property, not currency, so the same capital gains framework that applies to stocks applies to your tokens.

Acquisition events that establish basis include buying with fiat, receiving crypto as payment for goods or services, earning staking or mining rewards, and receiving an airdrop. The way you valued the asset when it came in becomes the figure you subtract later. Keeping that number accurate from day one is far easier than reconstructing it years afterward.

Why crypto cost basis drives your capital gains

Every taxable disposal, whether you sell for dollars, swap one token for another, or spend crypto on a purchase, triggers a capital gain or loss. The formula is straightforward: proceeds minus cost basis equals your gain or loss. A higher basis means a smaller gain and a lower tax bill; a lower basis means a larger gain and more tax.

Holding period matters too. Assets held one year or less produce short-term gains taxed at ordinary income rates, while assets held longer than a year qualify for lower long-term capital gains rates. Because each lot of crypto you bought may have a different purchase date and price, the method you use to match sold units to purchased units directly shapes both the size of the gain and whether it is short or long term. This is where accounting methods come in. For broader context on how the IRS treats digital assets, see our cryptocurrency tax resources.

FIFO: First-In, First-Out

FIFO assumes the first units you bought are the first units you sell. It is the most common default and the method many exchanges and tax tools apply automatically. In a rising market, FIFO tends to sell your oldest, lowest-cost coins first, which usually produces larger gains but also more often qualifies those gains as long-term.

FIFO is simple to apply and easy to defend in an audit because the ordering is mechanical. The trade-off is that it offers little flexibility to manage the size of a gain in any given year.

HIFO: Highest-In, First-Out

HIFO assumes you sell your highest-cost units first. Because it matches sales against your most expensive purchases, HIFO generally minimizes your reported gain in the current year, which can reduce your immediate tax. It is a variation of specific identification rather than a standalone IRS-named method, so it depends on your ability to specifically identify units.

HIFO can be powerful for active traders, but it demands rigorous records and may shift more of your gains into the short-term category. Tax-aware strategy across years is essential, which is where coordinated tax planning pays off.

Specific identification

Specific identification lets you choose exactly which units you are selling, provided you can document the acquisition date, time, basis, and disposal details of each unit. FIFO and HIFO are essentially ordering rules layered on top of this principle. The IRS permits specific identification only when you can adequately identify the units transferred, so the burden of proof sits with you.

This method offers the most control, allowing you to harvest losses or lock in long-term treatment selectively. The catch is documentation. Without contemporaneous, unit-level records, you cannot defend a specific identification position if challenged.

The recordkeeping each method requires

FIFO needs an ordered ledger of purchases with dates, amounts, and dollar basis. HIFO and specific identification need that plus the ability to point to the exact lot disposed of at the moment of each sale, including timestamps and the fair market value at acquisition. For every transaction you should retain the date and time, the asset and quantity, the USD value, fees paid, the wallet or exchange involved, and the resulting basis. These records are what stand between a clean filing and a costly reconstruction project.

The move toward wallet-by-wallet basis

Historically, many taxpayers tracked basis across all their holdings on a universal, pooled basis. The IRS has signaled a shift toward a per-wallet or per-account approach, meaning basis must be tracked separately for each wallet or account rather than pooled across all of them. This affects which units are deemed available to sell from a given location and can change your results materially. These rules on accounting methods and wallet-by-wallet basis are still evolving, so you should confirm the current requirements and any transition relief at IRS.gov digital assets guidance before finalizing your method.

How exchanges report and the 1099-DA direction

Reporting is changing significantly. The IRS has introduced Form 1099-DA for digital asset transactions, under which brokers and certain platforms will report proceeds and, in phases, cost basis information. As these forms roll out, the IRS will increasingly receive transaction data directly, making mismatches between your return and broker reporting more visible. Because the timing and scope of basis reporting are being phased in, verify the current effective dates and broker obligations at IRS.gov rather than relying on older summaries.

Tracking tools that keep your crypto cost basis accurate

Dedicated crypto tax software can import transactions from exchanges and wallets via API or CSV, apply your chosen accounting method consistently, and generate gain/loss reports and the forms you need. Tools commonly used include platforms that aggregate across multiple wallets and reconcile transfers so they are not mistaken for taxable sales. Whatever you use, treat the software output as a starting point: review it for missing basis, mislabeled transfers, and method consistency, and keep your own backup records.

Comparison and a worked example

Suppose you bought 1 BTC for $20,000 in January, another 1 BTC for $40,000 in June, and in December you sell 1 BTC for $50,000.

  • FIFO: sells the $20,000 coin first. Gain = $50,000 – $20,000 = $30,000 (long-term, held about 11 months would be short-term here, so confirm holding periods).
  • HIFO: sells the $40,000 coin first. Gain = $50,000 – $40,000 = $10,000.
  • Specific identification: you choose which coin, optimizing for gain size or holding period, provided your records support the choice.

The same sale produces a $30,000 gain under FIFO or a $10,000 gain under HIFO, a $20,000 difference in reported income from one decision. That is why method selection, applied consistently and backed by records, is central to managing your crypto tax outcome.

Mistakes to avoid

  • Treating crypto-to-crypto swaps as non-taxable. Trading one token for another is a taxable disposal that requires a basis calculation.
  • Ignoring fees. Acquisition fees generally add to basis and disposal fees reduce proceeds; omitting them overstates your gain.
  • Switching methods inconsistently. Jumping between FIFO and HIFO without proper records and consistency invites IRS scrutiny.
  • Pooling basis across wallets when per-wallet tracking is required under the evolving rules.
  • Failing to record fair market value for staking rewards, airdrops, and crypto received as income at the time received.
  • Reconstructing records at filing time. Years of missing data are difficult and expensive to rebuild accurately.

Frequently asked questions

What is crypto cost basis in simple terms?

Your crypto cost basis is the original dollar value of a digital asset, generally the purchase price plus acquisition fees. When you sell or dispose of the asset, you subtract the cost basis from the proceeds to find your taxable gain or loss.

Which accounting method is best, FIFO or HIFO?

There is no universal answer. FIFO is simpler and often produces long-term gains, while HIFO can minimize current-year gains but requires detailed records and may produce short-term gains. The right choice depends on your transactions, holding periods, and overall tax position.

Can I change my cost basis method each year?

Method consistency matters to the IRS, and changing approaches without adequate documentation can create problems. Because rules on accounting methods are evolving, confirm the current requirements on IRS.gov or work with a professional before switching.

Do exchanges calculate my cost basis for me?

Some platforms provide basis estimates, and the new Form 1099-DA will phase in broker reporting of proceeds and eventually basis. However, transfers between wallets and platforms often break the chain, so you remain responsible for accurate, complete records.

What is wallet-by-wallet basis?

It means tracking cost basis separately for each wallet or account rather than pooling all holdings together. The IRS is moving in this direction, but the rules are still evolving, so verify current guidance before applying any method.

Get your crypto cost basis right with Tranzesta

Digital asset taxation is complex and the rules are shifting quickly. Whether you are an active trader, a long-term holder, or earning crypto as income, our specialists help you choose and defend the right accounting method, clean up your records, and file with confidence across the U.S. and UK. Book a free consultation and let us protect your bottom line.

Disclaimer: This article is for general informational purposes only and does not constitute tax, legal, or financial advice. Cryptocurrency tax rules, including those governing accounting methods and wallet-by-wallet basis, are evolving; always confirm current rules on IRS.gov and consult a qualified professional regarding your specific situation.

This article is general information, not personalised tax advice. Tax rules change and depend on your circumstances — speak to a qualified professional in the relevant jurisdiction before acting. Tranzesta serves clients across the US, UK & UAE.

Talk to a real, signing professional

AI precision, human accountability — across the US, UK & UAE.

Book a free consultation