NIIT Calculator (3.8% Net Investment Income Tax)

The Net Investment Income Tax is an additional 3.8% tax on investment income when your MAGI exceeds $200,000 (single) or $250,000 (married filing jointly). These thresholds are not indexed for inflation — so more people hit them every year.

Your Income

$
Not subject to NIIT, but counts toward MAGI

Investment Income

$
Qualified + non-qualified
$
Taxable interest income
$
Net LTCG + STCG
$
Net rental / passive income

NIIT Analysis

NIIT Amount
$0
3.8% surtax
Net Investment Income
$45,000
Subject to NIIT
MAGI (AGI)
$245,000
Threshold: $250,000
Below Threshold By
$5,000
Room before NIIT applies

How Your NIIT Is Calculated

Net investment income$45,000
MAGI excess over $250,000 threshold$0
Lesser of the two (NIIT base)$0
× 3.8%$0

MAGI vs. Threshold

$0Threshold: $250,000MAGI: $245,000

What If You Earn More Investment Income?

Additional IncomeNew MAGITotal Investment IncomeNIITMarginal NIIT
Current$245,000$45,000$0
+$10,000$255,000$55,000$190+$190
+$25,000$270,000$70,000$760+$760
+$50,000$295,000$95,000$1,710+$1,710

Once above the threshold, each additional dollar of investment income costs an extra 3.8¢ in NIIT (on top of regular income or capital gains tax).

What Counts as Net Investment Income?

Subject to NIIT

  • • Interest income
  • • Dividends (qualified and non-qualified)
  • • Capital gains (long-term and short-term)
  • • Rental and royalty income
  • • Passive business income
  • • Non-qualified annuity income

Excluded from NIIT

  • • Wages and salary
  • • Self-employment income
  • • Social Security benefits
  • • Tax-exempt interest (muni bonds)
  • • IRA / 401(k) distributions
  • • Active business income

How the Net Investment Income Tax Works

The formula.NIIT = 3.8% × the lesser of: (a) your net investment income, or (b) the amount by which your MAGI exceeds the threshold. This means both conditions must be met — you need MAGI above the threshold and investment income.

What counts as net investment income? Interest, dividends, capital gains, rental income, royalties, non-qualified annuities, and passive business income. Notably excluded: wages, self-employment income, Social Security, tax-exempt interest, distributions from retirement accounts, and income from active business participation.

Thresholds (IRC §1411). $200,000 for single/HOH, $250,000 for MFJ, and $125,000 for married filing separately. These are statutory amounts from 2013 — they are not adjusted for inflation. In 2026, these thresholds capture significantly more taxpayers than when the tax was enacted.

NIIT and capital gains interact. A large capital gain in a single year (like selling a business, a rental property, or concentrated stock) can push you well above the NIIT threshold, adding 3.8% on top of the 15% or 20% capital gains rate. The combined top rate on long-term gains can reach 23.8% federal (20% + 3.8%).

Planning strategies. Harvesting gains across multiple years, managing Roth conversions to avoid threshold spikes, timing rental income recognition, and using installment sales to spread gains can all help manage NIIT exposure.