Finance calculators

Crypto Tax Calculator

Updated Nov 11, 2026 By Infinity Calculator Formulas Sources
Rate
Tax Context
Country / Tax Regime
$
Income before crypto gains from this tool.
Adds the state's income tax on the gain from its brackets.
%
Leave blank to use the selected region's brackets. A rate typed here is applied to the whole taxable gain.
Trade Entry
Trade Mode
Switching modes keeps everything you've entered. In Single mode only the first trade is used.
Result Summary
Pre-Tax Gain / Loss = Proceeds − Cost Basis − Fees
i
Applicable Rates
Bottom Line
Estimated Tax Owed
Estimated Net Gain After Tax
Holding Period Comparison i
Step-by-Step Solution
Where Your Gain Goes
Scenario Comparison

Introduction

When you sell crypto for more than you paid, you owe tax on the profit. When you sell for less, you may be able to use that loss to lower your tax bill. Either way, you need to know the numbers. This free crypto tax calculator works out the tax on your crypto.

Enter your income, pick your country, and add your trade details. The tool figures out your capital gains tax, shows whether your gain is short-term or long-term, and breaks down exactly how much you may owe. It covers the United States, Canada, Australia, and the United Kingdom and estimates the federal tax, state or provincial tax, and any extra levies like the U.S. Net Investment Income Tax.

You can calculate a single trade or add multiple trades at once to see your total tax bill across all of them. The calculator also compares what your tax would look like under a different holding period so you can see how timing affects your bottom line. Every result includes a step-by-step breakdown and clear charts so nothing is hidden.

How to Use Our Crypto Tax Calculator

Enter details about your income, location, and crypto trades below. The calculator will estimate how much tax you owe on your crypto gains and show your net profit after tax.

Tax Year: Pick the tax year you want to calculate for: 2024, 2025, or 2026. For the United States you can also pick 2027, using the brackets in Revenue Procedure 2026-35.14 The U.S. brackets for 2024 come from Revenue Procedure 2023-34.17 The 2025 brackets come from Revenue Procedure 2024-40.18 The 2026 brackets come from Revenue Procedure 2025-32.19

Country / Tax Regime: Select the country where you file taxes. Choose from the United States, Canada, Australia, or the United Kingdom. Tax rules and rates update automatically.

Filing Status: Choose how you file your taxes. Options change based on your country. For the US, this includes Single, Married Filing Jointly, and others.

Annual Taxable Income: Enter your total taxable income for the year, not counting crypto gains from this calculator. This sets which tax bracket applies to your gains.

State or Province: Type or select your state or province. The calculator works out that state's or province's tax on the gain from its own brackets. For a U.S. state it uses your taxable income plus the federal standard deduction as your income, and it applies some states' own capital gains rules, such as Washington's tax on long-term gains only. To use your own flat rate instead, type it in the override box and it is applied to the whole taxable gain. This field only appears for US and Canadian filers.

Trade Mode: Choose Single Trade to calculate one transaction or Multiple Trades to add and calculate several at once.

Acquisition Method: Pick how you got the crypto: by purchasing it, receiving it as pay for services, or trading goods for it. This determines your cost basis.

Purchase / Acquisition Date: Enter the date you first received or bought the crypto.

Purchase Price: Enter the price you paid for the crypto, or its fair market value when you received it as payment or through a trade.

Sale / Disposal Date: Enter the date you sold or disposed of the crypto. This must be on or after the purchase date.

Sale Amount (Proceeds): Enter the total amount you received when you sold the crypto.

Transaction Fees: Enter any fees you paid, such as exchange fees, gas fees, or network fees. These reduce your taxable gain.

Held for More Than 1 Year: The calculator sets this automatically from your dates. Use the toggle to override it manually if needed. Assets held over one year qualify as long-term and are usually taxed at a lower rate.

Click Calculate to see your estimated tax, effective tax rate, net gain after tax, a step-by-step breakdown, and a comparison of short-term versus long-term tax outcomes.

How Crypto Is Taxed: What You Need to Know

When you sell cryptocurrency for more than you paid, the profit is called a capital gain, and you owe taxes on it. If you sell for less than you paid, you have a capital loss, which can lower your tax bill. For U.S. tax purposes, crypto is treated as property, not currency.1 That means every time you sell, trade, or spend crypto, it counts as a taxable event.1

Short-Term vs. Long-Term Capital Gains

How long you hold your crypto before selling matters a lot. If you hold it for one year or less, your profit is a short-term capital gain.1 Short-term gains are taxed at your regular income tax rate. For 2026 the top U.S. rate is 37%.4 If you hold it for more than one year, your profit is a long-term capital gain.1 Long-term gains get lower tax rates, usually 0%, 15%, or 20% for U.S. filers.3 Holding longer can save you a significant amount of money in taxes.

What Counts as Your Cost Basis

Your cost basis is what you originally paid for the crypto, including any fees.2 If you received crypto in exchange for property, your basis is its fair market value when you received it.2 If you received it as payment for work, its fair market value when you received it also becomes your cost basis. Your taxable gain or loss is your sale price minus any selling fees, minus your cost basis.15 The calculator takes all fees in one box, so enter the purchase price without fees and put both the buying and the selling fees under Transaction Fees.

Other Taxes That May Apply

In the U.S., high earners may also owe the Net Investment Income Tax (NIIT), an extra 3.8% on investment income.5 Your modified adjusted gross income (MAGI) determines whether this surtax applies. State taxes can add even more on top of federal taxes. In Canada, the inclusion rate for 2025 is 50%, so half of your capital gain is taxable.6 In Australia, you can reduce a capital gain by 50% if you owned the asset for at least 12 months and are an Australian resident for tax purposes.7 In the UK, you have a tax-free allowance before capital gains tax kicks in.9

Capital Losses and Tax-Loss Harvesting

If you sold crypto at a loss, you can use that loss to offset other capital gains. In the U.S., if your losses exceed your gains, you can deduct up to $3,000 ($1,500 if married filing separately) of the remaining loss from your ordinary income each year.3 Any leftover loss carries forward to future tax years.3 This strategy is called tax-loss harvesting, and it is a common way to reduce what you owe.


Formulas used

Pre-Tax Capital Gain or Loss
G = P_{\text{sale}} - C_{\text{basis}} - F_{\text{fees}}
Progressive Bracket Tax (US Ordinary / CA Federal / AU Income)
T_{\text{bracket}}(I) = \sum_{i=1}^{n} \max\!\left(0,\; \min(I,\, b_{i+1}) - b_i\right) \times r_i
US Federal Short-Term Tax on Gain
T_{\text{ST}} = T_{\text{bracket}}(I + G) - T_{\text{bracket}}(I)
US Net Investment Income Tax (NIIT) 5
T_{\text{NIIT}} = 3.8\% \times \min\!\left(G,\; \left(I + D_{\text{std}} + G - \theta\right)^{+}\right)
State / Provincial Tax
T_{\text{state}} = T_{\text{region}}\!\left(I_{\text{region}} + G_{\text{taxable}}\right) - T_{\text{region}}\!\left(I_{\text{region}}\right), \quad \text{or with an override: } \frac{r_{\text{state}}}{100} \times G_{\text{taxable}}
Total Estimated Tax Liability
T_{\text{total}} = T_{\text{fed}} + T_{\text{state}} + T_{\text{NIIT}} + T_{\text{medicare}}
Effective Tax Rate
R_{\text{eff}} = \frac{T_{\text{total}}}{G} \times 100\%
Net Gain After Tax
N = G - T_{\text{total}}

Frequently asked questions

Do I need to report crypto if I did not sell it?

In most cases, no. Simply holding crypto is not a taxable event.1 You typically owe tax only when you sell, trade, or spend your crypto. However, receiving crypto as income (like mining rewards or payment for work) is usually taxable when you receive it.1

What is the difference between short-term and long-term crypto tax?

If you hold crypto for one year or less before selling, the gain is short-term.1 Short-term gains are taxed at your regular income rate. If you hold it for more than one year, the gain is long-term.1 Long-term gains are usually taxed at a lower rate.3 The calculator figures this out from your dates.

What is cost basis?

Cost basis is what you paid to get the crypto. It includes the purchase price plus any fees you paid at the time.2 Your taxable gain equals your sale price minus your cost basis minus any selling fees.15

How do transaction fees affect my tax?

Transaction fees lower your taxable gain. The calculator subtracts them from your profit before figuring out the tax. Always include exchange fees, gas fees, and network fees for a more accurate result.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an extra 3.8% tax that applies to U.S. filers whose income exceeds a certain threshold.5 For single filers, that threshold is $200,000.5 For married filing jointly, it is $250,000.5 For married filing separately, it is $125,000, and for head of household it is $200,000.5 The calculator estimates your MAGI as your taxable income plus the standard deduction plus the gain, and adds the tax when it applies.

What happens if I sold crypto at a loss?

A loss can help you save on taxes. In the U.S., capital losses offset capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 ($1,500 if married filing separately) from your ordinary income per year.3 The rest carries forward to later years.3 The calculator shows your estimated tax savings from the loss.

Does the wash-sale rule apply to crypto?

The U.S. wash-sale rule covers losses on sales of stock or securities.13 The IRS treats virtual currency as property for federal tax purposes.12 So under current law the wash-sale rule does not apply to crypto that is not a stock or security, and you can sell it at a loss and buy it back right away without losing the tax deduction.16 The U.S. Treasury has proposed adding digital assets to the wash-sale rule, so this could change.16

Why does my state matter for crypto tax?

Many U.S. states charge their own income tax on capital gains on top of federal tax. Picking your state lets the calculator work out that state's tax on the gain from its brackets. Some states like Florida and Texas have no state income tax, which means a lower total bill. Washington taxes only long-term capital gains above its standard deduction, $278,000 for 2025, at 7%.11 From 2025, taxable gains above $1 million pay an extra 2.9%.20 The calculator applies the deduction and both rates when you pick Washington.

Does trading one crypto for another count as a taxable event?

Yes. In the U.S., swapping one crypto for another is treated the same as selling.2 You owe tax on any gain at the time of the swap. Use the sale amount as the fair market value of the crypto you received.

How is crypto taxed in Canada?

In Canada, only 50% of your capital gain is added to your taxable income.6 This is called the inclusion rate, and it is 50% for 2025.6 The calculator applies it automatically when you select Canada as your country.

How is crypto taxed in Australia?

In Australia, crypto gains are taxed as part of your income. If you owned the crypto for at least 12 months and are an Australian resident for tax purposes, you can reduce your capital gain by 50%.7 A 2% Medicare levy also applies.8 You may get a reduction or exemption from the levy, depending on your and your spouse's income and circumstances.8

How is crypto taxed in the UK?

In the UK, you get a tax-free allowance each year (currently £3,000).9 Gains above that are taxed at 18% on the part that falls within the basic rate band and 24% on the part above it.10 For sales from 6 April 2024 to 29 October 2024 the rates were 10% and 20%.21 The calculator sets the rate from your income and, for 2024 to 2025, from the sale date.

What counts as a taxable crypto event?

Common taxable events include selling crypto for cash, trading one crypto for another, spending crypto to buy goods or services, and receiving crypto as payment for work.1 Simply buying and holding crypto is generally not taxable.1

What if I received crypto as payment for work?

Select Payment for Services as the acquisition method. The fair market value of the crypto when you received it is your cost basis.12 That amount was already taxed as ordinary income.2 When you later sell, you only owe capital gains tax on any increase above that value.


Sources

  1. Digital assets. Internal Revenue Service. Accessed September 11, 2026.
  2. Frequently asked questions on virtual currency transactions. Internal Revenue Service. Q8, Q9, Q16, Q21. Accessed September 11, 2026.
  3. Topic no. 409, Capital gains and losses. Internal Revenue Service. Accessed September 11, 2026.
  4. IRS releases tax inflation adjustments for tax year 2026, including amendments from the One, Big, Beautiful Bill. Internal Revenue Service. 2025;IR-2025-103. Accessed September 11, 2026.
  5. Topic no. 559, Net investment income tax. Internal Revenue Service. Accessed September 11, 2026.
  6. Capital losses and deductions. Canada Revenue Agency. Accessed September 11, 2026.
  7. CGT discount. Australian Taxation Office. Accessed September 11, 2026.
  8. What is the Medicare levy? Australian Taxation Office. Accessed September 11, 2026.
  9. Capital Gains Tax: what you pay it on, rates and allowances - allowances. GOV.UK, HM Revenue & Customs. Accessed September 11, 2026.
  10. Capital Gains Tax: what you pay it on, rates and allowances - rates. GOV.UK, HM Revenue & Customs. Accessed September 11, 2026.
  11. Capital gains tax. Washington State Department of Revenue. Deductions. Accessed October 7, 2026.
  12. Notice 2014-21. Internal Revenue Bulletin 2014-16. Internal Revenue Service. 2014;Q&A-1, Q&A-4. Accessed October 7, 2026.
  13. 26 U.S. Code § 1091 - Loss from wash sales of stock or securities. United States Code. Legal Information Institute, Cornell Law School. § 1091(a). Accessed October 7, 2026.
  14. Revenue Procedure 2026-35. Internal Revenue Service. 2026;sections 3.01 and 3.03. Accessed November 9, 2026.
  15. Publication 550, Investment Income and Expenses. Internal Revenue Service. chapter 4, How To Figure Gain or Loss (Amount realized). Accessed November 11, 2026.
  16. General Explanations of the Administration's Fiscal Year 2025 Revenue Proposals. U.S. Department of the Treasury. 2024;Apply the wash sale rules to digital assets and address related party transactions, pp. 217-218. Accessed November 11, 2026.
  17. Revenue Procedure 2023-34. Internal Revenue Service. 2023;section 3.01 and 3.03 (2024 tax rate tables and maximum capital gains rate amounts). Accessed November 11, 2026.
  18. Revenue Procedure 2024-40. Internal Revenue Service. 2024;section 3.01 and 3.03 (2025 tax rate tables and maximum capital gains rate amounts). Accessed November 11, 2026.
  19. Revenue Procedure 2025-32. Internal Revenue Service. 2025;section 4.01 and 4.03 (2026 tax rate tables and maximum capital gains rate amounts). Accessed November 11, 2026.
  20. New tiered rates for Washington's capital gains tax. Washington State Department of Revenue. 2025;What are the rates?. Accessed November 11, 2026.
  21. Capital Gains Tax rates and allowances. HM Revenue & Customs. 6 April 2024 to 29 October 2024. Accessed November 11, 2026.