GLOSSARY DEEP DIVE

Net Investment Income Tax: The Extra 3.8% Most High Earners Don't See Coming

A well-paid household can do everything right, max out retirement accounts, hold low-cost index funds, and still get hit with a surtax they never budgeted for the year a bonus, a home sale, or a strong market pushes income over a fixed threshold that has not moved since 2013. The net investment income tax is small in rate but easy to miss in planning, and it changes the math on Roth conversions, capital gains harvesting, and even municipal bonds.

Deep dive9 min readUpdated 2026

The core principle

The net investment income tax (NIIT) is a US federal surtax of 3.8% on investment income for taxpayers whose modified adjusted gross income (MAGI) exceeds a fixed statutory threshold: $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. It was enacted in 2013 to help fund the Affordable Care Act, and unlike most tax brackets it is not indexed for inflation, which means more households cross into it every year simply because wages and asset values have risen while the threshold has not.

The tax applies to the lesser of two numbers: your net investment income, or the amount by which your MAGI exceeds the threshold. Net investment income includes interest, dividends, capital gains, rental and royalty income, and income from passive business activities. It does not include wages, self-employment income (which faces a separate Medicare surtax instead), distributions from qualified retirement plans like a 401(k) or IRA, or income from an active trade or business in which you materially participate. That last exclusion is precisely why real estate professional status and active involvement in a business carry outsized tax value for high earners: the same rental income can be NIIT-exempt or NIIT-taxable depending on how actively you participate.

The practical effect is to raise the top federal long-term capital gains rate from 20% to 23.8%, and the top federal rate on qualified dividends from 20% to 23.8% as well, for taxpayers above the threshold. It also taxes ordinary interest and non-qualified dividends at 3.8% on top of whatever ordinary income rate already applies to them.

Key idea NIIT is a threshold tax, not a bracket. Once your MAGI crosses the line, every additional dollar of investment income (up to the excess-MAGI cap) owes the surtax, but income below the threshold is untouched. Timing income to stay under the line, when legitimately possible, has real value.

How the math works

Example 1: the lesser-of calculation. A married couple filing jointly has MAGI of $310,000, which includes $40,000 of net investment income (dividends and realized capital gains) and $270,000 of wages and other non-investment income. Their MAGI exceeds the $250,000 threshold by $310,000 − $250,000 = $60,000. NIIT applies to the lesser of their $40,000 of investment income or that $60,000 excess, so the taxable base is $40,000. The tax owed is $40,000 × 3.8% = $1,520.

Example 2: a big one-time gain. The same couple sells a rental property the following year, realizing a $200,000 long-term capital gain on top of $270,000 of wages, with no other investment income. Total MAGI is now $270,000 + $200,000 = $470,000, which exceeds the $250,000 threshold by $470,000 − $250,000 = $220,000. Net investment income is $200,000 (the gain). NIIT applies to the lesser of $200,000 or $220,000, so the full $200,000 is taxed at 3.8%, adding $200,000 × 3.8% = $7,600 to their tax bill on top of the 20% federal long-term capital gains rate already due on a gain that large, for a combined federal rate of 23.8% on that gain before any state tax.

How it shows up in real portfolios

The most common trigger is a household whose wage income already sits near or above the threshold, so any investment income at all gets taxed at the higher combined rate. A dual-physician household earning $380,000 in combined wages is already $130,000 over the joint threshold before a single dollar of portfolio income arrives; from that point forward, essentially all of their taxable-account interest, dividends, and realized gains face the extra 3.8%, which is a strong argument for holding tax-inefficient assets like taxable bonds and REITs inside 401(k) and IRA accounts instead, where growth is sheltered from NIIT entirely until withdrawal (and Roth withdrawals in retirement escape it permanently).

A second scenario involves a single-income household near the $200,000 line with a taxable brokerage account. A homeowner selling a long-held stock position for a $50,000 gain in a year when wages alone are $180,000 pushes MAGI to $230,000, which is $30,000 over the threshold; NIIT applies to the lesser of the $50,000 gain or the $30,000 excess, so only $30,000 gets taxed at 3.8%, an $1,140 bill the seller can reduce in future years by spreading large gains across multiple tax years or harvesting losses in the same year to offset the gain and shrink net investment income.

A third pattern shows up around Roth conversions. Converting a large traditional IRA balance to Roth in a single year raises MAGI just like a capital gain would, and while the conversion itself is ordinary income rather than investment income (so the converted amount is not directly subject to NIIT), a large conversion can push MAGI high enough that it drags otherwise-untaxed investment income over the threshold in the same year. Sequencing conversions across several lower-income years, common during a sabbatical, a gap between jobs, or early retirement before Social Security begins, avoids stacking a conversion on top of an already-high income year.

Key idea Because retirement account withdrawals of ordinary contributions are excluded from net investment income, tax-deferred and Roth accounts are doubly valuable for high earners: they defer or eliminate ordinary tax, and they never generate NIIT.

A fourth pattern involves trust income, which is frequently overlooked. Non-grantor trusts hit the NIIT threshold at a dramatically lower dollar figure than individuals, roughly $15,000 of undistributed income in recent years rather than the $200,000 or $250,000 individual thresholds, because Congress set the trust threshold to the top of the compressed trust tax brackets rather than indexing it to individual filing status. A trustee who retains investment income inside the trust rather than distributing it to beneficiaries can trigger NIIT at a far lower income level than the beneficiaries would have faced individually, which is why many trust documents are drafted to distribute investment income out to beneficiaries in lower brackets each year rather than accumulating it inside the trust.

Small business owners and independent contractors who hold a stake in a pass-through entity, an S corporation or partnership, need to separately track whether their share of the entity's income counts as active trade or business income (excluded from NIIT if they materially participate) or as passive investment income (included). A physician who is a passive limited partner in a surgery center she does not manage day to day, for instance, generally owes NIIT on her share of the center's profit distributions, while a physician who actively works at and helps manage that same center typically does not, an outcome that depends entirely on documented level of participation rather than on the underlying economics of the investment itself.

Actionable breakdown

  • Check your exposure:
    • Threshold is $200k single, $250k joint, $125k separate.
    • Tax applies to the lesser of investment income or excess MAGI.
    • Rate is a flat 3.8%, stacked on top of normal rates.
  • Reduce the bill legitimately:
    • Hold taxable bonds and REITs inside retirement accounts.
    • Harvest capital losses to offset realized gains.
    • Spread large one-time gains across tax years when possible.
    • Time Roth conversions to lower-income years.
  • Do not confuse it with:
    • Self-employment Medicare surtax, which is separate and applies to wages.
    • State-level investment taxes, which follow different rules entirely.

Common pitfalls

  • Forgetting NIIT exists until a large capital gain year, then being surprised by a five-figure surtax on top of the expected federal rate.
  • Assuming municipal bond interest triggers NIIT; it does not, since federally exempt muni interest is excluded from net investment income, which is part of why munis appeal specifically to high earners above the threshold.
  • Placing taxable bonds and REITs in a brokerage account by default instead of a retirement account, generating avoidable NIIT exposure year after year.
  • Realizing a large gain in a single tax year purely for simplicity, without checking whether spreading the sale across two years would meaningfully reduce the combined bill.

For the income measure that determines exposure, see modified adjusted gross income and adjusted gross income. For the income types it taxes, see capital gain and qualified dividend. For where to hold assets to avoid it, see asset location and the guides on high income tax and tax efficiency.

The bottom line

NIIT is a fixed, non-inflation-adjusted 3.8% toll on investment income above a static threshold, and the households that manage it best are the ones who plan around it before a big gain hits, not after.

Back to the full glossary