Net Investment Income Tax Calculator (NIIT 3.8%)
Work out the 3.8% net investment income tax under IRC section 1411, including the combined federal rate it puts on your long-term capital gains and qualified dividends.
How to use this calculator
- 1Enter your wages, self-employment profit, pension and IRA income — everything that is not investment income.
- 2Enter your net investment income: interest, dividends, capital gains, rents and royalties, after any allocable expenses.
- 3Pick your filing status, since the threshold differs and married filing separately is treated harshly.
- 4Set roughly how much of the investment income is long-term gains or qualified dividends to see the combined federal rate on it.
How the calculation works
NIIT = 3.8% × the lesser of (net investment income, modified AGI − threshold)- Net investment income
- Interest, dividends, capital gains, rents, royalties and non-qualified annuities, less allocable expenses
- Modified AGI
- Adjusted gross income, with foreign earned income added back. For most filers it equals AGI
- Threshold
- $200,000 single or head of household, $250,000 married filing jointly, $125,000 married filing separately
Wages and self-employment income are not investment income, but they raise modified AGI and can therefore push investment income into the tax.
The "lesser of" structure is what stops a high earner with one savings account from paying 3.8% on income they do not have.
The thresholds are written into section 1411 as fixed dollar amounts with no indexing provision, unlike almost every other figure in the code.
Worked example
A single filer with $200,000 of salary and $60,000 of investment income
- 1.Modified AGI is $260,000, which is $60,000 above the $200,000 single threshold.
- 2.Net investment income is also $60,000, so the two limbs of the test are equal and the tax applies to the full amount.
- 3.3.8% of $60,000 is $2,280.
- 4.On the long-term portion, the 15% capital gains rate plus 3.8% gives a combined 18.8% federal rate.
Result: $2,280 of net investment income tax
A tax most people meet by accident
The net investment income tax was introduced in 2013 as part of the Affordable Care Act and lives in section 1411 of the code. It adds 3.8% to investment income above a threshold, and it is separate from both income tax and payroll tax — you can owe it in a year your income tax bill barely moves.
Its structure is a "lesser of" test, and that structure is the whole point. The tax applies to the smaller of your net investment income and the amount by which your modified AGI exceeds the threshold. Someone with a $500,000 salary and $1,000 of bank interest pays 3.8% on $1,000, not on the excess. Someone with $210,000 of AGI made entirely of capital gains pays on $10,000, not on all of it.
What catches people out is that non-investment income counts toward the threshold even though this provision never taxes it. A bonus, a Roth conversion, or a large IRA withdrawal can push modified AGI over the line and drag investment income you already had into the tax.
The threshold that shrinks every year
Almost every dollar figure in the US tax code is adjusted annually for inflation. Brackets move, the standard deduction moves, the estate tax exemption moves. The section 1411 thresholds do not. They were set at $200,000 and $250,000 in the statute and have stayed there since 2013, with no indexing provision.
The consequence compounds quietly. A threshold that captured a genuinely high earner in 2013 captures a considerably more ordinary one now, purely through wage growth and inflation. Nothing needs to be legislated for this tax to reach further each year; it happens on its own.
The marriage penalty is unusually sharp here too. Two single people can each earn up to $200,000 — $400,000 between them — before the tax applies. Married, they share a $250,000 threshold. Filing separately makes it worse rather than better, at $125,000 each.
What actually reduces it
Because the tax keys off modified AGI, anything that lowers AGI can help: maximising pretax retirement contributions, health savings account contributions, or timing a large gain into a year with less other income. Deductions taken below the line — the standard deduction, itemised deductions — do not reduce AGI and so do not help at all.
Municipal bond interest is excluded from net investment income entirely, which is part of why the combined rate matters so much when comparing a muni against a taxable bond. Rental income from a business in which you materially participate is generally excluded too, though the material participation tests are strict and factual.
The most useful framing is not the annual bill but the marginal rate. If you are already above the threshold, every additional dollar of long-term gain costs 15% or 20% plus 3.8%. Deciding whether to realise a gain on an 18.8% or 23.8% basis rather than a 15% or 20% one changes the answer more often than people expect.
What this assumes, and where it stops
Assumptions
- Modified AGI equals the sum of the two income figures you enter, which holds for filers with no foreign earned income exclusion.
- Net investment income is entered net of allocable deductions such as investment interest expense and state tax apportioned to investment income.
- The 2026 capital gains thresholds are used for the combined-rate figure.
- The standard deduction is used when deriving taxable income for the capital gains bracket.
Limitations
- State income tax on investment income is not included and can add substantially, particularly in California and New York.
- Estates and trusts are subject to NIIT at a far lower threshold and are not modelled here.
- The material participation tests that exclude some rental and business income are a question of fact, not arithmetic.
- Net investment income excludes distributions from qualified retirement plans and IRAs; if you have those, enter them as non-investment income.
Common questions
Who has to pay the 3.8% net investment income tax?
Anyone whose modified adjusted gross income exceeds $200,000 filing single or head of household, $250,000 married filing jointly, or $125,000 married filing separately, and who also has investment income. The tax applies to the lesser of that investment income and the amount by which modified AGI exceeds the threshold, so crossing the threshold alone is not enough — you need investment income for it to bite on.
Is the NIIT threshold adjusted for inflation?
No, and this is its most consequential feature. The thresholds were written into section 1411 as fixed dollar amounts when the tax took effect in 2013 and contain no indexing provision. Unlike tax brackets or the standard deduction, they have not moved since. Each year of inflation and wage growth therefore brings more people into the tax without any change in the law.
Does my salary count as net investment income?
No. Wages, self-employment income, unemployment compensation, Social Security benefits, alimony and distributions from IRAs and qualified retirement plans are all excluded from net investment income. However, all of them raise your modified adjusted gross income, which is what determines whether you cross the threshold. A large salary can therefore cause you to pay the tax on investment income you would otherwise have kept free of it.
What is the total federal rate on my capital gains once NIIT applies?
Add 3.8% to your long-term capital gains rate. That makes 18.8% for most people in the 15% capital gains band and 23.8% for those in the 20% band. Short-term gains are taxed as ordinary income, so at the top bracket the combined figure reaches 40.8%. These combined rates, not the headline capital gains rate, are what should be used when deciding whether to sell.
Sources
- Questions and Answers on the Net Investment Income Tax — US Internal Revenue Service
- Form 8960, Net Investment Income Tax — US Internal Revenue Service
- Revenue Procedure 2025-32 — 2026 inflation adjustments — US Internal Revenue Service
Formula and content last reviewed on .
Results are estimates for information only, not professional advice.
Related calculators
Tools people commonly use alongside the net investment income tax calculator (niit 3.8%).