Cost Basis 101March 29, 2026

What Is Cost Basis and Why Every Crypto Trader Needs to Track It

Cost basis is the foundation of every crypto tax calculation. Here's what it means, how it works, and why getting it wrong can be costly.

Imagine waking up to see that a token in your portfolio dropped 48.6% in a single day — as CORE did on March 29, 2026, according to CoinGecko data. Or picture the opposite: riding Bittensor (TAO) up through a Jensen Huang-endorsed rally that pushed the broader ecosystem to $1.5 billion in token value. In both scenarios — the gut-punch loss and the euphoric gain — one number quietly determines your entire tax picture: your cost basis.

Most DeFi traders spend hours researching protocols, tracking TVL, and timing entries. But cost basis? It's an afterthought — until tax season arrives and the numbers don't add up. Let's fix that.

What Is Cost Basis?

Cost basis is, at its most basic level, what you paid for an asset. In the world of crypto, it generally includes the purchase price plus any fees you paid to acquire the asset — a principle established under general tax law and addressed directly in IRS Publication 551 (Basis of Assets).

For example:

  • You buy 1 ETH for $2,000 and pay a $15 network fee. Your cost basis is $2,015.
  • You swap USDC for SOL when SOL is trading at $120 and pay a $2 DEX fee. Your cost basis for that SOL is $122.
  • You receive 50 TAO tokens as a staking reward when each token is worth $40. Your cost basis is generally considered to be the fair market value at the time of receipt — in this case, $2,000 total — consistent with U.S. tax guidance that staking rewards are includable in gross income at fair market value upon receipt.

When you later sell, swap, or otherwise dispose of that asset, your taxable gain or loss is calculated as:

Sale Price − Cost Basis = Gain or Loss

That single formula — codified under IRC §1001 and detailed in IRS Publication 544 (Sales and Other Dispositions of Assets) — is the engine behind every crypto tax calculation you'll ever make.

Why Cost Basis Is More Complicated in Crypto

In traditional finance, cost basis tracking is relatively straightforward — your brokerage keeps records and sends you a 1099-B at year end. Crypto is a different world entirely.

Under IRS Notice 2014-21, the IRS confirmed that virtual currency is treated as property for U.S. federal tax purposes — meaning general tax principles applicable to property transactions apply to every crypto transaction you make. This property-based approach is not unique to the United States: HMRC in the UK and the ATO in Australia similarly treat crypto assets as capital property subject to gains and losses, and the OECD's Crypto-Asset Reporting Framework signals growing international consensus on these principles. Consider just how many taxable events a single DeFi user might generate in a week:

  1. Buying BTC on a centralized exchange
  2. Bridging that BTC to another chain
  3. Swapping tokens on a DEX
  4. Providing liquidity to a protocol like Aave — which currently holds over $23 billion in TVL across multiple chains
  5. Earning and compounding yield
  6. Withdrawing LP tokens back into constituent assets

Each of these steps can establish a new cost basis, reset an existing one, or trigger a gain or loss event. Without a systematic tracking approach, reconstructing this history at tax time is extraordinarily difficult.

The Four Main Cost Basis Accounting Methods

When you hold multiple lots of the same asset acquired at different prices, you need a consistent method to determine which coins you're selling first. Tax authorities generally recognize several approaches, though the specific methods available — and any formal election requirements — vary by jurisdiction. There are several methods commonly discussed by tax professionals:

1. FIFO — First In, First Out

Your oldest coins are treated as sold first. Under U.S. tax guidance, FIFO is the default method when a taxpayer does not specifically identify which units are sold, and many tax professionals consider it the most defensible approach when no election is made. In a market that trended up over time, FIFO typically results in higher gains because you're selling lower-cost-basis coins first.

2. LIFO — Last In, First Out

Your most recently purchased coins are treated as sold first. In a declining market, this can sometimes result in recognizing losses more quickly, though its applicability in crypto taxation is debated among professionals and varies by jurisdiction.

3. HIFO — Highest In, First Out

You sell your highest-cost-basis coins first, minimizing gains (or maximizing losses) at any given time. This is a popular optimization strategy among active traders, though it requires meticulous per-lot record-keeping to satisfy specific identification requirements under U.S. tax guidance.

4. Specific Identification

You manually designate exactly which lot of coins you're selling at the time of each transaction. U.S. tax guidance permits specific identification provided you can document the specific units — including the date and time acquired, their basis, and the date and time sold — at the time of disposal, not retroactively. This gives the most control but demands the most detailed record-keeping.

It's worth noting that the rules around these methods can vary significantly by country and have evolved over time. Many tax professionals recommend consulting a qualified crypto tax specialist to determine which method is appropriate for your situation.

How Crypto Events Affect Cost Basis

Beyond simple buy-and-sell transactions, a wide range of DeFi activities can affect your cost basis calculations in ways that aren't always intuitive.

Token Swaps

When you swap one token for another — say, PENGU for MON — many tax professionals interpret this as a disposal of the first asset and an acquisition of the second, consistent with the property treatment established under U.S. tax guidance and broadly adopted by tax authorities in other major jurisdictions. The cost basis of your new token is generally the fair market value at the time of the swap.

Staking and Yield Rewards

Tokens earned through staking or yield farming are typically treated as income at the fair market value when received, establishing that value as your cost basis for the newly acquired tokens. The IRS directly addressed this in Rev. Rul. 2023-14, which held that a cash-method taxpayer who receives cryptocurrency as a reward for staking must include the fair market value of those rewards in gross income in the taxable year of receipt. For protocols like Lido — which manages over $18 billion in staked assets — this creates a steady stream of small cost basis lots that accumulate over time.

Liquidity Pool Positions

Entering and exiting a liquidity pool involves depositing tokens (potentially a taxable swap under applicable property rules) and receiving LP tokens, then later burning those LP tokens to reclaim (potentially different amounts of) underlying assets. Each step may establish new cost basis figures consistent with general tax principles governing property transactions.

Airdrops and Hard Forks

Tokens received through airdrops are generally treated as ordinary income at fair market value at the time of receipt, establishing a cost basis at that value — a position held under U.S. tax guidance and broadly shared by tax authorities in other major jurisdictions. Hard forks are treated differently; tax authorities generally require taxpayers to recognize income when they receive new tokens with dominion and control, though subsequent interpretation has continued to evolve in most jurisdictions.

NFTs

The same property principles apply to NFTs. If you mint an NFT for 0.05 ETH (plus gas), that total ETH value at minting is your cost basis. If you later sell for 0.2 ETH, the gain is calculated against that original basis under the gain/loss recognition rules of IRC §1001 and equivalent provisions in other jurisdictions.

What Happens When You Don't Track Cost Basis?

The consequences of poor cost basis tracking range from inconvenient to genuinely expensive.

  • Overpaying taxes: Without documentation of what you paid, you may be forced to assume a $0 cost basis — meaning 100% of your sale proceeds are treated as a gain. Tax authorities generally require taxpayers to establish their own basis; an inability to do so can result in the full proceeds being treated as taxable.
  • Missing loss harvesting opportunities: If you don't know your cost basis, you can't make informed decisions about realizing losses to offset gains elsewhere in your portfolio. Note that U.S. wash-sale rules currently apply to securities, not crypto — though this is an area of active legislative attention.
  • Audit vulnerability: Inconsistent or undocumented cost basis figures are a red flag. Tax authorities expect taxpayers to maintain records sufficient to determine the basis and holding period for each unit — good record-keeping is your first line of defense.
  • Compounding errors across chains: In a multi-chain world — where assets flow between Ethereum, Solana, BNB Chain, and beyond — a single missing transaction can cascade into hundreds of incorrect downstream calculations, creating discrepancies that are difficult to explain under applicable property-transaction rules.

The Multi-Chain Challenge in 2026

The DeFi landscape today is deeply multi-chain. The top protocols by TVL — from Aave V3 at $23.47B to WBTC at $7.80B — span dozens of networks, according to DeFi Llama data as of March 29, 2026. An active DeFi trader might interact with five or more chains in a single week.

Each chain maintains its own transaction history, uses its own block explorer, and denominated gas fees in its own native token. Aggregating all of this into a coherent cost basis picture — as required under U.S. tax guidance and the equivalent standards set by HMRC and the ATO — manually is a significant undertaking, and it's exactly the problem that purpose-built tools are designed to solve.

Defitax was built specifically for this multi-chain reality. By connecting your wallets and exchange accounts, it aggregates your full transaction history across chains, applies your chosen cost basis method consistently, and surfaces the data you need to understand your tax position before you file.

Practical Takeaways

Start tracking now, not in April

The best time to set up cost basis tracking is when you make your first transaction. The second best time is today. The longer you wait, the harder reconstruction becomes — especially for chains with limited historical data availability or protocols that have migrated or shut down. Tax authorities' record-keeping requirements apply from the moment of each transaction.

Document your method and apply it consistently

Pick a cost basis accounting method — FIFO is the default under U.S. tax guidance when no specific identification is made — and apply it consistently across all your activity. Changing methods mid-year or mid-portfolio is generally not permitted without proper documentation and, in some jurisdictions, advance election.

Don't forget fees

Gas fees, trading fees, and bridge fees paid to acquire an asset generally add to your cost basis under applicable tax principles. Fees paid on the sale side generally reduce your proceeds. These small amounts add up significantly for active traders.

Treat every swap as a taxable event until advised otherwise

The conservative and generally accepted approach — grounded in IRS Notice 2014-21's property treatment and broadly mirrored by HMRC, the ATO, and other major tax authorities — is to treat token-for-token swaps as taxable disposals. If you're unsure, many tax professionals recommend erring on the side of reporting rather than not.

Reconcile regularly

Rather than scrambling at tax time, set a cadence — monthly or quarterly — to review your transaction history, flag unusual events (airdrops, LP exits, bridge transfers), and ensure your records satisfy the documentation standards required by your tax authority.

Cost basis might not be the most exciting topic in crypto. But in a market where a single token can swing 48% in a day — or where a well-timed exit from a rallying ecosystem token can generate life-changing returns — getting this number right is the difference between a tax bill that reflects reality and one that doesn't.

Sources

  1. https://www.irs.gov/publications/p551
  2. https://www.irs.gov/pub/irs-drop/n-14-21.pdf
  3. https://www.irs.gov/pub/irs-drop/rr-23-14.pdf
  4. https://www.law.cornell.edu/uscode/text/26/1001
  5. https://www.gov.uk/hmrc-internal-manuals/cryptoassets-manual
  6. https://www.ato.gov.au/individuals-and-families/investments-and-assets/crypto-asset-investments
  7. https://www.coindesk.com/tech/2026/03/25/bittensor-ecosystem-tokens-value-hit-usd1-5-billion-as-jensen-huang-endorsement-supports-tao-rally
  8. https://www.coindesk.com/tech/2026/03/29/inside-aave-s-governance-battle-as-defi-giant-prepares-for-upgrade
  9. https://defillama.com

This article is for informational purposes only and does not constitute legal, tax, or financial advice. Defitax is not a law firm, CPA, or licensed tax advisor. Always consult a qualified tax professional before making decisions based on this content.

Related Articles