Taxstra Logo
Investment Tax Guide

Net Investment Income Tax (NIIT): 3.8% Rules

How the 3.8% net investment income tax works in 2026: thresholds, what counts as investment income, the lesser-of math, Form 8960 and exceptions.

★ 5.0 on Google113 reviews4.9 from 114 BiggerPockets reviews1,000+ clientsAll 50 states, fully remote

Quick answer

The net investment income tax (NIIT) is a 3.8 percent federal tax under section 1411 on the lesser of your net investment income or the amount your modified AGI exceeds $250,000 (married filing jointly), $200,000 (single or head of household) or $125,000 (married filing separately). The thresholds are not indexed, so they are the same for 2026. Investment income includes interest, dividends, capital gains, rents and passive business income, but not wages, self-employment income or retirement plan distributions. It is figured on Form 8960.

The 3.8 percent tax in one minute

Section 1411 adds a 3.8 percent tax on investment income for higher earners. It took effect in 2013, sits on top of the regular income tax, and applies whether the income is taxed at ordinary rates or at capital gain rates. For a high earner selling stock, it turns a 20 percent capital gain rate into 23.8 percent.

The tax is on the smaller of two numbers: your net investment income, or the amount by which your modified adjusted gross income exceeds your threshold. That lesser-of rule is why someone with a large salary and a small dividend pays NIIT only on the dividend, and someone with a moderate salary and a large one-time gain pays it only on the part of income above the threshold.

This page covers who owes it, what counts, the exceptions that matter for business owners and real estate investors, and how it is reported. Educational, not individualized tax advice.

The thresholds have not moved since 2013

The $250,000 and $200,000 thresholds are written into the statute and are not adjusted for inflation. Each year, more households cross them through ordinary raises and market growth. If your income is near the line, a single stock sale, a property sale or a large fund distribution can pull part of it into the tax.

Who owes the NIIT: thresholds for 2026 and 2027

Individuals owe the tax if they have net investment income and modified AGI above their threshold. For most people, modified AGI is simply AGI; it is increased only for those excluding foreign earned income, and there are further adjustments for some foreign corporation holdings. Nonresident aliens are not subject to the tax.

Estates and nongrantor trusts owe it on the lesser of undistributed net investment income or AGI above the dollar amount where the top trust bracket begins. That amount is adjusted each year, and it is very low. Grantor trusts are not subject to it separately; their income is reported by the grantor.

NIIT thresholds
Filer20262027
Married filing jointly or qualifying surviving spouse$250,000 MAGI$250,000 MAGI
Single$200,000 MAGI$200,000 MAGI
Head of household$200,000 MAGI$200,000 MAGI
Married filing separately$125,000 MAGI$125,000 MAGI
Estates and nongrantor trustsAGI over $16,000AGI over $16,500

Sources: IRC 1411(b) and IRS NIIT Q&A 3 (individual thresholds, not indexed); Rev. Proc. 2025-32 sec. 4.01 and Rev. Proc. 2026-35 sec. 3.01, Table 5 (start of the top estates and trusts bracket).

Trusts hit the threshold fast; see trust tax rates and brackets for the full schedule.

What counts as net investment income, and what does not

Net investment income is gross investment income minus the deductions properly allocable to it. Gross investment income has three buckets in the statute: interest, dividends, annuities, royalties and rents not earned in an active business; income from businesses that are passive to you or that trade financial instruments or commodities; and net gain from selling property not held in an active business.

Allocable deductions include investment interest expense, investment advisory and brokerage fees, expenses of rental and royalty income, and state and local income taxes allocable to investment income, among others.

Common items and NIIT
IncomeNet investment income?Source
Interest, ordinary and qualified dividendsYesIRC 1411(c)(1)(A)(i); Q&A 8
Capital gains on stocks, bonds and mutual funds, and fund capital gain distributionsYesQ&A 10
Gain on investment real estate or a second homeYesQ&A 10
Rental and royalty income (unless earned in an active business)YesIRC 1411(c)(1)(A)(i); Q&A 8
Income from a business you do not materially participate inYesIRC 1411(c)(2)(A)
Income from a business of trading financial instruments or commoditiesYes, even if activeIRC 1411(c)(2)(B)
Nonqualified annuity incomeYesQ&A 8
Wages and salaryNoQ&A 9
Self-employment incomeNoIRC 1411(c)(6); Q&A 9
Operating income of a business you materially participate inNoIRC 1411(c)(1), (2); Q&A 9
Distributions from 401(a), 403(a), 403(b), IRA, Roth IRA and 457(b) plansNoIRC 1411(c)(5); Q&A 9
Tax-exempt interestNoQ&A 9
Social Security benefitsNoQ&A 9
Gain excluded on a home sale under section 121NoQ&A 11

Retirement distributions and wages are not net investment income, but they do raise modified AGI, which can push other investment income over the threshold.

Owners of operating businesses should also read passive income vs earned income to see which side of the line their income falls on.

Worked examples: the lesser-of computation

Both examples are hypothetical and assume no deductions allocable to the investment income.

Example 1: a married couple filing jointly earns $400,000 in wages and has $60,000 of dividends and capital gains. Their MAGI is $460,000, which exceeds $250,000 by $210,000. Net investment income is $60,000. The tax is 3.8 percent of the lesser amount, $60,000: $2,280.

Example 2: a single filer earns $150,000 in wages, sells stock for a $120,000 long-term gain, and receives $10,000 of dividends. MAGI is $280,000, which exceeds $200,000 by $80,000. Net investment income is $130,000. The tax is 3.8 percent of the lesser amount, $80,000: $3,040.

Worked example

Lesser-of math side by side

Example 1: MAGI over the $250,000 threshold
$210,000
Example 1: net investment income
$60,000
Example 1: NIIT at 3.8% of $60,000
$2,280
Example 2: MAGI over the $200,000 threshold
$80,000
Example 2: net investment income
$130,000
Example 2: NIIT at 3.8% of $80,000
$3,040
Trust example (2026): $50,000 undistributed NII and AGI; excess over $16,000
$34,000; NIIT $1,292

Hypothetical. NIIT is in addition to regular income tax. In Example 2, the wages count toward MAGI but are not investment income. Educational, not individualized tax advice.

Run your own numbers in our NIIT calculator.

Real estate: rentals and the real estate professional safe harbor

Rental income is generally net investment income, and so is gain when you sell a rental, because rental activities are usually passive or are not a trade or business at all.

Treas. Reg. 1.1411-4(g)(7) gives real estate professionals a safe harbor. If you qualify as a real estate professional under section 469(c)(7)(B) and participate in a rental real estate activity for more than 500 hours during the year, or for more than 500 hours in any 5 of the preceding 10 years, the rental income from that activity is treated as earned in the ordinary course of a trade or business and gain on disposing of its property is treated the same way. Meeting the safe harbor generally takes that income and gain out of NIIT. Not meeting it does not automatically put it in: you can still show the rental is a nonpassive trade or business under the general rules.

The rental-specific rules, including grouping and self-rentals, are on our rental property NIIT guide. Qualification as a real estate professional is covered under real estate professional status.

Selling your home

NIIT does not apply to gain excluded from income. The section 121 exclusion shelters up to $250,000 of gain on the sale of a principal residence ($500,000 for a married couple), so that excluded gain is never investment income. Gain above the exclusion is net investment income, and so is all gain on a second home or vacation property.

The IRS gives this example: a married couple sells their longtime home for $1.3 million with a $700,000 basis. Of the $600,000 gain, $500,000 is excluded and $100,000 is taxable. With $125,000 of other investment income, net investment income is $225,000. Their MAGI of $300,000 is $50,000 over the threshold, so the tax is 3.8 percent of $50,000: $1,900.

Thinking about renting instead of selling? See whether to sell or rent your house.

Selling an interest in an active S corporation or partnership

When you sell stock in an S corporation or an interest in a partnership, section 1411(c)(4) limits the gain counted as net investment income to the net gain you would have had if the entity sold all its property at fair market value just before your sale, applying the NIIT rules to each asset. In practice, if you materially participate in an operating business, the gain attributable to the business’s active assets generally drops out, while gain attributable to investment assets the entity holds stays in.

The adjustment is computed on a worksheet and entered on Form 8960, line 5c, with a statement attached for the year of the sale. The IRS notes that the detailed computation is in proposed regulations, so this is an area where the numbers deserve care.

Selling a company? Start with our guide to the taxes on selling a business.

Form 8960, estimated tax and credits

Individuals figure the tax on Form 8960 and report and pay it with Form 1040; estates and trusts do the same with Form 1041. Allocable deductions such as investment interest (line 9a) and state and local income taxes (line 9b) reduce net investment income on the form.

NIIT is subject to the estimated tax rules. It is not withheld from wages automatically, but you can ask your employer to withhold more income tax to cover it. A household expecting a large gain should include NIIT in its estimates; if last year’s AGI was over $150,000, the prior-year safe harbor requires paying 110 percent of last year’s total tax.

Credits allowed only against regular income tax, including the foreign tax credit and the general business credit, cannot reduce NIIT. The 0.9 percent Additional Medicare Tax is a separate tax on wages and self-employment income; it does not apply to items included in net investment income, so the two do not hit the same dollar.

Planning levers that actually change NIIT

Because the tax is on the lesser of two numbers, there are two kinds of levers: reduce net investment income, or reduce MAGI.

On the investment income side: harvest capital losses to offset gains, hold tax-exempt bonds where they make sense, hold income-heavy investments inside retirement accounts, give appreciated stock to charity instead of selling it, and use installment sales or staged sales to keep gains below the threshold in some years. Business owners and real estate investors can sometimes change the result by materially participating, or by qualifying for the real estate professional safe harbor.

On the MAGI side: pre-tax retirement contributions and other above-the-line deductions reduce MAGI, which can shrink the excess over the threshold even when investment income stays the same.

Related: direct indexing, tax-loss harvesting and the investment interest expense deduction.

When to hire a CPA, and when you can handle it yourself

If your investment income is brokerage interest, dividends and gains, and you have no rentals, partnership K-1s or business sales, tax software handles Form 8960 well. Plenty of people do this themselves.

A CPA earns the fee when rentals, real estate professional status, passive K-1s, a business or partnership interest sale, a trust, or a large one-time gain is involved. Those are the cases where classification decides whether income is in or out, and where allocable deductions are easy to miss. Taxstra prepares Form 8960 with the rest of the return and plans the timing of gains for clients with investment portfolios, rentals and closely held businesses.

What to check before you act

A practical review sequence for the return, books, or planning file.

Compare your projected MAGI with your threshold for the year.

List every source of investment income, including K-1 items, rentals and fund distributions.

Confirm material participation for each business and rental you count as active.

Check whether the real estate professional safe harbor applies to each rental activity.

Capture allocable deductions: investment interest, advisory fees and state income tax.

Include NIIT in estimated payments in any year with a large gain.

For a sale of an S corporation or partnership interest, prepare the line 5c statement.

“I recently had the pleasure of working with Taxstra, and I must say, the experience exceeded my expectations. From start to finish, their professionalism, expertise, and customer care were outstanding.”
Google Reviewer · Read on Google

Published client feedback. Individual experiences vary.

High income earner, business owner or landlord? Here is what this changes for you.

Book your free 30-minute tax fit call to talk through your next steps.

Common mistakes

The shortcuts most likely to produce a confident but wrong answer.

01

Assuming the thresholds rise with inflation

They do not. The $250,000 and $200,000 thresholds have been fixed since 2013.

02

Treating retirement distributions as investment income

Distributions from qualified plans and IRAs are not net investment income, though they do raise MAGI.

03

Forgetting the trust threshold

A nongrantor trust reaches the threshold at $16,000 of AGI in 2026. Distributing income to beneficiaries can move it to their lower individual thresholds.

04

Missing allocable deductions

Investment interest, state and local income tax and other allocable expenses reduce net investment income on Form 8960.

05

Including active business gain

When selling an interest in an active S corporation or partnership, section 1411(c)(4) can remove the gain attributable to active business assets.

06

Leaving NIIT out of estimates

NIIT is subject to estimated tax rules, and a large gain with no planning can lead to an underpayment penalty.

Frequently Asked Questions

What is the net investment income tax?

It is a 3.8 percent federal tax under section 1411 on the lesser of your net investment income or the amount your modified AGI exceeds a threshold. It applies to individuals, estates and trusts and is reported on Form 8960.

What is the NIIT threshold for 2026?

$250,000 of modified AGI for married filing jointly and qualifying surviving spouses, $200,000 for single and head of household filers, and $125,000 for married filing separately. These are not indexed for inflation, so they are the same as prior years. For estates and trusts the 2026 threshold is $16,000 of AGI.

What is the 3.8 percent tax?

The 3.8 percent tax is the net investment income tax. It applies on top of regular income tax to interest, dividends, capital gains, rents and passive business income for taxpayers above the thresholds.

Does the NIIT apply to rental income?

Generally yes, unless the rental is part of a trade or business that is not passive to you. Real estate professionals who meet the safe harbor in Treas. Reg. 1.1411-4(g)(7), more than 500 hours in the rental activity that year or in any 5 of the preceding 10 years, generally treat that rental income and gain as business income outside the tax.

Is the NIIT owed on the sale of my home?

Not on gain excluded under section 121, up to $250,000 ($500,000 for married couples) on a principal residence. Gain above the exclusion, and gain on a second home, is net investment income.

Do wages or IRA distributions count for NIIT?

Neither is net investment income. Both raise modified AGI, however, which can increase the portion of your investment income subject to the tax.

Can the foreign tax credit reduce the NIIT?

No. The IRS says credits allowed only against regular income tax, such as the foreign tax credit and the general business credit, cannot reduce the net investment income tax.

Is NIIT withheld from my paycheck?

Not automatically. It is subject to estimated tax rules, so you either make estimated payments or ask your employer to withhold additional income tax to cover it.

Does selling my S corporation trigger the NIIT?

Only partly, if at all, when you materially participate. Section 1411(c)(4) counts gain only to the extent it would be net investment income if the company sold its assets, so gain on active business assets is generally excluded.

Next Steps

Filing it yourself is fine. Optimizing it is where the money is.

Getting the form right keeps you out of trouble. The strategies below are what actually lower the bill.

Interested in working with Taxstra?

Book your free 30-minute tax fit call with our team. Tell us what you need, learn how Taxstra can help, and explore whether our services are a good fit. Tax advice, document reviews, and analysis require a paid engagement.

Tax planning slots are limited before year-end.