Net Investment Income Tax (NIIT) Calculator United States

This NIIT calculator estimates the 3.8% Net Investment Income Tax on your dividends, interest and capital gains once your MAGI crosses the threshold.

Net Investment Income Tax (NIIT) Calculator United States
US$
US$
Net Investment Income Tax (3.8%) —
Amount subject to NIIT —
MAGI over threshold —
Net investment income —
Effective rate on investment income —
Investment income after NIIT —

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

What it does

The NIIT Calculator estimates the 3.8% Net Investment Income Tax you may owe on interest, dividends, capital gains, rents, and other investment income once your modified adjusted gross income crosses the filing-status threshold.

Data sources & parameters

The figures below drive this calculator. We keep them aligned with the latest official guidance, and each result recalculates automatically whenever a value changes.

ParameterValueSourceLast updated
NIIT rate0.038irs.govEffective 2026-01-01Net Investment Income Tax rate (3.8%)
NIIT MAGI threshold, single200,000irs.govEffective 2026-01-01NIIT MAGI threshold, single/HOH (statutory, not indexed)
NIIT MAGI threshold, married filing jointly250,000irs.govEffective 2026-01-01NIIT MAGI threshold, MFJ (statutory, not indexed)
NIIT MAGI threshold, married filing separately125,000irs.govEffective 2026-01-01NIIT MAGI threshold, MFS (statutory, not indexed)

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

The formula

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

How it works

It takes the lesser of your net investment income and the amount your MAGI exceeds the threshold for your filing status, then applies the 3.8% rate.

Where it is used

  • Estimating the 3.8% surtax on investment income
  • Checking how a capital gain pushes MAGI over the threshold
  • Planning the timing of investment income near the threshold

Worked example

With $50,000.00 of investment income and MAGI of $300,000.00 as a single filer, the amount over the $200,000 threshold is …, so NIIT applies to … and comes to ….

What the NIIT calculator does

The calculator estimates the 3.8% Net Investment Income Tax (NIIT), a federal surtax on investment income for people whose income is above a set threshold. It compares your net investment income with how far your modified adjusted gross income (MAGI) is above the threshold for your filing status, and applies the tax to the smaller amount. The NIIT comes on top of ordinary income tax and capital gains tax and is easy to overlook.

The tax comes from Section 1411 of the Internal Revenue Code and has applied since 2013. Many people first notice it on their return after a strong year for dividends or a large sale of stock or property. Estimating it in advance avoids that surprise.

How the 3.8% tax is calculated

  • The calculator takes your net investment income: interest, dividends, capital gains, rents and similar earnings covered by the tax.
  • It finds how far your MAGI is above the threshold. Below the threshold, the amount is zero and no NIIT is due.
  • It multiplies the smaller of those two amounts by 3.8%.

So two people with the same investment income can owe very different amounts. Someone just over the threshold pays tax only on that small excess; someone far above it pays tax on all their investment income.

Understanding the MAGI thresholds

The thresholds are $200,000 for single filers and heads of household, $250,000 for married couples filing jointly and $125,000 for married couples filing separately. They are fixed by law and do not rise with inflation, so more households cross them each year even when their real income has barely changed.

For this tax, MAGI is adjusted gross income plus certain add-backs, mainly some foreign earned income. Without foreign income, MAGI and AGI are usually the same. You enter your MAGI directly.

What counts as net investment income

Net investment income generally includes taxable interest, dividends, capital gains from selling investments, rental and royalty income, non-qualified annuity income and income from businesses in which you do not materially participate, minus expenses allocable to that income, such as investment interest and certain rental costs.

Wages and self-employment income are excluded, though they raise your MAGI and can push you over the threshold. Distributions from qualified retirement plans such as 401(k)s and traditional IRAs are excluded, as is tax-exempt municipal bond interest.

Why a large sale can trigger the tax

Selling appreciated stock, a rental property or an interest in a passive business can produce a large capital gain, which raises your net investment income and your MAGI in the same year. That can push you over the threshold even if your usual income keeps you below it.

Estimating the NIIT before you sell shows the full tax cost of the sale, alongside ordinary or capital gains tax and any state tax. Spreading a sale over two tax years, or timing it around other income, can sometimes reduce the NIIT, depending on your overall situation.

Reading your result

The calculator shows your MAGI over the threshold, the amount subject to the tax and the NIIT itself. The base amount tells you whether the tax is limited by your investment income or by how far your MAGI is over the threshold.

Your actual liability depends on the full detail of your return, including deductions, other income and expenses allocable to your investment income. For a large or complex situation, confirm the figure with a qualified tax professional.

When to use this tool

Use it when planning the sale of a large asset, when your dividends and interest have grown, or when a bonus or business income might push your MAGI over the threshold. Year-end, while you can still adjust the timing of income and deductions, is a good time to check. Because the thresholds do not rise with inflation, check again each year.

This is general information only and not financial advice.

About This NIIT Calculator

Use this NIIT calculator to get an instant, accurate estimate. The figures follow official IRS guidance and every rate and threshold is kept up to date for 2026. Adjust the inputs above to match your situation, or browse all our calculators to plan your next step.

Tax year 2026

Frequently asked questions

What is the Net Investment Income Tax?
A 3.8% federal surtax under Internal Revenue Code Section 1411 on certain investment income when your modified adjusted gross income is above a fixed threshold. It is separate from ordinary income tax and capital gains tax.
How is the NIIT calculated?
It is 3.8% of the smaller of your net investment income and the amount by which your MAGI exceeds the threshold for your filing status. Using the smaller figure limits the tax both by your investment income and by how far your MAGI is over the threshold.
What are the MAGI thresholds?
$200,000 for single and head of household filers, $250,000 for married filing jointly and $125,000 for married filing separately. They are set by law and not adjusted for inflation, so more filers cross them over time.
What counts as net investment income?
Generally taxable interest, dividends, capital gains, rental and royalty income, non-qualified annuities and income from passive businesses, minus related expenses. Wages, Social Security and distributions from qualified retirement plans are not net investment income.
Does a one-time capital gain trigger the NIIT?
It can. A large gain raises both your net investment income and your MAGI, which may push you over the threshold that year even if you are normally below it. Estimate the effect before you sell.
Is this the same as the Additional Medicare Tax?
No. The 0.9% Additional Medicare Tax applies to earned income such as wages and self-employment income, while the 3.8% NIIT applies to investment income. High earners can owe both in the same year.

About the author

Taha Kheirandish

Written and reviewed by

Taha Kheirandish

Economics student and independent researcher

Taha Kheirandish reads tax codes the way other people read maps — to find out where a system actually leads, not where it claims to go.

He is an economics student, and his work here is comparative by design. A pension deferral bonus in Quebec, a commuting allowance in Germany, a rent-increase ceiling in the Netherlands: each is a decision a government made about how money should move, and each reads differently once you set it beside eight others. He builds and checks these calculators across nine markets from primary sources — the regulation rather than a summary of it, the ministry’s own circular rather than a news item quoting it.

That is the editorial standard of the site as well as his habit. Every rate, threshold and bracket here carries the document it was read from and the date it takes effect, and gets re-checked when the law moves rather than when someone happens to notice.

He is a researcher, not a licensed adviser, and nothing on this site is personal financial advice. It is arithmetic done carefully with its sources shown — so that you can check it, and take it to someone who is.

Leave a Reply

Your email address will not be published. Required fields are marked *