NIIT 3.8% Planning
"Congress called it 'Affordable Care Act.' Your 1040 calls it Form 8960. Whatever you call it, the 3.8% surcharge on investment income above $250K MFJ is the most-collected tax most preparers do nothing about."
The 60-second pitch
The Net Investment Income Tax (NIIT) is a flat 3.8% surcharge on the lesser of: (a) your net investment income, or (b) the amount by which your MAGI exceeds $250K MFJ / $200K single / $125K MFS (these thresholds are not indexed for inflation — they were set in 2013 and never adjusted, so more households cross them every year).
"Net investment income" under §1411 includes: interest, dividends, capital gains, annuity distributions (the gain portion), royalties (passive), and rental income from passive activities. It excludes: wages, Social Security, retirement plan distributions, distributions from active trades or businesses, and self-rental income that flows through a non-passive activity.
For a household at $400K MAGI with $50K of long-term capital gains, the NIIT bill is 3.8% × min($50K, $400K - $250K) = 3.8% × $50K = $1,900. Looks small, but it stacks on top of the 20% federal LTCG rate — bringing the all-in federal rate to 23.8%. On a $500K business sale or stock gain, that's nearly $19K of NIIT alone.
The good news: NIIT is highly avoidable with planning, because it's triggered by the lesser-of rule. Reducing either bucket (NII or MAGI-over-threshold) reduces the tax. The strategies fall into three families: (1) shift income out of the NII category (active business, self-rental election, REP status); (2) defer income across years to stay under the MAGI threshold (installment sale, opportunity zone deferral); (3) realize losses or accelerate deductions to lower MAGI (tax-loss harvesting, retirement-plan deferral).
Real-world example
The setup. Anita is a hospital physician ($240K W-2). Raj is a director of finance ($150K). They have two kids in college. Brokerage: $1.4M of long-held S&P 500 ETFs. They want to use $200K of the brokerage to pay for older kid's tuition and a kitchen remodel.
The naive plan. Sell $200K of VTI in October 2025. Realized gain: $50,000 (low basis from 2014 buys). MAGI: $390K W-2 + $50K LTCG + ~$8K dividends = ~$448K. Above the $250K NIIT threshold by $198K. NII = $58K (gain + dividends). NIIT = 3.8% × min($58K, $198K) = 3.8% × $58K = $2,204. Plus 20% federal LTCG = $10K. Plus state. All-in tax on the $50K gain: $14K-$16K.
The §453 plan. Instead of a lump-sum sale of $200K, sell it via an installment note over 4 years: $50K each year 2025-2028. Each year recognizes $12,500 gain. MAGI stays under $250K in most years (Raj's bonus drops in 2026, Anita has a sabbatical year planned for 2027). NIIT in 2025: still ~$3K because of Anita's bonus year. NIIT 2026, 2027: $0 if MAGI is under $250K. NIIT savings over 4 years vs. lump sum: ~$1,800.
The harvest combo. Anita's brokerage holds $40K of unrealized losses in a few biotech positions. Harvest $40K in late 2025: offsets $40K of the $50K gain. Net realized gain becomes $10K. NIIT bucket falls to $10K + $8K dividends = $18K. NIIT = 3.8% × $18K = $684 — saving $1,520. Plus the LTCG savings: $40K × 23.8% = $9,520 federal saved.
Combined. Tax-loss harvest first, then installment-sell the remainder. NIIT this year drops from $2,204 to ~$684, with the remaining $40K of gain deferred and possibly NIIT-free in low-income years.
The step-by-step checklist
- Compute your MAGI vs. NIIT threshold. MAGI for NIIT = AGI + foreign earned income exclusion + foreign housing. Compare to $250K MFJ / $200K single / $125K MFS.
- Compute your net investment income. Interest + dividends + cap gains + passive rental + royalties − allocable deductions (investment management fees, state tax on NII, investment interest expense). Form 8960.
- Identify the constraining bucket. If MAGI-over-threshold < NII, reducing MAGI saves more. If NII < MAGI-over-threshold, reducing NII saves more. Plan accordingly.
- Harvest losses to reduce capital gains (cuts NII directly).
- Defer income via §453 installment sale, deferred comp, Opportunity Zone investment, or charitable bunching (DAF in high-NII years).
- Move income out of "investment" category. If you materially participate in a rental real estate business, the income is non-passive and exempt from NIIT under Reg §1.1411-5(b). Real Estate Professional Status (REPS) is the gateway.
- Self-rental election. If you rent a building to your operating S-corp, group them under Reg §1.469-4 to treat the rental as non-passive. Income from a non-passive rental is excluded from NIIT.
- S-corp distributions are not NIIT. S-corp K-1 ordinary income flows to your 1040 but is excluded from NII if you materially participate. Distributions are not income at all. (However, K-1 passive S-corp income — non-material participation — IS NII.)
- Max retirement plan deferrals. 401(k), HSA, Solo 401(k), DB plan — every dollar deferred reduces AGI/MAGI dollar-for-dollar.
- Bunch charitable giving via a Donor-Advised Fund. Front-load 3 years of charitable contributions into one year. Reduces AGI/MAGI, drops you below threshold, eliminates NIIT.
- Time the big sale. If you're selling a business or a large stock concentration, plan it in a year your W-2 is lower (sabbatical, retirement) so MAGI is already below threshold and only the gain itself triggers NIIT — limiting exposure.
- State-tax interaction. The state income tax allowed as a NIIT deduction is limited to the portion allocable to NII. Don't forget to allocate.
IRS code & authority
- IRC §1411 The NIIT itself. 3.8% on lesser of NII or MAGI − threshold. Thresholds: $250K MFJ, $200K single/HoH, $125K MFS — not indexed for inflation.
- Reg §1.1411-4 Definition of "net investment income." Three categories: passive activity income, financial income (interest/dividends/cap gains), and gain from disposition of property held in a passive activity.
- Reg §1.1411-5(b) Active trade or business income excluded from NIIT. Material participation under §469 is the key. Rental real estate qualifies if the taxpayer is a Real Estate Professional under §469(c)(7).
- Reg §1.1411-7 NII on disposition of an interest in a partnership or S-corp. Material-participation owner gets a more favorable calculation.
- IRC §453 Installment sales — allows deferring gain (and the NII attached to it) across multiple tax years. See our installment sale page for the recapture caveat.
- IRC §469 Passive activity loss rules. Material participation (500 hours, etc.) determines whether your business income is "passive" (NII) or "active" (excluded).
- Form 8960 Net Investment Income Tax computation. Filed with 1040 by any taxpayer over the MAGI threshold.
- CCA 201340034 + chief counsel memos Various IRS clarifications on edge cases (working capital, rental income from self-rentals).
Audit risk flags
- Claiming material participation in rentals without documentation. The Tax Court has been brutal on flimsy participation logs. Defense: Contemporaneous hour log, hour-by-activity detail, no after-the-fact reconstructions.
- Self-rental grouping not properly elected. §469 grouping requires a formal election statement attached to the return. Some practitioners skip it; without it, the rental is per-se passive and NIIT applies. Defense: File the grouping election (Reg §1.469-4(g)) the first year.
- Misclassifying S-corp distributions vs. wages. The IRS may recharacterize "reasonable compensation" if you take all-distribution, no-wage from an S-corp. The wage portion is NOT in NII, but it's payroll-taxed at 15.3% — different game. Defense: Pay yourself a reasonable W-2 wage before distributions.
- Investment expense deductions disallowed. Investment advisory fees were misc. itemized deductions pre-TCJA; for NIIT purposes they were still allowed as deductions under §1411(c)(1)(B) — but TCJA suspended misc. itemized deductions through 2025. So NIIT deductions for investment fees are gone unless §212 trade-or-business activity. Defense: Most advisory fees are not deductible right now; don't subtract them on Form 8960.
- Trust NIIT thresholds are much lower. Non-grantor trusts hit the 3.8% surcharge at only ~$15K of undistributed NII (top trust bracket threshold). Distributing income to beneficiaries (DNI) often saves NIIT. Defense: Coordinate trust distributions before year-end.
- Crypto and NIIT. Crypto gains are property gains, fully in NII. Don't forget them.
- Foreign income. Foreign earned income exclusion is added back for NIIT MAGI. Expats with $130K FEIE still face NIIT.
When NOT to do this
- Your MAGI is far below $250K. NIIT doesn't apply. Don't twist your investments to chase a tax that won't hit you.
- You're a single-employee S-corp with no rental side. Most of your income is wages (not NII) anyway. Marginal benefit from §1411 planning is small.
- Installment sale economics fail because of recapture. §1245 depreciation recapture is taxed in year 1 regardless of installment treatment — wipes out the deferral benefit on equipment-heavy businesses.
- Material participation gymnastics aren't sustainable. Claiming REPS or 500-hour participation in a business you only run nominally invites audit and is a poor long-term tax architecture.
- Charitable bunching skews your giving incentives. Some donors prefer steady annual gifting to specific organizations vs. parking $50K in a DAF for tax efficiency. Optimize for your actual values.
- You're near a Medicare IRMAA threshold. Reducing MAGI via retirement deferral may save NIIT but also save IRMAA premium surcharges (or trigger them). Look at all stacked tax effects.
Stop quietly paying the 3.8% tax most preparers ignore
PilePilot calculates your NIIT exposure year-round, recommends the right MAGI reduction or NII shift, and projects Form 8960 in real time as you make trades. Built for real small businesses who's run §1411 planning for hundreds of returns.
Start your free trial →No credit card. Your data is private and isolated — export or delete it anytime.
Disclaimer. Educational, not tax advice. NIIT interacts with most other tax strategies (REPS, installment sales, S-corp planning) — confirm with a tax professional before changing investment timing. Thresholds cited are statutory and unindexed.