How to Calculate Crypto Taxes (US, UK, India, Pakistan)
What counts as a taxable crypto event, how to calculate cost basis under FIFO, LIFO, and HIFO, and a practical workflow that keeps you out of trouble in April.
Crypto tax season is the moment most retail investors discover their record-keeping was inadequate. The IRS, HMRC, and India's Income Tax Department now have direct exchange-reporting requirements, and "I'll figure it out at the end of the year" almost guarantees a stressful April. This guide walks through what counts as a taxable event in crypto, how to calculate the tax owed on each one, and the workflow that keeps you out of trouble. This is general information, not tax advice — for your actual filing, work with a tax professional.
What counts as a taxable event
In most jurisdictions, the following are taxable:
- Selling crypto for fiat. Convert BTC to USD on Coinbase. Taxable disposal.
- Trading one crypto for another. Swap ETH for SOL on Uniswap. Taxable disposal of the ETH at the moment of the swap, even though no fiat changed hands.
- Spending crypto. Buy a coffee with BTC at a merchant. Taxable disposal of the BTC at the spot price at time of purchase.
- Receiving staking rewards or yield. Treated as ordinary income at the spot value when received (in the US, UK, India, and most EU countries).
- Receiving an airdrop or fork. Ordinary income at spot value when you have constructive receipt.
- Mining or validator rewards. Ordinary income at spot value when received.
- NFT sales. Capital gain/loss on the difference between mint or buy cost and sale price.
- Lending interest, liquidity-pool rewards. Ordinary income at the time of receipt.
What is not taxable in most places:
- Buying crypto with fiat.
- Holding crypto.
- Moving crypto between your own wallets.
- Sending crypto to yourself across chains (bridging).
- Receiving crypto as a gift below the gift threshold (US $18,000/person in 2024; UK varies).
The key insight: every time crypto leaves your possession or changes form into another asset, the tax engine looks at it. Just holding is fine. Doing anything else is reportable.
The two tax buckets
Tax authorities sort crypto events into two buckets with very different rates.
Capital gains. From selling, trading, or spending. Difference between cost basis and sale price.
- Short-term capital gains (held less than ~12 months in most jurisdictions): taxed at your ordinary income rate.
- Long-term capital gains (held longer): taxed at preferential rates (0%, 15%, 20% in the US depending on income; varies by country).
Ordinary income. From staking, mining, airdrops, lending interest, salary paid in crypto. Taxed at your regular income tax rate at the spot value when received. The cost basis for any subsequent sale becomes that initial spot value.
For US-specific brackets in 2024–25, our income tax calculator handles the federal-bracket math on ordinary income. Capital-gains-specific rates aren't modelled there — for those, the IRS's published 0/15/20% schedule applies based on total income.
India is the outlier: 30% flat tax on all crypto gains regardless of holding period, plus 1% TDS (Tax Deducted at Source) withheld at each transaction. No long-term preferential rate. Indian residents lose roughly a third of every profitable trade to tax.
How to calculate cost basis on multiple buys
This is where most retail filers get tripped up. If you bought BTC four times at different prices, your "buy price" for tax purposes isn't a single number. It's a weighted average — or it's the price of a specific lot depending on which accounting method you use.
FIFO (First-In, First-Out). Default in most jurisdictions. The oldest coins you bought are considered sold first. Maximises taxable gains in a rising market.
LIFO (Last-In, First-Out). Allowed in some countries. Newest coins sold first. Minimises gains in a rising market.
Specific identification (HIFO, etc.). You explicitly track each lot. Allowed in the US with proper documentation. Selling your highest-cost lot first (HIFO) minimises taxable gain.
A worked example, taken from our crypto profit guide:
| Purchase | Amount | Price | Cost | | --- | --- | --- | --- | | 1 | 0.10 BTC | $40,000 | $4,000 | | 2 | 0.20 BTC | $45,000 | $9,000 | | 3 | 0.15 BTC | $52,000 | $7,800 | | 4 | 0.05 BTC | $61,000 | $3,050 | | Total | 0.50 BTC | — | $23,850 |
You sell 0.3 BTC at $58,000. Total proceeds: $17,400.
- FIFO basis = 0.10 × $40k + 0.20 × $45k = $13,000. Gain = $4,400.
- LIFO basis = 0.05 × $61k + 0.15 × $52k + 0.10 × $45k = $15,350. Gain = $2,050.
- HIFO basis = 0.05 × $61k + 0.15 × $52k + 0.10 × $45k = $15,350. Same as LIFO here.
- Average cost basis = $47,700/BTC × 0.3 = $14,310. Gain = $3,090.
Same trade, four different reported gains. Pick a method, document it, stick with it. Switching mid-year creates problems.
The country-by-country quick reference
United States. All crypto disposals reported on Form 8949 + Schedule D. Each transaction is its own line item. The IRS introduced Form 1099-DA in 2025 — exchanges report basis to the IRS directly. You can no longer fly under the radar.
United Kingdom. Capital gains on disposals over the £3,000 annual exemption (2024–25). Pooling rules: all of the same type of crypto across all your holdings count as a single "Section 104 pool" with an averaged cost basis. The "same-day rule" and "30-day rule" override pooling for short-term in-and-out trades.
India. 30% flat tax on all crypto profits. 1% TDS withheld at every transaction over ₹50,000 (₹10,000 for some payer categories). Losses cannot be offset against any other income. Cannot be carried forward.
Pakistan. As of 2024, the FBR treats crypto profits as ordinary income, taxed at the slab rate matching your total income. Brackets in our tax calculator show what that looks like for typical income bands. Cryptocurrency itself is technically not a legal tender, but capital gains from trading it are still taxable.
Other jurisdictions. Germany has a 1-year hold rule that exempts long-term holders from any tax. Portugal exempts crypto held over a year. Switzerland generally taxes crypto as wealth tax, not income tax, for non-professional traders. Singapore has no capital gains tax at all. These vary enormously — always verify with a local CPA.
The practical workflow
The math is straightforward. The record-keeping is what kills people. A workable system:
1. Export trade history monthly. Every exchange you use, every wallet. Save CSVs in a single folder organised by year. Don't wait until April.
2. Pick an accounting method on day 1 and document it. Putting "FIFO" in a methodology.md file in your records folder is enough. The IRS allows you to use HIFO with proper documentation, but you must show consistent application.
3. Track every wallet-to-wallet transfer. These aren't taxable, but they confuse tax software if not labelled. A transfer from Coinbase to your Ledger looks identical to a sale unless you note it as a transfer.
4. Reconcile wallet balances quarterly. If your records say you should have 0.834 BTC but the wallet shows 0.831, find the gap before it becomes a year-end mystery.
5. Use crypto tax software for anything beyond ~20 transactions a year. CoinTracker, Koinly, ZenLedger, TokenTax. They all do roughly the same thing: ingest your CSVs and wallet addresses, classify each transaction, output a tax-ready report. Cost: $50–$400 per year depending on transaction volume. Cheaper than the alternative.
6. Save your cost-basis report from each year. Some tax software lets you carry forward unsold lots into the next year automatically; some don't. If you change software, you need the historical basis intact.
Common crypto tax mistakes
Treating swaps as non-events. "I only swapped, I didn't cash out." In US/UK/India, swaps are taxable. They generate realised gains or losses even with zero fiat involvement.
Ignoring staking rewards. Many retail stakers don't realise their rewards are ordinary income at the moment of receipt, with a fresh cost basis starting from that price. Sell those rewards later and you have a second taxable event on the appreciation.
Forgetting about gas fees on disposals. In some jurisdictions, the gas fee on a swap can be added to the cost basis of the new asset acquired (US). In others it's a separate deductible. Track gas separately so your software can apply the rule correctly.
Mishandling losses. In the US, capital losses offset capital gains, then up to $3,000 of ordinary income, with the rest carried forward. In India, losses don't offset anything. Get the rules right before you assume a "tax-loss harvesting" strategy will work in your jurisdiction.
Procrastinating wash-sale style rules. The US doesn't currently apply the 30-day wash-sale rule to crypto (it applies to stocks). That may change. Some countries do apply it. Don't assume the same rules across jurisdictions.
Reporting in the wrong currency. Every taxable event has to be reported in your tax jurisdiction's currency, using the spot rate at the time of the event. A swap on a DEX requires you to look up the dollar/pound/rupee value of both legs at the moment of the swap. Tax software does this automatically; manual tracking gets ugly fast.
When to call a CPA
The DIY approach works fine if you:
- Have under 50 transactions per year
- Only buy, hold, and occasionally sell
- Use one or two centralised exchanges
Bring in a CPA if you:
- Made over 200 transactions
- Used DeFi (LP positions, leveraged loans, yield farming)
- Have NFT trading volume
- Run a mining or staking operation as a business
- Live or earn in multiple countries
- Have any single year with capital gains over your country's "large taxpayer" threshold
The cost of a crypto-savvy CPA for a moderately complex return is $1,500–$5,000. The cost of getting it wrong and triggering an audit is substantially higher.
What this calculator handles
Our crypto profit calculator computes the gross P&L on individual trades — what you've gained or lost in dollars and percent, with fees included. It's the right tool for sanity-checking a single trade or modelling what you'd owe before committing to a sale.
For the country-level tax bracket math on your salary plus realised gains, the income tax calculator handles US/UK/India/Pakistan slabs.
Neither tool replaces a full tax-software workflow or an actual CPA. They're for quick estimates. The real filing requires complete transaction history and lot-level accounting that's beyond what any single calculator can do.
Crypto taxes aren't optional anymore. The exchanges report to the tax authority, the chains are public, and the audit volume on crypto returns has roughly tripled in the last three years. Treat record-keeping as a year-round habit, not an April panic.