How to Calculate Your Crypto Capital Gains Tax (Step-by-Step)

·

Cryptocurrency capital gains tax can feel overwhelming, but understanding how to calculate it properly is essential for staying compliant with IRS regulations. Whether you're trading, swapping, or spending digital assets, each transaction could trigger a taxable event. This comprehensive guide walks you through the process in clear, actionable steps—helping you determine your cost basis, apply the right accounting method, and accurately report gains or losses.


Key Takeaways


How to Calculate Your Crypto Capital Gains Tax in 5 Steps

1. Identify All Your Crypto Transactions

Before calculating taxes, gather a complete record of every crypto-related activity. Taxable events include:

You can retrieve transaction data from:

Manually compiling this data is time-consuming and error-prone. To simplify, many investors use automated tools that sync across platforms.

👉 Discover how seamless transaction tracking can make tax season stress-free.


2. Determine Your Cost Basis

Your cost basis is the total amount you paid to acquire a crypto asset, including:

For example:

You bought 1 ETH for $1,500 and paid $50 in gas → Cost basis = $1,550

When you've made multiple purchases of the same coin at different prices, the accounting method determines which lot is sold first.

The IRS generally accepts FIFO (First In, First Out) but allows alternatives like LIFO, HIFO, or Specific ID—provided you maintain accurate records.

Starting in 2025: Specific-Wallet Inventory Rules

Beginning with the 2025 tax year, the IRS will require taxpayers to track crypto using specific-wallet inventory methods. This means:

To establish cost basis under FIFO with wallet-specific accounting:

  1. Group transactions by wallet/exchange
  2. Assign cost basis per asset within each wallet
  3. Apply FIFO within each wallet — oldest units sold first

Once a tax lot is used, it’s removed from the pool.

Cost Basis for Non-Purchase Acquisitions

👉 Learn how advanced tracking tools can automate cost basis calculations across wallets.


3. Calculate Your Proceeds

Proceeds refer to the USD value you received when disposing of crypto—before deducting fees.

This is typically the fair market value (FMV) at the time of sale or exchange.

Example:

Sold 1 BTC for $45,000 → **Proceeds = $45,000**

Use reliable pricing sources like major exchanges to determine FMV. Accuracy here directly affects your gain/loss calculation.


4. Compute Capital Gains or Losses

Use this formula:

Capital Gain (or Loss) = Proceeds – Cost Basis

Gains are categorized based on holding period:

Short-Term Capital Gains (≤1 Year)

Example:

Long-Term Capital Gains (>1 Year)

Example:

💡 Holding assets longer than a year can significantly reduce your tax burden.

Offset Gains with Losses

You can use capital losses to reduce taxable gains:


5. Report Gains on IRS Forms

After calculating gains/losses, report them on:

Filing manually increases risk of errors. Many users rely on software to generate IRS-ready forms automatically.


Accounting Methods: FIFO, LIFO, HIFO & Specific ID

Choosing an accounting method impacts your tax outcome.

MethodRuleBest For
FIFOOldest units sold firstSimplicity; IRS-preferred
LIFONewest units sold firstReducing short-term gains in rising markets
HIFOHighest-cost units sold firstMinimizing taxable gains immediately
Specific IDChoose exact units to sellStrategic tax planning with precise records

Example Comparison

Assume you own three BTC purchased at:

You sell one BTC for $20,000.

MethodCost Basis UsedGain
FIFO$10,000$10,000
LIFO$15,000$5,000
HIFO$18,000$2,000
Specific IDChoose anyVaries

While FIFO is safest and widely accepted, other methods offer tax-saving potential—if documented properly.


Common Crypto Taxable Events

Every disposal triggers a capital gains event:


Important Considerations

Keep Detailed Records

Maintain logs of:

These records are critical during audits.

Avoid Penalties

Underreporting crypto gains can lead to:

The IRS now includes a digital assets question on Form 1040—you must answer truthfully.

Use Crypto Tax Software

Manual calculations are inefficient and risky. Automated tools help by:

👉 See how top-rated platforms simplify complex DeFi and multi-wallet reporting.


Frequently Asked Questions

How do I calculate my cryptocurrency gains?

Subtract your cost basis (purchase price + fees) from the proceeds (sale value). The result is your capital gain or loss.

What is the cost basis for crypto?

It’s the original cost of acquiring the asset in USD, including transaction fees. For non-purchased crypto (like staking), it’s the fair market value when received.

Do I pay taxes on crypto if I don’t cash out?

Yes. Swapping one crypto for another or spending it counts as a disposal—even without converting to fiat.

Is crypto taxed as short-term or long-term capital gains?

It depends on holding period:

How do I report crypto gains on my taxes?

Use Form 8949 for individual transactions and Schedule D to summarize totals. Report staking/airdrop income on Schedule 1.

What is the difference between FIFO and LIFO?

FIFO assumes the oldest coins are sold first; LIFO assumes the newest are sold first. This affects which cost basis applies and thus your taxable gain.

What is specific ID cost basis?

Specific Identification lets you choose exactly which units were sold. Requires detailed records but offers maximum control over tax outcomes.


By following these steps and maintaining accurate records, you can confidently calculate and report your crypto capital gains. As regulations evolve—especially with new 2025 inventory rules—using reliable tools becomes increasingly valuable for compliance and optimization.