Start with your transaction history

Before you can calculate capital gains or losses, you need a complete record of every crypto event. Tax authorities view blockchain data as permanent and public. The IRS uses sophisticated chain analysis tools, and contracts with firms like Chainalysis, to trace transactions across wallets and exchanges [src-serp-2]. If your records are incomplete, you are left guessing. That guesswork often leads to underreporting or missed deductions.

The goal here is to gather raw data from every source where you held or traded assets. This includes centralized exchanges, decentralized wallets, and peer-to-peer platforms. You are building an audit trail. Without it, you cannot prove the cost basis of an asset sold years ago.

gov tracking crypto
1
Export data from centralized exchanges

Log into each exchange where you traded. Navigate to the tax or reporting section. Download transaction history CSVs for every year you held assets. Ensure the export includes timestamps, asset types, amounts, and USD values at the time of transaction.

gov tracking crypto
2
Export data from wallets and DeFi protocols

For non-custodial wallets, use block explorers or portfolio trackers to generate transaction histories. This includes swaps on decentralized exchanges (DEXs), staking rewards, and NFT transfers. These events are often missed in exchange exports but are taxable events in many jurisdictions [src-serp-1].

The Compliance Horizon
3
Reconcile and clean the data

Combine all exports into a single spreadsheet. Remove duplicate entries and verify that your starting balance matches your earliest known holdings. Flag any transactions with missing USD values for manual calculation. This cleaned dataset is your foundation for tax forms.

Once you have this unified history, you are ready to classify each transaction. But without this step, any classification is built on sand. Authorities can see the blockchain; they expect you to have done the same work.

Calculate gains using FIFO or specific ID

The IRS requires you to report crypto transactions on your tax return, and the method you choose to identify which coins you sold directly impacts your tax bill. You generally have two primary accounting methods: First-In, First-Out (FIFO) and Specific Identification. Choosing the right one depends on your trading frequency and how meticulously you track your holdings.

First-In, First-Out (FIFO)

FIFO is the default method for many exchanges and the easiest to manage if you don’t keep detailed records of individual purchases. Under FIFO, when you sell crypto, the tax authority assumes you are selling the oldest coins you acquired first.

This method is straightforward because it requires minimal bookkeeping. However, it can result in higher taxable gains if your asset prices have generally risen over time, as you are matching current sales against your earliest, lowest-cost purchases. It is a safe, conservative choice for casual investors who hold assets for long periods.

Specific Identification

Specific Identification allows you to choose exactly which units of crypto you are selling when you make a trade. If you bought Bitcoin in January, March, and June, you can specify that the sale in July came from the June purchase. This method offers maximum flexibility, potentially allowing you to minimize capital gains by selling coins with higher cost bases or to harvest losses by selling specific losing positions.

To use this method, you must maintain rigorous records. The IRS requires that you identify the specific assets sold at the time of the transaction and retain documentation proving this identification. If you cannot prove which units were sold, the IRS may default to FIFO, which could work against you.

Comparing the Methods

The table below outlines the practical differences between these two approaches to help you decide which fits your workflow.

FeatureFIFOSpecific ID
Record KeepingLowHigh
Tax ControlNoneFull
ComplexitySimpleComplex
Best ForLong-term holdersActive traders

Tools to Simplify Tracking

Because crypto tax compliance requires precise tracking, many users rely on specialized software to automate the calculation process. These tools connect to your exchange accounts, pull transaction history, and apply your chosen accounting method (FIFO or Specific ID) to generate a tax report. Using dedicated software reduces the risk of human error and ensures you have the necessary documentation if audited.

Handle staking rewards and airdrops

Staking rewards and airdrops are not free money in the eyes of the tax code; they are taxable income. The Internal Revenue Service treats these events as ordinary income, meaning you must report them at their fair market value on the date you received them irs.gov/filing/digital-assets.

Staking rewards

When you stake crypto, the network pays you rewards for validating transactions. These rewards are taxable as soon as they hit your wallet. The value is determined by the USD price at the exact moment of receipt. This value becomes your cost basis for future sales.

Airdrops and hard forks

Airdrops and hard forks are also taxable events. If you receive new tokens because you held a specific asset, the fair market value of those new tokens is your income. Like staking, this value sets your cost basis.

Record keeping

Keep detailed records of every reward and airdrop. Note the date, time, token amount, and USD value. This data is essential for calculating capital gains or losses when you eventually sell or trade these assets.

Avoid common reporting mistakes

Even careful taxpayers trip up when crypto reporting gets complicated. The IRS treats digital assets as property, which means every swap, transfer, or staking reward can trigger a taxable event. If you miss these interactions, you risk audits or penalties. Think of your crypto activity like a ledger that never closes—every transaction leaves a permanent mark on the blockchain.

Ignoring DeFi and staking rewards

Many users forget to report income from decentralized finance (DeFi) protocols or staking rewards. The IRS views these as ordinary income at the fair market value when received. Failing to include them is a common oversight that tax software often misses. Always log the date, value, and source of every reward.

Misclassifying transfers

Moving crypto between your own wallets is not a taxable event, but it must still be reported to show the flow of assets. Mixing up transfers with sales can lead to inflated capital gains calculations. Clearly label internal movements in your records to avoid confusion during an audit.

Overlooking airdrops and hard forks

Airdrops and hard forks can create new taxable income if you have control over the new tokens. The tax treatment depends on whether the IRS considers the event a distribution of new property or a mere split. When in doubt, treat received tokens as income at their fair market value upon receipt.

gov tracking crypto

Using the wrong cost basis method

Choosing an incorrect cost basis method, such as FIFO when you intended LIFO, can change your tax liability significantly. Once you file, the method you use for a specific transaction generally cannot be changed. Document your chosen method and apply it consistently across all similar transactions.

  • Verify all exchange forms for completeness
  • Reconcile wallet balances with transaction history
  • Confirm cost basis method applied consistently
  • Log all DeFi, staking, and airdrop income

The government tracks Bitcoin and other cryptocurrencies using sophisticated chain analysis tools. Agencies like the IRS contract with firms like Chainalysis to trace transactions across wallets and exchanges. Because blockchain data is public and permanent, your activity is easier to trace than you might think. Stay precise to stay compliant.

Prepare documentation for audits

If the IRS or HMRC flags your return, you need proof that your numbers are correct. Tax authorities can trace blockchain transactions, so your job is to make their job easy. Organize your records now so you can produce them quickly if asked.

Gather transaction records

Start by exporting your full transaction history from every exchange and wallet you used. This includes buys, sells, swaps, and staking rewards. You need dates, amounts, and fair market values at the time of each transaction. The IRS requires you to report digital asset transactions on your tax return, so having a complete ledger is non-negotiable [src-serp-2].

Calculate gains and losses

Use your records to calculate the capital gain or loss for each taxable event. Match the cost basis (what you paid) against the proceeds (what you received). If you hold records in multiple jurisdictions, ensure you understand local reporting rules. For example, UK guidance clarifies when you need to pay tax on cryptoassets [src-serp-1].

Store records securely

Keep these documents for at least three to seven years, depending on your country’s statute of limitations. Store them in a secure, backed-up location. If an auditor asks for proof, you should be able to provide a clear, itemized list within days.