What Is the Net Investment Income Tax and Who Pays the 3.8% NIIT?
What Is the Net Investment Income Tax and Who Pays the 3.8% NIIT?
In 2013, as part of the Affordable Care Act, Congress introduced a new tax on high-income individuals: the Net Investment Income Tax (NIIT), commonly called the 3.8% tax. Few investors were prepared for it then, and many still overlook it today. The NIIT applies an additional 3.8% tax on certain investment income—capital gains, dividends, interest, and rental income—if your modified adjusted gross income (MAGI) exceeds specified thresholds. For a married couple filing jointly, that threshold is $250,000; for single filers, $200,000. Exceed it, and every dollar of new investment income is taxed an extra 3.8%, on top of your regular federal income tax. At high income levels, this can push your effective tax rate on capital gains to nearly 24% (20% base rate + 3.8% NIIT + 3.8% Medicare tax), eroding after-tax returns significantly. Yet many investors don't even know the tax exists, let alone plan around it.
Quick definition: The Net Investment Income Tax is a 3.8% additional tax on net investment income for taxpayers whose modified adjusted gross income exceeds $250,000 (married filing jointly) or $200,000 (single). Investment income includes capital gains, dividends, interest, and passive rental income.
Key takeaways
- The NIIT threshold is $250,000 MAGI for married filing jointly, $200,000 for single, and $125,000 for married filing separately (not adjusted for inflation).
- Net investment income includes long-term capital gains, short-term capital gains, qualified and non-qualified dividends, interest, annuities, and passive rental/business income.
- The 3.8% NIIT applies only to net investment income, not wages or business income from active operations.
- The NIIT is calculated separately from regular income tax; you may owe both, resulting in combined capital gains tax rates exceeding 20%.
- High-income retirees often face the NIIT unintentionally when investment portfolios push them above the threshold.
- Tax-exempt bond interest is excluded from NIIT, making municipal bonds more valuable for high-income investors.
- Strategic timing of capital gains realization, harvesting losses, and managing dividend income can minimize or avoid the NIIT entirely.
The Origins and Scope of the NIIT
The NIIT was enacted as part of the Affordable Care Act to fund expanded healthcare coverage and to ensure high-income individuals contributed their fair share. The tax applies at a flat 3.8% rate, regardless of your regular income tax bracket. This means a high-income investor in the 37% bracket paying the NIIT faces a combined 40.8% tax on capital gains (plus 3.8% Medicare payroll tax on earned income, though that's separate). The tax is neither income tax nor payroll tax by traditional definition; it's a hybrid Medicare-related levy officially called the "Additional Medicare Tax on Net Investment Income."
The NIIT applies to U.S. citizens and resident aliens with investment income. Nonresidents are generally exempt unless they are citizens or have ties that subject them to U.S. tax. The income thresholds have never been indexed to inflation, so each year more moderate-income households cross the threshold as wages and investment returns grow.
What Counts as Net Investment Income?
Net investment income (NII) is investment returns net of deductions and losses. It includes:
- Capital gains (long-term and short-term)
- Dividends (qualified and non-qualified)
- Interest income (except U.S. savings bond interest used for education)
- Rental income from passive real estate (subject to certain exceptions)
- Passive business income from partnerships and S-corporations
- Royalties and annuity income
- Gains from sales of collectibles
Notably excluded from NII:
- Wages and self-employment income (even from active businesses you operate)
- Tax-exempt bond interest (municipal bonds)
- Gain on sale of your primary residence (up to exclusion limits)
- Distributions from qualified retirement plans (401(k), IRA) as principal
- Social Security benefits
- Employer-provided health insurance premiums
The exclusion of wages and business income is critical. A business owner earning $500,000 in profit from an active business pays no NIIT on that income—only regular income tax and self-employment tax. But if that same person earns $300,000 in wages and $100,000 in capital gains and dividends, the investment income portion faces the 3.8% NIIT.
Calculating the NIIT: The Threshold Test
The NIIT applies if your modified adjusted gross income (MAGI) exceeds the threshold AND you have net investment income. MAGI for this purpose is your adjusted gross income (AGI) from your 1040, plus foreign earned income exclusions (if any). It's not your gross income; deductions reduce it.
Here's the calculation:
Step 1: Determine MAGI for NIIT purposes
Step 2: Compare MAGI to threshold ($250K MFJ, $200K single, $125K MFS)
Step 3: If MAGI exceeds threshold, compute net investment income
Step 4: NIIT = 3.8% × lesser of NII or (MAGI - threshold)
The last step is crucial: you pay NIIT on the lesser of NII or the overage above the threshold.
Example: Tom is married filing jointly with $280,000 MAGI. His NII is $60,000 (capital gains and dividends). His threshold overage is $280,000 - $250,000 = $30,000. The NIIT applies to the lesser: $30,000. His NIIT is 3.8% × $30,000 = $1,140. He pays this in addition to regular income tax on his $280,000 income.
Counter-example: Sarah is single with $210,000 MAGI and $80,000 NII. Her threshold overage is $210,000 - $200,000 = $10,000. The NIIT applies to the lesser: $10,000. Her NIIT is 3.8% × $10,000 = $380, even though her NII is much higher. The overage is the limiting factor.
This mechanism sometimes creates a counterintuitive situation: realizing a large capital gain can increase your MAGI, which increases the NIIT on your other investment income. Conversely, harvesting losses can reduce MAGI and potentially eliminate the NIIT.
Decision tree for NIIT applicability
Real-world examples
Example 1: Retiree with passive income. Margaret, age 70, is married filing jointly. Her MAGI is $260,000, comprising $120,000 in pension income, $90,000 in Social Security (80% taxable), and $50,000 in capital gains and dividends from her portfolio. Her threshold is $250,000, so she exceeds it by $10,000. Her NII is $50,000 (the capital gains and dividends; pension and Social Security are not investment income). Her NIIT applies to the lesser: $50,000 NII or $10,000 overage. She pays 3.8% × $10,000 = $380 in NIIT. If Margaret had managed to realize only $30,000 in capital gains instead of $50,000 (by not selling appreciated stock that year), her MAGI would be $240,000—below the threshold, and she'd owe zero NIIT.
Example 2: High-income executive crossing the threshold. James earns $180,000 in salary (no NIIT on wages). He receives $30,000 in dividends and experiences a $40,000 capital gain from selling stock. His total MAGI is $250,000 (180K + 30K + 40K). His threshold is $250,000 (married filing jointly); he's exactly at it. His NII is $70,000. His NIIT is 3.8% × min($70,000, 0) = $0 because his overage above the threshold is zero. If he earned just $1 more in wages or gains, he'd cross the threshold and owe NIIT on all subsequent investment income.
Example 3: Avoiding NIIT through timing. Lisa is single with $210,000 in wages, $30,000 in planned capital gains from selling appreciated securities, and $15,000 in dividend income. Her projected MAGI is $255,000, exceeding her $200,000 threshold by $55,000. Her NII is $45,000. She'd owe 3.8% × $45,000 = $1,710 in NIIT. But she realizes that if she harvests $30,000 in capital losses from underperforming stocks, her MAGI drops to $225,000, and her NII becomes $15,000. She'd owe 3.8% × min($15,000, $25,000) = $570—a savings of $1,140. She sells the losing positions in November, locks in the loss, then buys them back after 31 days to avoid wash-sale rules.
The Interplay with Medicare Payroll Tax
In addition to the NIIT, high-income earners owe an extra 0.9% Medicare tax on wages and self-employment income exceeding $250,000 (MFJ) or $200,000 (single). This is technically separate from the NIIT, but the combined effect on high earners is significant. A single filer earning $300,000 in wages and $50,000 in capital gains faces:
- Regular income tax at 37% on the top bracket portion
- 0.9% Medicare tax on wages exceeding $200,000: 0.9% × $100,000 = $900
- 3.8% NIIT on capital gains: 3.8% × $50,000 = $1,900
- Total marginal rate on the last $50,000 of gains: 20% + 3.8% = 23.8%
For qualified dividends, the base rate is 20% at high incomes; add 3.8% NIIT, and the rate reaches 23.8%. Short-term capital gains are taxed as ordinary income (37% at the margin), plus 3.8% NIIT, for a total of 40.8%—punitive for frequent traders.
Strategies to Minimize or Avoid the NIIT
Strategy 1: Harvest tax losses. Realizing losses reduces NII dollar-for-dollar. If you have unrealized losses in your portfolio, harvesting them in December can lower your NII and your MAGI, potentially pushing you below the threshold or reducing the NIIT. The IRS wash-sale rule prevents you from immediately repurchasing the same security, but you can buy a similar (but not substantially identical) fund or stock.
Strategy 2: Defer capital gains realization. Delaying the sale of appreciated securities to the following year can shift gains to a lower-income year if your MAGI is expected to drop (e.g., retirement year, one-time bonus year). This requires forecasting income, but for investors near the threshold, it's invaluable.
Strategy 3: Use tax-exempt bonds. Municipal bond interest is excluded from NII. A single filer earning $220,000 in wages and receiving $20,000 in municipal bond interest plus $5,000 in taxable bond interest has NII of $5,000, not $25,000. The threshold overage is $20,000, so NIIT applies only to the lesser: $5,000. Municipal bonds pay lower interest than taxable bonds (they're backed by tax-exempt financing), but for high-income investors, the after-tax yield of munis can exceed that of taxable bonds.
Strategy 4: Maximize retirement account contributions. Contributions to 401(k)s, IRAs, and HSAs reduce your MAGI. A $7,000 IRA contribution reduces your MAGI by $7,000, potentially lowering the NIIT by 3.8% × $7,000 = $266. For high-income earners, maxing out retirement accounts is often the most tax-efficient use of savings.
Strategy 5: Charitable giving in appreciated securities. Donating appreciated stock directly to charity (not selling it first) avoids the capital gains tax and the NIIT entirely, while still obtaining a charitable deduction. You receive a deduction for the full fair market value, and neither you nor the gain is subject to tax.
Strategy 6: Shift income-producing assets to lower-income family members. Using trusts, gifts, or spousal strategies, you can shift dividend and interest-paying assets to family members in lower tax brackets, reducing your NII and NIIT. This requires careful planning to ensure compliance with gift tax and grantor trust rules.
Common mistakes
1. Ignoring the NIIT until tax-filing time. Many high-income investors have no idea they owe NIIT until they receive their tax bill. By then, it's too late to harvest losses or defer gains. Estimating NIIT early in the year and quarterly allows you to take corrective action before year-end.
2. Assuming the NIIT doesn't apply to long-term capital gains. The NIIT is a flat 3.8% tax on net investment income, regardless of rate class. It's not part of the standard income tax; it's an additional levy. Even if your capital gains are taxed at 0% under the long-term capital gains rate, you still owe 3.8% NIIT if your MAGI exceeds the threshold.
3. Not realizing that Social Security boosts MAGI but only 85% is taxable. For NIIT purposes, 85% of Social Security is included in MAGI (using a modified formula). Many retirees are surprised that claiming Social Security at 62 or 70 can push them over the threshold and trigger NIIT on investment income they've held for years.
4. Failing to consider the NIIT when choosing between Roth and traditional IRA conversions. A Roth conversion increases your MAGI and can trigger NIIT on your other investment income. Spreading conversions over multiple years may minimize or avoid the NIIT entirely.
5. Not tracking passive losses from real estate or partnerships. Passive losses can offset passive income and reduce NII. If you have real estate losses or partnership losses from prior years, using them strategically to offset capital gains or rental income can lower or eliminate the NIIT.
6. Overlooking qualified dividend treatment. Ordinary dividends are taxed as ordinary income (up to 37%); qualified dividends are taxed at long-term capital gains rates (up to 20%). Both are subject to NIIT. But understanding which dividends qualify can help you project and manage NII more accurately.
FAQ
At what exact MAGI do I start owing NIIT?
The threshold is not a per-dollar trigger; it's a cliff. At $250,000 MAGI for married filing jointly, you owe zero NIIT. At $250,001, you owe 3.8% of $1 of investment income, or $0.038. The NIIT phases in as MAGI increases above the threshold.
Do NIIT rules apply to capital gains on the sale of my home?
No. Gain on the sale of your primary residence (up to $250,000 single / $500,000 MFJ) is excluded from both income tax and net investment income for NIIT purposes. However, if you have a second home or rental property, gains there are included in NII.
Can I avoid NIIT by converting my taxable brokerage to a Roth IRA?
A Roth conversion itself triggers NIIT. Converting $50,000 in a taxable IRA to Roth increases your MAGI by $50,000 and may trigger NIIT on your other investment income. However, once funds are in a Roth, future investment income is sheltered from NIIT. So conversions can defer or spread the impact, but they don't eliminate it in the conversion year.
If I owe NIIT, do I need to make quarterly estimated tax payments?
Yes, if you expect to owe NIIT, you should include it in quarterly estimated tax payments (Form 1040-ES). Underpaying estimated tax can result in underpayment penalties. Many tax software programs now calculate NIIT automatically to inform your estimated payment amounts.
Does NIIT apply to passive real estate losses?
No. Passive losses from real estate or businesses can offset passive income, reducing your NII. If you have a net passive loss in a year, it reduces your overall NII and potentially your NIIT. However, passive losses are limited; you can carry unused losses forward.
Are capital losses from securities sufficient to offset all my NII?
Capital losses can offset capital gains dollar-for-dollar, then offset up to $3,000 of ordinary income per year. Unused losses carry forward indefinitely. If you have large capital losses, you can use them to offset gains and reduce NII below the threshold, sometimes eliminating NIIT.
If I'm married filing separately, do we each have a $200,000 threshold?
No. If married filing separately, the threshold is $125,000 (not $200,000). This is a significant penalty for high-income couples and is rarely advisable from a tax standpoint.
Related concepts
- Capital Gains: Short-Term vs. Long-Term — understanding gain classification is essential to managing NIIT exposure.
- Dividend Taxation Essentials — dividends are a large component of net investment income.
- Tax-Loss Harvesting: Converting Losses into Tax Savings — key strategy to reduce NII and NIIT.
- Tax-Advantaged Accounts: 401(k), IRA, and HSA — contributions reduce MAGI and NIIT exposure.
- Bond Taxation: Interest, Market Gains, and Call Risk — bond interest is included in net investment income.
Summary
The Net Investment Income Tax is a 3.8% additional levy on investment income for taxpayers exceeding $250,000 (married filing jointly) or $200,000 (single) in modified adjusted gross income. Unlike regular income tax, the NIIT is a flat-rate tax that applies on top of your marginal income tax bracket, pushing effective tax rates on capital gains and dividends to nearly 24% and 40.8% respectively at high incomes. Careful management of capital gains realization timing, tax-loss harvesting, strategic use of tax-exempt bonds, and maximizing retirement contributions can significantly reduce NIIT exposure. Investors must monitor their MAGI throughout the year and make proactive decisions about income recognition to minimize this hidden but substantial tax.
Next
→ Roth Conversion Timing: When Converting Traditional IRAs Makes Sense and When It Doesn't