Your dividend portfolio hits a milestone. The income starts to feel real. Then a tax form shows a line you've never seen before: a 3.8% surtax on investment income.

That's the Net Investment Income Tax, or NIIT. It catches a lot of dividend investors off guard, and most of the online explanations get it slightly wrong.

The short answer: the NIIT is not a 3.8% tax on everything you earn over $200,000, and it doesn't hit every dollar of your dividends. It applies to the smaller of two numbers: your net investment income, or the amount your income exceeds a threshold for your filing status.

That "smaller of two numbers" rule is the whole game. Once you see it, the tax gets much less scary.

This guide covers how the math works, which dividends count, how retirement accounts fit in, and the mistakes I see investors make most often.

Educational note: This article explains general U.S. federal tax concepts. It doesn't calculate your personal tax or recommend a tax strategy.

Net Investment Income Tax and Dividends: What High Earners Need to Know

The NIIT Formula (and One Quick Example)

NIIT = 3.8% × the lesser of:

  1. Your net investment income (NII), or
  2. Your MAGI minus the threshold for your filing status

Here's a single filer with $220,000 of MAGI and $50,000 of net investment income:

  • MAGI above the $200,000 threshold: $20,000
  • Net investment income: $50,000
  • The lesser amount: $20,000
  • NIIT: $20,000 × 3.8% = $760

Notice the tax was not $50,000 × 3.8% ($1,900). That gap is why the rule matters.

At a Glance

QuestionShort Answer
What is NIIT?        An extra 3.8% federal tax on certain investment income
Who can owe it?        Individuals, estates, and trusts that meet the requirements
Are qualified dividends included?        Yes, they still count as NII
Are capital gains included?        Yes, most taxable gains
Does crossing $200,000 tax all my dividends at 3.8%?        No
Is it the same as the Additional Medicare Tax?        No, that's a separate 0.9% tax on wages and self-employment income
Are qualified retirement plan distributions NII?        No, but they can raise your MAGI
Are qualified Roth IRA distributions NII?        Generally no
Which form calculates it?        Form 8960

What Is the Net Investment Income Tax?

Congress created the NIIT as part of the Affordable Care Act, and it has applied since 2013. It's a 3.8% tax, separate from regular income tax, on certain investment income for people whose income is above a set level.

For individuals, two things generally have to be true:

  1. Your modified adjusted gross income (MAGI) is above the threshold for your filing status.
  2. You have net investment income.

If either one is missing, you generally don't owe it.

The thresholds

Filing Status                MAGI Threshold
Single                    $200,000
Head of household                    $200,000
Married filing jointly                    $250,000
Qualifying surviving spouse                    $250,000
Married filing separately                    $125,000

These amounts are set by statute and are not adjusted for inflation. Every year, more households drift over them as wages and portfolios grow. Estates and trusts have a much lower trigger, tied to where the top trust tax bracket begins (about $15,650 for 2025, and it adjusts yearly).

What is MAGI for NIIT?

For most people, NIIT MAGI is simply your adjusted gross income (AGI). It gets adjusted only in specific cases, such as the foreign earned income exclusion or certain foreign investments like PFICs and CFCs. So "salary plus dividends" is a rough guess, not the real number. Your tax return gives you the real one.

When Portfolio Pays a Few Hundred Dollars a Year

For a long time, taxes were the boring part of dividend investing for me. When a portfolio pays a few hundred dollars a year, there isn't much to plan around. You collect the income, report it, and move on.

That changes as the income grows. Once dividends reach the tens of thousands, they stop sitting quietly on the side of your tax return. They interact with your salary, your capital gains, and your retirement withdrawals, and the NIIT is one of the clearest places you see it.

The biggest lesson for me is that people misjudge this tax in both directions. Some see "3.8%" and assume it comes off everything they earn. Others never think about it until a bigger-than-expected bill shows up. Neither reaction helps. The tax follows a specific rule, and once you know the rule, you can estimate your exposure in a few minutes.

It also changed how I think about yield. A high-yield fund isn't automatically better than a lower-yield one if it pushes more taxable income onto your return, especially when you're close to a threshold. I'd rather look at what I keep after taxes, along with risk and diversification, than chase the biggest number on the fact sheet.

That's my approach, not a recommendation. Your situation depends on your income, your filing status, and where your accounts sit, so run your own numbers or ask a tax professional.

What Counts as Net Investment Income?

Income TypeGenerally Included in NII?
Qualified dividends            Yes
Ordinary (non-qualified) dividends            Yes
Interest (bank, bonds, CDs)            Yes
Capital gain distributions from funds            Yes
Capital gains from selling stocks or funds            Yes
Rental and royalty income            Yes, unless earned in an active trade         or business
Passive business income            Yes
Annuity income (non-qualified)            Yes
Wages and salary            No
Social Security benefits            No
Tax-exempt municipal bond interest            No
Qualified retirement plan distributions (401(k), traditional IRA, etc.)            No
Qualified Roth IRA distributions            No
Gain on your main home, up to the $250,000/$500,000 exclusion            No

The word "net" matters. You can subtract certain expenses that are properly tied to your investment income, such as investment interest expense. Form 8960 lays out exactly which ones. You can't get an accurate figure by adding up the numbers on a brokerage statement.

Qualified dividends are not exempt

This is the point most people miss. "Qualified" describes the regular income tax rate. It has nothing to do with the NIIT. A qualified dividend can face both:

Dividend Type        Regular Federal Rate   + NIIT   Combined (Top Case)
Qualified, 15% bracket        15%     3.8%     18.8%
Qualified, top bracket        20%   3.8%     23.8%
Ordinary, top bracket        37%   3.8%    40.8%

Most high earners with qualified dividends land at 15% + 3.8% = 18.8%. The 23.8% figure applies only at very high taxable income. The income level for the 20% rate adjusts each year, so check the current IRS numbers.

Worked Examples

Every row uses the same formula: 3.8% × the lesser of NII or MAGI over the threshold.

3.8% × the lesser of NII or MAGI over the threshold

The last row shows the rule working the other way. When your income is far above the threshold, NII is the smaller number, so the tax applies to all of it.

A fuller example

A single investor has a $190,000 salary, $35,000 of dividends, and $5,000 of other investment income.

  • NIIT MAGI: $190,000 + $35,000 + $5,000 = $230,000 (assuming no adjustments)
  • MAGI above threshold: $230,000 − $200,000 = $30,000
  • Net investment income: $35,000 + $5,000 = $40,000
  • Lesser amount: $30,000
  • NIIT: $30,000 × 3.8% = $1,140

These examples are simplified. A real Form 8960 can include adjustments and deductions that change the result.

Retirement Accounts and the NIIT

Account type changes the picture a lot. Here's how the three common account types compare.

Taxable brokerage vs. traditional IRA/401(k) vs. Roth IRA

FeatureTaxable BrokerageTraditional IRA / 401(k)Roth IRA
Dividends create taxable income each year?Yes, even if reinvestedNo, not while inside the accountNo, not while inside the account
Capital gains taxed when you sell?YesNo, not inside the accountNo, not inside the account
Are distributions NII?Not applicableNoNo (qualified)
Can distributions raise MAGI?Not applicableYes, taxable withdrawals countQualified distributions generally don't
Regular income tax on withdrawalsOnly on gains and income already realizedYes, ordinary ratesGenerally none if qualified

Two points are worth underlining.

A traditional IRA withdrawal is not NII, but it still raises your MAGI. That can push you over a threshold and expose more of your other investment income to the tax. This is the catch for retirees who have both a big IRA and a taxable dividend portfolio.

"Tax-free" is a strong phrase. A Roth IRA withdrawal is tax-free only if it's qualified, which means meeting the age and five-year rules. Earnings withdrawn early can be taxable and may carry a penalty.

Roth conversions

A conversion isn't NII. But the converted amount is added to your income that year, so it raises MAGI. If your NII is already meaningful, a big conversion can pull more of it over the line. Run the numbers before you convert.

Key Factors to Check When You Think NIIT Might Apply

If you're near a threshold, work through these in order:

  1. Your filing status. The threshold could be $125,000, $200,000, or $250,000.
  2. Your expected MAGI. Include salary, bonuses, business income, taxable IRA withdrawals, and Roth conversions.
  3. Your total investment income. Count dividends, interest, fund distributions, and rental income.
  4. Realized capital gains. One large sale can change your whole year.
  5. Where each investment is held. Account location affects how much taxable income you generate.
  6. Deductible investment expenses. Some reduce NII.
  7. Special situations. Foreign income, PFICs, partnerships, rental real estate, or a trust.
  8. Your withholding. Check whether it covers the extra 3.8%.

NIIT Planning Checklist

  • Estimate this year's MAGI, and update it after any big income change
  • Total your expected dividends, interest, and realized gains
  • Note your filing status and the matching threshold
  • Subtract the threshold from MAGI, then compare the result to your NII
  • Review unrealized gains before selling large positions
  • Check for losses you could realize, following wash-sale rules
  • Look at which accounts hold your highest-yielding investments
  • Review your estimated tax payments (Form 1040-ES) or withholding
  • Keep basis records for every investment
  • Talk to a CPA or enrolled agent if anything on this list is unclear

Strategies Worth Understanding

No strategy makes the NIIT disappear. These are just areas to learn about, and they may or may not fit your situation.

Asset location. Asset allocation is what you own. Asset location is which account holds it. Investments that throw off a lot of taxable income, like REITs and bond funds, are often discussed as candidates for tax-advantaged accounts. The right answer depends on your own tax picture.

Watching MAGI before big moves. Your portfolio can stay the same while your NIIT exposure changes, simply because your salary, bonus, or business income changed.

Timing large sales. The chain runs like this: capital gain → higher MAGI and higher NII → possible NIIT. That doesn't mean you should avoid selling something that no longer fits your plan. It means you should know the cost before you hit the button.

Tax-loss harvesting. Realized losses can offset capital gains and reduce NII. The wash-sale rule can disallow a loss if you buy a substantially identical investment within 30 days before or after the sale. Never sell something only for the tax effect.

Municipal bonds. Tax-exempt muni interest isn't NII, and it isn't in AGI either, so it doesn't raise your NIIT MAGI. (Other tax calculations, like Social Security taxation, use different MAGI definitions that do include it.)

Do You Have to Pay the NIIT Throughout the Year?

Yes, in practice. The NIIT is part of your federal tax bill, and the IRS expects you to pay tax as you earn income. Brokerages don't automatically withhold it from dividends.

If you expect to owe it, you can raise your paycheck withholding or make quarterly estimated payments using Form 1040-ES. To avoid an underpayment penalty, you generally need to pay at least 90% of this year's tax or 100% of last year's (110% if your prior-year AGI was over $150,000). Safe-harbor rules have exceptions, so confirm them for your situation.

Common Mistakes Investors Make With the NIIT

  1. Thinking 3.8% applies to all income. It applies only to the lesser of NII or the MAGI excess.
  2. Assuming $200,000 triggers a tax on every dividend. You need both MAGI over the threshold and actual NII.
  3. Forgetting qualified dividends count. The lower regular rate doesn't exempt them.
  4. Ignoring capital gains. A single big sale can cause a NIIT bill in an otherwise normal year.
  5. Believing reinvested dividends aren't taxed. In a taxable account, reinvesting doesn't change the tax.
  6. Calling retirement accounts "tax-free." Traditional accounts are tax-deferred, and Roth accounts are tax-free only when distributions are qualified.
  7. Missing the MAGI effect of IRA withdrawals and Roth conversions. They aren't NII, but they can expose other income.
  8. Skipping estimated payments. The NIIT can produce a bill that withholding doesn't cover.
  9. Chasing yield without considering taxes. A higher yield can mean a bigger taxable income stream.
  10. Not keeping records. You'll need basis and transaction records for years.

When a Tax Professional Is Worth It

It's worth paying for a CPA or enrolled agent if you have large gains, a Roth conversion planned, rental or business income, foreign investments, partnership interests, or a trust. They can see your full return, which no article can.

Key Takeaways

  • The NIIT is a 3.8% federal tax on certain investment income, on top of regular income tax.
  • Thresholds are $200,000 (single, head of household), $250,000 (married filing jointly, qualifying surviving spouse), and $125,000 (married filing separately). They aren't inflation-adjusted.
  • The tax applies to the lesser of NII or MAGI above the threshold.
  • Qualified and ordinary dividends are both NII. Top-bracket qualified dividends can face 23.8% combined.
  • Capital gains count, and so do reinvested dividends in a taxable account.
  • Qualified retirement distributions aren't NII, but taxable ones raise MAGI.
  • Roth conversions raise MAGI but aren't NII themselves.
  • The NIIT is separate from the 0.9% Additional Medicare Tax.
  • Plan for it with withholding or estimated payments, and keep good records.

Frequently Asked Questions

How does the 3.8% net investment income tax apply to my dividend income?
If your MAGI is above the threshold for your filing status and you have net investment income, the tax applies to the lesser of your NII or the amount your MAGI exceeds the threshold. Dividends are part of NII.

Is the 3.8% applied to all my dividends?
Not necessarily. It applies only up to the lesser of your total NII or your MAGI excess.

Are qualified dividends subject to the NIIT?
Yes. They get a lower regular tax rate but still count as net investment income.

Does the NIIT apply to capital gains?
Yes, most taxable capital gains are included, including fund capital gain distributions.

Does reinvesting dividends avoid the NIIT?
No. In a taxable account, reinvested dividends are still taxable income for that year.

Does the NIIT apply to my salary?
No, wages aren't NII. But they increase your MAGI, which can make your investment income taxable under the NIIT.

Does the NIIT apply to traditional IRA distributions?
Qualified retirement plan distributions aren't NII. Taxable withdrawals still raise your MAGI.

Does the NIIT apply to dividends inside a Roth IRA?
Earnings inside a Roth IRA aren't currently taxed, and qualified Roth distributions aren't NII. Non-qualified withdrawals follow other rules.

Can a large stock sale increase my NIIT?
Yes. The gain can raise both NII and MAGI.

Does selling my home trigger the NIIT?
Gain covered by the home sale exclusion ($250,000 single, $500,000 married filing jointly) isn't NII. Gain above the exclusion can be.

Does everyone earning over $200,000 pay the NIIT?
No. You need both MAGI above the threshold and net investment income.

Are the thresholds adjusted for inflation?
No. They've stayed the same since the tax began.

Is the NIIT the same as the Additional Medicare Tax?
No. The NIIT is 3.8% on investment income. The Additional Medicare Tax is 0.9% on wages and self-employment income above certain levels.

Do I need Form 8960?
If you may owe the NIIT, you use Form 8960 to calculate it, and the result carries over to your Form 1040.

Official IRS Resources

Recommended Related Articles

Final Thoughts

The NIIT sounds worse than it usually is. It comes down to one comparison: your net investment income against how far your income sits above the threshold. Whichever is smaller gets the 3.8%.

As your portfolio grows, it's worth knowing where you stand before the tax bill shows you.

This article is for educational purposes only and is not tax, legal, or investment advice. Federal tax rules, thresholds, and IRS guidance can change. Examples are simplified and illustrative, and should not be used to calculate your personal tax liability. Actual NIIT depends on your filing status, MAGI, net investment income, deductions, transactions, and other circumstances. Review the current IRS forms and instructions for the tax year involved, and consider consulting a qualified tax professional about your situation.

Thought for the Day:

"Be fearful when others are greedy, and greedy when others are fearful"

- Warren Buffett (iconic American investor, business tycoon, and philanthropist)