Skip to main content
All Articles
Financial Guide
6 min read July 12, 2026
Verified July 2026

How to Calculate Net Investment Income Tax at 3.8%: The Number Most High Earners Miss

The 3.8% Net Investment Income Tax is not optional, not obscure, and not small. High earners routinely underprepare for it because they treat it as an afterthought to ordinary income tax. That mistake can cost tens of thousands of dollars in a single tax year.

How to Calculate Net Investment Income Tax at 3.8%: The Number Most High Earners Miss

Key Takeaways

  • The 3.8% NIIT applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. Most filers calculate it on the wrong base.
  • A married couple with $50,000 of excess MAGI and $120,000 of net investment income owes 3.8% on $50,000, not $120,000. Calculating on the full investment income figure produces a $2,660 overestimate.
  • Identify your modified adjusted gross income, isolate your net investment income, apply 3.8% to whichever figure is smaller. That is the correct sequence.
  • Tool: Run your NIIT calculation now with the CalcMoney Income Tax Calculator →

File Smarter This YearSPONSORED

Stop leaving money on the table. TurboTax finds every deduction automatically.

Interactive Calculator
Full screen
Loading Calculator
calcmoney.io/calculatorsOpen full screen

What the Net Investment Income Tax Actually Is

The Net Investment Income Tax, codified under IRC Section 1411, became effective January 1, 2013. Congress created it as part of the Affordable Care Act to fund Medicare expansion. The rate is a flat 3.8% applied to certain passive and investment income for taxpayers whose modified adjusted gross income crosses specific thresholds.

It is not a replacement for capital gains tax. It stacks on top of it. A high earner selling appreciated securities does not choose between the capital gains rate and the NIIT. They pay both.

The thresholds that trigger NIIT are fixed. Congress has not indexed them to inflation since 2013.

Filing StatusMAGI Threshold
Single$200,000
Married Filing Jointly$250,000
Married Filing Separately$125,000
Head of Household$200,000
Qualifying Widow(er)$250,000

A married couple earning $251,000 in 2026 is already in scope. Because these thresholds have not moved in 13 years, income growth and inflation have pulled millions of additional households into NIIT territory.

What Counts as Net Investment Income

The IRS defines net investment income across three broad categories. Knowing exactly what belongs in each bucket determines whether you calculate your tax on the correct base.

Category 1: Passive Income from Interest, Dividends, and Rents

Taxable interest from bonds and savings accounts qualifies. Ordinary dividends qualify. Qualified dividends qualify. Net rental income from properties in which you do not materially participate qualifies.

This last point matters. A landlord who manages their own properties and meets the IRS material participation standards does not include that rental income in net investment income. A passive investor in a real estate syndication does.

Category 2: Net Gains from Disposition of Property

Realized capital gains from stocks, bonds, mutual funds, real estate (above the primary residence exclusion), and other capital assets all count. This includes long-term and short-term gains.

The primary residence exclusion interacts with NIIT. The first $250,000 of gain ($500,000 married filing jointly) on a home sale remains excluded. Only gain above that threshold enters the net investment income calculation.

Category 3: Passive Activity Income

Income from businesses in which you do not materially participate counts. This includes distributions from passive partnership interests and S-corporation income from companies where you hold a passive role.

What Does Not Count

Wages, salaries, and self-employment income are excluded. So are Social Security benefits, alimony (for pre-2019 agreements), tax-exempt bond interest, distributions from IRAs and qualified retirement plans, and active business income.

This distinction between active and passive business income is where many S-corporation shareholders and LLC members make expensive errors. If you participate materially in your operating business, that income stays out of the NIIT calculation.

The Correct Formula

The NIIT calculation follows a two-step structure.

Step 1. Calculate your net investment income. Sum all qualifying income categories. Subtract allowable deductions directly connected to producing that income. Investment advisory fees, investment-related state and local taxes, and allocable investment interest expense are deductible. General personal deductions are not.

Step 2. Calculate the excess of your MAGI over the applicable threshold.

Step 3. Apply 3.8% to the lesser of Step 1 or Step 2.

Written as plain text:

NIIT = 3.8% x the lesser of (Net Investment Income) or (MAGI minus Threshold)

This is the most commonly misunderstood element. The tax does not simply apply to all your investment income once you cross the threshold. It applies to the smaller of your investment income or your MAGI excess.

Worked Example 1: The Threshold Effect in Action

Consider a married couple filing jointly in 2026. Their income breaks down as follows.

  • Combined wages: $310,000
  • Qualified dividends: $45,000
  • Net long-term capital gains: $80,000
  • Passive rental income: $12,000

Total MAGI: $447,000. Net investment income: $137,000.

MAGI threshold for married filing jointly: $250,000.

Excess MAGI: $447,000 minus $250,000 equals $197,000.

Comparison: Net investment income of $137,000 is less than the MAGI excess of $197,000.

NIIT: 3.8% of $137,000 equals $5,206.

If this couple had incorrectly applied 3.8% to their MAGI excess of $197,000, they would have estimated $7,486. That overestimate is not harmful at filing. But it produces incorrect quarterly estimated tax payments throughout the year.

The greater risk runs the other direction. A taxpayer who applies the 3.8% to the wrong base and underpays faces penalty exposure under IRC Section 6654.

Worked Example 2: Large Capital Event with Modest Ordinary Income

Consider a single filer in 2026 who earns $185,000 in wages and sells a rental property, realizing a $290,000 long-term capital gain.

MAGI: $185,000 plus $290,000 equals $475,000.

Net investment income: $290,000 (the capital gain, assuming no other investment income and no deductible expenses).

MAGI threshold for single filers: $200,000.

Excess MAGI: $475,000 minus $200,000 equals $275,000.

Comparison: Net investment income of $290,000 is greater than the MAGI excess of $275,000.

NIIT: 3.8% of $275,000 equals $10,450.

This filer does not pay 3.8% on the full $290,000 gain. The MAGI excess caps the taxable base at $275,000. The $10,450 NIIT sits alongside, not instead of, any capital gains tax owed on the full $290,000.

This example also illustrates why a single large capital event in an otherwise moderate-income year produces a different NIIT outcome than the same gain earned by someone already well above the threshold.

Deductions That Reduce Your Net Investment Income

Filers frequently miss allowable deductions against gross investment income. Every dollar of deductible expense reduces your Step 1 figure and potentially your NIIT liability.

Allowable deductions include:

  • Investment advisory and management fees directly attributable to managing taxable accounts
  • State and local income taxes allocable to net investment income
  • Net investment interest expense (subject to Form 4952 limitations)
  • Fiduciary expenses in trusts and estates

Note that the Tax Cuts and Jobs Act of 2017 suspended the miscellaneous itemized deduction for investment advisory fees on individual returns through 2025. The treatment of these deductions depends on whether this provision expires or extends under 2026 law. Confirm current treatment with a tax advisor before filing.

Trusts and Estates Face a Different Threshold

Trusts and estates hit the NIIT threshold far faster than individuals. In 2026, the threshold for trusts and estates sits at $15,650 of undistributed net investment income (adjusted annually for inflation). This is not a typo. The compressed tax bracket structure for trusts makes them extremely NIIT-sensitive.

A family trust holding dividend-paying equities and generating $40,000 of net investment income owes NIIT on the full amount exceeding $15,650, assuming no distributions reduce undistributed net income. That exposure is $924.30 on the excess alone, before ordinary income taxes in the trust's 37% bracket.

Trustees managing investment portfolios should model distribution strategies specifically around this threshold.

Quarterly Estimated Tax and NIIT

NIIT does not appear as a separate withholding line. Employers do not withhold it. If your anticipated NIIT liability exceeds $1,000 for the year and withholding does not cover it, you owe quarterly estimated payments under the standard IRC Section 6654 framework.

The safe harbor rules apply. Paying either 100% of prior year tax liability (110% if prior year AGI exceeded $150,000) or 90% of current year liability avoids underpayment penalties. NIIT counts toward both calculations.

High earners with variable income from capital gains, partnership distributions, or business sales should run their NIIT projection at least quarterly, not annually at filing.

Strategies That Reduce NIIT Exposure

Reducing NIIT requires reducing either net investment income or MAGI below the threshold. Both paths have trade-offs.

Tax-loss harvesting. Realized losses offset realized gains dollar for dollar inside the net investment income calculation. A $30,000 harvested loss against a $30,000 short-term gain eliminates $1,140 of NIIT. Wash sale rules apply.

Retirement account contributions. Maxing a 401(k) or deductible IRA reduces MAGI directly. For 2026, the 401(k) elective deferral limit is $23,500 ($31,000 if age 50 or older). Every dollar contributed reduces MAGI and thus the MAGI excess figure.

Qualified Opportunity Zone investments. Deferring capital gains into a QOZ fund removes those gains from net investment income in the deferral year. This is a deferral, not an elimination, but timing matters for annual tax liability.

Material participation elections. Converting passive rental income to active income by meeting IRS material participation standards (generally 500 hours per year) removes that income from the NIIT calculation entirely.

Installment sales. Spreading a large gain over multiple years through an installment sale structure distributes MAGI across several tax years. This can keep annual MAGI excess below the threshold or reduce the NIIT base in each year.

Calculate Your Number Before the IRS Does

The NIIT calculation is mechanical once the inputs are correct. The problem is that most filers do not isolate their net investment income, apply deductions, compare it to the MAGI excess, and take the lesser figure. They rely on tax software to catch it or discover the liability at filing when planning options are exhausted.

The CalcMoney Income Tax Calculator runs this calculation in real time. Enter your income sources, filing status, and applicable deductions. The tool computes your MAGI, identifies your NIIT exposure, and shows you where the threshold effect reduces your taxable base.

Run the numbers now. Do not wait until April to learn what March's stock sale cost you.

You Might Also Like

Use the CalcMoney Income Tax Calculator to compute your NIIT liability →
Featured Partner
FIDELITY

Put These Numbers to Work

Open a Fidelity brokerage account. $0 commissions, no account minimums, fractional shares available.

Run the Numbers

Affiliated. We may earn a commission.

OR

One money insight per week.

Calculator deep-dives, rate alerts, and financial analysis written for real decisions. Unsubscribe anytime.

1 email/week. No spam. Unsubscribe in one click.

Free Tools

Run the actual numbers

Stop estimating. Plug in your numbers and get a precise answer in seconds. Free, no signup required.

Open Free Calculators