Home / Crypto & Blockchain / Wallet, Security & Tax / Crypto-to-Crypto Trade Taxable Gain

Formula & Calculator

Crypto-to-Crypto Trade Taxable Gain

In most tax jurisdictions, trading one cryptocurrency for another counts as a taxable disposal, even if you never convert to fiat. This formula calculates the gain: fair market value of the coin received minus the cost basis of the coin given up. For example, trading 1 ETH (bought for 1,000) for 2 SOL (worth 2,000) creates a 1,000 taxable gain. Many crypto users get this wrong and under-report. It is critical for tax compliance.

Crypto Tax Daily Life
VORZEP · CRYPTO TAX TOOLS

Taxable Gain Calculator

Solve the capital-gains relation Gain = FMV − Cost Basis for any of its three unknowns — the taxable gain, the fair market value at disposal, or the cost basis of the asset — with step-by-step math, a live trade schematic, and companion tax metrics including holding-period classification and estimated tax owed.

Gain = FMV − Cost Basis
Solve for
Taxable Gain The realised capital gain or loss on the disposal: fair market value received minus the cost basis of the asset given up. A positive number is a taxable gain; a negative number is a capital loss that may offset other gains. Even a crypto-to-crypto trade with no fiat involved is a taxable disposal in most jurisdictions.
USD
Enter a valid numeric gain or loss.
= +225.00% of basis · +69.23% of FMV
Fair Market Value (FMV) The total USD value of what you received at the moment of the trade — the fair market value of the crypto acquired plus any cash received. For a crypto-to-crypto swap this is quantity × spot price of the asset received, not the asset given up. Use a reputable exchange price for the exact timestamp, or a volume-weighted average if the trade was large.
USD
Fair market value cannot be negative.
= 1.0000 BTC at $65,000 · or 0.6500 BTC at $100,000
Cost Basis What you originally paid for the asset being disposed of, including purchase price plus any acquisition fees, and adjusted for prior events. Under FIFO the basis is that of the oldest units still held; under specific identification you choose which lot to match. Airdrops and forks generally take a basis equal to their FMV at receipt. Basis can be zero for genuinely free assets.
USD
Cost basis cannot be negative.
= 30.769% of FMV · 0.3077 BTC at $65,000
TAXABLE GAIN
$45,000.00 USD
+225.00% of basis · +69.23% of FMV
LARGE GAIN — TAXABLE EVENT
Gain = FMV − Cost Basis
Step-by-step solution
Gain vs. fair market value
Current basis Basis × 0.5 Basis × 1.5
Gain vs. cost basis
Current FMV FMV × 0.7 FMV × 1.3
Tax assumptions
%
days
Sensitivity of the gain
Companion tax metrics
Cost basis vs. fair market value — live schematic
CRYPTO-TO-CRYPTO DISPOSAL · GAIN = FMV − COST BASIS BASIS $20,000.00 FMV $65,000.00 GAIN $45,000.00 +225.00% Gain = FMV − Cost Basis = $65,000.00 − $20,000.00 = $45,000.00 Gain % of basis = 225.00% · Margin on FMV = 69.23%
Cost basis of the asset disposed of Fair market value received at the trade Realised gain (or loss) — the taxable amount
What the taxable gain relation really measures
Gainrealised result
=
FMVvalue received
−
Cost Basisvalue given up

Every crypto-to-crypto swap is a disposal

In most tax jurisdictions — the US, UK, Canada, Australia and the EU among them — exchanging one crypto for another is treated as a sale of the asset you gave up, not as a neutral swap. You are deemed to have received the fair market value of the outgoing asset, and you realise a gain or loss equal to that value minus your basis. No fiat needs to change hands for the taxable event to occur.

FMV at the moment of trade is what counts

The fair market value is not what you originally paid, nor the price later in the day, nor the price on your preferred exchange — it is the value at the exact timestamp of the trade. Using a wrong FMV is one of the most common causes of amended returns. Exchanges publish historical prices to the minute; if a trade spans a volatile window, a volume-weighted average over the execution is the most defensible figure.

Basis depends on which lot you disposed of

If you bought the same asset several times at different prices, the cost basis of the units you just sold depends on your accounting method. FIFO uses the oldest units, LIFO the newest, and specific identification lets you pick the lot — often the one with the highest basis, to minimise the gain. Whichever method you use must be applied consistently and, in many jurisdictions, documented at the time of the trade.

Losses offset gains — but only if you realise them

A negative result is a capital loss, not merely a non-event. Realised losses generally offset realised gains in the same year, and excess losses may carry forward. This is why tax-aware traders deliberately harvest losses in a down market: disposing of a position that is underwater converts an unrealised paper loss into a usable deduction. Watch for wash-sale rules, which can defer the loss if you rebuy the same asset within a defined window.

How to Use This Calculator

The gain relation links three quantities: the realised gain, the fair market value received and the cost basis of the asset given up. Pick which one you want the tool to solve, then fill in the other two.

1. Choose what to solve for

Pick Gain, FMV or Basis from the toggle. The calculator rearranges Gain = FMV − Cost Basis automatically for whichever you choose.

2. Enter FMV in USD at trade time

Use the value of what you received, at the exact timestamp of the trade. For a large or slow execution, use a volume-weighted average price rather than a single tick.

3. Apply the correct basis method

Enter the basis of the specific lot you disposed of. Under FIFO that is the oldest lot; under specific identification you may choose. Include acquisition fees in the basis and deduct disposal fees from the proceeds.

4. Read the result and verdict

The result card shows the gain or loss in USD, as a percentage of basis and as a margin on FMV. A colour-coded verdict classifies the result from substantial loss through break-even to extreme gain.

5. Check the schematic and charts

The schematic draws the basis and FMV as proportional bars with the gain region highlighted between them. The chart plots gain against FMV for three different bases, so you can see how the break-even FMV shifts with basis.

6. Switch to Advanced for tax depth

Advanced mode adds a gain-vs-basis chart, tax-assumption inputs for rate and holding period, a sensitivity check, and companion metrics including holding-period classification, estimated tax owed and after-tax proceeds.

What This Tool Offers

Built around the capital-gains relation Gain = FMV − Cost Basis, the standard calculation for every crypto-to-crypto disposal.

Three-way solving

Solve for the gain, the fair market value or the cost basis. The calculator rearranges the formula for whichever variable you choose.

Proportional bar schematic

A live diagram draws basis and FMV as bars scaled to their true ratio, with the gain or loss region highlighted between them and both percentages underneath.

Gain / loss verdict

Each result is classified from substantial loss through break-even to extreme gain, with a coloured badge and a note when the result looks implausible.

Basis and margin views

The result is shown both as a percentage of cost basis (return on investment) and as a margin on FMV (share of the proceeds that is taxable gain).

Dual comparison charts

Gain vs. FMV for three basis levels, plus an advanced gain-vs-basis chart for three FMV levels, so both directions of the trade are visible.

Reference tables

A gain lookup grid across FMV and basis, capital-gains rate brackets by jurisdiction, holding-period classification rules and a full variable reference.

Reference Tables & Conversions

A gain lookup grid, typical capital-gains rates by jurisdiction and holding-period classification rules.

Quick gain and tax estimator

USD
USD
%
= $45,000.00 gain · $6,750.00 estimated tax · $58,250.00 after-tax proceeds

Gain Lookup by FMV and Cost Basis

Computed from Gain = FMV − Cost Basis. Values in USD. Row = cost basis, column = fair market value.

Basis \ FMV $1,000$10,000$50,000$65,000$100,000$500,000$1,000,000

Typical Capital-Gains Rates by Jurisdiction

Representative figures for orientation. Rates depend on income, holding period and filing status, and change with legislation — always verify with a qualified tax adviser.

JurisdictionShort-term rateLong-term rateLoss offsetNotes
United StatesOrdinary income (10–37%)0% / 15% / 20%Yes, with carryforwardHeld ≤ 1 yr short-term; > 1 yr long-term; wash-sale rules apply
United Kingdom10% / 20%10% / 20%YesNo long-term distinction; annual exempt amount applies
Germany25%0% if held > 1 yrYes, limitedLong-held crypto is tax-free on disposal
Canada50% of gain at marginal rate50% of gain at marginal rateYesNo distinction by holding period
AustraliaMarginal rateMarginal rate with 50% discountYesHeld > 12 months gets CGT discount
France30% flat30% flatYesSingle flat rate for crypto gains
JapanUp to 55%Up to 55%LimitedMiscellaneous income, not capital gains
Portugal28%28%YesHeld < 365 days taxed; longer is exempt
Switzerland0%0%n/aPrivate investors generally exempt
El Salvador0%0%n/aNo capital gains tax on crypto

Holding Period Classification

Many jurisdictions treat long-held assets more favourably than short-held ones. The threshold differs, so check the rule that applies to you.

Holding periodUSUKGermanyAustraliaEffect
< 30 daysShort-termTaxableTaxableNo discountFull rate applies
30 – 180 daysShort-termTaxableTaxableNo discountFull rate applies
181 – 364 daysShort-termTaxableTaxableNo discountFull rate applies
365 – 730 daysLong-termTaxableTax-free50% discountPreferential rate applies
> 730 daysLong-termTaxableTax-free50% discountPreferential rate applies

Variable Reference

SymbolMeaningTypical rangeUnits
FMVFair market value received at disposal$0 – $1B+USD
BasisAdjusted cost basis of the asset given up$0 – $1B+USD
GainRealised capital gain (positive) or loss (negative)−$1B – +$1BUSD
Gain %Gain as a percentage of cost basis−100% – +10,000%%
MarginGain as a share of FMV−∞ – +100%%
tHolding period0 – 20,000days
τApplicable tax rate0 – 55%
TowedEstimated tax = max(0, Gain) × τ$0 – $1B+USD

What Does the Taxable Gain Formula Measure?

When you dispose of a crypto asset — selling it for fiat, swapping it for another crypto, or using it to buy goods — the taxable result is the difference between what you received and what you originally paid. That difference is the realised capital gain or loss. The formula is a single subtraction: gain = FMV − cost basis. A positive result is taxable; a negative result is a deductible capital loss in most jurisdictions.

The subtlety is that a crypto-to-crypto trade is a disposal even though you never touched fiat. Tax authorities treat the trade as if you had sold the outgoing asset at its fair market value and used the proceeds to buy the incoming asset. That deemed sale triggers the gain calculation, and the incoming asset gets a fresh cost basis equal to the FMV you recognised. This is why a careful trader tracks basis lot by lot, not as a single pooled number.

Taxable Gain Formula

The defining relationship is:

Gain = FMV − Cost Basis

Rearranged to solve for the other two unknowns:

FMV = Cost Basis + Gain
Cost Basis = FMV − Gain

The gain is sometimes expressed as a percentage of basis — the return on the position — and sometimes as a margin on FMV, which is the share of the proceeds that is taxable. Both are useful: the first compares positions of different sizes, the second tells you how much of what you received the tax authority will want a cut of.

Gain Variables

SymbolMeaningNotes
FMVFair market value receivedValue of the asset acquired plus any cash received
BasisAdjusted cost basisPurchase price plus acquisition fees, adjusted for events
GainRealised capital gain or lossPositive = taxable gain, negative = deductible loss
Gain %Gain as a share of basisReturn on the position, comparable across sizes
MarginGain as a share of FMVThe taxable fraction of the proceeds
tHolding periodDetermines short-term vs long-term treatment
τApplicable tax rateDepends on jurisdiction, income and holding period

How Each Variable Affects the Gain

The gain is directly proportional to FMV and inversely proportional to basis. A higher FMV at the same basis means a larger gain; a higher basis at the same FMV means a smaller gain, and a basis above FMV turns the result into a loss. This linearity is what makes loss harvesting effective: raising the basis of the lot you dispose of reduces the taxable gain one for one, up to the point where the trade becomes a loss.

In practice, the two variables move for different reasons. FMV is set by the market at the moment you trade — you can influence it by choosing when to trade, but not by choosing what to record. Basis is set by your own acquisition history and by the accounting method you apply. Under FIFO the basis is fixed by which lots you bought first; under specific identification you can select the lot, which means you can often choose a basis that minimises the gain. That choice, applied consistently, is one of the few legitimate levers a taxpayer has.

Taxable Gain Calculation Examples

Given: FMV = $65,000, Basis = $20,000 — solve for the gain
Gain = 65,000 − 20,000 = $45,000.00
Gain % of basis = +225.00% · Margin on FMV = 69.23%
Given: Basis = $20,000, Gain = $45,000 — solve for FMV
FMV = 20,000 + 45,000 = $65,000.00
Given: FMV = $65,000, Gain = $45,000 — solve for basis
Basis = 65,000 − 45,000 = $20,000.00
Given: FMV = $8,000, Basis = $20,000 — solve for the loss
Gain = 8,000 − 20,000 = −$12,000.00 (a deductible capital loss)
Given: FMV = $65,000, Basis = $20,000, tax rate = 15% — solve for the tax owed
Tax = 45,000 × 0.15 = $6,750.00
After-tax proceeds = 65,000 − 6,750 = $58,250.00

Frequently Asked Questions

In most major jurisdictions, yes. The US IRS, HMRC in the UK, the Canada Revenue Agency, the Australian Taxation Office and most EU tax authorities treat exchanging one crypto asset for another as a taxable disposal of the outgoing asset. You are deemed to have received its fair market value in cash and then to have bought the incoming asset with that cash. The gain is FMV minus your basis in the outgoing asset. No fiat needs to enter your bank account for the taxable event to occur — the only thing that matters is that you disposed of an asset.

Use the price at the exact timestamp of the trade, from a reputable exchange or a price aggregator. For a trade that executed over a period of time, a volume-weighted average price over the execution window is the most defensible figure. Avoid using the daily close, the price on a different exchange, or a value you happen to remember — each of these introduces a discrepancy that can be challenged. Most exchanges publish historical price data to the minute, and many provide a downloadable trade history that already includes the USD value at execution.

Cost basis is what you paid to acquire the asset, including the purchase price plus any acquisition fees such as exchange commissions, and adjusted for any events that change your investment in the asset. For an asset bought in several lots, the basis of the units you dispose of depends on your accounting method: FIFO uses the oldest lots, LIFO the newest, and specific identification lets you choose. Airdrops and hard forks generally take a basis equal to their fair market value at receipt, which is also the amount you recognise as income at that time.

In many jurisdictions, yes — this is called specific identification, and it is one of the few legitimate levers available. By choosing to dispose of the lot with the highest basis, you reduce the realised gain, sometimes to zero or a loss. The catch is that specific identification generally requires contemporaneous documentation: you must be able to show which specific units were disposed of at the time of the trade, not reconstruct the choice after the fact. In some jurisdictions it must also be elected on your return. Consult a tax adviser before relying on it.

A loss is a realised capital loss, and in most jurisdictions it can offset realised capital gains in the same tax year. If losses exceed gains, many countries allow the excess to be carried forward to offset future gains, and some allow it to offset a limited amount of ordinary income. This is why tax-aware traders deliberately harvest losses near the end of a year: disposing of a position that is underwater converts an unrealised paper loss into a usable deduction. Be aware of wash-sale rules in the US, which can defer the loss if you acquire a substantially identical asset within 30 days before or after the sale.

It depends on the jurisdiction. In the US, assets held for more than one year qualify for long-term capital gains rates, which are 0%, 15% or 20% depending on income, versus short-term gains taxed at ordinary income rates up to 37%. Germany exempts crypto held for more than a year entirely. Australia applies a 50% discount to gains on assets held at least 12 months. The UK and Canada make no distinction by holding period. Because the thresholds differ, the practical rule is to know the rule that applies to you before you trade.

Report every disposal individually, not just the net figure. Most tax authorities require line-by-line reporting of each trade with its date, the asset disposed of, the proceeds, the cost basis and the resulting gain or loss. The net gain is then carried to the summary schedule. Reporting only the net is a common shortcut that can trigger questions during review, and it makes it harder to substantiate the figures if asked. Good crypto tax software produces the line-by-line report automatically from exchange exports.

Yes. The asset you receive takes a cost basis equal to its fair market value at the moment of the trade — which is the same figure you used as the FMV in this calculation. That is the symmetry that makes the whole system work: the gain you recognised on the outgoing asset becomes the starting basis for the incoming asset, so you are not taxed twice on the same appreciation. If you later dispose of the incoming asset at a higher price, only the appreciation from the swap date is taxed. Record the new basis and the acquisition date, since the latter drives your holding period.

Calculating...

Variables

Symbol Quantity Unit
Taxable Gain Taxable gain or loss on the trade currency
FMV of Coin Received Fair market value of the coin received in the trade currency
Cost Basis of Coin Given Up Original cost basis of the coin traded away currency

What it means

In many jurisdictions, trading one cryptocurrency for another is a taxable event. The gain is the difference between the fair market value of the coin received and the cost basis of the coin given up. This is used for tax reporting. Understanding this helps traders track gains and comply with tax laws.

Worked example

Crypto‑to‑Crypto Taxable Gain – Two Detailed Examples

Real‑World
Scenario: A trader swaps 1 ETH (cost basis $2,000) for 0.05 BTC when the market value of 0.05 BTC is $3,000. The taxable gain is the difference between the fair market value of the asset received ($3,000) and the cost basis of the asset given up ($2,000) = $1,000. This gain is reportable as a capital gain. The trader keeps detailed records of every trade for tax purposes.
ParameterValue
Coin Given Up (Cost Basis)1 ETH ($2,000 basis)
Coin Received (FMV at trade)0.05 BTC (worth $3,000)
1Taxable Gain = 3,000 - 2,000 = $1,000
Result $1,000 ✓ Taxable gain
Scenario: Another trader swaps 500 ADA (cost basis $200) for 2,000 MATIC worth $150 at the time of the swap. Since the value received ($150) is less than the cost basis ($200), the trader realises a loss of -$50. This loss can be used to offset other capital gains. The trader uses this tax‑loss harvesting strategy to minimise their overall tax liability.
ParameterValue
Coin Given Up (Cost Basis)500 ADA ($200 basis)
Coin Received (FMV at trade)2,000 MATIC (worth $150)
1Taxable Gain = 150 - 200 = -$50 (loss)
Result -$50 ✓ Tax loss
Insight: In most jurisdictions, crypto‑to‑crypto trades are taxable events. The gain or loss is calculated as the fair market value of the asset received minus the cost basis of the asset disposed of. This is similar to barter transactions.

Common mistakes

  • Taxable gain on crypto‑to‑crypto trade: Fair market value of received coin minus cost basis of coin given up.
  • FMV: The price at the time of the trade.
  • Cost basis: The original purchase price of the coin given up.
  • Trade must be reported: Crypto‑to‑crypto trades are taxable events in many jurisdictions.

Applications

Crypto‑to‑crypto trade taxable gain calculates the taxable gain when exchanging one cryptocurrency for another, based on the fair market value of the received asset and the cost basis of the asset given up. This is necessary for tax reporting in jurisdictions that treat crypto‑to‑crypto trades as taxable events. Traders need this to comply with tax laws. Understanding this helps in accurate tax filing.

  • Calculating gains for crypto‑to‑crypto trades
  • Tax reporting for cryptocurrency exchanges
  • Tracking cost basis across multiple trades
  • Compliance with tax regulations
  • Educational understanding of crypto taxation