/* Legacy content CSS (original compiled Tailwind v4) - static, loads first */
NIIT 3.8%

Net Investment Income Tax (NIIT) Calculator 2026 - 3.8% Surtax Guide

Calculate your 2026 Net Investment Income Tax with our free NIIT calculator. Learn the 3.8% surtax thresholds, what income counts, Form 8960 filing, and proven strategies to reduce or avoid NIIT liability.

Net Investment Income Tax — $200K/$250K MAGI thresholds

NIIT Calculator (3.8%)
Net Investment Income Tax — $200K/$250K MAGI thresholds
NIIT Calculator
Calculate your 2026 Net Investment Income Tax liability

Your total MAGI including all income sources

Capital gains, dividends, interest, rental income, royalties

NIIT threshold: $200,000 for Single

What Is the Net Investment Income Tax?

The 3.8% surtax that catches many high earners off guard — here is what it is and why it matters for your wallet.

3.8%

Flat surtax on net investment income

$200K+

MAGI threshold for single filers

23.8%

Effective top rate on long-term gains

Where the NIIT Came From

The Net Investment Income Tax was born out of the Affordable Care Act, signed into law in 2010, and it officially took effect on January 1, 2013. Congress created it to help fund the expansion of health insurance coverage by requiring higher-income taxpayers to chip in an additional percentage on their investment earnings. Unlike ordinary income tax brackets that shift every year with inflation, the NIIT thresholds have remained at $200,000 and $250,000 since day one. That means more and more taxpayers get pulled into the NIIT net each year as their incomes creep up while the thresholds stay put. For 2026, the 3.8% rate is unchanged, but the real-world impact keeps growing.

The Core Rule in Plain English

Here is the simple version: if your modified adjusted gross income exceeds the threshold for your filing status, and you have investment income, you probably owe the NIIT. The tax equals 3.8% of whichever is smaller — your net investment income or the amount your MAGI exceeds the threshold. That two-part formula means the NIIT can never exceed 3.8% of your total investment income, and it only bites on the dollars above the threshold. Think of it as a toll booth on the highway of investment earnings — you only pay when your income vehicle is big enough to trigger it.

What Counts as Net Investment Income

The IRS casts a wide net when defining net investment income. It includes capital gains from selling stocks, bonds, mutual funds, real estate, and other capital assets — both short-term and long-term gains count. Dividends from stocks and mutual funds, whether qualified or non-qualified, are included. Taxable interest from savings accounts, certificates of deposit, and corporate bonds is subject to NIIT. Net rental income from real estate properties you own, royalty income from intellectual property, income from passive business activities where you do not materially participate, and certain annuity distributions all fall under the NIIT umbrella as well.

One thing people often miss: you get to subtract investment-related deductions from your gross investment income before applying the NIIT. Investment interest expense, advisory fees, and other costs directly connected to generating investment income can all reduce your net figure. That subtraction can make a meaningful difference, especially for taxpayers with large portfolios that carry management fees.

What the NIIT Cannot Touch

Not all income is on the NIIT menu. Wages, salaries, and tips are completely excluded. Self-employment income from a business where you actively work does not count. Social Security benefits are left alone. Tax-exempt interest from municipal bonds is not investment income for NIIT purposes — a big reason why munis are so popular with high earners. Distributions from qualified retirement plans like 401(k)s and traditional IRAs, while they do push up your MAGI, are not classified as investment income. Active business income where you materially participate, veterans benefits, and gains from selling your primary home up to the exclusion limits are also shielded. Understanding this line between taxable and exempt income is where real tax savings happen.

2026 NIIT Income Thresholds by Filing Status

The NIIT only triggers when your modified adjusted gross income crosses these thresholds. The rate is a flat 3.8% on the applicable base.

2026 NIIT MAGI Thresholds

Filing StatusMAGI ThresholdWho This Affects
Single$200,000Unmarried individuals
Married Filing Jointly$250,000Couples filing together
Married Filing Separately$125,000Couples filing apart
Head of Household$200,000Qualifying unmarried with dependents

Income Subject to NIIT

  • Capital gains (short-term and long-term)
  • Dividends (qualified and non-qualified)
  • Taxable interest income
  • Net rental income from properties
  • Royalty income from intellectual property
  • Passive business income
  • Certain annuity distributions

Income Exempt from NIIT

  • Wages, salaries, and tips
  • Self-employment income (active)
  • Social Security benefits
  • Tax-exempt interest (municipal bonds)
  • 401(k) and IRA distributions
  • Active business income
  • Veterans benefits

How to Calculate Your NIIT — Step by Step

Follow these four steps to figure out exactly what you owe. Or skip the math and use our calculator above.

1

Determine Your Modified Adjusted Gross Income (MAGI)

For most taxpayers, MAGI for NIIT purposes is simply the adjusted gross income shown on your tax return — no complicated adjustments needed. It includes every source of taxable income: wages, investment gains, business income, retirement distributions, and anything else the IRS counts. Pull your AGI from last year's return as a starting point, then adjust for any changes you expect in 2026. Compare your total MAGI against the threshold for your filing status. If it comes in below the line, you are done — no NIIT owed. If it crosses the threshold, move to step two.

2

Calculate Your Net Investment Income (NII)

Add up every source of investment income: capital gains from trades and sales, dividends, taxable interest, net rental income, royalties, passive business income, and applicable annuities. Then subtract any deductions directly tied to that investment income — things like investment interest expense, advisory fees, and state taxes allocable to investment income. What remains is your net investment income. If your NII is zero or negative, the NIIT cannot apply even if your MAGI is well above the threshold, because the tax is calculated on the lesser of NII or excess MAGI.

3

Find the Lesser of Your NII or Excess MAGI

This is the crucial comparison that determines your NIIT base. Take your MAGI, subtract the threshold for your filing status, and you get the excess MAGI. Then compare that number to your net investment income. Whichever is smaller becomes the amount that the 3.8% tax applies to. For example, a single filer with $300,000 in MAGI and $80,000 in NII would compare $80,000 (NII) against $100,000 (excess MAGI). Since $80,000 is the smaller figure, that becomes the NIIT base. This two-part formula ensures the tax never exceeds 3.8% of your actual investment earnings.

4

Multiply the Base by 3.8%

Take the NIIT base from step three and multiply it by 0.038. That is your Net Investment Income Tax liability for the year. Using our earlier example, $80,000 times 0.038 equals $3,040. This amount gets reported on Form 8960 and is added to your total tax bill on Form 1040. It is not deductible, which means it represents a true additional cost on top of your regular income tax and any capital gains tax you already owe. Every dollar of NIIT is a dollar you cannot recover through deductions elsewhere on your return.

Full NIIT Calculation Example

A married couple filing jointly has $340,000 in MAGI and $75,000 in net investment income for 2026. Here is how their NIIT breaks down:

1. MAGI: $340,000

2. Threshold (MFJ): $250,000

3. Excess MAGI: $340,000 - $250,000 = $90,000

4. Net Investment Income: $75,000

5. NIIT Base (lesser of excess or NII): $75,000

6. NIIT: $75,000 x 3.8% = $2,850

Notice that the NIIT applies to $75,000 (the smaller number), not the full $90,000 excess MAGI. That is the protective feature of the dual-limit formula.

The Real Impact: Combined Tax Rates with NIIT

When you stack the NIIT on top of capital gains tax and ordinary income rates, the true marginal rate on your earnings can be eye-popping.

Effective Tax Rates with NIIT (2026)

Income TypeBase Rate+ NIITCombined Rate
Long-term capital gains (top bracket)20%+3.8%23.8%
Short-term capital gains (top bracket)37%+3.8%40.8%
Qualified dividends (top bracket)20%+3.8%23.8%
Non-qualified dividends (top bracket)37%+3.8%40.8%
Rental income (top bracket)37%+3.8%40.8%
Net investment income + CA state tax20%+13.3%+3.8%37.1%+

Why This Matters More Than You Think

Those combined rates are not just theoretical numbers on a chart. A California resident in the top bracket selling a stock could hand over more than 37 cents of every long-term gain dollar to federal and state taxes combined. Short-term gains get even worse, approaching or exceeding 50% in high-tax states. And because the NIIT thresholds are not inflation-adjusted the way regular tax brackets are, more taxpayers get swept into the surtax each year. The compounding effect means that what feels like a small 3.8% add-on can translate into thousands of dollars in extra tax — money that could have stayed in your portfolio compounding instead.

NIIT for Estates and Trusts

Trusts face a much lower threshold — here is what fiduciaries need to know.

The Trust Threshold Problem

While individuals enjoy thresholds of $200,000 or $250,000, estates and trusts face a threshold of roughly $15,000 for 2026 — a number that is inflation-adjusted but still tiny compared to individual thresholds. This means many trusts that were set up for perfectly legitimate estate planning reasons end up owing NIIT on virtually all of their undistributed investment income. A trust with $50,000 in interest and dividends would owe NIIT on roughly $35,000 of that income, resulting in about $1,330 in additional tax that the individual beneficiaries might not have owed at all.

The Distribution Strategy

The most common workaround is to distribute the trust's investment income to beneficiaries before the end of the tax year. When income is distributed, it shifts from the trust's tax return to the beneficiary's, where the much higher individual NIIT thresholds apply. A beneficiary with $150,000 in MAGI who receives $40,000 in distributed trust income would still be below the $200,000 single threshold and owe zero NIIT on that money. The same $40,000 left inside the trust would trigger NIIT. Timing these distributions before the trust's year-end is critical, and the rules around distributable net income (DNI) determine how much can be shifted.

Form 8960: How to File the NIIT

The IRS form that calculates and reports your Net Investment Income Tax — a line-by-line overview.

What Form 8960 Covers

Form 8960 is a single-page form that walks you through the NIIT calculation in a structured way. Part I collects your total investment income — capital gains, dividends, interest, rents, royalties, and passive income. Part II lets you subtract deductions allocable to investment income, such as investment interest expense and advisory fees. Part III calculates your modified adjusted gross income and determines how much exceeds the threshold. Part IV brings it all together by applying 3.8% to the lesser of your NII or excess MAGI. The final number flows to Schedule 2 of your Form 1040.

If you use tax preparation software, it generates Form 8960 automatically based on the income you enter. If you hire a CPA, they should include it as part of your return — but always double-check, because a missing Form 8960 can trigger IRS notices, accuracy-related penalties of 20%, and interest on the unpaid tax. The IRS has been increasing its scrutiny of NIIT compliance in recent years, so getting this form right matters more than ever.

Part I-III

Income, deductions, and MAGI calculation

Part IV

Applies 3.8% to the applicable base

Schedule 2

NIIT flows to your Form 1040 total

7 Proven Strategies to Reduce or Avoid NIIT

These are not loopholes — they are legitimate tax planning moves that can save you thousands each year.

Quick Strategy Checklist

Max out 401(k)/IRA contributions to lower MAGI

Shift to municipal bonds for tax-exempt income

Convert to Roth accounts for NIIT-free distributions

Harvest losses to shrink net investment income

Actively participate in businesses to convert passive income

Time capital gains across tax years strategically

Distribute trust income to individual beneficiaries

1. Maximize Retirement Contributions

Every dollar you contribute to a traditional 401(k), 403(b), or IRA reduces your MAGI dollar for dollar, which directly shrinks the excess amount subject to NIIT. In 2026, the 401(k) contribution limit sits at $23,500 — or $31,000 if you are 50 or older. Self-employed individuals can contribute even more through SEP-IRAs and Solo 401(k)s, sometimes exceeding $60,000. For a married couple filing jointly with $270,000 in MAGI, maxing out both 401(k)s at $23,500 each would bring their MAGI down to $223,000 — below the $250,000 threshold and eliminating NIIT entirely. That is a $1,030 annual savings on top of the regular income tax deduction. The double benefit of lowering current taxes while building retirement wealth makes this the single most impactful NIIT strategy available.

2. Shift to Municipal Bonds

Municipal bond interest is exempt from federal income tax and is completely excluded from net investment income for NIIT purposes. By moving a portion of your fixed-income allocation from taxable corporate bonds or CDs into munis, you reduce both your NII and your overall tax burden. The math gets compelling fast for high earners. A taxpayer in the 37% bracket plus 3.8% NIIT — a combined 40.8% rate on investment income — would need a taxable bond yielding 5% to match a municipal bond yielding just 2.96%. That is the tax-equivalent yield calculation, and it explains why municipal bonds are a staple in high-income portfolios. State-specific munis can also avoid state income tax, pushing the effective savings even higher for residents of high-tax states like California and New York.

3. Convert to Roth Accounts

Roth IRA and Roth 401(k) distributions are generally not included in MAGI and are not subject to NIIT — ever. That makes Roth accounts one of the most powerful long-term tools for sidestepping the 3.8% surtax. Yes, converting traditional funds to Roth triggers immediate taxation, and the conversion income itself could push you above the NIIT threshold in the conversion year. But the long-term payoff is substantial: once the money is in Roth, all future growth and distributions are NIIT-free. The smart move is to convert during lower-income years — perhaps after retirement but before Required Minimum Distributions begin, or during a sabbatical year when your income temporarily dips. Spreading conversions across multiple years keeps each year's conversion amount small enough to stay below the NIIT threshold, avoiding the surtax on the conversion itself.

4. Use Tax-Loss Harvesting

Tax-loss harvesting directly reduces your net investment income, which is one of the two numbers in the NIIT formula. By selling investments that have lost value, you offset capital gains dollar for dollar, shrinking your NII. If your NII drops below your excess MAGI, the NIIT applies to the now-smaller NII amount — saving you 3.8 cents on every dollar of loss harvested, on top of the regular capital gains tax savings. The wash sale rule still applies: you cannot buy back the same or a substantially identical security within 30 days. Many investors harvest losses throughout the year but especially at year-end when they can assess their total gains and losses with precision. For a detailed walkthrough, check our tax loss harvesting guide, which covers timing strategies, portfolio rebalancing, and common pitfalls.

5. Materially Participate in Business Activities

Income from businesses where you materially participate is classified as active income, not investment income, and is therefore exempt from NIIT. The IRS generally defines material participation as 500 or more hours per year of involvement, although there are alternative tests. If you own a passive stake in a business, consider increasing your involvement to meet the material participation standard. This converts what would be NIIT-subject passive income into active income that the 3.8% surtax cannot touch. Real estate professionals who meet the material participation rules can also exclude their rental income from NII — a significant benefit for those with large property portfolios. Additionally, the IRS allows you to group multiple business activities together, which can make it easier to reach the material participation threshold across your combined interests.

6. Time Capital Gains Across Tax Years

If you are planning to sell a significant investment, consider spreading the gains across two or more tax years instead of realizing everything at once. Selling half your position in December and the other half in January splits the gain between two tax returns, potentially keeping each year's NII and MAGI below the NIIT threshold. This is especially powerful if you are near the threshold and a single large sale would push you well over the line. Similarly, if you know next year will be a lower-income year, deferring a sale until January moves the gain into a return where you might escape NIIT entirely. The reverse also works: if you are already well above the threshold this year but expect to be below it next year, harvesting gains now means they get the 3.8% hit either way — but harvesting them next year could mean zero NIIT.

7. Distribute Trust Income to Beneficiaries

As we covered earlier, trusts face a NIIT threshold of roughly $15,000 compared to $200,000+ for individuals. One of the most effective moves a trustee can make is to distribute the trust's investment income to beneficiaries before the end of the tax year. The income then appears on the beneficiary's return instead of the trust's, where the much higher individual threshold often means zero NIIT. This strategy requires understanding the rules around distributable net income and the trust's fiscal year. But for trusts with significant investment income, the savings can run into the thousands annually — money that stays with the family rather than going to the IRS. Always coordinate with a tax professional to ensure distributions are properly documented and reported.

Common NIIT Mistakes That Cost Taxpayers Thousands

These errors trip up even experienced investors. Know them so you can avoid them.

Forgetting to File Form 8960

Many taxpayers who owe NIIT simply do not realize they need to file Form 8960. Missing it triggers IRS notices, accuracy penalties of 20%, and interest on the unpaid amount.

Counting Retirement Distributions as NII

401(k) and IRA distributions are not investment income for NIIT purposes, but they do count toward MAGI. Mixing up these categories leads to overpaying or underpaying the tax.

Ignoring the NIIT on Home Sales

Gains above the $250K/$500K primary residence exclusion count as investment income. In hot markets, that excess can be substantial and trigger NIIT unexpectedly.

Not Planning Roth Conversions

Converting too much in one year can push you above the NIIT threshold, triggering 3.8% on the conversion itself plus on your other investment income. Spreading conversions avoids this.

Overlooking Trust NIIT Exposure

Trusts hit the NIIT at roughly $15,000 of income. Failing to distribute investment income to beneficiaries before year-end wastes a simple tax-saving opportunity.

Forgetting Investment Expense Deductions

You can subtract investment-related expenses from your gross investment income before calculating NII. Overlooking these deductions means paying NIIT on more income than necessary.

NIIT vs Other Investment Taxes — How They Stack Up

Understanding where NIIT fits in the bigger picture helps you plan your total tax exposure.

Investment Tax Comparison (2026)

Tax TypeRateWhat It Applies ToDeductible?
Long-Term Capital Gains Tax0%, 15%, 20%Gains on assets held over 1 yearNo
Short-Term Capital Gains Tax10%–37%Gains on assets held 1 year or lessNo
Net Investment Income Tax3.8%NII above MAGI thresholdNo
Medicare Surtax (Earned Income)0.9%Wages and self-employment incomeNo
Depreciation Recapture25%Real estate depreciation claimedNo

Who Actually Needs to Worry About the NIIT?

Not everyone owes this tax. Here is a quick litmus test to find out if it applies to you.

You Likely Owe No NIIT If...

  • Your MAGI stays below $200K (single) or $250K (MFJ)
  • Your investment income is zero or negative for the year
  • All your income comes from wages and active business participation
  • Your only investment income is from tax-exempt municipal bonds
  • Your investment deductions exceed your gross investment income

You Probably Owe NIIT If...

  • Your MAGI exceeds the threshold and you have capital gains
  • You collect significant dividends above the threshold
  • You earn rental income and your MAGI crosses the line
  • You have passive business income plus high MAGI
  • You sold a highly appreciated asset with gains well above cost basis

The Threshold Trap

Here is a detail that catches people off guard: the NIIT thresholds are fixed dollar amounts that do not adjust for inflation the way ordinary tax brackets do. When the thresholds were set in 2013, $200,000 for a single filer felt like a high-income cutoff. But after years of wage growth and inflation, more moderate earners are now crossing the line. A single filer earning $210,000 with $20,000 in dividends owes NIIT on the lesser of $20,000 or $10,000 — resulting in $380 in additional tax that they might not have budgeted for. As incomes continue to rise while the thresholds stay fixed, this problem will only get worse for more taxpayers each year.

Frequently Asked Questions

What is the Net Investment Income Tax (NIIT) and who has to pay it?
The Net Investment Income Tax is a flat 3.8% surtax that kicks in when your modified adjusted gross income crosses certain dollar thresholds — $200,000 for single filers, $250,000 for married filing jointly, $125,000 for married filing separately, and $200,000 for head of household. The tax applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. It was created under the Affordable Care Act back in 2010 and took effect starting January 1, 2013. If your income stays below those thresholds, you owe nothing. But once you cross the line, every additional dollar of investment income gets hit with that extra 3.8%.
What types of income are subject to the 3.8% NIIT?
The NIIT targets what the IRS calls "net investment income," which covers capital gains from selling stocks, bonds, mutual funds, or real estate (both short-term and long-term), dividend income from stocks and funds, taxable interest from savings accounts, CDs, and corporate bonds, net rental income from properties you own, royalty income, passive business income where you do not materially participate, and certain annuity distributions. Basically, if the money comes from investments rather than a paycheck, it likely falls under the NIIT umbrella. The key distinction is passive versus active — income you work for daily generally does not count.
What income is exempt from the Net Investment Income Tax?
Several income types are completely exempt from NIIT. Wages, salaries, and tips are not subject to it. Self-employment income from active participation is excluded. Social Security benefits do not count. Tax-exempt interest from municipal bonds is left out entirely. Distributions from qualified retirement plans like 401(k)s and traditional IRAs, while they count toward MAGI, are not classified as investment income for NIIT purposes. Veterans benefits, active business income where you materially participate, and income from the sale of your primary residence (up to the exclusion limits) are also exempt. This distinction between what counts as investment income and what does not is where smart tax planning really pays off.
How exactly is the NIIT calculated step by step?
The calculation follows a clear two-part formula. First, find the amount your MAGI exceeds the threshold for your filing status. For a single filer with $280,000 in MAGI, that excess is $80,000 ($280,000 minus the $200,000 threshold). Second, identify your total net investment income. Then the NIIT applies to whichever number is smaller — your excess MAGI or your net investment income — at a rate of 3.8%. So if that same single filer had $60,000 in net investment income, the NIIT would be 3.8% of $60,000 (the smaller number), which equals $2,280. If the filer had $120,000 in investment income instead, the NIIT would be 3.8% of $80,000 (the smaller excess MAGI), which equals $3,040. The tax is reported on Form 8960 and sits on top of your regular income tax.
Can contributing to a retirement account help me avoid the NIIT?
Yes, contributing to tax-deferred accounts like a 401(k) or traditional IRA lowers your MAGI, which can keep you below the NIIT threshold or reduce the excess amount subject to the tax. In 2026, you can stash up to $23,500 in a 401(k) ($31,000 if you are 50 or older). For self-employed people, SEP-IRAs and Solo 401(k)s allow even bigger contributions. However, there is a catch: when you eventually withdraw from those traditional accounts in retirement, the distributions count toward MAGI even though they are not investment income — so they could push your MAGI above the threshold and expose your other investment income to NIIT. That is why Roth accounts are particularly powerful: Roth distributions are generally not included in MAGI at all, making them a clean escape from NIIT.
Does the NIIT apply when I sell my primary home?
It can, but only on the gain that exceeds the primary residence exclusion. If you are single, the first $250,000 of gain is excluded from tax. Married couples filing jointly get a $500,000 exclusion. Only the gain above those amounts counts as investment income for NIIT purposes, and even then, the NIIT only applies if your MAGI exceeds the threshold for your filing status. So if you sell your home and net a $300,000 gain as a single filer, only $50,000 of that counts as net investment income. If your MAGI is above $200,000, the NIIT would apply to the lesser of that $50,000 or your excess MAGI over the threshold.
Is the NIIT deductible on my federal tax return?
No. The Net Investment Income Tax is not deductible anywhere on your federal return. The IRS treats it as a standalone tax under Internal Revenue Code Section 1411, and there is no line on Form 1040 that allows you to deduct it. This means the NIIT is a true additional cost — it sits on top of your regular income tax and capital gains tax with no offset. This nondeductibility is one reason the effective marginal rate on investment income for high earners can feel so punishing, and it makes proactive planning even more important.
Do estates and trusts have to pay the NIIT?
Yes, estates and trusts are subject to the NIIT, but their threshold is much lower. For 2026, the NIIT threshold for an estate or trust is roughly $15,000 (this figure is adjusted annually for inflation). Any undistributed net investment income above that threshold is hit with the 3.8% tax. This low threshold means many trusts that were set up for estate planning purposes end up owing NIIT even though the individual beneficiaries might be below the personal threshold. One common strategy is to distribute the investment income to beneficiaries, which moves the income out of the trust and onto the beneficiary's return, where the much higher individual thresholds may apply.
What is Form 8960 and how do I file it?
Form 8960 is the official IRS form used to calculate and report your Net Investment Income Tax. You attach it to your Form 1040 when filing your annual return. The form walks you through adding up all your investment income, subtracting deductible expenses allocable to that income, determining your MAGI, finding the excess over the threshold, and then applying the 3.8% rate to the applicable base. If you use tax software, it typically generates Form 8960 automatically once you enter your income details. If you work with a CPA, they will handle it, but it is worth confirming the form is included — missing it can trigger IRS notices and penalties.
Can I use tax-loss harvesting to reduce my NIIT liability?
Absolutely. Tax-loss harvesting directly reduces your net investment income, which is one of the two inputs in the NIIT calculation. By selling losing investments to offset capital gains, you shrink your NII figure, and if your NII drops below your excess MAGI, the NIIT applies to the now-smaller NII amount. This can save you 3.8 cents on every dollar of loss harvested, on top of the regular capital gains tax savings. The wash sale rule still applies — you cannot buy back the same or a substantially identical security within 30 days. For a detailed walkthrough of the process, visit our tax loss harvesting guide, which covers timing strategies, portfolio rebalancing, and common pitfalls to avoid.

Related Tax Calculators & Guides