What the Crypto Tax Calculator does
This crypto tax calculator turns a list of buys and sells into the gain or loss on every sale and an estimated tax bill under US, UK or Indian rules: FIFO, LIFO or HIFO lots with short- and long-term gains for the US, HMRC same-day, 30-day and pooling rules for the UK, and India's flat 30% on virtual digital assets.
Paste your trades as CSV or drop an exchange export, choose the country, and the calculator matches each sale to the coins it came from, groups the results by tax year and estimates the tax with the published rates for 2026 (US) or 2026-27 (UK and India). You can export the sales in the column order of IRS Form 8949. Prices are whatever you enter: there is no price feed, and the trade list never leaves your browser.
How to use it
- Paste a CSV with a header row: date (YYYY-MM-DD), type (buy or sell), asset, quantity, price per unit or total, and fee. Most exchange exports can be trimmed to these columns; common header names such as side, coin, amount and commission are recognised.
- Record a swap of one coin for another as two rows: a sell of the coin you gave up and a buy of the coin you received, both at the market value at that moment.
- Choose US, UK or India. For the US pick FIFO, LIFO or HIFO and enter your other taxable income and filing status; for the UK enter how much of your basic-rate band is unused; for India add a surcharge if your total income is over 50 lakh.
- Pick the tax year, read the estimate at the top, then check every sale in the table: which purchase it was matched to, its cost and its gain.
- Download the Form 8949 CSV or print the page for your records or your accountant.
Reading the results
The method changes when you pay, not whether you pay. HIFO sells the most expensive coins first, so this year's gain is smallest, but the cheap coins left behind carry a bigger gain later. In the US you can only use it if you identify the units at the time of sale; otherwise FIFO applies within each wallet or account.
In the US, gains on coins held more than one year are long-term and taxed at 0%, 15% or 20%; a year or less is short-term and taxed like wages. A net loss reduces other income by up to $3,000 ($1,500 married filing separately) and the rest carries forward.
In the UK there is no choice of method: HMRC's matching rules decide the cost. In India each profitable transfer is taxed at 30% and losses are simply ignored, so the tax can be due even in a year when you lost money overall.
Worked example: US single filer, $80,000 other taxable income, BTC and ETH sold in 2026 (FIFO)
Bought 0.5 BTC at $42,000 with a $25 fee on 10 February 2025 (cost $21,025, or $42,050 a coin) and 0.3 BTC at $90,000 with a $30 fee on 20 November 2025; bought 4 ETH at $2,200 with a $10 fee on 15 January 2026. Sold 0.4 BTC at $105,000 with a $40 fee on 5 March 2026 and 2 ETH at $3,000 with an $8 fee on 1 June 2026.
FIFO matches the BTC sale to the February 2025 lot: proceeds $42,000 - $40 = $41,960, cost 0.4 x $42,050 = $16,820, gain $25,140, long-term because it was held more than a year. The ETH sale gains $5,992 - 2 x $2,202.50 = $1,587, short-term.
The $1,587 short-term gain is taxed at 22% = $349.14 and the $25,140 long-term gain at 15% = $3,771, so the estimate is $4,120.14. With HIFO the BTC sale would use the $90,100 coins first and the total gain would fall from $26,727 to $12,312 - but $14,415 more gain would remain in the coins still held.
Formulas and scoring rules
- Gain on a sale
gain = (quantity x price - selling fee) - matched cost (purchase price + buying fee, pro rata)India: fees are ignored on both sides because only the cost of acquisition is deductible.- US holding period
long-term if sold after the first anniversary of the purchase date; otherwise short-term- US tax
short-term: tax(other income + net short-term gain) - tax(other income); long-term: 0% / 15% / 20% stacked on top, using the 2026 thresholdsNet loss: up to $3,000 ($1,500 MFS) against other income, rest carried forward. The 3.8% net investment income tax is not added.- UK tax
(gains - losses - annual exempt amount) x 18% within the unused basic-rate band and 24% above it- UK matching
same day first, then acquisitions in the following 30 days (earliest disposal first), then the section 104 pool at average cost- India tax
30% x the sum of positive gains, + surcharge, + 4% cess on tax and surcharge; TDS = 1% x sale considerationAmounts are shown to two decimals; the CSV rounds half away from zero.
United States
The IRS treats digital assets as property, so every sale, swap or spend of crypto is a disposal with a capital gain or loss (Notice 2014-21). Since 1 January 2025 basis is tracked wallet by wallet and account by account under Treas. Reg. 1.1012-1(j), with Rev. Proc. 2024-28 giving a one-time way to allocate older basis; run the calculator separately for each wallet or exchange account. Brokers report gross proceeds on Form 1099-DA for sales from 2025 and cost basis for sales from 2026.
United Kingdom
HMRC treats tokens of the same kind as one pooled asset. The same-day rule (TCGA 1992 s.105) and the 30-day rule (s.106A) come first, and whatever is left uses the section 104 pool's average cost, as set out in the Cryptoassets Manual from CRYPTO22200. For 2026-27 gains above the £3,000 annual exempt amount are taxed at 18% within the basic-rate band and 24% above it.
India
Income from transferring a virtual digital asset is taxed at a flat 30% plus 4% cess, whatever your slab, with no deduction except the cost of acquisition and no set-off of a loss against any other income, including gains on another coin. A 1% TDS applies to the sale consideration and is credited against your tax. These rules were sections 115BBH and 194S of the Income-tax Act, 1961; from tax year 2026-27 the Income-tax Act, 2025 replaces the 1961 Act and renumbers its sections, so check the current section numbers on incometaxindia.gov.in or with a chartered accountant before you file.
Limitations: what the result does not prove
- It covers buys and sells only. Staking, mining, airdrops, interest and payment in crypto are taxed as income when received and are not included; DeFi, margin and futures trades need separate treatment.
- The prices and fees are the ones you enter. A wrong or missing purchase changes every gain after it, and a sale larger than the coins listed is given a zero cost with a warning.
- Tax figures are one year's published rates and a single other-income number; state taxes, the UK income tax interaction beyond the band you enter, and India's surcharge rules on total income are your inputs.
- This is an estimate, not financial, legal or tax advice. Confirm the figures with a CPA or enrolled agent, a UK chartered tax adviser or an Indian chartered accountant before filing.
Privacy: where your data goes
Everything you paste, type or drop is processed in this browser tab. It is not uploaded, logged, stored or sent to analytics. Session recording and tag-manager scripts are switched off on this page.
Standards and sources
- IRS - Digital assets - checked 3 Dec 2026
- HMRC Cryptoassets Manual - checked 3 Dec 2026
- IRS - Frequently asked questions on digital asset transactions
- IRS Revenue Procedure 2024-28 - Allocating basis to wallets
- IRS Revenue Procedure 2025-32 - 2026 inflation-adjusted amounts
- HMRC Cryptoassets Manual - CRYPTO22200 Pooling
- GOV.UK - Capital Gains Tax rates and annual tax-free allowances
- Income Tax Department - Taxation of Virtual Digital Assets
Frequently asked questions
How is cryptocurrency taxed?
In the US and the UK crypto is treated as property, so selling, swapping or spending it is a disposal taxed as a capital gain or loss; in India profits from transferring crypto are taxed at a flat 30% plus cess, and crypto received as income is taxed as income in all three.
Is FIFO or HIFO better for crypto taxes?
HIFO usually gives the smaller gain this year because the most expensive coins are sold first, but it leaves cheaper coins for later; in the US you can use it only by identifying the specific units when you sell, otherwise FIFO applies within each wallet or account.
Do I pay tax when I swap one crypto for another?
Yes in the US, the UK and India: swapping coin A for coin B is a disposal of coin A at its market value, so you have a gain or loss on A and a new cost for B equal to that same value.
What is Form 1099-DA?
Form 1099-DA is the IRS information return on which crypto brokers report your digital asset sales: gross proceeds for transactions from 1 January 2025 and cost basis for transactions from 1 January 2026, so your Form 8949 should reconcile with it.
How is crypto taxed in India?
India taxes income from transferring virtual digital assets at a flat 30% plus 4% cess, allows only the cost of acquisition as a deduction, does not let a loss be set off against any other income, and deducts 1% TDS on the sale value.
How does the 30-day rule work for crypto in the UK?
If you sell tokens and buy the same kind again within the next 30 days, HMRC matches the sale with that new purchase rather than your pool, so you cannot crystallise a loss by selling and buying straight back.
Can crypto losses reduce my tax?
In the US a net capital loss offsets gains and then up to $3,000 of other income a year, carrying forward the rest; in the UK losses offset gains and can be carried forward if reported; in India a loss on crypto cannot reduce any tax at all.
Last reviewed by the A2Z.Tools team against the sources listed above.