Real Historical Crypto Prices

Free Crypto Capital Gains Tax Calculator

Calculate your cryptocurrency capital gains tax using real historical prices. Enter a crypto symbol, purchase and sale dates, and your tax rate to get an instant breakdown of your capital gain, estimated tax, and net profit.

Real Crypto Prices
Short/Long-Term Detection
100% Free
Popular:

The amount of cryptocurrency you purchased

The date you bought the cryptocurrency

The date you sold the cryptocurrency

U.S. long-term rates: 0%, 15%, or 20%. Short-term rates: 10%–37%.

Data sourced from FinancialModelingPrep. Prices are end-of-day closing prices. Past performance is not indicative of future results.

What Is a Crypto Capital Gains Tax Calculator?

A crypto capital gains tax calculator is a financial tool that helps cryptocurrency investors determine the taxable profit or loss from buying and selling digital assets. When you sell cryptocurrency for more than you paid, the difference is a capital gain that may be subject to tax. When you sell for less, you have a capital loss that can offset other gains.

Our cryptocurrency capital gains calculator goes beyond simple arithmetic by fetching real historical closing prices for any supported cryptocurrency. You enter the crypto symbol, the date you purchased, and the date you sold. The tool automatically retrieves the actual prices on those dates and computes your complete tax breakdown, including whether your gain qualifies as short-term or long-term based on the holding period.

How to Use This Crypto Capital Gains Calculator

  1. 1

    Select the Cryptocurrency

    Search for the cryptocurrency you traded (e.g., BTCUSD, ETHUSD, SOLUSD) or click one of the popular options. The calculator supports thousands of cryptocurrency pairs.

  2. 2

    Enter the Quantity

    Input how much cryptocurrency you purchased. This can be a whole number or a decimal (e.g., 0.5 BTC, 2.3 ETH).

  3. 3

    Set the Purchase and Sale Dates

    Choose the date you bought and the date you sold the cryptocurrency. The calculator fetches the closing price on each date and automatically determines whether your gain is short-term or long-term.

  4. 4

    Set Your Tax Rate

    Select a preset tax rate or enter a custom rate. U.S. long-term capital gains rates are 0%, 15%, or 20%. Short-term rates match your ordinary income bracket (10%–37%).

  5. 5

    Review Your Results

    Click "Calculate Capital Gains Tax" to see your cost basis, proceeds, capital gain, estimated tax, and net profit after tax — all based on real market data.

Crypto Capital Gains Tax Formula

The capital gains tax on cryptocurrency is calculated using these formulas:

Cost Basis = Purchase Price × Quantity

Proceeds = Sale Price × Quantity

Capital Gain = Proceeds − Cost Basis

Estimated Tax = Capital Gain × Tax Rate

If the sale price is higher than the purchase price, you have a capital gain and may owe tax. If the sale price is lower, you have a capital loss. Capital losses are not taxed but can be used to offset gains from other investments. The holding period determines whether the gain is classified as short-term (held 1 year or less) or long-term (held more than 1 year), which affects the applicable tax rate.

Short-Term vs. Long-Term Crypto Capital Gains

Short-Term Capital Gains

  • Held for 1 year or less
  • Taxed at ordinary income tax rates
  • U.S. rates: 10%, 12%, 22%, 24%, 32%, 35%, or 37%
  • Higher tax burden for most investors
  • Applies to active traders and frequent crypto transactions

Long-Term Capital Gains

  • Held for more than 1 year
  • Taxed at preferential capital gains rates
  • U.S. rates: 0%, 15%, or 20%
  • Significant tax savings for patient investors
  • Encourages long-term holding strategies (HODLing)

Taxable Cryptocurrency Events

Selling Crypto for Fiat

Selling Bitcoin, Ethereum, or any cryptocurrency for USD, EUR, or other fiat currencies triggers a taxable event. The gain or loss is the difference between your sale proceeds and cost basis.

Crypto-to-Crypto Trades

Swapping one cryptocurrency for another (e.g., BTC to ETH) is a taxable disposition. You must calculate the fair market value in USD at the time of the trade to determine your gain or loss.

Purchasing Goods or Services

Using cryptocurrency to buy goods or services is treated as a sale. The IRS considers this a disposal of the asset, and you must report any gain or loss based on the fair market value at the time of the transaction.

Earning Crypto (Mining, Staking, Airdrops)

Receiving cryptocurrency through mining, staking rewards, or airdrops is taxed as ordinary income at the fair market value when received. When you later sell, any additional gain is subject to capital gains tax.

Strategies to Reduce Crypto Capital Gains Tax

  • Hold for more than one year — Qualifying for long-term capital gains rates can reduce your tax rate from up to 37% to as low as 0%, 15%, or 20%.
  • Tax-loss harvesting — Sell losing positions to realize capital losses that offset your gains. Be aware of wash sale rules that may apply to cryptocurrency in your jurisdiction.
  • Use specific identification — Instead of FIFO (first-in, first-out), identify specific lots with higher cost basis to minimize gains when selling partial positions.
  • Donate to charity — Donating appreciated cryptocurrency to a qualified charity may allow you to deduct the fair market value without paying capital gains tax.
  • Utilize tax-advantaged accounts — Some retirement accounts (self-directed IRAs) allow cryptocurrency investments where gains grow tax-deferred or tax-free.

Frequently Asked Questions

How does this crypto capital gains tax calculator work?

This calculator fetches real historical closing prices for the cryptocurrency you select on both the purchase date and the sale date. It calculates your capital gain by subtracting the cost basis (purchase price × quantity) from the proceeds (sale price × quantity), then applies your specified tax rate to estimate the tax owed.

What is a capital gain on cryptocurrency?

A capital gain on cryptocurrency occurs when you sell, trade, or dispose of a cryptocurrency for more than you originally paid for it. The gain is the difference between your sale proceeds and your cost basis (original purchase price plus any fees). If you sell for less than you paid, you have a capital loss.

What is the difference between short-term and long-term capital gains on crypto?

In the United States, if you hold cryptocurrency for one year or less before selling, any profit is taxed as a short-term capital gain at your ordinary income tax rate (up to 37%). If you hold for more than one year, the profit is taxed as a long-term capital gain at preferential rates of 0%, 15%, or 20% depending on your taxable income.

Do I have to pay taxes on crypto-to-crypto trades?

Yes, in most jurisdictions including the United States, trading one cryptocurrency for another (e.g., swapping Bitcoin for Ethereum) is a taxable event. You must calculate the capital gain or loss based on the fair market value at the time of the trade. This calculator focuses on crypto-to-USD transactions, but the same principles apply.

What if I have a capital loss on my crypto?

Capital losses on cryptocurrency can be used to offset capital gains from other investments. In the U.S., if your total capital losses exceed your capital gains, you can deduct up to $3,000 of the excess loss against ordinary income per year. Remaining losses can be carried forward to future tax years.

Does this calculator account for transaction fees?

This calculator provides an estimate based on historical closing prices and does not include transaction fees, gas fees, or exchange fees. In practice, fees paid when buying increase your cost basis, and fees paid when selling reduce your proceeds. Consult a tax professional for exact calculations.

What tax rate should I use for crypto capital gains?

The tax rate depends on your country, income level, and holding period. In the U.S., short-term gains (held ≤ 1 year) are taxed at ordinary income rates (10%–37%). Long-term gains (held > 1 year) are taxed at 0%, 15%, or 20%. Other countries have different rates. Use the preset buttons or enter a custom rate.

Is this crypto capital gains calculator free?

Yes, this calculator is completely free to use with no registration required. It uses real historical cryptocurrency price data to provide accurate capital gains calculations for any supported cryptocurrency.

Calculated Your Crypto Gains? Build Automated Trading Strategies

Turn your crypto trading insights into automated Pine Script strategies with Pineify. Create custom indicators that identify trading opportunities, or let our AI Stock Picker surface setups for you.