Stock & ETF Taxes

Net Investment Income Tax (3.8%): Who Pays It

Last updated: October 31, 2026 · Applies to the 2026 tax year (returns filed in 2027)

The net investment income tax (NIIT) is an extra 3.8% federal tax on investment income for higher earners. It applies on top of regular income tax and capital gains tax, so a long-term gain taxed at 20% can effectively cost 23.8%. Because its thresholds have never been adjusted for inflation since it started in 2013, more investors pay it every year. Here’s who owes it and how it’s calculated.

Key takeaways

  • The NIIT is 3.8% of the smaller of your net investment income or the amount your modified AGI exceeds a threshold.
  • Thresholds: $200,000 single or head of household, $250,000 married filing jointly, $125,000 married filing separately. They are not indexed for inflation.
  • It covers interest, dividends, capital gains, rental income and passive business income.
  • It doesn’t apply to wages, self-employment income, retirement account withdrawals or Social Security, although these can push your income over the threshold.
  • You calculate it on Form 8960.

What counts as investment income

Subject to the 3.8% NIITNot subject to the NIIT
Interest (bank accounts, bonds, CDs)Wages and salaries
Dividends, qualified and ordinarySelf-employment income
Capital gains on stocks, funds, crypto and investment propertyIRA, 401(k) and pension distributions
Rental and royalty incomeSocial Security benefits
Income from businesses you don’t actively work in (passive income)Tax-exempt municipal bond interest
Non-qualified annuity incomeExcluded gain on the sale of your main home

Investment expenses such as investment interest and state tax allocable to investment income can be deducted to arrive at net investment income.

How it’s calculated

  1. Find your modified AGI. For most people it’s the same as AGI.
  2. Subtract the threshold for your filing status.
  3. Compare that excess with your net investment income.
  4. Multiply the smaller number by 3.8%.

Worked example

Michelle is single. In 2026 she earns $210,000 in salary, $10,000 in dividends and a $30,000 long-term capital gain from selling a fund. Her modified AGI is $250,000 and her net investment income is $40,000.

StepAmount
Modified AGI above $200,000$50,000
Net investment income$40,000
Smaller of the two$40,000
NIIT (3.8%)$1,520

If Michelle delays selling half the fund until January 2027, her 2026 investment income drops to $25,000 and her modified AGI to $235,000. The NIIT falls to 3.8% × $25,000 = $950 for 2026. Splitting large gains across two tax years is one of the simplest ways to reduce the NIIT.

Ways to reduce the NIIT

  • Lower your modified AGI: traditional 401(k) and HSA contributions reduce AGI, which can shrink the excess over the threshold. See Roth vs traditional 401(k).
  • Harvest losses: capital losses reduce net investment income directly. See tax-loss harvesting.
  • Spread gains over several years, for example by selling in stages or using an installment sale for property.
  • Hold income-producing investments in retirement accounts, where dividends and interest aren’t investment income for the NIIT.
  • Consider municipal bonds, whose interest is exempt from both regular tax and the NIIT.
  • Donate appreciated assets instead of selling them. See donating crypto.

NIIT vs the 0.9% Additional Medicare Tax

They’re often confused. The 0.9% Additional Medicare Tax applies to wages and self-employment income above the same $200,000 / $250,000 thresholds, and is reported on Form 8959. The 3.8% NIIT applies to investment income and is reported on Form 8960. A high earner can owe both.

Frequently asked questions

Does the NIIT apply to crypto gains?

Yes. Gains on crypto held as an investment are net investment income, just like stock gains. Staking rewards and other investment-type crypto income generally count too.

Do I owe it on the sale of my home?

Only on the part of the gain that isn’t excluded. The first $250,000 of gain ($500,000 for married couples) on a qualifying main home sale is excluded from income and from the NIIT.

Is it withheld from my paycheck?

No. Employers don’t withhold for the NIIT. If you expect to owe it, increase your withholding or make estimated payments.

Sources

This article is for educational purposes only and is not tax, legal or investment advice. Tax rules depend on your individual situation; consult a qualified tax professional before filing.