---
title: "Crypto Capital Gains Tax Calculator"
date: 2026-11-18
author: "Steven Burnett"
featured_image: "https://coinlaw.io/wp-content/uploads/2026/10/crypto-capital-gains-tax-calculator.jpg"
---

# Crypto Capital Gains Tax Calculator

The crypto capital gains tax calculator estimates the federal tax on crypto gains for tax year 2026 or 2027, short-term and long-term in one run, stacked on your other income. A **$20,000** long-term gain on **$60,000** of other income, filing single in 2026, carries an estimated **$3,000.00**, or **15.00%** of the gain.

  Crypto Capital Gains Tax Calculator Examples Reset Long-term, single Short-term, single Both kinds, single Married, with the 3.8% tax 

 

 Showing what you entered last time. Reset

  Tax year   2026    2027  

Brackets and thresholds from IRS Rev. Proc. 2025-32, for gains realized in 2026.

  Filing status  Single Married filing jointly or qualifying surviving spouse Married filing separately Head of household  

 

 Taxable income without these gains $  

Your taxable income for the tax year chosen, after deductions, leaving out the gains below.

 

 Short-term gain or loss $  

Held one year or less, taxed as ordinary income. Enter a loss with a minus sign.

 

 Long-term gain or loss $  

Held more than one year.

 

 Check one sale's holding period (optional) Bought on  

 

 Sold on  

 

  Modified AGI, including the gain $  

Fill in to estimate the 3.8% net investment income tax.

 

  

Estimated federal tax on the gain

$3,000.00

 Copy 

A $20,000 long-term gain on top of $60,000 of other taxable income carries an estimated $3,000.00 in federal tax, 15.00% of the gain.

Informational only, not financial advice.

 

 Estimated federal tax on the gain$3,000.00

Capital gains tax$3,000.00

Tax on the short-term gain

Tax on the long-term gain

Net investment income tax (3.8%)$0.00

3.8% tax check

Effective rate on the net gain15.00%

Top rate applied15%

Net gain after federal tax$17,000.00

Tax on your other income (before credits)$7,912.00

Holding period

  Copy all details Save scenario Share result Download CSV  

 

 

Saved scenarios

 
 

Saved in this browser only. Each column is recalculated whenever the page loads.

 

   

   Your numbers · CoinLaw Where the gain goes You keep $17,000 of the $20,000 gain; tax takes 15.0%. Calculated from your inputs 



 How the gain is taxed

 | Rate | Part of the gain | Tax |
|---|---|---|

 

 

How this is calculated

How it worksFederal only, for tax year 2026 with the brackets and thresholds in [IRS Rev. Proc. 2025-32 (opens in new window)](https://www.irs.gov/pub/irs-drop/rp-25-32.pdf), or tax year 2027 with those in [IRS Rev. Proc. 2026-35 (opens in new window)](https://www.irs.gov/pub/irs-drop/rp-26-35.pdf) (sections 3.01, 3.03 and 3.15). A gain on a digital asset held one year or less is taxed at ordinary rates on top of your other taxable income; a gain held more than one year is taxed at 0%, 15% or 20%, stacked on top of both. A net loss of one kind first reduces a net gain of the other. The 3.8% net investment income tax applies to the lesser of the net gain and the amount your modified AGI exceeds the threshold for your filing status. An estimate, not tax advice.

Not coveredFederal only: no state tax, credits, AMT, loss carryovers, or other investment income in the 3.8% tax.

Data checkedNov 6, 2026: 2027 brackets, the 0% and 15% capital gains thresholds and the standard deduction added from IRS Rev. Proc. 2026-35, sections 3.01, 3.03 and 3.15 (released November 5, 2026); 2026 figures unchanged from Rev. Proc. 2025-32; the 3.8% tax thresholds are statutory (IRC section 1411) and unchanged.

Privacy**What you enter never reaches our server.** It is processed on your device, inside this page.

CorrectionsReport a wrong result to [media@coinlaw.io](mailto:media@coinlaw.io?subject=Correction%3A%20Crypto%20Capital%20Gains%20Tax%20Calculator); every report is reviewed and confirmed errors are corrected. Include the inputs and the answer you expected. With your permission, we thank you by name on this page.

Updates- Nov 6, 2026 A tax year choice: 2027 brackets and thresholds from IRS Rev. Proc. 2026-35 join the 2026 figures.



FeedbackHow useful was this tool? 



 The figures shown are the worked example. Enable JavaScript to calculate with your own numbers.

  

 ## How to Use the Crypto Capital Gains Tax Calculator

Eight inputs drive the crypto capital gains tax calculator, and the last three are optional.

Per Revenue Procedure 2025-32, the 2026 table holds the brackets and ceilings set for taxable years beginning in 2026, and [Revenue Procedure 2026-35](https://www.irs.gov/pub/irs-drop/rp-26-35.pdf) sets the next ones for taxable years beginning in 2027. Gains realized in 2026 go on the return filed in early 2027, under the 2026 table, so the tool opens there. Pick 2027 for a sale made, or planned, in that year.

1. Pick the “Tax year”: the year the sale happened or will happen.
2. Pick your “Filing status”: “Single”, “Married filing jointly or qualifying surviving spouse”, “Married filing separately” or “Head of household”.
3. Enter “Taxable income without these gains”: income after deductions, with these sales left out.
4. Enter the “Short-term gain or loss” and the “Long-term gain or loss”: what you received for the coins less what you paid, fees included per IRS guidance on basis, with a minus sign for a loss.
5. To check one sale, fill in “Bought on” and “Sold on” under “Check one sale’s holding period (optional)”; the “Holding period” note then names the field it belongs in.
6. Fill in “Modified AGI, including the gain”, your modified adjusted gross income (MAGI), to estimate the net investment income tax (NIIT).

The results panel leads with “Estimated federal tax on the gain”, then shows:

- “Capital gains tax” and “Net investment income tax (3.8%)”, its two parts, plus “Tax on the short-term gain” and “Tax on the long-term gain” when you enter both kinds.
- “Effective rate on the net gain”, “Top rate applied” and “Net gain after federal tax”.
- “Tax on your other income (before credits)”.
- “3.8% tax check” and “Holding period”, two notes that appear only when they apply.

On the default inputs the lead figure reads **$3,000.00**. The table “How the gain is taxed” lists each slice with its rate, and the chart “Where the gain goes” splits it into what you keep and what each tax takes.

Four “Examples” chips load presets set to the earlier year; three are worked here:

- “Long-term, single”: the opening inputs.
- “Short-term, single”: the same sale, held short.
- “Both kinds, single”: gains of each kind in one run.
- “Married, with the 3.8% tax”: a joint return, MAGI included.

“Copy all details”, “Save scenario” and “Download CSV” keep a run, and “Share result” writes your inputs into the page link for anyone who opens it. A loss in one field reduces a gain in the other; a loss overall returns an error that points to the loss limit covered below.

## How Crypto Capital Gains Tax Is Calculated

The calculator stacks the profit on top of the rest of your taxable income and taxes each slice at its band’s rate.

Per the [IRS Digital Assets page](https://www.irs.gov/filing/digital-assets), digital assets are considered property, not currency. According to IRS Topic 409 on [Capital Gains and Losses](https://www.irs.gov/taxtopics/tc409), generally, if you hold the asset for more than one year before you dispose of it, your capital gain or loss is long-term. It also says net short-term capital gains are subject to taxation as ordinary income at graduated tax rates.

The tool nets the two fields against each other, in line with the Topic 409 definition of net capital gain as the amount by which your net long-term capital gain for the year is more than your net short-term capital loss for the year.

Profit held a year or less then runs through the ordinary brackets on top of the base. Profit held longer stacks on top of both and pays **0%** below the zero-rate ceiling and **15%** up to the next one, while Topic 409 says the **20%** rate applies to the extent that your taxable income exceeds the thresholds.

In the formulas, I is “Taxable income without these gains”, S and L are the two gain fields after netting, Z and F are the two ceilings for your filing status and year, M is the modified AGI entry and T is the NIIT threshold.

| Quantity | Formula |
|---|---|
| Short-term tax | for each ordinary bracket, its rate × max(min(I + S, bracket top) – max(I, bracket floor), 0) |
| Part at 0% | max(min(I + S + L, Z) – (I + S), 0) |
| Part at 15% | max(min(I + S + L, F) – max(I + S, Z), 0) |
| Part at 20% | max(I + S + L – max(I + S, F), 0) |
| Long-term tax | 0.15 × part at 15% + 0.20 × part at 20% |
| NIIT | 0.038 × min(S + L, max(M – T, 0)), and zero when M is blank |
| Estimated federal tax | short-term tax + long-term tax + NIIT |

*Source: the calculator’s compute function, with IRS Revenue Procedures 2025-32 and 2026-35 and IRS Topics 409 and 559*

The ceilings come from [IRS Revenue Procedure 2025-32](https://www.irs.gov/pub/irs-drop/rp-25-32.pdf) and its 2027 successor, each listing the maximum zero rate amounts and the matching 15% ceilings for its year. Each is measured against income with the profit included. Per [IRS Topic 559](https://www.irs.gov/taxtopics/tc559), a 3.8% net investment income tax (NIIT) applies to individuals, estates, and trusts that have net investment income above applicable threshold amounts:

| Filing status | 0% up to, 2026 | 15% up to, 2026 | 0% up to, 2027 | 15% up to, 2027 | NIIT above MAGI of |
|---|---|---|---|---|---|
| Single | $49,450 | $545,500 | $51,050 | $563,200 | $200,000 |
| Married filing jointly | $98,900 | $613,700 | $102,100 | $633,600 | $250,000 |
| Married filing separately | $49,450 | $306,850 | $51,050 | $316,800 | $125,000 |
| Head of household | $66,200 | $579,600 | $68,350 | $598,400 | $200,000 |

*Source: IRS Revenue Procedures 2025-32, section 4.03 (2026), and 2026-35, section 3.03 (2027); IRS Topic 559 (NIIT thresholds)*

## Worked Example: A $20,000 Long-Term Gain on $60,000

The default inputs, for 2026, are “Single”, **$60,000** of other taxable income, a **$20,000** “Long-term gain or loss”, nothing in the other gain field and no MAGI. These steps reproduce the tool’s **$3,000.00** to the cent.

1. Slice: The **$20,000** runs from **$60,000** to **$80,000** of income.
2. Zero-rate part: The single ceiling of **$49,450** sits below the **$60,000** floor, so **$0** is taxed at **0%**.
3. Middle-band part: The ceiling of **$545,500** sits above **$80,000**, so all **$20,000** at **15%** comes to **$3,000.00**.
4. NIIT: With MAGI blank, the line reads **$0.00**.
5. Rates and remainder: “Effective rate on the net gain” is **15.00%**, “Top rate applied” is **15%** and “Net gain after federal tax” is **$17,000.00**.
6. Other income: Under Table 3 for unmarried individuals, taxable income over **$50,400** but not over **$105,700** owes **$5,800** plus **22%** of the excess over **$50,400**. On **$60,000** that’s **$7,912.00**, the “Tax on your other income (before credits)” line.

Switch “Tax year” to 2027 and the gain’s tax stays at **$3,000.00**: The single ceilings of **$51,050** and **$563,200** still leave the whole slice in the **15%** band. Only the ordinary tax on the base moves. Under the new Table 3, income over **$52,025** but not over **$109,125** owes **$5,987.00** plus **22%** of the excess, so **$60,000** gives **$7,741.50**.

### The Same Gain Held One Year or Less

Load “Short-term, single” and the slice runs through the ordinary brackets. The 2026 table puts single income over $50,400 but not over $105,700 at **22%**, and the slice from **$60,000** to **$80,000** sits inside it. The tax becomes **$4,400.00**, or **$1,400** more than for a coin held over a year.

The 2027 band, over $52,025 but not over $109,125, holds the slice as well, so the figure is again **$4,400.00**.

Per the [IRS virtual currency FAQ](https://www.irs.gov/individuals/international-taxpayers/frequently-asked-questions-on-virtual-currency-transactions), the holding period begins on the day after you acquired the virtual currency and ends on the day you sell or exchange the virtual currency. The two date fields count that way, so a sale on the anniversary of the purchase reads as short-term and one a day later as long-term.

## What the Estimate Means

On the default example, three results are easy to misread:

- “Top rate applied” is the rate of the highest slice, **15%** here, and never includes the NIIT.
- “Effective rate on the net gain” divides the full estimate, NIIT included, by the profit after netting: **15.00%**.
- “Tax on your other income (before credits)” treats all base income as ordinary and subtracts no credits: **$7,912.00**.

Coverage is federal only. Per Topic 409, when losses exceed gains the deductible excess is the lesser of $3,000 ($1,500 if married filing separately) or your total net loss. How losses offset gains is covered in the guide to [crypto tax-loss harvesting](/crypto-tax-loss-harvesting/).

Another calculator fed identical inputs can still disagree if it applies one bracket rate to the whole profit, uses the wrong year’s thresholds, adds state tax or skips the NIIT.

### Common Mistakes With the Calculator Inputs

- Entering sale proceeds in either gain field. Both take proceeds less cost.
- Entering gross income or AGI in “Taxable income without these gains”, which asks for income after deductions.
- Running two sales separately and adding the results. Each run stacks on the same income, so add up each kind before entering it.
- Leaving “Tax year” at its default for a sale made in the later year.
- Leaving “Modified AGI, including the gain” blank when it sits above your threshold, which zeroes out the surtax.

## Why the Same Crypto Gain Can Owe Different Tax

Base income sets the starting rate; the gain’s size decides whether it crosses a band. One **$20,000** gain, filing single, with no MAGI entered:

| Base taxable income | Held over a year, 2026 | Held over a year, 2027 | Held a year or less, 2026 | Held a year or less, 2027 |
|---|---|---|---|---|
| $20,000 | **$0.00** | **$0.00** | $2,400.00 | $2,400.00 |
| $40,000 | **$1,582.50** | **$1,342.50** | $3,360.00 | $3,197.50 |
| $60,000 | **$3,000.00** | **$3,000.00** | $4,400.00 | $4,400.00 |
| $200,000 | $3,000.00 | $3,000.00 | $6,258.00 | $5,734.00 |
| $540,000 | **$3,725.00** | **$3,000.00** | $7,000.00 | $7,000.00 |

*Source: CoinLaw calculation with the tool’s method and the brackets and capital gains amounts in IRS Revenue Procedures 2025-32 (2026) and 2026-35 (2027)*

At **$40,000** of base income the slice straddles the single zero-rate ceiling. In 2026, **$9,450** is taxed at **0%** and the remaining **$10,550** at **15%**. In 2027 the higher ceiling puts **$11,050** in the **0%** part and leaves **$8,950** at **15%**.

At **$540,000** the 2026 slice crosses the upper ceiling, so **$14,500** pays **20%**, while the 2027 ceiling of **$563,200** keeps all of it at **15%**. The right-hand columns keep rising because ordinary brackets keep stepping up, and every rate by income band is set out in the guide to [crypto tax rates](/crypto-tax-rates-by-income-bracket/).

## The 3.8% Net Investment Income Tax and the Modified AGI Field

The net investment income tax (NIIT) is a separate federal surtax that starts above a threshold, and the tool charges it only when “Modified AGI, including the gain” holds a figure. Topic 559 puts it at **3.8%** of the lesser of: the net investment income, or the excess of modified adjusted gross income (MAGI) over the following threshold amounts. The IRS [questions and answers](https://www.irs.gov/newsroom/questions-and-answers-on-the-net-investment-income-tax) on the tax add: “Taxpayers should be aware that these threshold amounts are not indexed for inflation.”

The calculator never guesses MAGI from the after-deductions figure, so a blank entry leaves the NIIT line at zero. It does add your income, the gains and your standard deduction. When that sum passes the threshold, the “3.8% tax check” note says the tax likely applies and gives its floor: **$760.00** on the **$200,000** and **$540,000** rows above. Once that field holds a figure, the netted profit counts as your only investment income, and the charge is on the lesser of that profit and the excess.

The “Married, with the 3.8% tax” preset shows both taxes at once: a joint return, **$80,000** of base income, a **$50,000** profit held over a year and MAGI of **$300,000**, worked here on the 2026 table:

- Zero-rate part: Up to the joint ceiling of **$98,900**, so **$18,900** owes nothing.
- Middle-band part: **$31,100** at **15%** is **$4,665.00**.
- NIIT: MAGI exceeds the **$250,000** joint threshold by **$50,000**, equal to the profit, and **3.8%** of that is **$1,900.00**.
- Estimated federal tax: **$6,565.00**, an effective rate of **13.13%**.

Under the 2027 table, the joint ceiling of **$102,100** leaves **$27,900** at **15%**, or **$4,185.00**. The surtax stays **$1,900.00**, for **$6,085.00** in all.

The single NIIT threshold sits **$345,500** below the single **15%** ceiling in 2026 and **$363,200** below it in 2027, so a sale can owe the surtax well inside that band. The gap widens because the ceilings are amounts as adjusted for inflation, while the NIIT thresholds are not indexed for inflation. Above the upper ceiling the two rates together reach **23.8%**.

## Crypto Gains the IRS Taxes as Property

A sale for dollars is only one way to realize a gain. The virtual currency FAQ states that if you exchange virtual currency held as a capital asset for other property, including for goods or for another virtual currency, you will recognize a capital gain or loss.

That figure is the value received less your basis: a coin bought for **$1,000** with a **$10** trading fee carries a basis of **$1,010**. Per the FAQ, your basis (also known as your “cost basis”) is the amount you spent to acquire the virtual currency, including fees, commissions and other acquisition costs in U.S. dollars.

Under [IRS Notice 2014-21](https://www.irs.gov/pub/irs-drop/n-14-21.pdf), the character of the gain or loss generally depends on whether the virtual currency is a capital asset in the hands of the taxpayer; this tool assumes it is.

On the return, the [Form 8949 instructions](https://www.irs.gov/instructions/i8949) say to report short-term gains and losses on Part I. Report long-term gains and losses on Part II. Broker reporting, per the Digital Assets page, is required to be made on Form 1099-DA beginning with transactions on or after Jan. 1, 2025; this tool takes the gain itself, proceeds less cost.

Which events count as a disposal is set out in [how crypto is taxed](/how-crypto-is-taxed/), and the filing steps in the guide to [reporting crypto taxes](/how-to-report-crypto-taxes/).

## Can a crypto gain be taxed at 0%?

Yes. Profit held over a year pays nothing on the part that keeps taxable income, profit included, at or below **$49,450** for a single filer in 2026 or **$51,050** in 2027. On a joint return the ceilings are **$98,900** and **$102,100**.

Enter **$30,000** of base income and a **$10,000** profit held over a year as “Single”, and the estimate reads **$0.00** in either year, with “Top rate applied” at **0%**. A sale held a year or less never reaches that rate, because Topic 409 taxes net short-term capital gains as ordinary income.

## How much tax would a $100,000 crypto gain carry?

For a single filer with **$60,000** of taxable income besides the sale, a profit that size held over a year stays inside the middle band and carries **$15,000.00** in 2026 or 2027.

Sold within a year, in 2026, **$45,700** falls in the **22%** bracket and **$54,300** in the **24%** bracket, for **$23,086.00**. The 2027 split is **$49,125** and **$50,875**, for **$23,017.50**. Once MAGI passes the single threshold of **$200,000**, each **$10,000** above it, up to the size of the profit, adds **$380.00** of NIIT.

## Good to Know Before You Use It

The calculator runs in your browser and nothing you enter reaches our server, though “Share result” puts your inputs in the page link. It assumes the tax year you pick, a coin held as a capital asset, the field you put each gain in, and income entered after deductions.

The method layers the gains on that income across the brackets and ceilings set for taxable years beginning in 2026 and for taxable years beginning in 2027, and applies the NIIT under Topic 559 only when MAGI is entered. Treat the later table as a planning figure: If the Code is amended for 2027 after the release, Revenue Procedure 2026-35 says taxpayers should consult additional guidance to determine whether these adjustments remain applicable for 2027. Outside the method sit state tax, credits, the alternative minimum tax, loss carryovers and other investment income.

CoinLaw publishes this page for information and gives no financial advice or tax advice; it doesn’t tell anyone how to file or what a return owes. The IRS’s own guidance, or a tax professional working from the full return, governs a real filing.

## Conclusion

A **$20,000** long-term gain on **$60,000** of base income carries an estimated **$3,000.00** of federal tax in 2026 or 2027, **15.00%** of the gain, and **$4,400.00** if the coins were sold within a year. The year changes the answer near the zero-rate ceiling: on **$40,000** of base income the figure for a coin held over a year falls from **$1,582.50** to **$1,342.50**. A swap or a purchase with coins can realize a gain too, so check whether each event is [taxable at all](/do-you-have-to-pay-tax-on-crypto/) before entering it.

## More Crypto Calculators

[All crypto calculators (7) →](https://coinlaw.io/crypto-calculators/)

- [   Net profit $50,000 to $65,000  +$287.03 Invested $1,000.00Profit +$287.03    Crypto In your browser  Crypto Profit Calculator Profit, return and break-even on a trade after fees.  +28.70%Return on investment →   ](https://coinlaw.io/crypto-profit-calculator/)
- [   Converted rate 5% APR, daily  5.127%    Crypto In your browser  APY to APR Converter Convert APR and APY at any compounding frequency.  0.127 percentage pointsDifference from input →   ](https://coinlaw.io/apy-to-apr-calculator/)
- [   US dollars Live price  Live Priced live from the bitcoin spot rate    Crypto In your browser  Satoshi to USD Converter Convert sats, BTC and dollars at the live bitcoin price.  Sats, BTC and USDBitcoin spot price →   ](https://coinlaw.io/satoshi-to-usd/)