Finance

Crypto Tax Guide: FIFO, LIFO & Cost Basis Explained

A practical overview of US cryptocurrency taxation, cost basis matching methods, and how to summarize gains and losses before filing season.

11 min read
Disclaimer: This information is for educational purposes only and should not replace professional financial or tax advice. Consult a qualified advisor for your specific situation.

How the IRS Treats Crypto

The IRS classifies virtual currency as property, not currency. That means general capital gains rules apply when you dispose of crypto. Income events—mining rewards, staking, airdrops, payment for services—may be taxed as ordinary income at fair market value when received.

Common Taxable Events

  • Selling crypto for USD (or any fiat)
  • Trading one coin for another (e.g., BTC → ETH)
  • Using crypto to buy goods or services
  • Receiving crypto as payment, mining, staking, or airdrop income

FIFO, LIFO & Average Cost

When you sell part of a position bought at different prices, you must match the sale to purchase lots:

FIFO (First In, First Out)

Uses your oldest purchases first. Often increases gain in rising markets.

LIFO (Last In, First Out)

Uses newest purchases first. Can change gain/loss versus FIFO.

Average Cost

Blends remaining purchase prices. Simpler but not always allowed for all assets.

Holding period (short vs long term) still matters for rate selection once gain is calculated.

Records to Keep

  • Exchange CSV exports and trade history
  • On-chain wallet transaction logs with USD values at time of trade
  • Transfer records between wallets and exchanges
  • Documentation for forks, airdrops, and staking rewards

How to Estimate Gains & Losses

Enter buys and sells into our crypto tax calculator and choose FIFO, LIFO, or average cost. The tool totals proceeds, cost basis, gains, and losses—it does not apply tax rates. For a single sale estimate, use the capital gains calculator.

Frequently Asked Questions

Is cryptocurrency taxed in the US?

Yes. The IRS treats cryptocurrency as property. Selling, trading, spending, or earning crypto can trigger capital gains or income tax depending on the event.

What is FIFO vs LIFO for crypto?

FIFO matches sales to your oldest purchases first; LIFO uses newest purchases first. Average cost blends remaining lots. Your allowable method may depend on IRS rules and record-keeping—confirm with a tax professional.

Does holding crypto create a tax bill?

Simply holding crypto is usually not taxable. Disposing of it (sell, swap, spend) or receiving it as income (mining, staking, airdrops) generally is.

Can crypto losses reduce my tax?

Capital losses can offset capital gains. Net losses may offset up to $3,000 of ordinary income per year with excess carried forward, subject to current IRS rules.

Summarize Your Crypto Gains

Free FIFO, LIFO, and average cost basis calculator for buy and sell transactions.

Open Crypto Tax Calculator