Skip to content
The Evergreen Edit
Save app to home screen
Private Wealth

The Net Investment Income Tax Explained

High earners may owe an extra 3.8% tax on investment income. Here's who owes it, how to calculate it and legal ways to reduce it.

By Kiara Miller, Founder & Editor

Published · Last reviewed: · 7 min read

An affluent couple meeting their tax advisor at a mahogany desk, reviewing investment statements and a calculator

High earners with investment income can owe a federal tax on top of regular income tax and capital gains tax: the net investment income tax. It applies only above certain income levels, and because those levels never rise with inflation, more households cross them every year. Many people first notice it when a one-time event, such as selling a rental or a big stock position, shows up on their return.

What is the net investment income tax?

The net investment income tax, or NIIT, is a 3.8% federal tax on investment income for people above set income levels. You pay it on the smaller of two amounts: your net investment income, or the amount your modified adjusted gross income exceeds $200,000 if single or $250,000 if married filing jointly.

The tax took effect in 2013 and sits apart from your regular income tax bracket. It's reported on Form 8960, and it also applies to estates and trusts, which face a much lower income threshold.

The income thresholds

According to the IRS, the thresholds based on modified adjusted gross income, or MAGI, are:

  • Single or head of household: $200,000
  • Married filing jointly: $250,000
  • Qualifying widow(er) with a child: $250,000
  • Married filing separately: $125,000

The IRS says plainly that these amounts are not indexed for inflation. They are the same figures that applied in 2013, so a raise, a bonus or one good year in the market can bring you into range without any change in how you invest.

Estates and trusts follow a different rule. They owe the tax on undistributed net investment income when their adjusted gross income passes the point where the top trust tax bracket begins. In 2026, the 37% bracket for estates and trusts starts at just $16,000. A trust with $100,000 of undistributed investment income and no other income would pay the tax on $84,000, or $3,192.

How the math works, with real numbers

The "smaller of two amounts" rule is what confuses most people, so here are three examples.

Example 1: income just over the line. You're single with MAGI of $230,000, including $50,000 of net investment income. You're $30,000 over the threshold. The smaller figure is $30,000, so the tax is $30,000 x 3.8% = $1,140. Your other $20,000 of investment income isn't touched.

Example 2: income far over the line. You're single with MAGI of $500,000, including $40,000 of investment income. You're $300,000 over the threshold, but the smaller figure is the $40,000. The tax is $1,520. Once you're well above the line, all of your net investment income is exposed.

Example 3: a retirement withdrawal that triggers the tax. You're single with $150,000 of pension income and $40,000 of dividends, for MAGI of $190,000, so you owe nothing. You then convert $50,000 from a traditional IRA to a Roth. The conversion isn't investment income, but it lifts your MAGI to $240,000. You're now $40,000 over, your investment income is $40,000, and you owe $1,520 on dividends that were clear of the NIIT a moment earlier.

What counts as net investment income

Net investment income generally includes:

  • Interest from savings accounts, CDs and taxable bonds
  • Dividends, both qualified and ordinary
  • Capital gains from selling stocks, bonds, funds and investment real estate
  • Rental and royalty income, unless an exception applies
  • Income from non-qualified annuities
  • Income from businesses that are passive activities for you

You can subtract certain expenses allocable to that income. The IRS lists items such as investment interest expense, advisory and brokerage fees, rental expenses, and state and local income taxes, with Form 8960 showing how to report them.

What generally doesn't count

The IRS says net investment income generally does not include wages, unemployment compensation, Social Security benefits, alimony or most self-employment income. Also excluded are tax-exempt interest from municipal bonds and distributions from qualified retirement plans, including 401(k)s, 403(b)s, traditional and Roth IRAs and 457(b) plans.

Income from a business in which you materially participate is generally outside the tax too, though it may face self-employment tax instead.

What about selling your home?

Gain you can exclude from income when selling your main home is also excluded from the NIIT. That's the first $250,000 of gain, or $500,000 for a married couple. Only the taxable portion above that can count.

The IRS gives an example of a married couple with $100,000 of recognized gain above the exclusion who owe $1,900, because the tax applies to the $50,000 by which their MAGI tops $250,000. If you've owned a home for decades in an expensive market, run this estimate before you list it.

Who should pay attention

  • Dual-income couples near $250,000 with a taxable brokerage account
  • Landlords who don't materially participate in their rentals
  • Anyone selling a business, rental or large stock position this year
  • Retirees doing Roth conversions while holding taxable investments
  • Trustees of trusts that keep income rather than distributing it

Ways to manage the tax

Hold investments in tax-advantaged accounts. Investment income earned inside 401(k)s and IRAs isn't subject to the NIIT, and pre-tax contributions also lower your MAGI.

Harvest losses. Selling investments at a loss to offset gains reduces net investment income. Our guide to tax-loss harvesting explains how, including the wash-sale trap.

Consider municipal bonds. Tax-exempt interest doesn't count as investment income and doesn't raise your MAGI. Compare the after-tax yield first, using our guide to municipal bonds for high earners.

Spread large gains when you can. Suppose a couple has $230,000 of MAGI, including $15,000 of dividends, and a $60,000 gain to realize. Taken in one year, MAGI hits $290,000 and the NIIT applies to the $40,000 over the line, or $1,520. Taken as $20,000 a year for three years, MAGI reaches exactly $250,000 each year and the NIIT is $0, assuming their other income stays flat. Market risk and the capital gains rules still matter, so don't let this tax alone decide when you sell.

Give appreciated assets instead of cash. Donating appreciated stock directly to charity generally avoids recognizing the gain. Charitable remainder trusts can also spread gains out over time.

Time Roth conversions and withdrawals. Since these raise MAGI, doing them in lower-income years can keep your investment income below the threshold, as Example 3 shows.

Review your role in any business. Whether income is passive depends on your participation, so owners and landlords should document their hours and ask a tax professional how the rules apply.

Favor tax-efficient funds in taxable accounts. Index funds and ETFs that distribute fewer capital gains can reduce the investment income you report.

Common misunderstandings

  • Crossing the line doesn't tax all your income. Because only the smaller figure is taxed, being $1,000 over the threshold generally means the tax applies to just $1,000, or $38.
  • It stacks on your capital gains rate. If a gain is taxed at 15% and the NIIT applies to all of it, the federal cost on that gain is effectively 18.8%.
  • Filing separately isn't a workaround. The threshold for married filing separately is $125,000, half the joint figure.
  • Roth accounts can help. Earnings inside a Roth IRA aren't subject to the NIIT, and distributions from one aren't net investment income, which is one reason conversions in low-income years can pay off later.
  • Trust income may be shifted. Because estates and trusts owe the tax on undistributed income, a distribution can change who owes it. Ask the trust's tax adviser before making that decision.

Reporting and paying it

If your MAGI is above your threshold, you attach Form 8960 to your return. The tax is also subject to the estimated tax rules, so if you expect to owe it, build it into your withholding or quarterly payments. Otherwise a large one-time gain could leave you with an underpayment penalty as well as a bigger bill.

A quick checklist

  1. Estimate your MAGI for the year, including any planned sales, conversions or bonuses.
  2. Add up your net investment income, then subtract allocable expenses.
  3. Find how far your MAGI is over your threshold.
  4. Multiply the smaller figure by 3.8%.
  5. Before year-end, decide whether any gain, loss or conversion should move to a different year.
  6. Update your withholding or estimated payments.
  7. If rentals, business interests or trusts are involved, ask a tax professional to review the numbers.

Frequently asked questions

Do I pay the net investment income tax on Social Security or IRA withdrawals?

No. Social Security benefits and distributions from qualified plans such as 401(k)s and IRAs aren't net investment income. Retirement withdrawals can still raise your MAGI, which can expose your other investment income to the tax.

Are the $200,000 and $250,000 thresholds adjusted for inflation?

No. The IRS states that the threshold amounts are not indexed for inflation, so they have stayed the same since the tax began in 2013.

Does the tax apply to the sale of my home?

Only to the taxable part of the gain. Gain you exclude under the home sale rules, up to $250,000 or $500,000 for a married couple, isn't net investment income.

Is the NIIT the same as the additional Medicare tax?

No. The NIIT applies to investment income, while wages and self-employment income fall outside it. Those earnings may be subject to a separate additional Medicare tax.

Content on The Evergreen Edit is for educational and informational purposes only and is not individualized financial, investment, tax or legal advice. Learn more.

Compound growth estimate

Estimated total

$17,175

Your contributions

$13,000

This is an estimate, not a prediction. Monthly compounding; taxes, fees and inflation are excluded.

This article is for educational purposes only and isn't personalized financial, tax or legal advice. Consider talking with a qualified professional about your situation.

Kiara Miller

Kiara Miller — Founder & Editor

Kiara Miller is the founder and editor of The Evergreen Edit. He has been doing independent finance research for two decades, is a tax preparer, and reviews every article before it's published.

More about Kiara →

Get smarter about your money.

Join readers who get money stories on their chosen topics, daily or as new articles post.

Which topics do you want in your inbox? Pick up to 3
Email frequency

We'll use your answers to send articles you care about and to plan new content. We never sell your info. Privacy Policy

Recommended reading