Background with light gradient and lines

You had a strong year. Your portfolio paid off, you sold an asset, and then your return showed an extra tax you did not expect. That surcharge has a name.

It is the net investment income tax, and a lot of people meet it for the first time the hard way.

This guide explains what the NIIT is, whether you actually owe it, how the tax is figured, and what counts as investment income. The goal is to help you see where you stand before filing season, not after.

What the net investment income tax is

The net investment income tax is a 3.8% surtax on certain investment income, created by Section 1411 of the tax code as part of the Affordable Care Act and in effect since 2013. People sometimes call it the Medicare surtax.

It hits individuals, estates, and trusts whose income from investments rises above set levels. The point of these tax provisions was to add a layer on top of regular tax for higher earners, so the NIIT sits separate from, and on top of, your ordinary income tax. Being subject to the tax depends on both your income type and your total income. One quirk matters a lot. The income levels that trigger it have never been adjusted for inflation, so each year the additional tax quietly reaches more people whose incomes have simply drifted up. What was billed as a tax on the wealthy now lands on many upper-middle households in 2026.

Who is subject to the NIIT

Two things have to be true before you owe anything. You need investment income, and your MAGI has to clear a threshold tied to your filing status.

Here are the threshold amounts, which have held steady since 2013. Married filing jointly and qualifying surviving spouses sit at 250,000 dollars. Single and head of household filers sit at 200,000 dollars. Only filers who exceed the line for their status get pulled in. Married filing separately is 125,000 dollars. Your MAGI is generally just your AGI, unless you have foreign earned income to add back, so for most people the two numbers match. If your income lands under the line for your filing status, the NIIT simply does not apply, no matter how much of it came from investments. Only income over certain thresholds pulls you in. Because these limits never move, more taxpayers cross them each year.

How the 3.8% is calculated

This is the part that trips people up, and it is good news once it clicks. The tax does not hit all of your investment income.

You pay 3.8% on the lesser of two numbers: your net investment income, or the amount by which your modified adjusted gross income exceeds the threshold amount. Say you are married filing jointly with 40,000 dollars of net investment income, and your income exceeds the 250,000 dollar mark by 50,000 dollars. The tax applies to the smaller figure, the 40,000 dollars, so your bill is 1,520 dollars. Flip it: if your income only exceeds the threshold by 10,000 dollars, you pay on that 10,000 instead. To calculate your net investment income tax, you take whichever of those two is lower and multiply by that rate. That lesser-of rule is what keeps the tax on the lesser amount rather than your whole investment haul, which is why your actual NIIT liability is often smaller than people fear.

What counts as net investment income

So what actually feeds the calculation. Investment income includes the returns most people picture when they think of a portfolio.

Included in net investment income are interest, dividends, capital gains, rental and royalty income, non-qualified annuities, rental income, and income from a passive activity you do not run or from trading financial instruments. Net gains from selling stocks, bonds, mutual funds, or real estate count too, and capital gains tax on those sales is separate from this surtax. The types of investment income that flow in are broad, covering investment earnings like these, and foreign income from investments is generally swept in as well. The simplest way to think about the types of investment that matter is anything your money earns while you sit back, rather than money you work for. Even part of the gain on selling a home can land here once it tops the exclusion amount.

What is left out

Plenty of income looks like it should count but does not, and knowing the gaps protects you from overpaying.

The NIIT leaves out wages, self-employment income, unemployment, Social Security benefits, alimony, and tax-exempt interest such as municipal bond interest. Distributions from a 401(k), IRA, or similar retirement account stay out. Active income from a business you run, where you materially participate, is excluded, and so is any gain excluded from gross income for regular income tax purposes, like the protected slice of a home sale, which stays tax exempt for NIIT. Wages and self-employment earnings are not free of surtax, though. Instead the additional Medicare tax applies to that earned income at 0.9%, a separate charge on wages rather than investment income, so you might owe one tax, the other, or both, just never both on the same dollar.

Form 8960 and reporting

When the tax does apply, one form carries it. You compute the NIIT on the IRS form titled Net Investment Income Tax for Individuals, Estates, and Trusts.

The form walks through your investment income, subtracts the deductions properly tied to it, and runs the lesser-of math. Completing Form 8960 gives you a number that flows onto Schedule 2 of your Form 1040, and you attach the form to your tax return. If the tax applies to you, it is wise to cover it through withholding or estimated tax during the current tax year, since underpaying it can bring a penalty when you report net investment income at filing time. Good records during the year make this far less painful than scrambling in April.

Estates and trusts owe it too

The rules shift for estates and trusts, and the bar is strikingly low. They reach the NIIT far faster than individuals do.

An estate or trust owes the surtax on the lesser of its undistributed net investment income or the amount its AGI tops the threshold for estates and trusts, which is roughly 16,000 dollars for 2026 tax filings, up a little from the 2025 tax year. Because that line is so low, almost any trust holding meaningful investments is exposed, unless the income is paid out. When a trust distributes income to a beneficiary, the tax generally follows the money to that person, so if the beneficiary sits below the individual threshold, the tax can be avoided. Certain charitable and grantor trusts are exempt outright. This is where the trust's tax bracket and timing of distributions become a real planning lever, a meaningful potential tax saver.

How to reduce your NIIT

Here is the encouraging part. With a little planning, you have real control over whether this tax touches you, because both inputs can be managed.

Since the tax keys off two numbers, you can work on either. Lowering your modified adjusted gross income helps, through pre-tax retirement contributions, an HSA, Roth accounts whose qualified withdrawals stay out of income, or simply deferring a bonus into the next year. Municipal bond interest stays out of income entirely under current tax laws, which is one reason it shows up in investment decisions for higher earners. On the other side, you can trim net investment income with tax-loss harvesting, which may also surface an income tax credit, to reduce your taxable income, and you can deduct items properly allocable to investment income, like investment interest expense and the state and local tax, meaning the state and local income taxes, tied to that income. These tax deductions and a thoughtful tax planning approach can shrink the tax bill, though the 23% qualified business income deduction does not, since it never lowers your AGI. The Tax Cuts and Jobs Act left the NIIT itself untouched. The clean takeaway is that this is a planning problem more than a filing one, and the moves happen before year-end, not after.

That is the kind of work Madras Accountancy supports for US CPA firms, handling the NIIT math, the form prep, and the tax preparation and planning that keeps high-income clients out of surprises. If this is on your firm's plate, talk to our team. For the official rules, the IRS net investment income tax page is the primary source. This article is general information, not tax advice.

Frequently asked questions

1. What is the net investment income tax? It is a 3.8% surtax under Section 1411 of the tax code, in effect since 2013, on the investment income of individuals and certain estates whose income passes set thresholds. It sits on top of your regular income tax, raising your overall tax liability, and is sometimes called the Medicare surtax. The NIIT applies only when you have both investment income and high enough total income.

2. Who has to pay the NIIT? You owe it if you have net investment income and your MAGI exceeds the income threshold for your filing status: 250,000 dollars married filing jointly, 200,000 dollars single or head of household, and 125,000 dollars married filing separately. If your income is below the line, you are not subject to NIIT even with investment income. A tax professional can confirm where you stand, and individual tax situations vary.

3. How is the 3.8% NIIT calculated? You multiply 3.8% by the lesser of your net investment income or the amount your MAGI exceeds the threshold. So if you are over the threshold by 50,000 dollars but have 40,000 dollars of net investment income, the tax on the lesser figure applies to the 40,000. The form runs this math for you.

4. What income is subject to the NIIT? Investment income includes interest, dividends, capital gains, rents and royalties, non-qualified annuities, and passive or trading business profits. Net gains from selling stocks, bonds, funds, or real estate count, and so does the part of a home-sale gain above the exclusion. In short, returns your money earns passively, the kind subject to the net investment income tax, are what get swept in.

5. What is not subject to the NIIT? Wages, self-employment income, Social Security payments, unemployment, tax exempt municipal bond interest, and distributions from retirement accounts like a 401(k) or IRA are left out. Active business income where you materially participate is also excluded. Earned income can instead face the separate 0.9% additional Medicare tax, but never the NIIT on the same dollar.

6. What is the MAGI threshold for the NIIT? The MAGI thresholds are 250,000 dollars for joint filers, 200,000 dollars for single and head of household, and 125,000 dollars for married filing separately. These IRS threshold amounts have not changed since 2013 and are not indexed for inflation, so more taxpayers cross them every year as incomes rise.

7. How do I report the NIIT? You calculate it on the NIIT form, then carry that result to Schedule 2 of your Form 1040 and attach it to your tax return. Trusts and estates report it on Form 1041. If you expect to owe it, building it into your withholding or estimated tax payments during the year helps you avoid an underpayment penalty.

8. How can I reduce my NIIT? You lower either input. Cutting your MAGI through pre-tax retirement contributions, an HSA, or municipal bond interest helps, as does deferring income. You can also reduce net investment income with tax-loss harvesting and by deducting expenses properly allocable to that income. Most of these moves work only before year-end, so plan ahead.

Table of Contents

Explore More Blogs

Image
Single-Entry vs Double-Entry Bookkeeping: A Simple Guide
Published On:
July 30, 2026

Single-entry vs double-entry bookkeeping made simple: how each accounting system works, the key differences, and which one your small business needs.

Image
CPA vs EA vs Tax Attorney: Which Tax Professional Do You Actually Need?
Published On:
July 30, 2026

CPA vs EA (enrolled agent) vs tax attorney: how each tax professional differs, who can represent you to the IRS, and which fits your tax needs.

Image
Data Breach Response for Tax Professionals: How Preparers Report Data Theft to the IRS
Published On:
July 30, 2026

Learn how tax professionals should respond to a data breach, report theft to the IRS and states, notify clients, meet FTC rules, and prevent future attacks.

View all posts
Icon
Icon