Skip to main content

NIIT Explained: Who Owes the 3.8% Surtax and How to Cut It

The net investment income tax is a 3.8% surtax above a fixed income line. See who owes it, the lesser-of formula, and legal ways to reduce it.

Jump to section
  1. What the net investment income tax is
  2. The lesser-of rule: how the tax is actually figured
  3. What counts as net investment income
  4. A worked example, start to finish
  5. How this tax shows up on your return
  6. Legal ways to reduce or avoid NIIT
  7. Ready to talk through your situation?

TLDR

The net investment income tax (NIIT) is a flat 3.8% surtax on investment income, on top of your regular tax. It kicks in once your modified adjusted gross income (MAGI) crosses $200,000 (single or head of household), $250,000 (married filing jointly), or $125,000 (married filing separately). These numbers are set by law. They have never been adjusted for inflation. So more people owe this tax every year, even though the rule itself has not changed. The tax applies to the smaller of your net investment income or the amount your MAGI sits above the threshold. It never applies to your full income.

You check your tax return and see a line you do not remember from last year. It is an extra 3.8% tax, buried on a form called 8960. Your tax preparer mentions “NIIT” like you should already know what it is.

You do not owe this because you did something wrong. You owe it because your income crossed a line. Congress drew that line in 2013, and never moved it again. Wages do not trigger it directly. Interest, dividends, capital gains, and rental income do.

The frustrating part is that the math feels arbitrary until you see it laid out. Once you see the lesser-of rule, the tax stops being mysterious. It starts being something you can plan around.

In this guide, you’ll learn:

  • See the exact MAGI thresholds that trigger the 3.8% tax. Learn why they never move.
  • Understand the “lesser-of” formula that caps how much of your income actually gets taxed
  • Learn what counts as net investment income (and the big categories that don’t)
  • See a full worked example from gross income to the final NIIT bill
  • Get the legal moves that actually reduce or avoid this tax

#What the net investment income tax is

The NIIT is a federal surtax. It was created by the Health Care and Education Reconciliation Act of 2010. That act is the companion legislation to the Affordable Care Act. It took effect on January 1, 2013. It is codified at Internal Revenue Code Section 1411.

The rate is a flat 3.8%. It applies to individuals. Estates and trusts owe it too, but they use a different, much lower income line.

The thresholds below are dollar amounts written directly into the Code (Section 1411(b)). They are not adjusted for cost-of-living changes. Tax brackets and the standard deduction get that treatment; these thresholds do not. That is unusual. It is the single most important thing to understand about this tax.

#The MAGI thresholds

NIIT MAGI thresholds, statutory and not indexed
Filing statusMAGI threshold
Single or head of household $200,000
Married filing jointly $250,000
Married filing separately $125,000

For most people, MAGI is the same as regular AGI. You find it near the bottom of the front page of your Form 1040. A small number of taxpayers have certain foreign income exclusions. They add those amounts back in to get MAGI. That affects a narrow slice of filers.

#The lesser-of rule: how the tax is actually figured

This is the part that confuses people the most. The 3.8% does not apply to your whole MAGI. It does not apply to your whole net investment income either.

It applies to the smaller of these two numbers:

  1. Your net investment income for the year, or
  2. The amount your MAGI exceeds the threshold for your filing status

Whichever number is smaller is the one that gets taxed at 3.8%.

#Why the “smaller of” matters

Say you are a single filer with a MAGI of $210,000. That is $10,000 over the $200,000 threshold. Say you also had $80,000 of net investment income that year. Even then, the tax only applies to the smaller number. That’s the $10,000 you are over the line.

NIIT owed: $10,000 × 3.8% = $380.

Flip it around. A single filer with MAGI of $400,000 has only $5,000 of net investment income. Most of their income is W-2 wages. Here’s the comparison: MAGI over the threshold is $200,000. Net investment income is $5,000. The smaller number is $5,000.

NIIT owed: $5,000 × 3.8% = $190.

The practical effect: a very high-earning W-2 household can owe almost nothing in NIIT, if its investment income is small. Think of a retiree with modest wages. Say that retiree sells a rental property for a large capital gain. That retiree can owe a meaningful amount.

#What counts as net investment income

Net investment income generally includes:

  • Interest (bank accounts, bonds, CDs)
  • Dividends (qualified and ordinary)
  • Capital gains: stock sales, gain on a home sale above the §121 exclusion, or gain on selling a rental property
  • Rental and royalty income for most landlords. One possible exception: nonpassive rental income may be left out, but only if the rental is also a trade or business under Section 162.
  • Income from a passive trade or business you do not materially participate in
  • Net gain from the disposition of property held for investment

It generally does not include:

  • Wages and salary
  • Self-employment income subject to SE tax. This income has a different surtax instead: the Additional Medicare Tax, a separate rule.
  • Distributions from qualified retirement plans (401(k), traditional and Roth IRAs, pensions)
  • Social Security benefits
  • Income from an active trade or business you materially participate in. This includes most S-corp pass-through income to an active owner-employee.
  • Tax-exempt municipal bond interest

#A worked example, start to finish

Let’s walk through a married couple filing jointly, using these 2026 numbers:

  • W-2 wages, both spouses combined: $280,000
  • Qualified dividends: $18,000
  • Long-term capital gain from selling stock: $40,000
  • Rental property net income (passive): $12,000

Step 1, total MAGI: $280,000 + $18,000 + $40,000 + $12,000 = $350,000

Step 2, MAGI over the threshold: $350,000 − $250,000 (MFJ threshold) = $100,000

Step 3, net investment income: add dividends, capital gain, and rental income. $18,000 + $40,000 + $12,000 = $70,000. Wages are excluded entirely.

Step 4, the lesser of the two: $70,000 (net investment income) is smaller than $100,000 (MAGI over threshold). So $70,000 is the taxable amount.

Step 5, the tax: $70,000 × 3.8% = $2,660

This couple owes $2,660 in NIIT. That sits on top of their regular federal income tax on the dividends, capital gain, and rental income. The wages never entered the NIIT calculation at all. They only helped determine whether the couple crossed the threshold in the first place.

#How this tax shows up on your return

NIIT is reported on Form 8960, attached to your Form 1040. The form walks through several steps:

  • Lines 1-7: categories of investment income (interest, dividends, annuities, rental/royalty/passive business, capital gains, other)
  • Line 8: total investment income
  • Lines 9-11: allowable deductions allocable to that income. This covers investment interest expense, state income tax allocable to investment income, and certain other expenses.
  • Line 12: net investment income
  • Lines 13-15: MAGI, the threshold, and how far over the threshold you are
  • Line 16: the smaller of line 12 or line 15 (MAGI over threshold)
  • Line 17: the tax, 3.8% of line 16

If a tax software program or preparer is doing your return, this form generates on its own. That happens once your numbers cross the threshold. The important part is understanding why it appeared, not filling it out by hand.

None of these are loopholes. They are mainstream planning moves that happen to also help with NIIT. That’s because they either lower MAGI or lower net investment income.

Make eligible pre-tax retirement contributions. Traditional 401(k) deferrals and deductible traditional IRA contributions can reduce current-year MAGI. IRA deductibility depends on income and retirement-plan coverage. Roth and nondeductible contributions do not reduce MAGI. These moves shrink NIIT in one case only: when the MAGI-over-threshold amount is the smaller side of the calculation.

Harvest capital losses against gains. Realized losses offset realized gains dollar for dollar before the NIIT calculation even starts. Say you expect a large gain this year. Check whether any losing positions make sense to sell in the same year. We cover the mechanics in tax-loss harvesting for high earners.

Give appreciated assets instead of cash. Say you donate appreciated stock you have held more than a year. Compare that to selling it and donating the cash instead. That avoids recognizing the capital gain at all. Compare the donor-advised fund and direct-giving routes in our guide to the tradeoffs.

Time a Roth conversion carefully. A Roth conversion is not investment income. But the taxable part of it raises your MAGI for that year. That can push your other investment income over the line. Consider converting in a lower-income year. Or spread a large conversion across several years. Model it before you convert.

Check whether rental activity is both nonpassive and a trade or business. Real estate professional status plus material participation can make a rental nonpassive. That alone does not remove it from NIIT. The rental must also rise to a Section 162 trade or business. Or it must meet the IRS safe harbor. Do not assume an exclusion based only on your job title or hours.

Consider installment sale treatment on a large property sale. Spread the gain from a sale over several years. Don’t recognize it all in one year. That can keep you under the threshold in some of those years. Stacking the entire gain into a single year triggers NIIT at full force instead.

#Common questions

#What is net investment income tax, in one sentence?

It is a flat 3.8% federal surtax. It applies to interest, dividends, capital gains, and passive rental or business income. You owe it only once. That happens when your MAGI crosses a fixed dollar threshold for your filing status.

#Does NIIT apply to my paycheck?

No. Wages and self-employment income are never net investment income. They can, however, push your MAGI over the threshold. That then exposes your separate investment income to the tax.

#Is NIIT the same as the Additional Medicare Tax?

No. They are two different surtaxes that often get confused. The Additional Medicare Tax is 0.9% on wages and self-employment income above a similar threshold. NIIT is 3.8% on investment income. A high earner can have both wage income and investment income. They can owe both, on different pieces of income.

#Does selling my primary home trigger NIIT?

Usually only the gain above the home-sale exclusion counts. That is $250,000 for single filers, $500,000 married filing jointly. You must also meet the ownership and use tests. Say you ever rented the home or took depreciation on it. Then that part of the gain cannot be excluded. Gain excluded under that rule is also excluded from net investment income.

#Do retirement account withdrawals count toward NIIT?

Distributions from qualified plans, like a 401(k) or traditional IRA, are excluded from net investment income. But they do count toward MAGI. A large required distribution can push you over the threshold. That exposes other investment income to the tax. The distribution itself is still not taxed under NIIT.

#Can an S-corp election help me avoid this tax?

Say the owner is actively working in the business. Then ordinary S-corp pass-through income is generally excluded from net investment income. It is one factor among several in the S-corp decision. It is not a reason by itself to elect. See our breakdown of when an S-corp actually saves money.

#Why did I owe NIIT this year when I didn’t last year?

The thresholds never move. So a modest raise can push you over the line for the first time. So can a one-time capital gain. So can simply years of wage growth. That happens with no change in your investment strategy. Check whether a large one-time item is the cause, like a property sale. Don’t assume it is permanent.

#Is there a NIIT calculator I can use?

The math is simple enough to do by hand using the lesser-of formula above. Compute net investment income. Compute MAGI over your threshold. Take the smaller number, and multiply by 3.8%. Software will do it automatically on Form 8960 once your numbers are entered.

#Ready to talk through your situation?

The moves that actually reduce NIIT depend on the shape of your income. How much is wages? How much is capital gains? Is a sale coming up this year, or could it be timed differently? A Tax Discovery call is free. It runs on Google Meet. There is no pitch. You get free advice either way. Say tax planning around an upcoming sale or conversion makes sense. Then we’ll walk you through it. If it doesn’t, we’ll tell you that too.

Search the whole site.

Articles, services, segment pages, tech stack. Start typing, or jump to a topic.

Tip: ↑ ↓ to navigate · Enter to open · Esc to close