← Back to Blog

How to Calculate Crypto Profits: The Complete Guide to CGT, FIFO, LIFO & DeFi Yields

Published: April 15, 2026  |  Reading time: ~10 min  |  Category: Finance

Calculating cryptocurrency profits is more complex than checking your portfolio balance. Between capital gains tax obligations, multiple accounting methods, DeFi yield tracking, and the challenge of accounting for dozens of transactions across multiple wallets and chains, getting your numbers right requires a structured approach. This guide breaks down everything you need to know about crypto profit calculation — from basic formulas to advanced on-chain analytics.

Why Accurate Crypto Profit Calculation Matters

Most crypto investors underestimate the complexity of tracking their gains. A trader who made 200 swaps on Uniswap over the past year doesn't just have 200 transactions — they have 200 taxable events, each with its own cost basis, acquisition date, and disposal value. Getting this wrong means either overpaying taxes or risking penalties from tax authorities.

Beyond compliance, accurate profit tracking helps you evaluate which strategies actually work. You might feel like you're making money on airdrop farming, but until you calculate the true cost basis — including gas fees, impermanent loss, and time spent — you can't know for sure.

Capital Gains Tax (CGT) Basics for Crypto

In most jurisdictions, cryptocurrency is treated as property for tax purposes. This means every time you sell, trade, or dispose of crypto, you trigger a taxable event. The tax you owe depends on two factors: your gain (proceeds minus cost basis) and how long you held the asset.

Short-Term vs Long-Term Capital Gains

In the United States, assets held for less than one year are subject to short-term capital gains tax, which matches your ordinary income tax rate (10–37%). Assets held longer than one year qualify for long-term capital gains rates (0%, 15%, or 20%, depending on your income). This distinction creates a powerful incentive to hold positions longer.

The UK uses a similar framework through HMRC, with capital gains tax rates of 10% or 20% for basic and higher rate taxpayers. Australia treats crypto as an asset with CGT discounts of 50% for holdings over 12 months. Always check your local regulations — the rules vary significantly between countries.

What Counts as a Taxable Event

Simply holding crypto in your wallet or transferring between your own wallets is generally not a taxable event in most jurisdictions. However, some tax authorities may have specific rules around self-transfers, so document everything.

FIFO vs LIFO vs Specific Identification: Choosing an Accounting Method

When you buy the same cryptocurrency at different prices and times, which purchase do you "sell" first? The accounting method you choose significantly impacts your tax liability. There are three main approaches:

First-In, First-Out (FIFO)

FIFO assumes the first coins you bought are the first ones you sell. This is the default method in most countries and the one most tax software uses. FIFO tends to produce higher gains in rising markets (because your earliest, cheapest purchases are sold first) but can be favorable in declining markets.

Example: You buy 1 BTC at $20,000 (January), then 1 BTC at $60,000 (June). You sell 1 BTC in September at $50,000. Under FIFO, your cost basis is $20,000, giving you a gain of $30,000.

Last-In, First-Out (LIFO)

LIFO assumes the most recently acquired coins are sold first. In the same example, selling 1 BTC at $50,000 with a cost basis of $60,000 results in a loss of $10,000, which you can use to offset other gains. However, LIFO is not permitted in all jurisdictions — the US IRS has specific rules, and many countries mandate FIFO.

Specific Identification (Highest-In, First-Out)

With specific identification, you choose exactly which lot you're selling. This gives you the most flexibility to minimize taxes. HIFO (Highest-In, First-Out) is a popular variant that always sells the most expensive lot first, minimizing gains. To use this method, you need detailed records of every acquisition with dates, amounts, and prices — and you must be able to identify specific coins, which is easier with on-chain tracking.

MethodBest WhenAvailability
FIFODeclining markets, simple trackingMost jurisdictions (default)
LIFORising markets, reducing gainsLimited (check local rules)
HIFO/Specific IDMaximizing tax efficiencyUS (with proper records)

Calculating DeFi Yields and Income

DeFi income is one of the trickiest areas of crypto profit calculation. Different types of DeFi activity have different tax treatments, and the mechanics of yield generation create unique accounting challenges.

Staking Rewards

In the US, staking rewards are taxable as ordinary income at their fair market value when received. If you stake ETH and receive 0.5 ETH in rewards when ETH is trading at $3,000, you report $1,500 as income. When you later sell that ETH, you'll owe capital gains tax on any appreciation since you received it.

Liquidity Pool Impermanent Loss

Providing liquidity to a DEX creates a more complex situation. When you deposit assets into a pool, you may need to track the value of your LP tokens over time. Impermanent loss — the difference between holding tokens and providing liquidity — is not directly deductible as a loss in most jurisdictions. However, the fees and rewards you earn from the pool are taxable income.

Lending and Borrowing

Interest earned from lending protocols like Aave or Compound is taxable income. On the flip side, interest paid on borrowed crypto may be deductible as an investment expense in some jurisdictions. Liquidation events — where your collateral is seized — are typically treated as a sale, triggering capital gains or losses.

Airdrops and Forks

Airdropped tokens are generally taxable as income at their fair market value when received. Forked coins follow similar rules in most jurisdictions. Keep records of every airdrop receipt, including the date, token, amount, and market price.

On-Chain Analytics Tools for Profit Tracking

Manually tracking crypto profits across multiple wallets, exchanges, and chains is impractical for anyone with more than a handful of transactions. These tools automate the process and generate tax-ready reports:

Step-by-Step: Calculating Your Crypto Profit

  1. Aggregate all transactions — Import data from every exchange, wallet, and chain you've used. Don't forget DeFi protocols and staking platforms.
  2. Determine your cost basis — For each disposal, identify the acquisition lot using your chosen accounting method (FIFO, LIFO, or specific ID).
  3. Calculate gains or losses — Subtract the cost basis from the disposal proceeds. Factor in transaction fees.
  4. Separate short-term and long-term — Classify each gain by holding period to apply the correct tax rate.
  5. Account for income events — Staking rewards, mining income, and airdrops are taxed as ordinary income, separate from capital gains.
  6. Apply deductions and losses — Capital losses can offset gains. Some jurisdictions allow loss carry-forwards to future tax years.
  7. Generate tax reports — Use crypto tax software or work with a crypto-specialized accountant to produce compliant filings.

Tax Optimization Strategies

Legal tax optimization is not evasion — it's smart financial management. Here are strategies to consider:

Disclaimer: This guide is for educational purposes only and does not constitute tax advice. Cryptocurrency tax regulations vary by jurisdiction and change frequently. Consult a qualified tax professional for your specific situation.

Frequently Asked Questions

Do I owe taxes on crypto-to-crypto trades?

Yes, in most jurisdictions. Trading Bitcoin for Ethereum is considered a disposal of Bitcoin and a taxable event, even though no fiat currency changed hands. You'll owe capital gains tax on the difference between your cost basis in Bitcoin and its value at the time of the trade.

How are staking rewards taxed?

In the US, staking rewards are taxed as ordinary income at their fair market value when you receive them. When you later sell the staked tokens, any appreciation since receipt is subject to capital gains tax. Other countries have similar rules, though specifics vary.

What's the difference between FIFO and LIFO for crypto?

FIFO (First-In, First-Out) assumes your oldest purchases are sold first, which often results in higher gains in rising markets. LIFO (Last-In, First-Out) assumes your newest purchases are sold first, potentially reducing gains. FIFO is the default and most widely accepted method; LIFO availability varies by jurisdiction.

Are gas fees tax-deductible?

Yes, in most jurisdictions. Gas fees paid on transactions can be added to your cost basis (for purchases) or subtracted from proceeds (for sales). Transaction fees on exchanges work the same way. Keep records of all fees.

Do I need to report airdrops on my taxes?

Generally yes. Most tax authorities treat airdropped tokens as income at their fair market value when received. Even if you didn't actively do anything to receive them, the fact that they appeared in your wallet creates a tax obligation. Some very small airdrops may fall below reporting thresholds.

Can I offset crypto losses against other income?

In most cases, crypto capital losses can only offset capital gains, not ordinary income. Excess losses may be carried forward to future years, subject to annual limits. The rules differ by country — for example, the US limits capital loss deductions to $3,000 per year against ordinary income.

What happens if I don't report crypto gains?

Tax authorities increasingly have access to blockchain data and exchange records through information-sharing agreements. Failure to report crypto gains can result in penalties, interest charges, and potential legal consequences. It's always better to report and pay than to risk an audit.

Which crypto tax software is best for DeFi users?

Koinly and CoinTracker both have strong DeFi support and can handle staking, liquidity pools, and yield farming. For complex DeFi strategies, you may need to supplement automated tools with manual entries. Always verify that your software supports the specific protocols you use.