Home/Guides/

Do crypto gains owe the 3.8% net investment income tax?

Last updated 2026-11-24 · Sources linked on every listing

Short answer: if your income is high enough, yes. Crypto you sell, spend or swap at a gain usually counts as net investment income, and once your modified adjusted gross income (MAGI) passes a fixed threshold you owe an extra 3.8% on top of your regular capital gains tax. That turns a 20% long-term rate into 23.8% and a 37% short-term rate into 40.8%. Source: IRS Topic 559, Net investment income tax.

The thresholds

Filing statusNIIT starts when MAGI is over
Single or head of household$200,000
Married filing jointly or qualifying surviving spouse$250,000
Married filing separately$125,000

These numbers aren't adjusted for inflation, so more crypto investors cross them every year. For most people, MAGI here is just your adjusted gross income; it's higher only if you exclude foreign earned income (see crypto taxes for US expats).

How the 3.8% is figured

The tax is 3.8% of whichever is smaller:

Example: you're single, with $180,000 of wages and a $50,000 long-term gain from selling bitcoin, so MAGI is $230,000. You're $30,000 over the threshold and have $50,000 of investment income, so NIIT is 3.8% of $30,000, which is $1,140. If instead your wages were $100,000, MAGI would be $150,000 and you'd owe no NIIT at all, even on the same crypto gain.

Which crypto income counts

Topic 559 says net investment income includes net gains from selling property (other than property held in an active trade or business), interest, dividends, rents and royalties, and income from a business that's a passive activity or that trades financial instruments or commodities. Wages and income from an active business don't count. Applied to crypto:

Reporting it

You figure NIIT on Form 8960 and carry the total to Schedule 2 of Form 1040. Your crypto gains reach Form 8960 through Schedule D, which pulls them from Form 8949. Investment expenses that are allocable to that income can reduce net investment income on Form 8960; the form's instructions list what qualifies.

NIIT isn't withheld, so a big crypto sale can leave you underpaid. The IRS points people to the withholding estimator and estimated tax payments; see estimated tax on crypto gains.

Ways to limit it

The same MAGI that sets NIIT can also raise Medicare premiums two years later; see crypto gains and IRMAA. For the full rate tables, see crypto tax rates for 2026. Above $500,000 of MAGI ($505,000 for 2026), the same gain also shrinks the $40,000 state and local tax deduction cap; see crypto gains and the SALT cap. NIIT is separate from the Alternative Minimum Tax, but a big gain can also burn the AMT exemption, which phases out at 50% above $500,000 of AMTI ($1,000,000 joint) for 2026; see crypto gains and the AMT.

To see your realized gains so far this year, use crypto tax software: CoinLedger (code CRYPTOTAX10 for 10% off) or Koinly . Affiliate links; disclosure. If you're near a threshold or have mining, staking or trading income, a crypto-savvy CPA can sort out what counts.

Also see: the foreign tax credit for crypto (it can't reduce NIIT on the IRS forms, and NIIT MAGI adds back the foreign earned income exclusion), married filing jointly vs separately ($125,000 NIIT threshold on separate returns), crypto gains and ACA premium tax credits, where income above 400% of the poverty line ends the 2026 credit.

Sources

FAQ

Do crypto gains count for the net investment income tax?

Generally yes. IRS Topic 559 lists net gains from the disposition of property as net investment income, unless the property is held in an active trade or business. Selling, spending or swapping crypto you hold as an investment produces that kind of gain.

What are the NIIT thresholds?

The tax applies when modified AGI is over $200,000 for single or head of household filers, $250,000 for married filing jointly or a qualifying surviving spouse, and $125,000 for married filing separately. The IRS says these amounts aren't indexed for inflation.

How much NIIT will I pay?

3.8% of the smaller of your net investment income or the amount your MAGI is over the threshold. If you're single with $230,000 of MAGI that includes $50,000 of crypto gains, the tax is 3.8% of $30,000, or $1,140.

Is crypto mining income subject to NIIT?

If mining is an active trade or business for you, IRS Topic 559 says NIIT doesn't apply to income from an active business, but that income is subject to self-employment tax instead. Mining as a hobby or passive activity is a different case worth checking with a CPA.

Where do I report the NIIT?

You compute it on Form 8960 and carry the result to Schedule 2 of Form 1040.