Analysis
Free Instant No Signup 7-Day Money-Back

Crypto TaxCalculator

Estimate your crypto capital gains tax before filing. Compare FIFO vs HIFO cost basis methods and see exactly how much you owe on each disposal.

%
Position Size shares
Risk Amount
Risk Per Share
Total Position Value

Results update instantly as you type

Quick Answer

The crypto capital gains tax = (Sale Price - Cost Basis) * Tax Rate; choose FIFO to use oldest lots or HIFO to use highest-cost lots first, which often reduces taxable gains.

Capital Gain = Sale Proceeds - Cost Basis; Tax Owed = Capital Gain * Applicable Rate

The crypto tax calculator estimates your capital gains liability on any cryptocurrency disposal by applying the correct federal rate based on holding period and income bracket. Every crypto trade — including swaps between tokens — is a taxable event under IRS Notice 2014-21, and the cost basis method you select can shift your final tax bill by hundreds or thousands of dollars on the same set of trades. The calculator above computes the outcome instantly for any asset, quantity, and accounting method.

How to Use

InputWhat to EnterExample
Purchase PriceOriginal cost per coin including fees$1,800
Sale PriceProceeds per coin at time of disposal$4,000
Quantity SoldNumber of coins or tokens disposed of2 ETH
Holding PeriodDays between acquisition and sale690 days
Cost Basis MethodFIFO, HIFO, LIFO, or Specific IDHIFO
Income Tax BracketYour federal ordinary income bracket22%

The output shows your taxable gain or loss, the applicable rate (short-term or long-term), and estimated federal tax owed. For HIFO or Specific ID, enter each lot separately to compare tax outcomes before executing the trade.

Formula Explained

Capital Gain = Sale Proceeds − Cost Basis
Tax Owed = Capital Gain × Applicable Rate

Cost basis is what you paid for the asset, adjusted for exchange fees. If you bought 2 ETH at $1,800 each and paid a $9 fee, your adjusted basis is $3,609.

Holding period determines the applicable rate. Disposals within 365 days of acquisition are taxed as short-term ordinary income — the same brackets as wages, ranging from 10% to 37% for 2025. Hold for 366+ days and long-term rates apply: 0% up to approximately $47,000 of taxable income (single filer), 15% up to approximately $518,000, and 20% above that per IRS Rev. Proc. 2024-40.

Cost basis method is the highest-leverage variable. The IRS permits FIFO, LIFO, HIFO, and Specific Identification. The method must be applied consistently, and the election is not retroactive after filing. HIFO minimizes gains by always matching the most expensive acquisition lot to each sale, but when that lot is short-term, the rate is higher — the calculator shows the net outcome so you can compare before committing.

Example Calculations

Scenario 1: FIFO — Long-Term Gain

A trader buys 2 ETH at $1,800 each in April 2023, then 1 additional ETH at $3,200 in October 2024. In March 2025, they sell 2 ETH at $4,000 each ($8,000 total proceeds).

Under FIFO, the April 2023 lots are matched first (held 23 months — long-term):

  • Cost basis: $1,800 + $1,800 = $3,600
  • Gain: $8,000 − $3,600 = $4,400, entirely long-term
  • Tax at 15%: $660

Scenario 2: HIFO — Mixed Lots, Lower Total Tax

Same portfolio, same sale price, but using HIFO. The $3,200 October 2024 lot (5 months = short-term) is matched first, then one April 2023 lot (long-term):

  • October 2024 lot: $4,000 − $3,200 = $800 short-term gain, 22% = $176
  • April 2023 lot: $4,000 − $1,800 = $2,200 long-term gain, 15% = $330
  • Total tax: $506

HIFO saves $154 on this two-ETH disposal. At ten times the position size (20 ETH), the same proportional difference produces $1,540 in savings from the same method election.

Scenario 3: Crypto-to-Crypto Swap

A trader swaps 1 BTC (acquired at $30,000) for ETH when BTC is worth $90,000. This swap is a disposal — not a hold:

  • Proceeds: $90,000 (fair market value of BTC at swap)
  • Cost basis: $30,000
  • Gain: $60,000 long-term (held 400+ days)
  • Tax at 15%: $9,000

The gain is recognized at the moment of swap, regardless of ETH’s subsequent price movement. This is the most commonly missed taxable event in active crypto trading.

When to Use This Calculator

  • Before any disposal or swap — compare FIFO vs. HIFO outcomes on the specific lots you own before executing the transaction
  • Before year-end loss harvesting — the crypto wash sale loophole remains legal under current law (IRC §1091 covers only stock and securities), letting you sell at a loss and immediately repurchase the same token; this calculator quantifies the loss available to harvest
  • When evaluating hold timing — the difference between a 365-day and 366-day hold on a $50,000 gain at the 22% bracket is $3,500 in additional federal tax
  • When receiving DeFi income — staking rewards, yield farming distributions, and airdrop tokens are ordinary income at fair market value when received, each creating a new cost basis for future disposals
  • Before preparing Form 8949 — each transaction must be listed individually; this calculator’s output maps directly to the columns on Schedule D

Frequently Asked Questions

Is every crypto trade a taxable event?

Yes. Under IRS Notice 2014-21, cryptocurrency is property, not currency. Every disposal — including crypto-to-crypto swaps, spending tokens on goods or services, and converting to stablecoins — triggers capital gain or loss recognition. Transfers between wallets you own are not taxable events.

What is the difference between FIFO and HIFO for crypto taxes?

FIFO (first-in, first-out) matches the oldest acquisition lots to each sale. HIFO (highest-in, first-out) matches the most expensive lots first, minimizing the reported gain. On the same trades, HIFO typically produces a lower tax bill when high-cost lots are available — but if those lots are short-term, the higher ordinary income rate may partially offset the basis advantage, which is exactly what the calculator surfaces.

How long do I need to hold crypto for long-term capital gains rates?

The asset must be held for more than one year — 366 days or more — before disposal. For 2025, long-term rates are 0% up to approximately $47,000 of taxable income (single filer), 15% up to approximately $518,000, and 20% above that threshold. Short-term rates match ordinary income brackets, reaching 37% at the top.

Does the wash sale rule apply to cryptocurrency?

No. As of 2025, IRC Section 1091 applies only to stock and securities, not crypto assets. Traders can sell a position at a loss to capture the tax deduction and immediately repurchase the same token without a mandatory 30-day waiting period. This is a meaningful advantage over equity traders for tax-aware portfolio management.

Are staking rewards and DeFi income taxable?

Yes. Per IRS Chief Counsel Advice 202302011 (2023), staking rewards are ordinary income at fair market value when received. Yield farming distributions, airdrop tokens, and liquidity pool fees follow the same treatment — each is recognized as income in the year received and establishes a new cost basis for the tokens when they are eventually sold or swapped.

How to Calculate

1

Enter your inputs

Fill in the required fields in the calculator.

2

Review your results

The calculator instantly shows your results as you type.

Common Questions

Is every crypto trade a taxable event?

Yes. Under IRS Notice 2014-21, cryptocurrency is property, not currency. Every disposal — including crypto-to-crypto swaps, spending crypto on goods, and converting to stablecoins — triggers capital gain or loss recognition. Transfers between your own wallets are not taxable events.

What is the difference between FIFO and HIFO for crypto taxes?

FIFO (first-in, first-out) matches the oldest lots to each sale. HIFO (highest-in, first-out) matches the most expensive lots first, minimizing reported gains. On the same portfolio, HIFO typically produces a lower tax bill when high-cost lots are available, though the savings depend on whether those lots are short- or long-term.

How long do I need to hold crypto for long-term capital gains rates?

You must hold the asset for more than one year — at least 366 days — before disposal. For 2025, long-term rates are 0% for taxable income up to approximately $47,000 (single filer), 15% up to approximately $518,000, and 20% above that, compared to short-term rates that match ordinary income brackets up to 37%.

Does the wash sale rule apply to cryptocurrency?

No. As of 2025, IRC Section 1091 applies only to stock and securities. Crypto traders can sell at a loss, claim the deduction, and immediately repurchase the same asset without a 30-day waiting period — a tax strategy unavailable to equity traders.

Are staking rewards and DeFi income taxable?

Yes. Per IRS Chief Counsel Advice 202302011 (2023), staking rewards are ordinary income taxed at fair market value when received. Yield farming rewards, airdrop tokens, and liquidity pool fees follow the same treatment, each establishing a new cost basis for the received tokens when later disposed of.

Track Your Trading Performance

JournalPlus automatically tracks your risk metrics, position sizes, and performance analytics for every trade.

SSL Secure
One-Time Payment
7-Day Money-Back
4.9/5 (1,287 reviews)