Calculate your cryptocurrency capital gains using different cost basis methods. Understand how FIFO, LIFO, and HIFO affect your tax liability.
This calculator gives you a quick tax estimate. For full compliance-ready reports based on your real trades with country-specific rules, use Tax Reports.
Sells oldest purchases first. Generally results in higher gains in rising markets but may qualify for long-term capital gains rates. Most commonly used and widely accepted by tax authorities.
Sells newest purchases first. Can minimize gains in rising markets but usually results in short-term capital gains. May reduce gains by using higher cost basis.
Sells highest cost purchases first. Minimizes taxable gains but requires specific lot identification and good record keeping. Most expensive coins are sold first to minimize gains.
Uses average price of all purchases. Simpler to calculate but may not optimize tax liability. Required in some jurisdictions (Canada, UK). Simple and straightforward calculation.
Tax treatment varies significantly by jurisdiction. Select your country above for specific rates.
Many MENA countries have favorable crypto tax treatment:
European crypto tax treatment varies widely:
US and Latin American crypto taxation:
Sell losing positions to offset gains. Can offset other taxable income in many jurisdictions. Losses carry forward indefinitely.
If possible, hold assets for more than 1 year to qualify for significantly lower long-term capital gains rates.
If allowed in your jurisdiction, HIFO minimizes taxable gains by selling your highest cost lots first.
Track every purchase with date, amount, and cost. This is essential for specific identification methods like HIFO and proving holding periods.
Realize gains in years with lower income. If you expect lower income next year, consider deferring sales.
Donating crypto held >1 year to charity can provide a deduction for full market value without paying capital gains.
This calculator provides estimates for educational purposes only. Tax laws vary by jurisdiction and change frequently. Cryptocurrency taxation is complex and involves many factors not covered here, including:
Always consult with a qualified tax professional for your specific situation.
Nobody likes thinking about taxes, but ignoring crypto taxes is a recipe for problems. Tax authorities worldwide are increasing enforcement, and many now require crypto disclosure on tax returns. Here's the good news: understanding how crypto gets taxed can save you real money. The difference between short-term and long-term rates alone could cut your tax bill significantly. Picking the right cost basis method matters too. We'll walk through what triggers taxes, how to calculate what you owe, and strategies that keep more money in your pocket without crossing any lines.
Sold crypto for fiat? Taxable in most jurisdictions. Swapped ETH for SOL? Also taxable. Bought coffee with Bitcoin? Yep, taxable. Received staking rewards? Often taxable as income. Got an airdrop? Usually taxable. The list is longer than most people expect. Here's what typically doesn't trigger taxes: buying crypto with fiat (you're just exchanging one asset for another), moving crypto between your own wallets (not a sale), and in some jurisdictions, gifting crypto (though the recipient might owe taxes later). Every taxable event means calculating gain or loss. Sold for more than you paid? Capital gain. Sold for less? Capital loss. Received crypto as income? Typically taxed at fair market value that day. Planning around these rules can save you a lot of money.
Bought BTC at $20,000 in January, $40,000 in June, $30,000 in September. Now selling some at $50,000. Which purchase counts? That's cost basis. FIFO (First In, First Out) sells your oldest coins first. The $20,000 ones go first, meaning $30,000 profit per coin. Higher taxes but those old coins might qualify for long-term rates. LIFO (Last In, First Out) sells your newest first. The $30,000 coins go, only $20,000 profit. Lower gain, but probably short-term rates. HIFO (Highest In, First Out) sells your most expensive coins first. The $40,000 ones go, only $10,000 profit. Lowest immediate tax bill. Average Cost Basis just averages everything together. Simpler but not optimized. Pick a method allowed in your jurisdiction, stick with it, and keep good records. HIFO usually saves the most in taxes but requires tracking every lot carefully.
In many countries, how long you hold crypto before selling dramatically affects your tax rate. In Germany, holding over one year means 0% tax. In the US, long-term rates (0-20%) are much lower than short-term rates (10-37%). Portugal exempts gains on crypto held over a year. Even in countries with flat rates, holding period can matter for exemptions or reduced rates. If you're sitting on gains and you're close to qualifying for a lower rate, consider waiting. Use FIFO to automatically sell your oldest coins first, which are more likely to qualify for long-term treatment. Or use specific identification to cherry-pick which lots to sell. Check your country's rules - this single strategy can be one of the easiest ways to cut your tax bill.
Got crypto that's underwater? Those losses are valuable. Sell them, and you can use the loss to offset gains elsewhere. Made $20,000 on ETH but lost $15,000 on an altcoin? Sell the altcoin at a loss, and your taxable gain drops to $5,000. In many jurisdictions, excess losses can offset other income or carry forward to future years. Here's a key consideration: wash sale rules (which prevent you from selling at a loss and buying back immediately) apply in some countries but not others. In some places, crypto is still exempt from wash sale restrictions, but this is changing. Check your local rules before executing this strategy. Review your portfolio before year-end and harvest losses while you can.
DeFi makes taxes messy. Every swap on a DEX is a taxable sale in most jurisdictions. Provide liquidity? You might trigger taxes when depositing, when earning fees, and when withdrawing. Yield farming rewards? Often taxable as income when received. Staking rewards? Same thing. Airdrops? Usually taxable when you can claim them. Tax authorities haven't figured out every scenario yet, and even tax professionals argue about edge cases. Impermanent loss treatment is still unclear in most countries. Some protocols generate hundreds of micro-transactions that are nightmares to track. Use crypto tax software that specifically handles DeFi. Koinly, CoinTracker, and others can import from most protocols. If you're doing serious DeFi, hire a tax professional who specializes in crypto. The rules are evolving and mistakes are expensive.
For every transaction, you need: date, type (buy/sell/swap/receive), amount, price at the time, fees, and where it happened. Sound tedious? It is. But trying to reconstruct years of trading history at tax time is way worse. Use crypto tax software like Koinly, CoinTracker, or CoinLedger - they connect to exchanges and wallets, pull your history automatically, and track cost basis. Set it up now, not at tax time. Export transaction histories from exchanges periodically. Don't assume your exchange will have your records years from now. Keep records for at least 5-7 years - most tax authorities can audit several years back. Document which cost basis method you're using (FIFO, HIFO, etc.) and stick with it. Switching mid-year creates problems.
Tax rules vary wildly by country. Germany and Portugal offer 0% capital gains on crypto held over a year. The UAE, Kuwait, Bahrain, and Qatar have no personal income tax at all. Meanwhile, some places hit you with 30-50% rates. If you're a tax resident of a country, you typically owe taxes on worldwide income, no matter where the trades happen. Using a foreign exchange doesn't make gains tax-free. Moving countries doesn't erase past obligations. Some countries require reporting foreign crypto holdings above certain thresholds. Thinking about relocating for tax reasons? Get professional advice in both jurisdictions. The rules change frequently, enforcement is increasing globally, and getting this wrong can be very expensive.
Tax authorities worldwide are increasing crypto enforcement. Many now require crypto disclosure on tax returns. They're getting data from exchanges through reporting requirements and international data-sharing agreements. They also have blockchain tracing tools. Audit triggers include big unreported gains, discrepancies between what exchanges reported and what you filed, and suspicious patterns. Get audited with incomplete records? Authorities can assume zero cost basis on everything, maxing out your taxable gains. Penalties typically range from 20-75% of underpayment, plus interest. Criminal prosecution is rare but happens for willful evasion. Best protection: keep complete records, report accurately, pay what you owe. Got unreported crypto from past years? Consider voluntary disclosure. Coming forward beats getting caught.
In most jurisdictions, crypto is treated as property or an asset. Sell it, trade it, or spend it, and you typically owe taxes on any gain. Receive crypto as income (mining, staking, airdrops, getting paid in crypto), and it's usually taxed as ordinary income based on value when received. Many countries distinguish between short-term and long-term holdings, with significantly lower rates for longer holding periods.
Cost basis is what you paid including fees. Sell for more than your cost basis? Capital gain. Less? Capital loss. If you bought at different prices over time, which 'lot' you sell changes your tax bill. Using HIFO (selling highest-cost lots first) can cut your gains significantly compared to FIFO (selling oldest first).
FIFO sells oldest coins first. Often higher gains, but those old coins may qualify for lower long-term rates. LIFO sells newest coins first. Usually lower gains, but typically short-term rates. HIFO sells your most expensive coins first, minimizing the gain regardless of when you bought. HIFO usually results in the lowest tax bill. Check which methods are allowed in your jurisdiction.
Selling losing positions on purpose to offset winners. Made $20,000 on ETH but down $10,000 on an altcoin? Sell the altcoin, reduce your taxable gain to $10,000. In many jurisdictions, excess losses can offset other income or carry forward to future years. Check whether wash sale rules apply to crypto in your country before buying back immediately.
In most jurisdictions, yes. Swapping ETH for SOL counts as selling ETH and buying SOL. You owe taxes on any ETH gain. Your new SOL's cost basis is the market value when you swapped. This applies everywhere, including DEX swaps. Every trade is typically a taxable event, not just cash-outs.
In most countries, staking rewards are treated as income when you receive them. Receive 1 ETH when it's worth $3,000? That's $3,000 of taxable income, whether you sell or not. Later when you sell, your cost basis is that $3,000. If you sell at $4,000, you owe capital gains on the $1,000 difference. It can be a double tax event: income when received, gains when sold.
Just holding? Typically no tax owed on unrealized gains. But many countries now require crypto disclosure on tax returns. And if you received crypto (staking, airdrops, mining, payment for work), that's usually taxable income even without selling. Swaps between cryptos count as sales too. Only pure buy-and-hold is truly deferred in most jurisdictions.
Everything. Date, transaction type, amount, price, fees, which exchange or wallet. Export your exchange histories periodically. Don't assume your exchange will have your records years from now. Use tax software that pulls automatically from your accounts. Keep records for at least 5-7 years. Tax authorities can audit several years back if they suspect underreporting.
DeFi is complex for taxes. DEX swaps are sales. LP deposits and withdrawals may trigger events. Yield rewards are income when received. Use crypto tax software that handles DeFi protocols specifically. Even then, some transactions need manual review. If you're doing serious DeFi, hire a tax professional who knows this space. The guidance is still evolving worldwide.
Penalties vary by country but typically include significant fines (20-75% of what you owe) plus interest. Tax authorities are increasingly getting data from exchanges and using blockchain analytics tools. Criminal prosecution is rare but happens for serious evasion. Got unreported income from past years? Consider voluntary disclosure in your jurisdiction. Coming forward typically results in better outcomes than getting caught.