Net Investment Income Tax (NIIT)

The net investment income tax is a 3.8% U.S. tax on the lesser of net investment income or modified adjusted gross income above a filing-status threshold.

The net investment income tax (NIIT) is a 3.8% U.S. federal tax imposed on the lesser of an individual’s net investment income or the amount by which modified adjusted gross income (MAGI) exceeds the applicable filing-status threshold. A separate version applies to certain estates and trusts using undistributed net investment income and an annually determined income threshold.

NIIT is an additional tax layer. It does not replace regular income tax or capital-gains tax, and crossing an income threshold does not cause all investment income to be taxed at 3.8%.

Key Takeaways

  • Individuals need both positive net investment income and MAGI above the applicable threshold before NIIT applies.
  • The tax base is the smaller of net investment income and excess MAGI, not gross portfolio value or total investment proceeds.
  • Interest, dividends, certain rents and royalties, nonqualified annuities, passive-business income, and net gains can enter net investment income.
  • Wages, most self-employment income, Social Security benefits, tax-exempt interest, and qualified retirement-plan distributions generally are not net investment income, although they may affect MAGI.
  • Properly allocable deductions can reduce net investment income under the detailed Form 8960 rules.
  • NIIT may require additional withholding or estimated payments even though it is not withheld directly from investment income in every case.

Individual NIIT Formula

For an individual:

$$ \text{NIIT} = 3.8\% \times \min\left(\text{Net Investment Income},\ \max(0,\text{MAGI}-\text{Threshold})\right) $$

This formula has two gates:

  1. Net investment income must be greater than zero.
  2. MAGI must exceed the filing-status threshold.

The smaller amount determines the NIIT base.

Filing-Status Thresholds for Individuals

The IRS lists these statutory thresholds:

Filing statusMAGI threshold
Married filing jointly$250,000
Qualifying surviving spouse$250,000
Married filing separately$125,000
Single$200,000
Head of household$200,000

These thresholds apply to individuals; estates and trusts use a different computation. Filing status, residency, foreign-income adjustments, and specialized situations can change how MAGI is determined. Use the current Instructions for Form 8960 for an actual filing.

What Generally Enters Net Investment Income?

Net investment income is a tax-law calculation, not simply investment revenue minus all portfolio expenses.

Income or gainGeneral NIIT treatmentImportant qualification
Taxable interestCommonly includedTax-exempt interest generally is not included
Ordinary and qualified dividendsCommonly includedRegular income-tax rate classification still matters separately
Capital gainsCommonly includedLosses, basis, exclusions, and specialized gain rules affect the amount
Rental and royalty incomeCommonly includedNonpassive trade-or-business treatment can change the result
Nonqualified annuity incomeCommonly includedQualified retirement-plan distributions generally are excluded from NII
Passive trade-or-business incomeGenerally includedMaterial participation and activity classification matter
Financial-instrument or commodity trading business incomeCan be includedDetailed trade-or-business rules apply

Net gain means gain after applicable loss netting and tax adjustments, not gross sale proceeds. Selling securities for $500,000 does not create $500,000 of NII if their adjusted basis is $470,000; the starting gain is generally $30,000 before other adjustments.

What Generally Does Not Enter Net Investment Income?

The IRS identifies several common exclusions from NII:

  • wages and employment compensation
  • unemployment compensation
  • Social Security benefits
  • alimony
  • tax-exempt interest
  • most self-employment income
  • qualified retirement-plan and individual retirement account distributions
  • income from a nonpassive trade or business that is not a financial trading business

An item excluded from NII can still increase MAGI. For example, wages are not net investment income, but wages can push MAGI above the threshold and thereby expose some NII to the tax. This two-part interaction is central to the calculation.

Worked Example

Assume a single filer has:

  • MAGI of $235,000
  • net investment income of $28,000
  • a $200,000 NIIT threshold

First calculate excess MAGI:

$$ \$235{,}000 - \$200{,}000 = \$35{,}000 $$

Then compare net investment income with excess MAGI:

NIIT-base componentAmount
Net investment income$28,000
MAGI above threshold$35,000
Smaller amount subject to NIIT$28,000

The NIIT is:

$$ \$28{,}000 \times 3.8\% = \$1{,}064 $$

The filer does not pay NIIT on all $235,000 of MAGI and does not use $35,000 as the base because NII is smaller. Regular income tax on the underlying interest, dividends, or gains is calculated separately.

If the same filer had $50,000 of NII, the NIIT base would instead be the $35,000 excess MAGI, producing $1,330 of NIIT.

Why MAGI and NII Must Be Calculated Separately

MAGI measures income relative to the statutory threshold. NII identifies the investment-related tax base. Either one can be the limiting amount.

SituationNIIExcess MAGINIIT base
Below threshold$30,000$0$0
NII is smaller$20,000$45,000$20,000
Excess MAGI is smaller$60,000$25,000$25,000
No NII$0$80,000$0

High MAGI alone does not create NIIT without NII. Investment income alone does not create NIIT when MAGI does not exceed the threshold.

Deductions and Netting

Net investment income can be reduced by deductions properly allocable to included investment income, subject to the Form 8960 rules. Potential items can include investment interest expense, certain taxes, and other expenses attributable to NII, but regular income-tax treatment and NIIT treatment are not always identical.

Capital losses and carryovers can affect the net gain included in NII. Passive-activity losses, suspended losses, partnership items, and business deductions require their own ordering and limitation analysis. Do not subtract a personal expense or a gross investment-account fee merely because it relates generally to wealth management.

Recordkeeping should support:

  • basis and holding period for sold assets
  • capital-loss carryovers and gain netting
  • interest, dividend, rent, royalty, and annuity classification
  • passive or nonpassive activity status
  • deductions allocated to NII
  • foreign-income and foreign-tax adjustments
  • prior-year carryovers that affect Form 8960

Home Sales and Real Estate

Gain excluded from gross income under the federal principal-residence exclusion is not subject to NIIT. A taxable portion above an available exclusion may enter NII. The result depends on basis, qualifying use, ownership, depreciation, allocation, and other facts.

Rental income is commonly included in NII, but the treatment can differ when rental or business activity is nonpassive under the applicable rules. A real-estate label alone does not determine NIIT treatment.

NIIT vs. Other Taxes

Tax conceptTax baseRelationship to NIIT
Regular income taxTaxable income under applicable ratesNIIT is calculated in addition to regular income tax
Capital-gains taxTaxable net capital gain under applicable rate rulesA gain can affect both regular tax and NIIT
Additional Medicare TaxCertain wages, compensation, and self-employment income above thresholdsSeparate 0.9% tax; it does not apply to the same income category as NIIT
Self-employment taxNet earnings from self-employmentMost self-employment income is excluded from NII
Estimated taxPayment method during the yearMay need adjustment to cover expected NIIT

The phrase “Medicare surtax” is sometimes used informally for NIIT, but NIIT is separate from the Additional Medicare Tax. Use the formal tax name when reviewing a return or projection.

Estates and Trusts

Certain estates and trusts calculate NIIT at 3.8% of the lesser of undistributed net investment income or adjusted gross income above the dollar amount where the highest estate-and-trust tax bracket begins. That threshold can change by tax year and is much lower than the individual thresholds.

Distributions, charitable deductions, grantor-trust status, exempt trusts, and beneficiary allocations can affect the result. Do not use the individual formula or thresholds for a trust return.

How to Evaluate NIIT Exposure

Estimate MAGI

Start with projected adjusted gross income and make the NIIT-specific modifications required by Form 8960. Include wages and other income that can affect MAGI even when excluded from NII.

Build NII by category

List included interest, dividends, annuities, rents, royalties, passive-business income, and net gains. Then apply properly allocable deductions and loss rules.

Model transactions before year-end

Large gains, business dispositions, installment payments, partnership allocations, option exercises, and Roth conversions can change MAGI or NII. Their NIIT effects cannot be inferred from cash proceeds alone.

Review payment coverage

NIIT increases total tax liability. The IRS notes that insufficient withholding or estimated payments can produce an estimated-tax penalty. Payment planning is separate from determining whether the tax applies.

Common Mistakes

  • Applying 3.8% to all investment income whenever MAGI crosses the threshold.
  • Applying NIIT to gross sale proceeds rather than net taxable gain.
  • Assuming wages are NII because they raise MAGI.
  • Assuming retirement-plan distributions are NII rather than checking their MAGI effect.
  • Ignoring deductions properly allocable to NII.
  • Treating passive and nonpassive business income alike.
  • Applying individual thresholds to an estate or trust.
  • Confusing NIIT with the Additional Medicare Tax.
  • Forgetting to adjust withholding or estimated payments for a material projected NIIT amount.

Authoritative Sources and Use Boundary

The IRS NIIT overview provides the individual formula, thresholds, common income categories, and payment warning. IRS Tax Topic 559 summarizes individual and estate-or-trust treatment. The current Form 8960 and instructions control the detailed calculation and recordkeeping.

This article provides general financial education, not tax, legal, accounting, or investment advice. NIIT depends on tax year, filing status, residency, activity classification, basis, losses, deductions, entity structure, and other facts.

FAQs

Does NIIT apply as soon as MAGI exceeds the threshold?

Only if the taxpayer also has positive net investment income. NIIT applies to the smaller of NII or MAGI above the threshold.

Are wages subject to NIIT?

Wages generally are not net investment income, but they can increase MAGI and therefore cause more of a taxpayer’s NII to fall within the NIIT base.

Is a home-sale gain subject to NIIT?

The portion excluded from gross income under the principal-residence exclusion is not subject to NIIT. Any taxable portion may be included, depending on the complete facts and Form 8960 rules.

Can NIIT create an estimated-tax penalty?

NIIT itself is a tax liability rather than a penalty, but insufficient withholding or estimated payments during the year can lead to an underpayment penalty. Review payment coverage separately from the NIIT calculation.
Browse Taxation