Crypto Cost Basis Guide: Which Method Saves Your Tax Bill?

A photo of our CEO, Chris Herbst who has degrees in both in accounting and computer science - the very tools needed to handle crypto tax reporting correctly.
By Chris Herbst

Guides

Managing Director at global crypto tax reporting firm, CountDeFi & CH Consulting
GTP, CIBA
Category:
Updated:
Update Due:
Compliance & Data
March 5, 2026
November 1, 2026
Master crypto cost basis with our 2026 guide. Learn how IRS Form 1099-DA and wallet-by-wallet rules affect your taxes. Avoid zero-basis traps and audit notices

Every crypto tax problem I see usuallly starts in the same place: cost basis.

I'm Chris Herbst, founder of CountDeFi. We've been doing forensic crypto tax work since 2017, and I can tell you that the single biggest driver of overpaid taxes, IRS notices, and failed audits is wrong cost basis. And the reason it's wrong, in the vast majority of cases, is that someone tried to do it themselves with software they didn't fully understand.

This isn't a knock on the software. Tax software is useful. But they're only as good as the data you feed them and the decisions you make inside them. If you don't understand how crypto cost basis works, what breaks it, and what the IRS actually expects, you'll generate a report that looks complete but isn't. And starting with 2025 sales (reported on Form 1099-DA during the 2026 filing season), wrong basis doesn't just cost you money. It triggers IRS notices.

For the 2025 tax year, brokers aren't required to report cost basis on 1099-DA, so taxpayers must maintain their own basis records. Mandatory basis reporting only begins for "covered securities," defined as digital assets acquired on or after January 1, 2026, and held on the same broker platform. Anything you bought before 2026, or transferred onto a platform from a private wallet, is "noncovered," meaning brokers may never be required to report its basis. That leaves a massive recordkeeping burden squarely on you for the foreseeable future.

The practical consequence: for 2025, the IRS receives a 1099-DA showing your proceeds but no basis. If you don't supply a documented basis on your Form 8949, the IRS may assume basis of zero, making your entire proceeds look like taxable gain. That's the primary driver of the mismatch notices I keep warning about.

What Is Crypto Cost Basis and Why Does It Matter?

  • Cost basis is what you originally paid for a crypto asset, including fees. It determines your taxable gain or loss when you sell.
  • Wrong basis means wrong gain. Overstated basis undertaxes you. Understated basis overtaxes you. Both create problems.
  • With 1099-DA reporting proceeds but not basis for 2025 transactions, your cost basis documentation is the only thing standing between you and an inflated tax bill.

IRS-Approved Cost Basis Methods for Crypto

  • FIFO (First-In, First-Out): Sells your oldest units first. The IRS default when you can't adequately identify specific units.
  • Specific Identification: You choose exactly which units to sell. Requires adequate identification and defensible, lot-level documentation.
  • HIFO (Highest-In, First-Out): Sells your highest-cost units first. A tax optimization strategy implemented through Specific Identification.
  • LIFO (Last-In, First-Out): Sells your most recently acquired units first. Also implemented through Specific Identification.

Note: HIFO and LIFO are not separately named IRS methods. They are strategies applied through Specific Identification, which means they carry the same documentation requirements. Whatever method you use, it must be consistent and well-documented, and starting in 2025, it applies per wallet or account under the IRS's post-2024 framework.

The Basic Math

When you sell Bitcoin for $50,000 and your cost basis is $35,000, your taxable gain is $15,000. Simple enough. But what if you bought that Bitcoin across four purchases over two years, moved it between three wallets, and sold portions at different times? Now you need to know which specific units you sold, what you paid for each, and whether the holding period was short-term or long-term.

That's where crypto cost basis gets complicated. And that's where DIY tax reporting breaks down.

Why Cost Basis Matters to the IRS

The IRS treats crypto as property for tax purposes. When you sell property, you're taxed on the profit, not the proceeds. Cost basis is how you prove what you paid, so the IRS can tax only what you gained. Without it, the IRS has no way to distinguish a $50,000 sale that netted you $2,000 from one that netted you $50,000. And since you're the one claiming the deduction against proceeds, the burden of proof falls on you.

Because most crypto investors buy the same asset multiple times at different prices, the IRS allows several methods for determining which units you're selling and at what cost. The primary framework is Specific Identification (you choose which lots to sell) with FIFO as the default when you can't adequately identify specific units. Some taxpayers also use strategies like HIFO or LIFO as forms of specific identification. Each method produces a different tax outcome from the same set of transactions, which is why choosing the right one, and applying it correctly, matters so much.

Crypto Cost Basis Method: FIFO (First-In, First-Out)

  • FIFO sells the oldest units first. If you bought Bitcoin at $10,000 in 2019 and again at $60,000 in 2024, FIFO sells the $10,000 units first.
  • This is the IRS default when you can't adequately identify which specific units were disposed of.
  • Under the IRS's post-2024 framework (Rev. Proc. 2024-28), FIFO applies per wallet, not across your entire portfolio.

How FIFO Works

FIFO is straightforward: the first units you bought are the first units you sell. You don't choose which lots to dispose of. The software (or your records) simply works chronologically through your acquisitions.

When FIFO Works Well For Crypto Tax

In a bear market or a period of declining prices, FIFO can work in your favor. If your earliest purchases were at higher prices and you're selling at lower prices, FIFO naturally produces larger losses or smaller gains. It's also the simplest method to implement and defend, which is why it's the fallback when specific identification isn't possible.

FIFO also tends to convert more gains into long-term (held over one year), which are taxed at lower capital gains rates. If you've been holding since 2019 or 2020, FIFO will pull those old, long-term lots first.

When FIFO Hurts

In a bull market, FIFO can be expensive. If you bought Bitcoin at $4,000 in 2019 and $65,000 in 2024, and you sell at $95,000, FIFO forces you to sell the $4,000 lot first. That's a $91,000 gain instead of a $30,000 gain. If you have the records to use Specific Identification, you'd likely want to sell the higher-cost lot instead.

I had a client who'd been accumulating Ethereum since 2018 across dozens of purchases. He sold a portion in late 2024 during a price spike. His software defaulted to FIFO, which pulled his oldest lots at $200 per ETH. His gains were enormous. When we switched to Specific Identification (he had the records to support it), we were able to select higher-cost lots and reduce his taxable gain by over $40,000.

Crypto Cost Basis Method: Specific Identification

  • Specific Identification lets you choose exactly which units you're selling. This gives you the most control over your tax outcome.
  • The IRS allows this method if you can adequately identify the specific units disposed of.
  • It requires meticulous recordkeeping: you must document which lots were sold in each transaction, at the time of the transaction.

How Specific Identification Works

Instead of defaulting to chronological order, you designate which specific units (by acquisition date and cost) are being sold. Selling 1 BTC? You pick the lot. Maybe it's the one you bought at $62,000 last March, not the one you bought at $8,000 in 2020.

This is the method that gives you the most flexibility to manage your tax bill.

When Specific Identification Benefits Crypto Tax

In a bull market, Specific Identification is powerful. You can select the highest-cost lots to minimize gains (this strategy is sometimes called HIFO, Highest-In, First-Out). You can also strategically select lots to balance short-term and long-term gains, or to harvest losses on specific positions while keeping others open.

We worked with a client who had 47 separate Ethereum purchase lots across 2020 through 2024, ranging from $1,100 to $3,800 per ETH. She sold a portion at $3,500 in a partial exit. Using Specific Identification, we selected lots purchased above $3,500, generating a small capital loss instead of the $60,000+ gain FIFO would have produced. Completely legal, fully documented, and it saved her roughly $15,000 in tax.

When Specific Identification Gets Difficult

The catch is record-keeping. Specific Identification requires adequate identification and defensible, lot-level documentation for each disposal. With the wallet-by-wallet framework now in effect, you can only identify units within the wallet or account where the sale occurs. If your records aren't clean enough to trace individual lots, you can't use this method, and FIFO applies by default.

One important nuance for 2025: Notice 2025-7 provides temporary relief because many brokers don't yet have the technology to accept specific lot instructions through their platforms. For 2025 transactions, the IRS allows you to make your lot identifications on your own books and records rather than communicating them directly to the broker at the time of sale. This is a meaningful safe harbor for DIY reporters, but it still requires you to maintain contemporaneous, defensible records of which lots you selected for each disposal.

This is one of the most common places DIY reporting fails. Someone selects HIFO in their tax software without understanding that Specific Identification requires provable lot-level tracking. The software generates a favorable report, but if audited, the taxpayer can't substantiate which specific units were sold. At that point, the IRS can recompute using FIFO, and the tax bill changes dramatically.

Crypto Cost Basis Method: LIFO (Last-In, First-Out)

  • LIFO sells the most recently acquired units first. It's the opposite of FIFO.
  • LIFO is a form of Specific Identification. The IRS doesn't explicitly name "LIFO" as a standalone method for crypto, so it must be implemented through adequate identification of the specific units sold.
  • It requires the same documentation standard as any Specific Identification approach.

How LIFO Works

LIFO disposes of your newest purchases first. If you bought Bitcoin at $10,000 in 2019 and again at $90,000 in January 2025, and you sell at $95,000, LIFO sells the $90,000 lot. Your gain is $5,000 instead of the $85,000 gain FIFO would produce.

When LIFO Benefits Crypto Tax

In a steadily rising market where you're making frequent purchases, LIFO can dramatically reduce gains because your most recent purchases are closest to the current price. It's particularly useful for dollar-cost-average investors who buy regularly and sell occasionally.

When LIFO Hurts

In a falling market, LIFO works against you. Your most recent purchases are at higher prices, but if the market has dropped, you're selling at a loss against those high-cost lots. That might sound fine (harvesting losses), but it also means your oldest, cheapest lots remain in your portfolio. When the market recovers and you eventually sell those, the gains will be much larger.

LIFO also tends to produce more short-term gains (taxed at ordinary income rates) because the newest lots haven't been held for over a year. For high-income taxpayers, the difference between short-term and long-term capital gains rates can be significant.

Crypto Cost Basis Method: HIFO (Highest-In, First-Out)

  • HIFO sells the highest-cost units first, regardless of when they were purchased. It's designed to minimize taxable gains.
  • Like LIFO, HIFO is a strategy implemented through Specific Identification, not a separately named IRS method.
  • It produces the smallest possible gain (or largest loss) on any given sale, which is why it's popular with tax optimization software.

How HIFO Works

HIFO looks across all your lots in a given wallet and sells the one with the highest cost basis first. If you have Ethereum lots at $1,200, $2,800, and $3,600, and you sell at $3,500, HIFO selects the $3,600 lot. You realize a small loss instead of a large gain.

When HIFO Benefits Crypto Tax

HIFO is the most tax-efficient strategy in almost any market condition where you have varied acquisition costs. It's particularly powerful for long-term investors who accumulated through multiple market cycles. The wider the spread between your cheapest and most expensive lots, the more HIFO saves.

I see this most often with clients who bought Bitcoin or Ethereum in 2017-2018, then again in 2021 near the peak, then again in 2022 during the crash. They have lots ranging from $3,000 to $65,000. HIFO lets them sell the $65,000 lots first, realizing minimal gains or actual losses, while preserving the $3,000 lots for later.

When HIFO Creates Problems

HIFO front-loads your highest-cost lots. Once those are gone, everything remaining in your portfolio has a low basis. If you eventually liquidate entirely, you'll face larger gains on the remaining positions. HIFO doesn't eliminate tax. It defers it.

The bigger risk is documentation. HIFO requires you to prove, for every single sale, which specific lot was selected and why it was the highest-cost unit available in that wallet at the time of the transaction. If your records can't support that level of granularity, the method falls apart under audit.

The Wallet-by-Wallet Rule Changes Everything

  • From January 1, 2025, the IRS framework moves away from "universal wallet" tracking. Rev. Proc. 2024-28 provides a safe harbor to transition your historical, pooled basis into wallet- or account-based tracking.
  • You can no longer pool all your Bitcoin across Coinbase, Kraken, and a Ledger into one universal basis.
  • Whichever method you use (FIFO, Specific ID, HIFO, LIFO), it applies within each wallet independently.

This is a major change that most DIY reporters haven't accounted for. If you hold 2 BTC on Coinbase (bought at $30,000) and 1 BTC on a Ledger (bought at $60,000), and you sell the Coinbase BTC at $95,000, your basis is the Coinbase lot: $30,000. You can't reach into your Ledger and use the $60,000 basis to reduce the gain. Each wallet is its own universe.

One detail worth noting: to use the safe harbor's "Global Allocation" method for transitioning historical pooled basis into wallet-level tracking, taxpayers generally needed to have their methodology documented and an inventory snapshot taken as of January 1, 2025. If you missed that window, you may need professional help to establish a defensible allocation now.

For investors with assets spread across multiple platforms, this makes cost basis method selection even more consequential. The "right" method may differ by wallet depending on what lots each wallet holds.

How DIY Crypto Calculations Cost Basis Errors Happen

  • Incomplete transaction data creates phantom gains the software can't correct.
  • Unreconciled wallet transfers break cost basis chains, making assets look like they were acquired for nothing.
  • DeFi activity that isn't properly classified can trigger gains or losses that shouldn't exist.

Incomplete Transaction Data

This is the error I see most often. To calculate correct crypto cost basis, the software needs a complete transaction history for every asset in every wallet. If you're missing even one leg of a transaction, the software fills the gap with assumptions, and those assumptions are almost always wrong.

I had a client, a marketing director in Austin, who'd been filing her own crypto taxes for three years using off-the-shelf software. She'd connected her Coinbase and Kraken accounts but forgotten about a MetaMask wallet where she'd bought $22,000 worth of Ethereum in 2020. When she sold that ETH on Coinbase in 2023, the software had no record of the original purchase. It treated the basis as zero. Her report showed $22,000 in gains that didn't exist.

She'd overpaid by roughly $5,200 in federal tax alone. We reconstructed the acquisition from blockchain data, amended her returns, and got it corrected. But three years of overpayment could have been avoided if the data had been complete from the start.

Wallet Transfer Errors

Moving crypto between your own wallets is not a taxable event. But if the software doesn't recognize a transfer as a transfer, it treats the withdrawal as a disposal and the deposit as a new acquisition with no basis.

The result: your cost basis chain breaks. The asset that cost you $40,000 now shows a basis of zero in the receiving wallet. When you sell, the software calculates gain on the full amount.

We see this constantly. A client moved 3 BTC from Coinbase to a Ledger hardware wallet in 2021. The Coinbase CSV showed a withdrawal. The Ledger had no purchase record. When he sold two years later, his DIY report showed $180,000 in proceeds with zero basis. His actual gain was about $45,000. The difference was $135,000 in phantom gains, and a tax bill that was roughly $30,000 too high.

Reconciling transfers is tedious, manual work. It requires matching withdrawal timestamps to deposit timestamps across platforms, confirming wallet addresses, and ensuring the software classifies each pair correctly. Most DIY reporters skip this step entirely. That's where the damage happens.

DeFi and Liquidity Pool Misclassification

DeFi is where DIY crypto cost basis reporting falls apart most dramatically. Many DeFi actions, especially token swaps, can be taxable disposals. Others, like liquidity provision, wrapping, and bridging, can be fact-dependent and may create taxable income or gains depending on how the transaction is structured. For context, most practitioners treat a 1:1 "burn and mint" bridge (like moving ETH from Ethereum to Arbitrum) as a non-taxable transfer, but any bridge that requires a swap into a different liquidity token is generally a taxable event. There's no formal IRS guidance yet on these distinctions, which is exactly why they're so dangerous for DIY reporters.

The problem is that most tax software doesn't automatically know what a given smart contract interaction was. It sees tokens leaving your wallet and tokens arriving. Without proper classification, it may treat a liquidity pool deposit as a sale (triggering a taxable event that may not exist) or miss a swap entirely (understating your actual disposals).

I worked with a client who'd been providing liquidity on Uniswap and Curve for 18 months. His DIY software had classified every LP token receipt as income and every withdrawal as a sale. The result was double taxation on nearly every position. His self-prepared report showed $67,000 in gains. After we reclassified every transaction using on-chain data and protocol context, his actual gain was closer to $19,000.

Staking and Airdrop Basis Errors

When you receive Solana staking rewards or a Cardano airdrop, that's generally taxable as ordinary income at fair market value when you gain dominion and control over the tokens (per Revenue Ruling 2023-14). The fair market value at receipt becomes your cost basis for that asset.

Critically, Notice 2024-57 currently exempts brokers from having to issue a 1099-DA for staking transactions specifically. That means your exchange won't report your staking income to the IRS, and it won't appear on any form they send you. If you're a DIY reporter relying solely on exchange-provided forms, this income is invisible to your process but not to the IRS's broader enforcement tools.

If you don't record that value at the time of receipt, two things go wrong. First, you may underreport your ordinary income. Second, when you later sell those tokens, your cost basis is zero instead of the value at receipt, so you pay capital gains tax on the full sale amount. You end up taxed twice on the same economic gain.

One of our clients had accumulated over $38,000 in Solana staking rewards across two years. Her DIY software had captured the rewards but hadn't assigned fair market values at receipt. When she sold, her report showed $38,000 in capital gains with zero basis. We pulled historical staking data from on-chain records, assigned values at each receipt date, and reduced her capital gains by the full $38,000 basis amount.

Why "Generate Report" Is Not the Same as "Accurate Report"

  • Tax software automates calculations. It doesn't verify your data, reconcile your transfers, or classify your DeFi activity.
  • The average crypto investor with multi-platform, multi-wallet activity needs a human review before filing.
  • An inaccurate report filed on time is worse than a correct report filed late.

The Software Gap

Every major crypto tax tool does the same fundamental thing: it takes your transaction data, applies a cost basis method, and produces a Form 8949. That math is usually correct. What's often wrong is the input.

The software can't know about wallets you haven't connected. It can't distinguish a transfer from a sale if the data isn't labeled correctly. It can't determine whether a DeFi interaction was a swap, a liquidity deposit, or a bridge without protocol-level context. And it can't flag that your staking rewards need fair market values assigned at the moment of receipt.

These are judgment calls. They require understanding both the tax rules and the crypto activity. That's the gap between generating a report and producing an accurate one.

What Correct Crypto Cost Basis Looks Like

When a client comes to CountDeFi, the first thing we do is audit the data, not the tax. We trace every wallet, reconcile every transfer, classify every DeFi interaction, and verify that cost basis flows correctly from acquisition through disposal. Our Precision 7™ System is built specifically to handle missing or incomplete crypto transaction data.

The result a forensic reconstruction that accounts for every unit, every transfer, and every basis assignment. When the IRS asks how you arrived at your numbers, you have an answer backed by data, not a screenshot of a "generate report" button.

FAQs: Crypto Cost Basis and DIY Reporting

What is crypto cost basis?
Cost basis is what you originally paid for a crypto asset, including transaction fees. It's subtracted from your proceeds when you sell to determine your taxable gain or loss. Every line item on Form 8949 requires a documented cost basis.

Why does my crypto tax software show higher gains than I expected?
Usually because of incomplete data (missing wallets or transactions), unreconciled transfers (which break the basis chain), or DeFi activity that's been misclassified. The software's math is correct given the inputs. The inputs are what's wrong.

Can I use HIFO to minimize my crypto tax bill?
Some taxpayers use HIFO as a form of specific identification, which can reduce gains by selling highest-cost units first. But you must be able to adequately identify which specific units were disposed of, apply the method consistently, and document everything. If you can't identify specific units, FIFO generally applies as the default.

What is the wallet-by-wallet basis rule?
From January 1, 2025, the IRS framework moves away from "universal wallet" tracking. Rev. Proc. 2024-28 provides a safe harbor to transition your historical, pooled basis into wallet- or account-based tracking. This means each wallet effectively has its own cost basis, and transfers between wallets need proper documentation to maintain basis continuity.

What if I already filed with incorrect cost basis?
You can amend your return. If you overpaid tax due to understated basis, you may be owed a refund. If you understated gains, correcting proactively is far better than waiting for the IRS to flag a mismatch via a CP2000 notice.

Is it worth hiring a specialist for a small portfolio?

It depends on complexity, not portfolio size. If you traded on one exchange, never touched DeFi, and have clean records, DIY may work fine. If you've used multiple wallets, moved assets between platforms, or engaged in any DeFi activity, the cost basis risks increase quickly. A free call with my team can help you assess whether your situation needs professional attention.

Official IRS Resources

Chris Herbst is the founder of CountDeFi, a crypto tax specialist with degrees in both accounting and computer science, and a registered Tax Professional (GTP, CIBA). This article is for educational purposes only and does not constitute tax, legal, or investment advice. Consult a qualified tax professional for guidance specific to your situation.

Let's get your crypto taxes done.

Book a free, no-obligation exploratory call with us.