🛠️ Custom Calculators · Utilities · Websites · ERP · CRM Hire Us

Net Investment Income Tax (NIIT) Calculator — 3.8% Surtax

The 3.8% Net Investment Income Tax hits high earners on dividends, capital gains, interest and rental income. See if you owe it and how much. ✓ IRS thresholds

📊

NIIT Calculator

3.8% surtax • Investment income

$
$
📊
Enter your income to check the 3.8% NIIT

How the NIIT Calculator Works

  1. Enter your filing status and MAGI.
  2. Enter your net investment income.
  3. See your 3.8% surtax — charged on the lesser of your investment income or the amount your MAGI exceeds the threshold.

What Is the Net Investment Income Tax?

The NIIT is a 3.8% surtax on investment income for higher earners, on top of regular income and capital-gains tax. It applies to the lesser of (a) your net investment income or (b) the amount your modified AGI exceeds the threshold: $200,000 single, $250,000 married filing jointly, $125,000 married filing separately. These thresholds are not inflation-adjusted, so more taxpayers owe it over time.

Net investment income includes taxable interest, dividends, capital gains, rental and royalty income, and annuities — but not wages, Social Security, or tax-exempt municipal bond interest. Estimate only; not tax advice.

Formula & Logic

The net investment income tax is a 3.8% surcharge on investment income for higher earners, introduced with the Affordable Care Act. Its structure is unusual: it applies to the LESSER of net investment income or the amount by which modified AGI exceeds a threshold — $200,000 single, $250,000 married filing jointly. Those thresholds have never been indexed for inflation, so the tax reaches steadily further down the income distribution each year. Wages and self-employment income are excluded, because they already bear the Additional Medicare Tax at 0.9%.

NIIT = 3.8% × lesser of (net investment income) or (MAGI − threshold)Thresholds: $200,000 single · $250,000 MFJ · $125,000 MFSNII includes: interest, dividends, capital gains, rents, royalties, passive incomeNII excludes: wages, self-employment income, retirement distributions, municipal interest

where:

MAGI
modified adjusted gross income
NII
net investment income after allocable deductions
lesser of
the rule that limits the tax near the threshold

Assumptions: Thresholds are not inflation-indexed. Distributions from IRAs and 401(k)s are not NII but do raise MAGI, which can pull other investment income into the tax.

SourceIRS: net investment income tax

Step-by-Step Example: $260,000 MAGI With $45,000 of Investment Income

Apply the lesser-of rule, then show how it behaves close to the threshold.

  • MAGI$260,000
  • Net investment income$45,000
  • Filing statusSingle ($200,000 threshold)
  1. Excess over threshold: $260,000 − $200,000 = $60,000.
  2. Net investment income: $45,000.
  3. The tax applies to the lesser of the two: $45,000.
  4. NIIT: $45,000 × 3.8% = $1,710.
  5. Now test a MAGI of $215,000 with the same $45,000 of NII.
  6. Excess is only $15,000, so the tax falls to $15,000 × 3.8% = $570.

Result$1,710 of NIIT — 3.8% on the full $45,000

The lesser-of rule means the tax phases in gradually rather than hitting a cliff. It also means managing MAGI matters: deferring a bonus or harvesting losses to keep MAGI under the threshold can eliminate the tax entirely, even with substantial investment income.

NIIT FAQ

Taxpayers with modified AGI above $200,000 (single) or $250,000 (joint) who also have net investment income. It's charged on the lesser of the two excess amounts.
Interest, dividends, capital gains, rental/royalty income and annuities. Wages, self-employment income, Social Security and municipal-bond interest are excluded.
Lower MAGI or investment income — via tax-loss harvesting, municipal bonds, retirement-account contributions, installment sales, or spreading large gains across years.

Related Calculators

Need something built?

The team behind these free tools builds custom calculators, utility tools, website design, ERP and CRM systems and custom software — plus content writing and research.

Start a conversation →
✔ Written & reviewed by Dr Sam — 20+ yrs in management & research leadership📅 Last updated June 2026📑 How we build & check these