Skip to content
← All financial terms

Taxes · Financial term

Net Investment Income Tax (NIIT)

Also called NIIT · 3.8% net investment income tax · 3.8% Medicare surtax · Investment income surtax · Form 8960 tax

What is the net investment income tax (NIIT)?

The net investment income tax (NIIT) is a 3.8% federal tax on the smaller of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for married couples filing jointly or $125,000 for married people filing separately. It applies to interest, dividends, capital gains, rents and similar income on top of regular income tax, and its thresholds are not indexed for inflation.

9 min readWorked example5 common questions

How the NIIT works

The net investment income tax is a flat 3.8% surtax that has applied since January 1, 2013. It is an add-on to regular income tax, not a parallel system like the alternative minimum tax. You figure it on Form 8960 and pay it with your Form 1040.

Two numbers decide it. The first is net investment income: interest, dividends, capital gains, rents, royalties and similar income, minus the expenses allocable to it. The second is how far your modified adjusted gross income exceeds a threshold: $200,000 for single and head of household filers, $250,000 for married couples filing jointly and qualifying surviving spouses, and $125,000 for married people filing separately. The tax is 3.8% of whichever number is smaller, so it never reaches more investment income than you have, or more than your income above the line.

The thresholds are written into the statute and have not changed since 2013, while wages, portfolios and the tax brackets have grown. Estates and trusts owe the tax on undistributed investment income once their AGI passes the start of the top trust bracket, $16,000 for 2026. Nonresident aliens are exempt.

What counts as net investment income

Net investment income starts with gross investment income: taxable interest, ordinary and qualified dividends, payments from nonqualified annuities, rents and royalties, and net gains from selling stocks, bonds, funds and investment real estate, including a second home. Income from a business that is passive to you, or from trading financial instruments or commodities, counts too.

You then subtract deductions properly allocable to that income, such as investment interest expense, rental expenses and, if you itemize, the share of state and local income tax attributable to it. Investment advisory and custodial fees no longer count, because miscellaneous itemized deductions are permanently disallowed.

What stays out matters as much. Wages, self-employment income, Social Security, unemployment compensation and operating income from a business you actively run are not investment income. Neither is interest on municipal bonds, nor gain on a main home that the Section 121 exclusion shelters. Distributions from 401(k), 403(b) and 457(b) plans and from traditional or Roth IRAs are excluded by statute, and a Roth conversion is such a distribution.

The MAGI trap: non-investment income still counts

The most common NIIT surprise comes from income that is not investment income at all. Wages, pensions, IRA withdrawals, required minimum distributions, Roth conversions and the taxable part of Social Security are all outside net investment income, but each one raises MAGI. If you already have dividends or gains, pushing MAGI over the threshold exposes them to the 3.8%.

That is why the tax often shows up in a retirement year with no unusual investing: a large Roth conversion or a one-time distribution lifts MAGI, and dividends that were never surtaxed suddenly are, as the example below shows. It also appears in a single big year, such as the sale of a rental property, a business interest or a concentrated stock position, where the gain is both investment income and MAGI.

When you price extra income near the threshold, add up to 3.8 cents per dollar on top of income tax. And because the thresholds are frozen, a retiree comfortably under the line today may cross it later as dividends, RMDs and Social Security grow with inflation.

NIIT vs. the Additional Medicare Tax

The NIIT is sometimes nicknamed the Medicare surtax, which feeds confusion with the 0.9% Additional Medicare Tax. Both began on January 1, 2013, and both use nearly the same unindexed $200,000, $250,000 and $125,000 thresholds, but they never apply to the same dollar. The Additional Medicare Tax falls on wages and self-employment income above the threshold; the NIIT falls on investment income. A high earner with a large portfolio can owe both, each on its own kind of income.

They are collected differently. Employers must withhold the Additional Medicare Tax once your wages pass $200,000, but nothing withholds the NIIT automatically. You cover it with extra withholding or with estimated tax payments; otherwise you risk an underpayment penalty.

Ways to reduce the NIIT

Because the tax is 3.8% of the smaller of two numbers, a strategy helps only if it shrinks the smaller one. If your MAGI is barely over the threshold, lowering any kind of income works, including wages and IRA withdrawals. If your MAGI is far over the line, only cutting net investment income itself reduces the tax. Weigh each move against its effect on income tax, Medicare premiums and the rest of your plan, not against the surtax alone.

  • Use asset location: hold interest-heavy bonds and high-turnover funds in retirement accounts, whose distributions are never investment income.
  • Spread large capital gains across tax years, and offset gains with losses through tax-loss harvesting.
  • Size Roth conversions and IRA withdrawals so MAGI stays under the threshold in years with big dividends or gains.
  • Lower MAGI with pre-tax 401(k) and HSA contributions while working, and with qualified charitable distributions from age 70½.
  • Give appreciated shares to charity instead of selling them, so the gain is never realized.
  • Consider municipal bonds, whose interest is outside both net investment income and the MAGI this tax uses.

Illustrative numbers

A retired couple, not yet on Social Security, converts to Roth in 2026

Formula
NIIT = 3.8% × the lesser of (net investment income, MAGI − threshold)
Net investment income
Interest, dividends, capital gains, rents, royalties, nonqualified annuities and passive business income, minus allocable expenses
MAGI
Adjusted gross income plus any excluded foreign earned income
Threshold
$200,000 single or head of household; $250,000 joint or surviving spouse; $125,000 married filing separately

If MAGI is at or below the threshold, the NIIT is zero however much investment income you have.

Traditional IRA withdrawals (not investment income)$150,000

Dividends, interest and long-term gains (net investment income)$60,000

MAGI before converting$210,000, under the $250,000 threshold

Roth conversion (not investment income)$80,000

MAGI after converting$290,000, or $40,000 over

NIIT: 3.8% × the lesser of $60,000 or $40,000$1,520

The conversion itself is never net investment income, yet it exposes $40,000 of the couple’s dividends and gains to the surtax. The $1,520 adds 1.9% ($1,520 ÷ $80,000) to the conversion’s cost on top of its ordinary income tax.

At a glance

Which income counts for the NIIT, and which still raises MAGI

IncomeNet investment income?Raises MAGI?
Taxable interestYesYes
Ordinary and qualified dividendsYesYes
Capital gains, including fund capital gain distributionsYesYes
Net rents and royalties, unless from a nonpassive businessYesYes
Taxable part of nonqualified annuity paymentsYesYes
Home-sale gain above the Section 121 exclusionYesYes
Home-sale gain the Section 121 exclusion coversNoNo
Municipal bond interestNoNo
Wages and self-employment incomeNoYes
IRA, 401(k), 403(b) and 457(b) distributions, including Roth conversionsNoYes, the taxable part
Social Security benefitsNoYes, the taxable part

Put it in your plan

NIIT in MoneyWhatIf

MoneyWhatIf includes the NIIT inside each projected year’s federal tax, using fixed $200,000 single and $250,000 joint thresholds that are not inflated. Taxable interest, modeled dividends, realized capital gains and net rental income count as investment income; wages and retirement withdrawals do not, and the tax is repriced after withdrawals or sales change the year. Exempt bond interest stays outside it. The Taxes page’s tax-on-the-next-dollar map includes the surtax, and Roth conversion planning has an Avoid NIIT switch that stops a conversion short of the threshold.

Open your forecast

Common questions

NIIT FAQs

Who has to pay the net investment income tax?

Individuals who have net investment income and MAGI above $200,000 (single or head of household), $250,000 (married filing jointly or qualifying surviving spouse) or $125,000 (married filing separately). Estates and trusts owe it on undistributed investment income when their AGI exceeds the start of the top trust bracket, $16,000 for 2026. Nonresident aliens, grantor trusts and charitable trusts are not subject to it.

Does the NIIT apply when I sell my home?

Only on gain the home-sale exclusion doesn’t cover, and only if your MAGI is over the threshold. Up to $250,000 of gain on a main home ($500,000 for a qualifying married couple filing jointly) is excluded from income, so it is excluded from the NIIT as well. Taxable gain above that counts as investment income, as does all the gain on a second home or rental.

Does the NIIT apply to rental income?

Usually. For most landlords, net rental income and the gain on selling a rental property are net investment income. The main exception is a real estate professional whose rentals are a nonpassive business. Under a safe harbor in the Form 8960 instructions, a real estate professional who spends more than 500 hours a year on each rental activity, or did so in 5 of the prior 10 years, leaves the rent and the sale gain out of net investment income. The rent still counts toward MAGI.

Are the NIIT thresholds adjusted for inflation?

No. The $200,000, $250,000 and $125,000 thresholds are set in the statute and have not changed since the tax began in 2013, and the IRS states plainly that they are not indexed. Unless Congress changes them, inflation keeps pulling more households over the line as incomes and investment balances rise.

Do heirs owe the NIIT on inherited investments?

Not at the death itself; the question is what happens when an heir sells. The gain is measured from the stepped-up basis, usually the value at death, so a prompt sale produces little investment income. Withdrawals from an inherited IRA are not investment income either, but they raise the heir’s MAGI and can expose the heir’s own dividends and gains.