Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

2026 NIIT Net Investment Income Calculator

Work out the 3.8% net investment income tax: the rate applied to the smaller of your investment income or your MAGI above the $200,000 or $250,000 threshold.

2026 NIIT Net Investment Income Calculator

$
$
%
Net investment income tax
2,280.00
The net investment income tax in US dollars: the entered rate, 3.8% by statute, applied to the lesser-of base.
Lesser-of NIIT base
60,000.00
MAGI above entered threshold
60,000.00
Governing figure year
2,026

Background.

Do I owe the 3.8% tax on my investments? It is one of the more common questions at tax time from people whose income has crept upward, because the net investment income tax does not appear in the ordinary rate tables. It is a separate federal tax, figured on Form 8960 and added to the bottom of Form 1040, and it applies only once modified adjusted gross income passes a fixed line: $200,000 for a single filer or head of household, $250,000 for a married couple filing jointly or a qualifying surviving spouse, and $125,000 for married filing separately.

Crossing the line does not mean all your investment income is taxed. The 3.8% is charged on whichever is smaller — your net investment income, or the amount by which MAGI exceeds the threshold. Someone whose salary sits just under the line and whose dividends push them over pays only on the slice above it. Someone far above the line pays on every dollar of net investment income, and the threshold stops mattering.

The thresholds have not changed since the tax took effect in 2013, and the IRS says plainly that they are not indexed for inflation. A household that stayed comfortably under $250,000 a decade ago can drift over it on ordinary raises and a good year in the market, without ever thinking of itself as a high earner.

The default rate of 3.8% and the threshold figures used here are the ones in force for the 2026 tax year. You set the threshold yourself, because it follows your filing status.

What is 2026 niit net investment income calculator?

The net investment income tax is a 3.8% federal tax on investment income for individuals, estates and trusts whose income is above a statutory threshold. Investment income here means interest, dividends, capital gains, rents and royalties, non-qualified annuities, income from trading financial instruments or commodities, and income from businesses in which you are a passive participant. It is net because expenses properly allocable to that income come off first — investment interest, advisory and brokerage fees, and the share of state and local income tax that relates to it. Wages, self-employment income, Social Security benefits, unemployment compensation, alimony, tax-exempt bond interest and distributions from qualified retirement plans are outside it. Nonresident aliens are not subject to it at all.

How to use this calculator.

  1. Enter your net investment income for the year. If you filed Form 8960 last year, its bottom-line figure is the place to start; otherwise add taxable interest, ordinary dividends, net capital gains, net rents and royalties and passive partnership or S-corporation income, then subtract investment expenses. Leave out wages, retirement plan distributions, municipal bond interest and any home-sale gain covered by the exclusion.
  2. Enter modified adjusted gross income. For most US residents this is simply the adjusted gross income on Form 1040; it is higher only if you excluded foreign earned income on Form 2555, which is added back. MAGI already contains your investment income — do not add it twice.
  3. Set the threshold for your filing status: $200,000 single or head of household, $250,000 married filing jointly or qualifying surviving spouse, $125,000 married filing separately. An estate or trust uses the income level at which its top bracket begins, which the IRS gives as $15,650 for 2025, and enters its undistributed investment income.
  4. Leave the rate at 3.8%, the statutory figure. Change it only to test a proposal or to see the tax on a single extra dollar.
  5. Compare the MAGI excess with your net investment income. Whichever is smaller is the base the tax was charged on, and it tells you which side of the rule is limiting your bill.

The formula.

NIIT = 3.8% × min(net investment income, max(MAGI − filing threshold, 0))

NIIT = r × min(NII, max(MAGI − T, 0)), where NII is net investment income, MAGI is modified adjusted gross income, T is the filing-status threshold and r is the rate, 3.8%. The inner max stops a MAGI below the threshold from producing a negative excess; when that happens the base is zero and so is the tax. The outer min is the lesser-of rule from section 1411 of the Internal Revenue Code. Because MAGI includes the investment income, the two caps interact in a way that surprises people. While the MAGI excess is the smaller figure, any extra dollar of income — a bonus, an IRA withdrawal, a Roth conversion — raises the tax by 3.8 cents even though that dollar is not investment income itself, because it exposes one more dollar of NII. Once the excess is larger than NII, only additional investment income adds tax. The calculation takes NII and MAGI as finished figures: it does not sort income into investment and non-investment types, allocate expenses, or choose the threshold for you.

A worked example.

Example

A single filer has a salary of $180,000 and $80,000 of dividends and capital gains, so MAGI is $260,000. The threshold for a single filer is $200,000. Step one: the excess over the threshold is $260,000 − $200,000 = $60,000. Step two: the base is the smaller of net investment income ($80,000) and that excess ($60,000), which is $60,000. Step three: $60,000 × 3.8% = $2,280 of net investment income tax. The excess was the binding side here, so $20,000 of the investment income is effectively sheltered by the room left under the threshold. A married couple filing jointly with exactly the same income would compare against $250,000 instead: an excess of $10,000, a base of $10,000, and a tax of $380.

modified Adjusted Gross Income260,000
niit Rate Percent3.8
net Investment Income80,000
filing Threshold200,000

Frequently asked questions.

Will selling my house trigger the 3.8% tax?
Only on gain that is taxable after the home-sale exclusion of $250,000, or $500,000 for a married couple filing jointly. The IRS gives the example of a couple with a $600,000 gain: $100,000 is taxable, which with $125,000 of other investment income makes $225,000 of NII. Their MAGI of $300,000 is $50,000 over the threshold, so the tax is $1,900. Gain on a second home or a rental gets no exclusion.
Are my IRA withdrawals or a Roth conversion subject to the NIIT?
Not directly — distributions from qualified retirement plans are not investment income. They do raise MAGI, though, and that can expose investment income you already have. A single filer with $220,000 of MAGI and $30,000 of NII owes $760; a $50,000 Roth conversion lifts MAGI to $270,000 and the tax to $1,140, because the base is now the full $30,000.
Is rental income counted as net investment income?
Generally yes: rents are listed as investment income, and so is the gain when you sell a rental. The exception is income from a trade or business that is not passive for you, which the tax does not reach. Whether a rental activity rises to that level depends on the facts, including how much you materially participate, and is worth settling with a preparer before relying on it.
Do I need to pay the NIIT during the year, or just when I file?
The IRS says the tax is subject to the estimated tax rules, so a large one-off gain can leave you underpaid for the year. Employers do not withhold it automatically, but you can ask for extra income tax withholding on Form W-4 to cover it, or add it to your quarterly estimated payments. The Safe Harbor Tax calculator shows how much needs to be paid in.
How is this different from the 0.9% Additional Medicare Tax?
They are two separate taxes that happen to share the same income thresholds. The Additional Medicare Tax of 0.9% applies to wages and self-employment income above the line, while the 3.8% tax applies only to investment income. A high earner with a large portfolio can owe both in the same year, each on a different kind of income.
Which expenses reduce net investment income?
Expenses properly allocable to the investment income: investment interest, investment advisory and brokerage fees, and the part of your state and local income tax that relates to the investment income. Capital losses offset capital gains before the net figure is taken, which is why harvesting losses in a high-income year can lower this tax as well as the regular capital gains bill.
Do trusts and estates pay the NIIT on the same terms?
They pay the same 3.8%, but on the lesser of undistributed net investment income and the amount by which adjusted gross income exceeds the start of the top trust tax bracket — $15,650 for 2025. That threshold is a small fraction of an individual's, so income left inside a trust can be taxed when the same income paid out to a beneficiary below $200,000 would not be.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
NIIT = 3.8% × min(net investment income, max(MAGI − filing threshold, 0))
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon