Home Features Pricing FAQ Blog Help Privacy Policy Terms of Service
Beginner Education

Crypto Cost Basis Explained: FIFO vs Average Cost

Learn the difference between FIFO and average cost for crypto taxes. Simple examples, a comparison table, and how Coinlio handles cost basis calculation.

← All posts
Beginner Education 5 min read
Share this article:

When you sell crypto, you owe taxes on the gain — the difference between what you paid and what you sold for. But what you "paid" isn't always simple. If you bought Bitcoin three times at three different prices, which purchase price counts? That's where cost basis methods come in. The two most common methods are FIFO and average cost.

If you bought Bitcoin three times at three different prices, which purchase price counts? That's where cost basis methods come in.


What is cost basis?

Cost basis is the original price you paid for an asset, plus any fees. When you sell, your taxable gain (or loss) is:

Gain = Sale Price − Cost Basis

If you bought 1 ETH for $2,000 and sold it for $3,000, your gain is $1,000. Simple. But what if you bought ETH multiple times at different prices? The cost basis method you use changes how much tax you owe.

📝 Note
Cost basis = what you paid + fees. The method you choose to calculate it directly affects your tax bill.

FIFO explained (First In, First Out)

FIFO means you sell the coins you bought first. Think of it like a queue — the oldest purchase gets sold first.

FIFO example

Say you made three Bitcoin purchases:

  1. January: Buy 0.5 BTC at $40,000 ($20,000 total)
  2. March: Buy 0.5 BTC at $50,000 ($25,000 total)
  3. June: Buy 0.5 BTC at $45,000 ($22,500 total)

Now you sell 0.5 BTC in September for $55,000. Under FIFO, you sell the January batch first (the oldest). Your cost basis is $20,000. Your gain is $55,000 − $20,000 = $35,000.

If you sold another 0.5 BTC, the next batch (March) would be used — cost basis $25,000.

💡 Tip
FIFO in a rising market means your oldest (cheapest) coins are sold first — resulting in higher taxable gains.

Average cost explained

The average cost method calculates a single average price across all your purchases. Every coin has the same cost basis — no matter when you bought it.

Average cost example

Same three purchases:

You sell 0.5 BTC for $55,000. Under average cost, your cost basis is 0.5 × $45,000 = $22,500. Your gain is $55,000 − $22,500 = $32,500.

Notice the difference: FIFO gave a $35,000 gain. Average cost gave a $32,500 gain. Same trade, different tax bill.

Same trade, different tax bill: FIFO = $35,000 gain. Average cost = $32,500 gain. The method you choose matters.

FIFO vs average cost: side by side

FIFOAverage Cost
How it worksSells oldest coins firstUses average price of all coins
ComplexityMore complex (tracks each lot)Simpler (one number)
Tax impact (rising market)Higher gains (oldest = cheapest)Lower gains (averaged out)
Tax impact (falling market)Lower gains (oldest = most expensive)Higher gains (averaged out)
Best forMarkets that went down since first buyMarkets that went up since first buy
US (IRS)Accepted (default for stocks)Accepted for crypto
UK (HMRC)Not standard for cryptoRequired for most crypto
GermanyFIFO requiredNot standard
Australia (ATO)AcceptedAccepted

Which method is better for taxes?

It depends on your situation and your country.

The key rule: pick one method and use it consistently. Switching between methods year to year can cause problems with tax authorities.

⚠️ Warning
Pick one cost basis method and stick with it. Switching between methods year to year can cause problems with tax authorities.

How Coinlio handles cost basis

Coinlio currently uses the average cost method for all cost basis calculations. This is the simpler method and works for most users in the US, UK, and Australia.

FIFO and LIFO (Last In, First Out) support is planned for a future update. When available, you'll be able to choose your preferred method in settings — and Coinlio will recalculate your P&L and tax reports automatically.

For now, if you need FIFO specifically (German investors, for example), note that Coinlio's tax reports will use average cost. You may want to verify with a local tax tool or accountant.


The bottom line

Cost basis isn't complicated once you see a few examples. FIFO sells your oldest coins first — which can mean bigger gains in a rising market. Average cost smooths everything out — simpler and often better in a bull market. Check your country's rules, pick a method, and let your tracker do the math.

FIFO sells oldest coins first (bigger gains in rising markets). Average cost smooths it out (simpler, often better in bull markets). Check your country's rules and let your tracker do the math.

This article is for educational purposes only and does not constitute tax or financial advice. Consult a qualified tax professional for your specific situation.

Coinlio calculates your cost basis automatically — try it free with 3 portfolios. <a href="https://apps.apple.com/app/coinlio/id6761177479">Download on the App Store</a>.

Try Coinlio Free

3 portfolios, unlimited assets, zero data selling. Download now on the App Store.

Try Coinlio Free →
Link copied!