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.
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
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.
| Jurisdiction | Short-term rate | Long-term rate | Loss offset | Notes |
|---|---|---|---|---|
| United States | Ordinary income (10–37%) | 0% / 15% / 20% | Yes, with carryforward | Held ≤ 1 yr short-term; > 1 yr long-term; wash-sale rules apply |
| United Kingdom | 10% / 20% | 10% / 20% | Yes | No long-term distinction; annual exempt amount applies |
| Germany | 25% | 0% if held > 1 yr | Yes, limited | Long-held crypto is tax-free on disposal |
| Canada | 50% of gain at marginal rate | 50% of gain at marginal rate | Yes | No distinction by holding period |
| Australia | Marginal rate | Marginal rate with 50% discount | Yes | Held > 12 months gets CGT discount |
| France | 30% flat | 30% flat | Yes | Single flat rate for crypto gains |
| Japan | Up to 55% | Up to 55% | Limited | Miscellaneous income, not capital gains |
| Portugal | 28% | 28% | Yes | Held < 365 days taxed; longer is exempt |
| Switzerland | 0% | 0% | n/a | Private investors generally exempt |
| El Salvador | 0% | 0% | n/a | No 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 period | US | UK | Germany | Australia | Effect |
|---|---|---|---|---|---|
| < 30 days | Short-term | Taxable | Taxable | No discount | Full rate applies |
| 30 – 180 days | Short-term | Taxable | Taxable | No discount | Full rate applies |
| 181 – 364 days | Short-term | Taxable | Taxable | No discount | Full rate applies |
| 365 – 730 days | Long-term | Taxable | Tax-free | 50% discount | Preferential rate applies |
| > 730 days | Long-term | Taxable | Tax-free | 50% discount | Preferential rate applies |
Variable Reference
| Symbol | Meaning | Typical range | Units |
|---|---|---|---|
| FMV | Fair market value received at disposal | $0 – $1B+ | USD |
| Basis | Adjusted cost basis of the asset given up | $0 – $1B+ | USD |
| Gain | Realised capital gain (positive) or loss (negative) | −$1B – +$1B | USD |
| Gain % | Gain as a percentage of cost basis | −100% – +10,000% | % |
| Margin | Gain as a share of FMV | −∞ – +100% | % |
| t | Holding period | 0 – 20,000 | days |
| τ | Applicable tax rate | 0 – 55 | % |
| Towed | Estimated 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:
Rearranged to solve for the other two unknowns:
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
| Symbol | Meaning | Notes |
|---|---|---|
| FMV | Fair market value received | Value of the asset acquired plus any cash received |
| Basis | Adjusted cost basis | Purchase price plus acquisition fees, adjusted for events |
| Gain | Realised capital gain or loss | Positive = taxable gain, negative = deductible loss |
| Gain % | Gain as a share of basis | Return on the position, comparable across sizes |
| Margin | Gain as a share of FMV | The taxable fraction of the proceeds |
| t | Holding period | Determines short-term vs long-term treatment |
| τ | Applicable tax rate | Depends 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
Gain = 65,000 − 20,000 = $45,000.00
Gain % of basis = +225.00% · Margin on FMV = 69.23%
FMV = 20,000 + 45,000 = $65,000.00
Basis = 65,000 − 45,000 = $20,000.00
Gain = 8,000 − 20,000 = −$12,000.00 (a deductible capital loss)
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.
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| Parameter | Value |
|---|---|
| Coin Given Up (Cost Basis) | 1 ETH ($2,000 basis) |
| Coin Received (FMV at trade) | 0.05 BTC (worth $3,000) |
| Parameter | Value |
|---|---|
| Coin Given Up (Cost Basis) | 500 ADA ($200 basis) |
| Coin Received (FMV at trade) | 2,000 MATIC (worth $150) |
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
Related calculators · Wallet, Security & Tax
Recently updated formulas
Suggest an improvement
Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.