Skip to content
Allin

How Crypto Tax Is Calculated: The Principles That Apply Everywhere

Published 4/6/2026 · 7 min read · Finance calculators

Camille Laurent

Camille LaurentFinance writer at Allin

Tax · Personal finance

Checked against 2 sources

View profile
In short

In most countries a taxable event happens when you dispose of crypto — selling it for currency, swapping one coin for another, or spending it — while simply buying and holding is not taxable. The gain on each disposal is proceeds minus cost basis, where the basis is what you paid plus acquisition fees. Buy 1 BTC for $30,000 with a $150 fee and your basis is $30,150; sell for $50,000 with a $200 fee and your proceeds are $49,800, so the gain is $19,650. Rewards from mining, staking and airdrops are usually taxed as income at their market value on the day you receive them, and that value becomes the cost basis for the later disposal. Losses normally offset gains, and the rate often depends on how long you held.

Rates differ by country, the mechanics rarely do: a disposal triggers a gain, the gain is proceeds minus cost basis, and staking is income. Here is the calculation and where jurisdictions diverge.

What counts as a disposal

The common thread across tax systems is that tax attaches to disposal, not to price movement. Holding a coin that has tripled creates no liability; selling it does. Three actions are disposals almost everywhere: selling for government-issued currency, swapping one crypto for another, and paying for goods or services with crypto. Moving your own coins between your own wallets is not a disposal, though the transfer fee may itself be a small one.

The crypto-to-crypto swap is where most people are caught out. In the United States, the United Kingdom and many other systems, trading BTC for ETH is two events at once: a disposal of the BTC at its market value that day, and an acquisition of the ETH at the same value. No currency ever reached your bank, yet a taxable gain was realised. France is a notable exception — crypto-to-crypto trades are not taxed there, and the liability arises only on conversion to conventional currency — which is exactly why the country you file in changes the shape of the whole calculation.

Cost basis and the worked example

The gain is proceeds minus basis, and both sides include fees. Buy 1 BTC at $30,000 and pay a $150 trading fee: your cost basis is $30,150, because acquisition costs are added to the basis. Sell that coin at $50,000 and pay a $200 fee: your proceeds are $49,800, because disposal costs are deducted from the proceeds. The taxable gain is 49,800 − 30,150 = $19,650, not the $20,000 the two headline prices suggest. Fees are small individually and material across a year of active trading.

When you hold several lots bought at different prices, the basis you use depends on which coins you are deemed to have sold. FIFO takes the oldest lot first and is the default in many systems. Specific identification lets you nominate a particular lot, which is how traders realise the highest-basis coins to minimise a gain, and it requires records good enough to prove the choice. Some systems, notably the United Kingdom, instead pool your holdings into a single average cost with special rules for same-day and thirty-day acquisitions. The methods give materially different bills from identical trades, which is why the choice cannot be made retroactively.

Rewards are income, not gains

Coins that arrive rather than being bought are usually treated as income at the moment you can control them, valued at that day's market price. Mining rewards, staking rewards, lending interest and most airdrops fall into this bucket. Receive a staking reward worth $400 and you generally have $400 of income for that year, taxed at income rates rather than capital-gains rates, even though you have not sold anything and cannot pay the bill with the coin unless you do.

That income figure then does double duty as the cost basis for the later disposal, which prevents the same value being taxed twice. If your $400 reward is later sold for $650, the capital gain is $250, not $650. The practical trap is timing: the income is fixed at receipt, so a reward taxed at a high market value and then sold after a fall can leave you with an income tax bill larger than the cash the coins eventually raised. Recording the market value on the day of every single reward is the only way the later arithmetic works.

Where the rules genuinely differ

Holding period is the biggest divergence. The United States splits gains into short-term, taxed at ordinary income rates, and long-term for assets held more than a year, taxed at lower rates. Germany goes further: private crypto sold after more than one year of holding is generally exempt from tax altogether. France applies a flat rate to conversions into conventional currency regardless of how long you held. The same trades, filed in three countries, can produce a full income-rate bill, a reduced rate, or nothing at all.

Loss treatment, reporting thresholds and wash-sale rules vary just as much, and the rules have been changing quickly as reporting obligations tighten on exchanges. Treat the mechanics in this article as the frame — disposals, basis, fees, income at receipt — and treat the rate, the holding period and the allowable methods as things to confirm for your own country and tax year. Where amounts are meaningful, an accountant who has handled crypto before costs less than an amended return.

Worked with our own calculator

Crypto tax calculator

Given

Sale proceeds
$6,000.00
Cost basis (what you paid)
$2,500.00
Tax rate (%)
27

Result

Capital gain
$3,500.00
Tax owed
$945.00
Net gain after tax
$2,555.00
Effective rate on proceeds
15.75%

These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.

Run it on your own figures

Frequently asked questions

Do I owe tax if I only bought and never sold?
Generally no. Buying and holding is not a disposal, so an unrealised gain is not taxed. Many countries still expect the holding to be reported, and some require a declaration of accounts held on foreign platforms, so no tax due is not the same as nothing to file.
Is swapping one coin for another taxable?
In most systems yes — it is a disposal of the first coin at market value and an acquisition of the second, even though no conventional currency moved. France is a notable exception, taxing only conversions into conventional currency. Because this single rule can create a tax bill with no cash to pay it from, it is the first thing to check for your own country.
Can I deduct my crypto losses?
Usually against gains of the same kind, and often with the unused part carried forward to later years. The limits are jurisdiction-specific: some countries cap the annual offset, some restrict which categories can be netted, and some require the loss to be realised by an actual disposal rather than just a fall in value. Check your own rules before relying on a loss you have not yet crystallised.

Articles you may find interesting

All guides
ExplainerHow Staking Rewards Actually Work: Nominal Rate, Compounding, and What Eats ItAn advertised 8 percent becomes 8.33 percent once daily rewards compound — and then 7.46 percent after a 10 percent validator commission, and less again after unbonding time. Here is each step, with the arithmetic laid out.ExplainerWhat Is Slippage in Crypto? Price Impact, Tolerance and What It CostsPrice impact is arithmetic: on a constant-product pool it equals your trade size divided by the reserve plus your trade. Here is the formula, a table of trade size against impact, and why the setting called slippage tolerance changes none of it.GuideYield Farming: What an Advertised APY Actually PaysThe number on the farm's front page is a gross figure before every subtraction. Here is a 120 percent APY walked down, one layer at a time, to the 33.6 percent that actually landed — plus why APR and APY are not the same number.ExplainerDollar-Cost Averaging: What It Actually Buys YouSpending a fixed amount each period buys more units when the price is low, so your average cost is the harmonic mean of the prices while the average price is the arithmetic mean — always lower, by 4.10 percent on the path worked through here. Against a lump sum, a 200,000-path simulation puts DCA's standard deviation 41 percent lower and its expected terminal wealth $337 lower on $12,000.ExplainerVolatility Is Not Risk, and the Square Root of Time Is a ChoiceAnnualised volatility = period standard deviation × √(periods per year), and that √t scaling assumes independent increments. It is a model, not arithmetic: at a daily autocorrelation of 0.1 a 60 percent annualised figure should read 66.3. The payload is volatility drag — the arithmetic mean exceeds the geometric by about σ²/2, so at 8 percent average return and 40 percent volatility the compound outcome is zero.ComparisonSelling a Second Home: Only One of These Three Countries Rewards Holding ItFrance tapers the tax on a property gain to zero over twenty-two and then thirty years. Spain does not taper at all for anything bought after 1994. Portugal has no taper either — it has an inflation index and a fifty per cent haircut, which is a different animal entirely.

Related tools

General information, not tax advice. Crypto tax rules differ by country and change often; confirm the treatment for your own jurisdiction and tax year, and take professional advice where the amounts matter.

Sources

Spotted a mistake in this article?