Net Investment Income Tax (NIIT): The 3.8% Surtax on Your Stock Gains and Dividends

ShareXLinkedInRedditFacebookWhatsApp

September 5, 2026 · BriMindInvest Research Team · 15 min read · Tax Strategy

An extra 3.8% tax that quietly rides on top of your capital gains, dividends, and interest once your income crosses a fixed threshold that's never adjusted for inflation. Most investors have heard of it; fewer know exactly what counts, what doesn't, and how to legally reduce exposure.

NIIT at a Glance

Tax Rate
3.8%
On the lesser of NII or excess MAGI
Single Threshold
$200,000
MAGI, not indexed for inflation
MFJ Threshold
$250,000
MAGI, not indexed for inflation
MFS Threshold
$125,000
Married filing separately
Enacted
2013
Affordable Care Act, IRC §1411
Applies To
Individuals, estates, trusts
Not to corporations
Muni Bond Interest
Excluded
Not counted as NII at all
IRA/401(k) Distributions
Excluded
Not counted as NII

What Is the Net Investment Income Tax?

The Net Investment Income Tax (NIIT) is a 3.8% surtax on investment income, created by the Affordable Care Act in 2013 (IRC §1411) to help fund Medicare. It applies on top of — not instead of — whatever ordinary income tax or capital gains tax you already owe on that income.

The tax applies to the lesser of two numbers: your net investment income for the year, or the amount by which your modified adjusted gross income (MAGI) exceeds the threshold for your filing status. Whichever number is smaller is what gets taxed at 3.8%.

NIIT = 3.8% × MIN(Net Investment Income, MAGI − Threshold)

Example: single filer, MAGI of $260,000, net investment income of $40,000. Excess over threshold = $260,000 − $200,000 = $60,000. Since $40,000 (NII) is smaller than $60,000 (excess MAGI), the tax applies to the full $40,000: 3.8% × $40,000 = $1,520.

The "lesser of" mechanic means the tax behaves in two distinct phases as your income rises. Just above the threshold, NIIT climbs quickly because your excess MAGI is the smaller number and grows dollar-for-dollar. Once your excess MAGI grows past your total NII, the tax flattens out — from that point forward, the full NII amount is taxed no matter how much higher your income climbs. The chart below shows this kink clearly for a filer with a fixed $50,000 of net investment income.

NIIT Owed vs. MAGI
Single filer with a fixed $50,000 of net investment income, at MAGI levels from $180K to $400K

Below $200,000 MAGI, the line sits flat at zero — no NIIT applies at all. Between $200,000 and $250,000, it climbs steeply as excess MAGI grows. Past $250,000, it flattens permanently at $1,900 (3.8% of the full $50,000 NII) — the tax bill stops growing even as MAGI keeps climbing, because NII is now the smaller of the two numbers in the formula.

Why NIIT Exists — and Who It Was Designed to Hit

Before 2013, investment income (dividends, interest, capital gains) was subject to income tax but never to a Medicare-style payroll tax the way wages are — employees and employers each pay 1.45% Medicare tax on wages, but a retiree living entirely off dividends and bond interest paid nothing toward Medicare on that income. The Affordable Care Act's drafters closed this gap for higher earners by layering the 3.8% NIIT on top of investment income once MAGI crosses the threshold, explicitly modeled to parallel (though not identical to) the 2.9% combined Medicare payroll tax rate on wages.

Because the $200K/$250K thresholds were fixed in 2013 dollars and have never been indexed for inflation, the tax has quietly expanded its reach every year since — a household earning $200,000 in 2013 was solidly upper-middle-class; a household earning the same nominal $200,000 today has meaningfully less real purchasing power, yet faces the identical NIIT exposure. This is sometimes called "bracket creep by omission," and it means more taxpayers cross the threshold each year purely from wage growth and portfolio appreciation, without any change in the law itself.

How Much NIIT Really Adds to Your Top Rate

The 3.8% surtax sounds small in isolation, but it meaningfully raises the effective top marginal rate on every category of investment income once you're exposed to it. Municipal bond interest is entirely unaffected (it's excluded from NII), while ordinary-taxed income — non-qualified dividends and taxable interest — sees the largest absolute jump.

Effective Top Tax Rate, With vs. Without NIIT
Top federal marginal rate by income type, for a filer already above the NIIT threshold

Real-World Scenarios: Who Actually Gets Hit

  • The high-earning W-2 employee with a taxable brokerage account: a couple earning $300,000 in combined salary who also hold a $500,000 taxable investment account generating $20,000/year in dividends and gains will owe the full 3.8% on that $20,000 every year, since their wage income alone already exceeds the $250,000 MFJ threshold — this is the most common and least avoidable NIIT scenario.
  • The retiree with a pension and dividend portfolio: a retired couple with $180,000 in pension and Social Security plus $90,000 in dividends and capital gains has $270,000 total MAGI — $20,000 over the threshold — so NIIT applies to the lesser of their $90,000 NII or $20,000 excess, meaning only $20,000 is taxed at 3.8% ($760), not the full $90,000.
  • The founder or employee selling company stock: an employee who exercises options or sells RSU shares in a liquidity event can see MAGI spike into the millions in a single year purely from the stock sale (a capital gain, which is NII) — in this scenario, NIIT typically applies to the entire gain since excess MAGI will far exceed even a very large NII figure.
  • The landlord with several rental properties: rental income and gain on sale of investment property are both NII by default, but a landlord who qualifies as a real estate professional (750+ hours/year materially participating) can reclassify that income as active, removing it from NII entirely — a meaningful planning opportunity for full-time real estate investors.

What Counts as Net Investment Income

COUNTS as net investment income
  • Interest (savings, CDs, taxable bonds, money market funds)
  • Dividends — both qualified and non-qualified
  • Capital gains — short-term and long-term, including from stocks, ETFs, and mutual funds
  • Rental and royalty income (unless you're a real estate professional materially participating)
  • Non-qualified annuity income
  • Income from a passive business you don't materially participate in
  • Gain on the sale of a passive partnership or S-corp interest
DOES NOT count (excluded)
  • Wages and salary
  • Self-employment income (separate 0.9% Additional Medicare Tax may apply instead)
  • Distributions from IRAs, 401(k)s, and other qualified retirement plans
  • Social Security benefits
  • Municipal bond interest (fully excluded, federal AND from NIIT)
  • Gain excluded under the home-sale exclusion (Section 121)
  • Income from a business you materially participate in

Worked Example: NIIT Bill at Different Income Levels

Single filer with $50,000 in net investment income (dividends + capital gains combined) at various total MAGI levels:

NIIT Bill at Different Income Levels
Total MAGIExcess Over $200KLesser of NII ($50K) or ExcessNIIT Owed
$180,000$0 (under threshold)$0$0
$210,000$10,000$10,000$380
$230,000$30,000$30,000$1,140
$260,000$60,000$50,000 (NII is smaller)$1,900
$400,000$200,000$50,000 (NII is smaller)$1,900

Notice the bill caps out once excess MAGI exceeds your NII — beyond that point, the full $50,000 of investment income is taxed at 3.8% regardless of how much higher your total income climbs. The 3.8% is applied on top of whatever ordinary or capital-gains rate already applies, so a high earner's effective top rate on long-term gains becomes 20% + 3.8% = 23.8%, and on non-qualified dividends or interest, 37% + 3.8% = 40.8%.

NIIT and Your Stock Portfolio: What It Means for Asset Location

For most BriMindInvest readers, NII isn't rental income or a business sale — it's the dividends, interest, and capital gains generated by a stock and ETF portfolio. Once you're near or above the threshold, how you structure that portfolio starts to matter as much as what's in it, because different types of stock-market income carry very different combined tax rates once NIIT is added on top.

Top Combined Federal Rate by Portfolio Holding Type
Illustrative top marginal rate including the 3.8% NIIT, by category of stock-market income

A few practical takeaways for a taxable brokerage account once you're exposed to NIIT:

  • Qualified-dividend blue-chip stocks and Dividend Aristocrats carry the same 23.8% top combined rate as long-term capital gains — the most tax-efficient category of stock-market income for a taxable account.
  • REITs and BDCs (see our guides to the best BDC stocks and best dividend growth stocks) typically pay non-qualified, ordinary-rate distributions — a 40.8% top combined rate once NIIT applies. These often make more sense inside an IRA or 401(k) than in a taxable account for investors above the threshold.
  • Broad index ETFs (VOO, VTI-style funds) generate very little annual distributed income relative to their total return, deferring most of the tax hit — including NIIT — until shares are actually sold, which itself can be timed.
  • Actively managed mutual funds can force out capital gains distributions in years you didn't sell anything and didn't want the income, creating NIIT exposure with no control over timing — a common, underappreciated cost of holding active funds in a taxable account.
  • A large single-stock sale (concentrated employer stock, a legacy holding) behaves like the founder scenario above: consider spreading the sale across multiple tax years, or pairing it with tax-loss harvesting on other positions, to keep MAGI from spiking in one year.

Strategies to Reduce NIIT Exposure

  • Shift taxable interest into municipal bonds — muni interest is excluded from NII entirely, reducing both your regular tax and your NIIT base
  • Max out tax-deferred accounts (401k, traditional IRA, HSA) — contributions lower MAGI directly, and growth inside the account isn't NII until withdrawn as ordinary income (which itself is excluded from NII)
  • Use tax-loss harvesting to offset realized gains — every dollar of loss that offsets a gain reduces both the gain itself and the NII it would have generated
  • Favor broad index ETFs over actively managed mutual funds in taxable accounts — fewer forced capital gains distributions means less unplanned NII
  • Locate REITs, BDCs, and other ordinary-income holdings in tax-advantaged accounts, and keep qualified-dividend stocks and low-turnover index funds in your taxable account — a form of asset location that reduces both ordinary tax and NIIT drag
  • Time large gains (Roth conversions, business sales, concentrated stock sales) across multiple tax years to avoid single-year MAGI spikes over the threshold
  • Consider qualified charitable distributions (QCDs) from an IRA if you're 70½+ — QCDs satisfy RMDs without raising MAGI the way a taxable withdrawal would
  • For real estate investors: material participation (real estate professional status) can convert rental income and gains from passive (NII) to active (not NII) — a high bar, but valuable if you qualify
Sponsored
File your IRS taxes free when you qualify for E-file.com's Basic software
We may earn a commission if you sign up through this link.
Get started →

Frequently Asked Questions

More tax-smart investing guides

Tax-Efficient Investing GuideTax-Loss Harvesting GuideSavings vs Munis vs Dividends After TaxBest BDC Stocks 2026Dividend Aristocrats 2026
Disclaimer: This article is for educational purposes only and does not constitute tax advice. Tax rules change and individual circumstances vary widely — consult a qualified CPA or tax advisor before making decisions based on NIIT exposure.
Free Financial Calculators
Put the numbers to work — try our free tools.
View all tools →
CAGR CalculatorCompound InterestDCA CalculatorDividend & DRIPInflation CalculatorInvestment ReturnPosition SizeRetirement Calculator
ShareXLinkedInRedditFacebookWhatsApp

Read Next

Unlock Full AI-Powered Analysis

Get AI prediction signals, unlimited stock comparisons, portfolio analytics, and personalized watchlists — free for 14 days, no credit card required.

Start Free TrialSign In

14-day free trial · No credit card required · Cancel anytime

Data sources & disclosures: Financial data and metrics cited in this article are sourced from company SEC filings, earnings releases, and investor relations materials. Market prices and fundamental data are provided by financial market data providers. Market size estimates and industry projections are sourced from industry research and analyst reports. Figures reflect information available at the time of writing and may have changed. AI scores and price targets are proprietary estimates — see our Methodology. This article is for informational and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any security. Investing involves risk, including the possible loss of principal. Please read our full Disclaimer and consult a licensed financial adviser before making investment decisions.