
Understanding Net Investment Income Tax
An Additional Tax for Higher-Income Investors
The Net Investment Income Tax (NIIT) is a 3.8% surtax under IRC section 1411, applying on top of regular income tax -- specifically targeting investment income for higher earners, not wages. It's a relatively narrow tax in terms of who it actually affects, but for the people it does apply to, it's a real, often-underestimated addition to an already significant capital gains tax bill, and one that's easy to overlook when doing a rough mental estimate of what a large investment sale will actually cost in tax.
Who Owes It
NIIT applies to the lesser of your net investment income, or the amount your MAGI exceeds a statutory threshold -- $200,000 for single filers, $250,000 for married filing jointly. These thresholds are fixed by statute (not inflation-indexed) and have been unchanged since NIIT took effect in 2013, which means more filers cross into NIIT territory over time purely due to income growth and inflation, even without any change in their real purchasing power. This is a meaningful detail worth understanding: a threshold that felt like it only applied to very high earners in 2013 captures a somewhat broader group of taxpayers today, simply because it never adjusted.
What Counts as "Net Investment Income"

Interest, dividends, capital gains, rental and royalty income, and certain passive business income all count -- generally not wages, self-employment income (already subject to SE tax instead), or distributions from qualified retirement accounts. This distinction matters for anyone with a mixed income picture: a high earner whose income comes entirely from a W-2 salary owes no NIIT regardless of how high that salary is, while someone with a more modest salary but a large investment portfolio generating significant dividends and capital gains could owe NIIT even at a somewhat lower total MAGI, purely because of how that income is categorized.
Calculating Your NIIT
Use the NIIT Calculator with your MAGI, net investment income, and filing status to see the lesser-of calculation applied to your specific numbers -- the "lesser of" structure means the tax is bounded by your actual investment income even if your MAGI is far above the threshold, which is a detail easy to miss when doing rough mental math.
How This Stacks With Capital Gains Tax
NIIT is separate from, and additional to, regular capital gains tax -- a higher earner selling a long-term investment could owe both the preferential long-term capital gains rate and the 3.8% NIIT on the same gain, meaning the effective combined rate on that gain is meaningfully higher than the headline capital gains rate alone would suggest. This is a common source of underestimated tax liability when someone plans a large asset sale using only the capital gains rate as their reference point. See our capital gains tax guide for the base calculation this stacks on top of.
Planning Around NIIT for a Large Sale

Anyone anticipating a large one-time investment gain -- selling a business, a concentrated stock position, or investment real estate -- benefits from checking both the capital gains tax and NIIT together before the sale, not after. In some cases, timing a sale across two tax years, harvesting offsetting losses, or other legitimate planning strategies can meaningfully affect the total tax owed -- exactly the kind of decision worth a conversation with a tax professional well before the transaction closes, since options narrow considerably once a sale is already complete.
Why This Tax Exists
NIIT was introduced in 2013 as part of broader healthcare-related legislation, structured specifically to apply to investment income above the stated thresholds rather than as a general tax increase across all income types. Understanding its origin helps explain why it applies the way it does -- targeted narrowly at investment income for higher earners, rather than functioning as a broader surtax that would apply more generally across all income sources regardless of type.
Estimated Tax Implications
For anyone who regularly generates significant net investment income, NIIT should be factored into quarterly estimated tax planning alongside regular income tax and, if applicable, self-employment tax -- overlooking it in an estimated payment calculation is a common way to end up owing a larger-than-expected balance at filing time, even for someone who otherwise budgeted carefully for their regular income tax obligation.
Frequently Asked Questions
Does NIIT apply to my 401(k) or IRA?
No -- qualified retirement account distributions aren't included in net investment income for NIIT purposes, which is one reason tax-advantaged retirement accounts remain attractive even for high earners with substantial investment income elsewhere.
Are the NIIT thresholds the same regardless of state?
The federal NIIT thresholds are the same nationwide -- $200,000 single / $250,000 married filing jointly -- since this is a federal tax. Some states impose their own separate investment-income-related taxes with entirely different rules, so check your specific state's requirements separately.
Is rental income always subject to NIIT?
Rental income is generally included in net investment income, though specific exceptions exist for real estate professionals who materially participate in the rental activity under IRS rules -- a nuanced area worth confirming with a tax professional if it applies to your situation.
Does NIIT apply separately at the state level too?
NIIT itself is a federal tax under federal law -- states don't impose their own separate "NIIT," though many states have their own income tax that applies to investment income through their own general rules, layered independently on top of the federal picture.
Can retirement account contributions reduce exposure to NIIT?
Indirectly, in some cases -- since NIIT depends on MAGI crossing a threshold, increasing pre-tax retirement contributions (which reduce MAGI) can, for some filers close to the threshold, reduce or avoid NIIT exposure for that year. This interacts with several other parts of a tax return, so it's worth modeling with a tax professional rather than assuming it applies uniformly.
Does selling a primary residence trigger NIIT on the gain?
It can, but only on the portion of gain that exceeds the standard home-sale exclusion (a significant tax-free amount most homeowners qualify for) -- most typical home sales fall entirely within that exclusion and never generate NIIT-exposed gain, though a very large gain on a high-value property could exceed it.

Comments (0)
No comments yet. Be the first to share your thoughts.