Net investment income tax calculator
Work out the 3.8% net investment income tax from your modified AGI and your investment income. The tax applies to the lesser of the two amounts over the line — and the line is lower than most people think.
Net investment income tax
—
Enter your numbers above.
How the math works
The net investment income tax is a flat 3.8% surtax under Internal Revenue Code §1411, added by the Affordable Care Act and effective since 2013. It is not charged on all of your investment income. It is charged on the smaller of two numbers: your net investment income, or the amount your modified adjusted gross income runs over a fixed threshold.
The thresholds are $200,000 for single and head-of-household filers, $250,000 for married filing jointly, and $125,000 for married filing separately. The "lesser of" is the whole mechanism: it means the tax reaches only the investment income that sits above the line, and it means a filer over the threshold on wages alone, with no investment income, owes nothing.
One detail the statute makes permanent: the thresholds are not indexed for inflation. They have sat at the same dollar figures since 2013, so each year raises and salary growth push more households across them. The tax is reported on Form 8960.
Worked example
Take a married couple filing jointly with a modified AGI of $300,000 and $40,000 of net investment income — interest, dividends, and a realized long-term gain.
Their MAGI runs $250,000 under the joint threshold, so it clears the line by $50,000. The tax applies to the lesser of that $50,000 and their $40,000 of investment income. The investment income is smaller, so it binds: 3.8% × $40,000 = $1,520.
Now flip the inputs. Same couple, but only $40,000 of the MAGI is over the line — say MAGI of $290,000 — and the same $40,000 of investment income. The two numbers match, and the tax is still 3.8% × $40,000. Drop MAGI to $270,000 and only $20,000 is over the line, so the tax falls to 3.8% × $20,000 = $760 — even though the investment income never changed. That is the part the single-number calculators hide.
When this calculator is wrong
This tool computes the statutory formula correctly, but the formula answers a narrower question than most people ask it. Here is where a clean 3.8% number misleads.
- Income that isn't investment income still moves the tax. A Roth conversion, a year-end bonus, a traditional-IRA withdrawal, or a one-time business gain is not net investment income — but it raises MAGI. If your investment income was the smaller number only because you were barely over the threshold, pushing MAGI up drags more of that already-earned investment income into the 3.8%. A single filer with $30,000 of investment income and MAGI at $210,000 is taxed on $10,000 of it; a $30,000 conversion that lifts MAGI to $240,000 taxes the full $30,000 — an extra $760 of NIIT the conversion triggered without being investment income itself. Timing non-investment income across tax years is a real lever this calculator can't see from a single snapshot.
- The NIIT is not the 0.9% Additional Medicare Tax. Both are 3.8%-era ACA surtaxes with nearly the same thresholds — $200,000 single, $250,000 joint — and they are constantly confused. They never touch the same dollar. The NIIT hits investment income; the Additional Medicare Tax hits wages and self-employment income above the line at 0.9%. A high earner can owe both in the same year, computed on two different bases. Don't net one against the other.
- A net capital loss zeroes the tax, but the threshold doesn't care. If your investments ran a net loss for the year, net investment income floors at zero and so does the NIIT — regardless of how far over the MAGI threshold your wages put you. The tax is on net investment income, not gross.
- It makes the top capital-gains rate higher than the headline. For a filer in the top long-term capital gains bracket, the NIIT stacks on top, so the true top federal rate on a long-term gain is 23.8%, not 20%. Any after-tax projection that stops at 20% is off by the surtax.
What to do with the result
If the calculator shows the MAGI-excess as the binding number — your investment income is larger than the amount you're over the line — then your lever is MAGI, not your portfolio. Deferring a Roth conversion, spreading a large IRA withdrawal across two years, or timing a bonus can keep more of your investment income under the 3.8%. If net investment income is the binding number, the lever is on the investment side: harvesting losses, holding for long-term rates, or placing income-throwing assets inside a tax-sheltered account. And if the tax is more than a few hundred dollars and it wasn't withheld, it counts toward the $1,000 underpayment line — make sure it's covered by withholding or a quarterly estimate.
Common questions
- What counts as net investment income?
- Interest, dividends, capital gains, rental and royalty income, and income from passive businesses, minus the expenses allocable to it. Wages, self-employment income, Social Security, tax-exempt municipal bond interest, and distributions from qualified retirement accounts are not investment income for this tax — though a traditional-IRA or 401(k) distribution still raises your MAGI, which can pull other investment income into the 3.8%.
- Is the NIIT threshold indexed for inflation?
- No. The $200,000, $250,000, and $125,000 thresholds are written into the statute and have not moved since the tax took effect in 2013. Every year of raises and portfolio growth pushes more households over a line that stays put — the opposite of how the ordinary tax brackets work.
- Does the 3.8% apply to my whole investment income or just part of it?
- Just the part that sits above the threshold, and only up to the amount of your investment income. The tax is 3.8% of the lesser of your net investment income or the amount your MAGI exceeds the threshold. If you're $10,000 over the line with $50,000 of investment income, the tax is on $10,000, not $50,000.
- Do I owe NIIT if my income is over the threshold but I have no investments?
- No. The tax is on investment income. If every dollar over the threshold came from wages or self-employment and you had no net investment income, your NIIT is zero — though wages over the line may trigger the separate 0.9% Additional Medicare Tax instead.
- How do I actually pay it?
- The NIIT is calculated on IRS Form 8960 and carried to your Form 1040. It is not withheld automatically the way payroll taxes are, so if you have significant investment income you may need to cover it through extra withholding or quarterly estimated payments to avoid an underpayment penalty.