Gather all transaction history from every exchange and wallet you used (export CSVs or connect APIs). Import into crypto tax software (Koinly, CoinTracker, or TokenTax). Select your cost basis method (HIFO minimizes taxes for most people). Review the generated report for accuracy. File the resulting capital gains and income totals with your regular tax return. The software handles the hard part; you provide the data.

How to Calculate Your Crypto Taxes

4 min read

The short version

Crypto taxes are not complicated in concept (sell for more than you paid = owe tax on the gain). They are complicated in execution because you might have hundreds of transactions across multiple exchanges and wallets, each with different cost basis, and every swap counts as a taxable event. Tax software exists specifically to sort this mess into a number you put on your tax form.

How It Works

The process step by step. Step 1: List everywhere you had crypto activity this tax year. Every CEX account (Coinbase, Kraken, Binance), every wallet (MetaMask, hardware wallet), every DeFi protocol you interacted with. Miss one and your report is incomplete. Step 2: Export transaction history. CEXs: download CSV from transaction history or tax reports section. DeFi/wallets: crypto tax software reads directly from the blockchain using your wallet addresses (just paste your public addresses). Step 3: Import into tax software. Koinly, CoinTracker, and TokenTax all accept: CSV uploads from exchanges, direct API connections to exchanges, and wallet address scanning (paste address, software reads all on-chain activity). Step 4: Classify transactions. The software auto-classifies most transactions (buy, sell, swap, transfer). You may need to manually label: airdrops (income), staking rewards (income), gifts received (carryover basis), and lost/stolen funds (capital loss). Step 5: Choose cost basis method. HIFO (Highest In, First Out) typically minimizes taxes by selling your highest-cost lots first. FIFO is the default if you do not specify. Check your jurisdiction: UK requires average cost pooling, not FIFO/HIFO. Step 6: Generate tax report. The software produces: total capital gains/losses (short-term and long-term), total income from staking/airdrops/mining, and transaction-level detail for your records. Step 7: File. Report capital gains on Schedule D / Form 8949 (US), SA108 (UK), or equivalent. Income from staking/airdrops goes on your income tax return. Cost: Koinly free tier handles up to 10,000 transactions. Paid plans: $49-$279/year depending on transaction count. CoinTracker and TokenTax have similar pricing.

Filing 2024 taxes with 340 transactions across 3 exchanges

Your activity: Coinbase (120 transactions), Kraken (80 trades), MetaMask on Arbitrum (140 DeFi interactions including swaps, LP deposits, and staking claims). Step 1: Go to koinly.io, create free account. Step 2: Connect Coinbase API (Settings > API, read-only permissions). Connect Kraken API. Paste your MetaMask address for Ethereum and Arbitrum. Step 3: Koinly pulls everything and auto-classifies. It flags 12 transactions needing review: airdrop received (mark as income), LP deposit (mark as liquidity add, not a sell), bridge transfers (mark as transfer between own wallets). Fix these in 10 minutes. Step 4: Select HIFO cost basis. Step 5: Generate report. Results: $4,200 short-term capital gains, $1,800 long-term capital gains, $600 staking income. Total taxable: $6,600. At 24% combined rate: ~$1,584 owed. Step 6: Download Form 8949 and Schedule D from Koinly. Attach to your tax return or give to your CPA. Time spent: 45 minutes total. Cost: $99 (Koinly Hodler plan for 1,000 transactions).

What People Get Wrong

  • If I did not cash out to my bank, I do not owe taxes

    Every swap (ETH to USDC, BTC to ETH) is a taxable disposal in the US, UK, and EU regardless of whether dollars entered your bank account. DeFi activity (swaps, LP deposits that involve token conversion) creates taxable events too. Only holding and wallet-to-wallet transfers of the same asset are not taxable.

  • My exchange reports my taxes for me

    Exchanges report gross proceeds (what you sold for) but NOT your cost basis for assets transferred in. If you bought BTC on Coinbase, sent it to Kraken, then sold on Kraken, Kraken does not know what you paid. You are responsible for tracking basis across platforms. This is why tax software that aggregates all sources is essential.

  • Crypto taxes are too complex without a CPA

    For most retail users (under 1,000 transactions, no complex DeFi): tax software handles everything and produces ready-to-file forms for $49-$99. You only need a crypto-specialized CPA if you have: millions in gains, complex DeFi positions, business income from crypto, or international tax obligations. The software democratizes what used to require expensive professional help.

Sources & Further Reading

  • Koinly

    Crypto tax software with automatic transaction classification and form generation

  • CoinTracker

    Portfolio tracking and tax reporting with exchange API connections

  • IRS Digital Assets

    Official IRS guidance on cryptocurrency tax obligations

Questions People Also Ask

What if I have DeFi transactions the software cannot classify?
Manual review is sometimes needed for: complex vault interactions, cross-chain bridges (software may not link both sides), liquidity pool deposits/withdrawals (some software misclassifies as sells), and obscure protocol interactions. Most software lets you re-label transactions. Spend the 10-15 minutes fixing flagged items rather than ignoring them.
Can I do this retroactively for previous years?
Yes. You can amend previous tax returns (Form 1040-X in the US) to report crypto that was not included. The IRS statute of limitations is 3 years for most returns (6 for substantial underreporting). Filing late with amendments is better than not filing. Tax software can generate reports for any previous year given the transaction data.
What about staking rewards and airdrops?
Both are taxed as ordinary income at fair market value when you receive them (gain dominion and control). You then have a cost basis equal to that income amount. When you sell them later, you owe capital gains on any appreciation above that basis. Keep records of the token price at the exact time of receipt. Tax software timestamps and values these automatically from your on-chain history.

More in Practical Guides

See all →
Was this page helpful?

Page last checked