TaxesAdvanced5 min read

The 3.8% NIIT: how it works and how to plan around it

The net investment income tax quietly adds 3.8% to investment returns above unindexed thresholds more and more households cross every year. The planning levers are real.

The net investment income tax is the stealthiest rate in the code: a flat 3.8% surtax on investment income above thresholds — $200,000 single, $250,000 married filing jointly — that were set in 2013 and never indexed to inflation. Every year, ordinary wage growth conscripts hundreds of thousands of new households into a tax originally aimed at the affluent. Because it sits on top of capital gains rates, it turns the advertised 15% and 20% brackets into 18.8% and 23.8%. Unlike most surtaxes, though, NIIT has genuine planning levers, because it only applies where two things overlap.

The overlap formula

NIIT equals 3.8% of the LESSER of (a) your net investment income, or (b) the amount by which your modified adjusted gross income exceeds the threshold. This 'lesser of' structure is the entire planning framework. A retiree with $240,000 of MAGI — $30,000 of it dividends — pays NIIT on nothing if married (below $250,000), and a high earner with $500,000 of pure salary and zero investment income pays nothing either. The tax needs BOTH high MAGI and investment income. Shrink either side of the overlap and the tax shrinks with it.

Income typeSubject to NIIT?
Interest, dividends, capital gainsYes
Rental and royalty income (passive)Yes
Passive business income (K-1 where you don't materially participate)Yes
Annuity distributions (non-qualified)Yes
Wages and self-employment incomeNo (FICA/SE tax instead)
Retirement account distributions (401k, IRA, Roth)No — but they raise MAGI
Social Security benefitsNo — but taxable portion raises MAGI
Municipal bond interestNo — and excluded from MAGI
Gain on primary home sale within the §121 exclusionNo
Active business income where you materially participateNo
What counts as net investment income
The 'lesser of' in action
The Chens (married) have $230,000 of combined salary and $60,000 of investment income: MAGI $290,000. Excess over threshold: $40,000. Net investment income: $60,000. NIIT applies to the LESSER — $40,000 — costing $1,520. Notice the two levers: deferring $40,000 of salary into 401(k)s drops MAGI to $250,000 and the tax to zero, even though every dollar of investment income remains. Alternatively, harvesting $20,000 of losses cuts NII to $40,000 — no NIIT change here (the MAGI side still binds at $40,000), which is exactly why you compute which side binds BEFORE choosing your lever. Working the wrong side of the 'lesser of' is the most common NIIT planning error.

Lever one: manage MAGI

When the MAGI side binds (investment income is large, MAGI barely over the line), every dollar of MAGI reduction erases a dollar of NIIT base at 3.8 cents each — on top of the regular tax savings. Max pre-tax 401(k), 403(b), and HSA contributions; use deductible IRA space if eligible; time bonuses and Roth conversions away from big-gain years; and note that qualified charitable distributions (age 70½+) reduce MAGI where ordinary charitable deductions don't. A retiree deciding between drawing from a traditional IRA versus a taxable account should remember the IRA withdrawal isn't NII itself but inflates MAGI, potentially exposing dividends and gains that were previously under the threshold.

Lever two: manage net investment income

  • Asset location: hold bonds, REITs, and high-turnover funds in retirement accounts, where their income never enters NII; keep tax-efficient index equities in taxable.
  • Municipal bonds: exempt from both NIIT and MAGI, munis get a hidden 3.8% edge for surtax payers — recompute your muni-vs-taxable breakeven with the surtax included.
  • Loss harvesting: realized losses offset gains inside NII dollar for dollar, making December harvesting worth 18.8-23.8 cents per dollar of gain offset, not 15-20.
  • Installment sales: spreading a large asset sale across years keeps each year's MAGI lower and can hold gains below the threshold repeatedly rather than blowing through it once.
  • Gain timing around income valleys: the year between retirement and Social Security/RMDs is often below the threshold entirely — realize gains then, NIIT-free.

The real estate and business carve-outs

Rental income is presumptively passive and NIIT-able, but taxpayers who qualify as real estate professionals (750+ hours and more than half their working time in real property trades, with material participation in the rentals) move rental income outside NII entirely. Similarly, K-1 income from a business where you materially participate escapes NIIT — one reason S-corp owners who work the business fare better than silent partners. And when you SELL: gain on an active business interest is largely NIIT-exempt, while gain on a passive interest is fully exposed — a 3.8% swing on a business sale, decided by participation records kept years earlier. Grouping elections under the passive activity rules can consolidate hours across activities; they're paperwork, but 3.8% of a large exit pays for a lot of paperwork.

Roth conversions and one-time events walk MAGI into the tax
A Roth conversion isn't investment income, but it raises MAGI dollar for dollar — a $150,000 conversion can drag every dollar of your dividends and gains into the surtax that year, an often-uncounted 3.8% add-on to the conversion's price tag. The same applies to large RSU vests, deferred comp payouts, and home sale gains above the §121 exclusion. Before any lumpy income event, project MAGI against the threshold and consider splitting the event across two tax years. The thresholds never move; your income timing can.
Estimate it or owe a penalty on it
NIIT is part of your income tax liability for estimated payment and withholding purposes. Households that cross the threshold for the first time — a big gain year, a rental portfolio scaling up — routinely under-withhold by exactly the surtax and meet their first underpayment penalty alongside their first NIIT. If a gain event happens mid-year, bump withholding or the next quarterly estimate by 3.8% of the expected overlap.

The bottom line

NIIT is 3.8% of an overlap: investment income on one side, MAGI above a frozen threshold on the other, taxed on the lesser. Plan by first identifying which side binds, then working that side — retirement deferrals and income timing for MAGI, asset location, munis, and loss harvesting for NII, participation status for rentals and businesses. None of these moves is exotic; they're ordinary planning tools that each quietly picked up an extra 3.8% payoff. As inflation marches more households over thresholds Congress never indexed, checking your overlap every December stops being an advanced technique and becomes basic hygiene.

Check your understanding

1 of 3
The 3.8% NIIT applies to the LESSER of two amounts. What are they?

Not quite — try again.

The Worth letter

Get smarter about money every week

One email, no spam — practical guides and Worth updates. Unsubscribe anytime.

Put this into practice

Worth tracks your accounts, budgets, and goals — so the concepts in this article aren't just theory.

Start free trial