Calculate capital gains tax when trading one cryptocurrency for another. Determine gain based on fair market value received minus cost basis disposed.
When you trade one cryptocurrency for another — such as swapping BTC for ETH — the IRS treats it as selling the first crypto and buying the second. This means you must calculate the capital gain or loss on the crypto you disposed of, even though you never received fiat currency. The gain is the fair market value (FMV) of the crypto received minus the cost basis of the crypto given up.
Many traders assume that crypto-to-crypto swaps are tax-deferred like Kind exchanges, but the IRS confirmed in 2017 that like-kind exchange rules under Section 1031 do not apply to cryptocurrency. Every crypto-to-crypto trade is a taxable event that must be reported.
This calculator helps you compute the capital gain or loss on a crypto-to-crypto trade by entering the FMV of the received crypto and the cost basis of the disposed crypto. It also sets the new cost basis for the received asset, which you'll need for future sales.
Many crypto traders make dozens or hundreds of crypto-to-crypto swaps and don't realize each one is a taxable event. This calculator reveals the hidden tax liability in your trading activity and helps you maintain accurate records for each swap. It also establishes the new cost basis for the acquired crypto, which is essential for future tax calculations.
Gain/Loss = FMV of Crypto Received − Cost Basis of Crypto Disposed New Cost Basis of Received Crypto = FMV at Time of Trade
Result: $2,000 capital gain
You traded crypto with a $3,000 cost basis for crypto worth $5,000 at the time of the swap. The gain is $5,000 − $3,000 = $2,000. The received crypto has a new cost basis of $5,000 for future sales.
The IRS views each crypto-to-crypto trade as two events: a sale of the disposed asset and a purchase of the received asset. The sale triggers a capital gain or loss calculation. This applies to direct swaps, DEX trades, and any exchange where one digital asset is converted to another.
Active traders may execute hundreds of swaps in a year. Each one requires recording the date, the assets involved, the FMV of both sides, and the cost basis of the disposed asset. Crypto tax software that imports exchange data can automate most of this tracking.
Every swap resets the cost basis of the received asset to its FMV at trade time and starts a new holding period. This cascade of basis resets affects all future tax calculations, making accurate per-trade records essential for long-term portfolio accounting.
Yes. The IRS treats every crypto-to-crypto trade as a taxable disposition. You are effectively selling one asset and buying another. The gain or loss on the disposed asset must be reported, even though no fiat currency was involved.
Use the market price from a reputable source like CoinGecko, CoinMarketCap, or your exchange's recorded price at the time of the trade. The FMV should reflect the price at the specific date and time of the transaction.
No. The Tax Cuts and Jobs Act of 2017 limited Section 1031 like-kind exchanges to real property only. Cryptocurrency swaps are not eligible for tax deferral under this provision.
The cost basis of the received crypto equals its fair market value at the time of the trade. This becomes your starting point for calculating gains or losses when you eventually dispose of the received crypto.
Yes. Swapping tokens on a decentralized exchange (Uniswap, SushiSwap, etc.) is identical to a crypto-to-crypto trade on a centralized exchange for tax purposes. The taxable event occurs regardless of where the trade is executed.
Report each trade on Form 8949 as a sale of the disposed crypto. List the cost basis, proceeds (FMV of received crypto), and resulting gain or loss. The totals flow to Schedule D of your tax return.