Free — No Account Required Calculator entries stay in your browser Sources & method · Updated Nov 2026

Net Investment Income Tax (NIIT) Calculator: Will You Owe the 3.8% Surtax?

Quick Answer

The net investment income tax is 3.8% of the lesser of your net investment income or the amount your modified AGI is over the threshold: $250,000 married filing jointly or qualifying surviving spouse, $200,000 single or head of household, and $125,000 married filing separately. Wages, Social Security, most pension and IRA withdrawals, and tax-exempt municipal bond interest are not investment income for this tax.

Source: IRS Topic No. 559, Net Investment Income Tax

For most people this is the adjusted gross income on Form 1040, plus any foreign earned income exclusion. Include the investment income below.

Do not include tax-exempt municipal bond interest.

Use the taxable gain. For a home sale, count only the gain above the $250,000 or $500,000 exclusion.

Rental income from a business you actively run may be exempt. Enter passive rental income here.

Taxable annuity income outside a retirement plan, passive business income, and similar.

The calculator estimates the 2026 net investment income tax for individuals. It does not model estates and trusts, loss carryovers or the rules for business owners. We do not store what you enter.

How to Read Your Result

The big number is your estimated NIIT. The list under it shows your net investment income, the threshold for your filing status, how far your income is over it, and the amount actually taxed, which is the smaller of the two.

If the answer is $0, either your modified AGI is at or below the threshold or you have no net investment income. If your income is just over the line, the tax can be small even when your investment income is large.

What can change it. A large IRA withdrawal, Roth conversion or one-time gain can raise MAGI. Investment expenses lower net investment income. Filing status changes the threshold.

What to verify. Check your Form 8960 and ask a tax professional about rental activities, business ownership, loss carryovers, and any estate or trust.

Terms Used on This Page

NIIT
Net investment income tax, a 3.8% tax on investment income for higher-income taxpayers.
MAGI
Modified adjusted gross income. For most people it equals the adjusted gross income on Form 1040.
Net investment income
Interest, dividends, capital gains, passive rental and royalty income and similar income, less allocable expenses.
Threshold
The income level above which the NIIT can apply. It is set by filing status and is not adjusted for inflation.
Form 8960
The IRS form used to compute the NIIT.

What the NIIT Is and Who Pays It

The net investment income tax, often shortened to NIIT, is a 3.8% surtax on investment income for higher-income taxpayers. It was added to the tax code by the Affordable Care Act and is reported on Form 8960 with your return. It is in addition to regular income tax and to capital gains tax.

It applies only when your modified adjusted gross income (MAGI) is above a threshold set by your filing status. The thresholds are fixed in the law. They are $250,000 for married filing jointly and qualifying surviving spouse, $125,000 for married filing separately, and $200,000 for single and head of household. They are not adjusted for inflation, so more retirees cross them each year as incomes rise.

How the 3.8% Is Calculated

The tax is 3.8% of the smaller of two numbers. The first is your net investment income. The second is the amount by which your MAGI exceeds the threshold. This "lesser of" rule is the most common point of confusion.

Consider a single filer with MAGI of $260,000 and $20,000 of dividends and $40,000 of capital gains. Net investment income is $60,000. MAGI is $60,000 over the $200,000 threshold. The smaller number is $60,000, so the tax is 3.8% of $60,000, or $2,280. Now give the same person MAGI of $210,000. MAGI is only $10,000 over the threshold, so only $10,000 is taxed, and the NIIT is $380, even though the investment income is $60,000.

A third case: a married couple filing jointly with MAGI of $300,000 and $80,000 of net investment income. MAGI is $50,000 over the $250,000 threshold. The smaller number is $50,000, so the NIIT is $1,900. If their MAGI were $400,000, the excess would be $150,000, the smaller number would be the $80,000 of investment income, and the NIIT would be $3,040.

That second case matters for retirees. When your other income is just above the line, the NIIT is small. When it is far above the line, the tax applies to all of your investment income.

What Counts as Net Investment Income

The IRS lists the main types of net investment income: interest, dividends, capital gains (including gains from the sale of stocks, bonds, mutual funds and most real estate that is not your main home), rental and royalty income, certain annuity income, and income from businesses in which you do not materially participate and from trading. You subtract investment expenses that are properly tied to that income, such as investment interest.

Many items are not investment income for this tax. They include wages and self-employment income, unemployment compensation, Social Security benefits, income from an active business, tax-exempt interest from municipal bonds, VA benefits, and gain from the sale of a home that is excluded under the home sale rule. Distributions from qualified retirement plans such as a 401(k), a traditional IRA or a Roth IRA are not net investment income. They can, however, raise your MAGI and push other income over the threshold.

Retirees, Home Sales and Other Common Situations

A large IRA withdrawal or Roth conversion. The withdrawal is not investment income, but it increases MAGI. If you also have interest, dividends or gains, a conversion can cause part of that income to be taxed at 3.8%. Check the effect with the Roth conversion calculator before converting.

Selling your home. Gain you exclude under the home sale rule ($250,000, or $500,000 for a joint return) is not investment income. Gain above the exclusion is. Our home sale capital gains tax calculator covers that case in detail. When you use this calculator, enter only the taxable gain.

Inherited property. Inherited property usually gets a stepped-up basis, which reduces the gain if you sell it. See the inherited property capital gains calculator.

Rental income. Net rental income can be investment income unless it comes from a trade or business in which you take part regularly. Because the line is fact-specific, ask a tax professional about a rental you manage yourself.

Medicare. The NIIT and the Medicare premium surcharge (IRMAA) are separate. Both depend on income. The Medicare IRMAA calculator shows the premium effect, and realized gains raise MAGI for both.

How to Pay or Reduce the NIIT

The NIIT is part of your income tax. If you expect to owe it, include it in your estimated tax payments or your withholding. The estimated tax safe harbor calculator shows how much to pay to avoid an underpayment penalty.

Because the tax depends on MAGI, the usual ways to lower it are to lower MAGI or to lower investment income. Examples include spreading gains across years, using tax-exempt bonds (their interest is not net investment income), and timing the sale of an asset. Each has trade-offs for your overall tax and your risk, so treat these as topics to discuss with a tax professional, not as steps to take from a calculator.

Worked Examples for 2026

Example 1: a single filer well over the threshold

MAGI $260,000; dividends $20,000; capital gains $40,000. Net investment income: $60,000. Over the $200,000 threshold: $60,000. Smaller of the two: $60,000. NIIT: $60,000 x 3.8% = $2,280.

Example 2: a single filer just over the threshold

The same investment income, but MAGI of $210,000. Over the threshold: $10,000. Smaller of the two: $10,000. NIIT: $10,000 x 3.8% = $380.

Example 3: a married couple

Filing jointly with MAGI of $300,000 and $80,000 of net investment income. Over the $250,000 threshold: $50,000. NIIT: $50,000 x 3.8% = $1,900. With MAGI of $400,000 the excess is $150,000, so the smaller number is the $80,000 of investment income and the NIIT is $3,040.

Example 4: how a Roth conversion can trigger it

A single retiree has pension and IRA income that gives MAGI of $190,000 and $30,000 of net investment income. MAGI is under $200,000, so the NIIT is $0. A $50,000 Roth conversion raises MAGI to $240,000. Over the threshold: $40,000. Net investment income: $30,000. NIIT: $30,000 x 3.8% = $1,140. The conversion itself is not investment income, but it moved the retiree over the line. See the Roth conversion calculator.

What This Tool Does Not Establish

The result does not establish whether a rental or business activity is passive, how to treat losses carried over from earlier years, the tax for an estate or trust (which has a different threshold), or the treatment of nonresident aliens. It does not include income tax, capital gains tax or any other surtax. Use it to see whether the NIIT is likely to matter, then confirm on Form 8960.

Common Mistakes

  • Taxing all investment income. Only the lesser of net investment income and MAGI over the threshold is taxed.
  • Counting an IRA withdrawal as investment income. It is not, but it can raise MAGI.
  • Including municipal bond interest. It is excluded from net investment income.
  • Counting the home sale exclusion. The excluded gain is not investment income.
  • Using the wrong threshold. Married filing separately is $125,000, and head of household is $200,000, the same as single.
  • Forgetting investment expenses. Expenses properly allocable to the income reduce it.

Official Sources and How We Calculate

The calculator adds interest and dividends, net capital gain (a loss is limited to $3,000), rental and royalty income and other investment income, subtracts allocable deductions, and compares the result with MAGI minus the threshold for your filing status. The tax is 3.8% of the lesser amount, rounded to the nearest dollar.

SourceWhat we used it for
IRS Topic No. 559, Net Investment Income TaxThresholds, the 3.8% rate, the "lesser of" rule and what counts as investment income

Figure Register (last verified November 18, 2026)

Figure or ruleValueSourceApplies toStatus
NIIT rate3.8%IRS Topic No. 559Current; set by lawConfirmed
Threshold, married filing jointly or qualifying surviving spouse$250,000IRS Topic No. 559Not indexed for inflationConfirmed
Threshold, single or head of household$200,000IRS Topic No. 559Not indexed for inflationConfirmed
Threshold, married filing separately$125,000IRS Topic No. 559Not indexed for inflationConfirmed
"Lesser of" ruleTax on the smaller of net investment income or MAGI over the thresholdIRS Topic No. 559CurrentConfirmed
Capital loss limit in this tool$3,000IRS rules on capital loss deductionCurrentEstimate: not re-read for Form 8960

Estimate only, for individuals, tax year 2026. We do not store what you enter. Last verified: November 18, 2026.

Net Investment Income Tax FAQs

What is the NIIT threshold for 2026?

The thresholds are $250,000 for married filing jointly and qualifying surviving spouse, $125,000 for married filing separately, and $200,000 for single and head of household. They are set by law and not adjusted for inflation.

Is Social Security subject to the net investment income tax?

No. Social Security benefits are not net investment income. They can count toward modified AGI if they are taxable.

Is an IRA or 401(k) withdrawal subject to the NIIT?

No. Distributions from qualified retirement plans are not net investment income, but they can raise your MAGI, which can make other investment income subject to the tax.

Does the NIIT apply to the sale of my home?

Only to gain above the home sale exclusion ($250,000, or $500,000 on a joint return). The excluded gain is not net investment income.

Is municipal bond interest subject to the NIIT?

No. Tax-exempt interest is not net investment income. It can still count in some other income-based calculations.

How do I report the NIIT?

On Form 8960, which you attach to your Form 1040. The tax is added to your regular income tax.

Does the NIIT apply to estates and trusts?

Yes, with a different threshold. This calculator is for individuals. Ask a tax professional about an estate or trust.

Can I reduce MAGI to avoid the tax?

Lowering MAGI or investment income can lower the tax, because the tax depends on both. Talk to a tax professional before changing how you take income, since there are other costs.

Educational Disclosure: This guide is for educational purposes only. Government rules, benefit levels, and tax limits change frequently. While we strive to present accurate information, it should not be taken as legal, tax, or financial advice. We encourage you to review official guidance on government portals (like IRS.gov or SSA.gov) and consult with a qualified professional before making final retirement or benefit elections.