Taxes
Net investment income tax: how the 3.8% NIIT works
The 3.8% NIIT hits the lesser of investment income or MAGI above $200,000 ($250,000 joint). Worked cases, IRS data 2013–2023 and why thresholds never move.
The net investment income tax (NIIT) is a flat 3.8% federal tax on the lesser of two numbers: your net investment income, or the amount by which your modified adjusted gross income (MAGI) exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It sits on top of the regular income tax, so a long-term gain or qualified dividend can be taxed at 23.8% rather than 20%, and interest or a short-term gain at up to 40.8%.
What most explanations leave out: the thresholds are written into the statute as fixed dollar amounts and have not changed since the tax started in 2013. Consumer prices have risen about 45% since then. IRS data show the number of returns paying the tax went from 3.1 million for 2013 to 8.1 million for 2023.
3.8%
Tax rate
on the lesser of NII or MAGI over the threshold
$200,000
Single threshold
$250,000 joint, $125,000 separate; never indexed
8.1 million
Returns paying NIIT, 2023
5.05% of all returns (IRS SOI)
+45%
CPI-U since 2013
the thresholds have lost that much ground
How the 3.8% is calculated
Section 1411(a)(1) of the tax code imposes "a tax equal to 3.8 percent of the lesser of" net investment income and the excess of MAGI over the threshold. In three steps:
- Net investment income (NII). Interest, dividends (qualified and ordinary), capital gains, rents, royalties, non-qualified annuities and passive business income, minus the deductions properly allocable to them.
- Excess MAGI. For most people MAGI is simply AGI from Form 1040. If you exclude foreign earned income under section 911, you add it back (Form 8960 instructions, line 13). Subtract your threshold. If the result is zero or less, you owe no NIIT.
- Tax. 3.8% × the smaller of the two.
Here is what that gives for a single filer at a few income levels. MAGI includes the investment income.
| Net investment income | MAGI $190,000 | MAGI $225,000 | MAGI $275,000 | MAGI $400,000 |
|---|---|---|---|---|
| $10,000 | $0 | $380 | $380 | $380 |
| $50,000 | $0 | $950 | $1,900 | $1,900 |
| $150,000 | $0 | $950 | $2,850 | $5,700 |
Read the table by row. Once MAGI is far enough above the threshold, the tax is simply 3.8% of all investment income. Close to the threshold, only the slice of MAGI above it is taxed, however much investment income you have.
What counts and what doesn't
| Included in NII | Not included in NII |
|---|---|
| Taxable interest (bonds, CDs, savings accounts) | Wages, bonuses and most self-employment income |
| Qualified and ordinary dividends, including fund distributions | Social Security benefits, unemployment, alimony |
| Capital gains on stocks, ETFs, mutual funds and bonds | Distributions from 401(k), 403(b), 457(b), traditional IRAs and Roth IRAs |
| Gain on a second home or investment property | Gain on your main home that is excluded under section 121 ($250,000 / $500,000) |
| Rents and royalties, non-qualified annuities | Tax-exempt (municipal bond) interest |
| Passive business income, trading income | Income of nonresident aliens (section 1411(e)) |
The deductions that reduce NII (Form 8960, lines 9–10) include investment interest expense, expenses tied to rental and royalty income, and the share of state and local income tax that falls on investment income, allocated "by any reasonable method" and subject to the SALT cap. Miscellaneous investment expenses such as advisory fees are generally no longer deductible: the Form 8960 instructions note that the 2025 law made the disallowance of miscellaneous itemized deductions permanent.
Why income that isn't "investment income" still matters
Wages, IRA withdrawals and Roth conversions are excluded from NII, but they raise MAGI. Near the threshold that turns them into NIIT triggers, which is where most real surprises come from.
The second case is why the tax deserves a line in any Roth conversion plan: the cost isn't only the bracket the conversion lands in. See Roth IRA vs a taxable account for why investment income inside the Roth never counts toward NII in the first place.
A big one-off gain: one tax year or two
The NIIT has no brackets, but the "lesser of" rule makes timing matter when one large sale would push you far over the threshold.
The saving is 3.8% of that extra $50,000 of room. Taxable income stays under the $545,500 point where the 20% rate starts for single filers in 2026 (Rev. Proc. 2025-32), so the regular rate is 15% either way. Splitting a sale means carrying market risk for another few weeks, and the 2027 numbers will differ slightly, so treat this as arithmetic, not a recommendation. If you need lots to choose from, the cost basis methods guide explains how specific identification changes the gain a sale realizes.
The thresholds have never moved: what that costs
Section 1411(b) sets the thresholds at $250,000 (joint), half of that for married filing separately, and $200,000 "in any other case". Unlike the income tax brackets, the standard deduction or the capital gains breakpoints, nothing indexes them. The IRS Q&A says it plainly: "these threshold amounts are not indexed for inflation." The 2025 Form 8960 instructions still list the original figures.
Our arithmetic with the consumer price index (CPI-U, not seasonally adjusted: 2013 average 232.957, October 2026 337.511, a rise of 44.9%):
| Filing status | Threshold (fixed since 2013) | Equivalent in October 2026 prices | Today's threshold in 2013 dollars |
|---|---|---|---|
| Single, head of household | $200,000 | about $289,800 | about $138,000 |
| Married filing jointly | $250,000 | about $362,200 | about $172,600 |
| Married filing separately | $125,000 | about $181,100 | about $86,300 |
For comparison, the income level where the 20% capital gains rate starts is indexed every year: $545,500 for single filers and $613,700 for joint filers in 2026, rising to $563,200 and $633,600 in 2027 (see our 2027 capital gains brackets report). So the 20% rate keeps pace with inflation and the NIIT doesn't. A growing share of payers are in the 15% capital gains bracket and pay 18.8% (15% + 3.8%) on their long-term gains.
How many people pay it: IRS data 2013–2023
The IRS Statistics of Income division publishes the count and total of NIIT in Table 3.3 of Publication 1304 every year. We pulled every edition from 2013 (the first year of the tax) to 2023 (the latest, published March 2026). Share and average are our calculations.
| Tax year | Returns with NIIT | Share of all returns | NIIT paid | Average per return |
|---|---|---|---|---|
| 2013 | 3,090,498 | 2.10% | $16.5 billion | $5,336 |
| 2014 | 3,591,314 | 2.42% | $22.5 billion | $6,260 |
| 2015 | 3,828,608 | 2.54% | $22.0 billion | $5,757 |
| 2016 | 3,853,849 | 2.56% | $19.5 billion | $5,047 |
| 2017 | 4,489,637 | 2.94% | $25.3 billion | $5,640 |
| 2018 | 5,025,623 | 3.27% | $30.1 billion | $5,980 |
| 2019 | 5,432,786 | 3.44% | $28.3 billion | $5,202 |
| 2020 | 5,691,866 | 3.46% | $35.4 billion | $6,212 |
| 2021 | 7,211,136 | 4.48% | $59.7 billion | $8,279 |
| 2022 | 7,140,565 | 4.43% | $41.0 billion | $5,741 |
| 2023 | 8,104,840 | 5.05% | $39.3 billion | $4,853 |
| % | |
|---|---|
| 2013 | 2.1 |
| 2014 | 2.42 |
| 2015 | 2.54 |
| 2016 | 2.56 |
| 2017 | 2.94 |
| 2018 | 3.27 |
| 2019 | 3.44 |
| 2020 | 3.46 |
| 2021 | 4.48 |
| 2022 | 4.43 |
| 2023 | 5.05 |
Three things stand out:
- The count rose 2.6 times while total revenue rose 2.4 times. The average bill in 2023 ($4,853) was lower than in 2013 ($5,336) in nominal dollars, and lower still after inflation. That is the pattern you'd expect when fixed thresholds pull in households with moderately high incomes and modest investment income.
- The tax follows the market. Revenue peaked at $59.7 billion for 2021, the year of record capital gains, then fell to $41.0 billion for 2022 even though the number of payers barely changed.
- Most payers are not the very rich. A Congressional Research Service summary of 2019 data found that people with incomes of $200,000 to $500,000 were 69.6% of those subject to the tax but paid 14.1% of it, about $1,054 each on average, while those with $10 million or more paid 31.5%.
Where it shows up on your return
You compute the tax on Form 8960 and carry it to Schedule 2 (Form 1040), line 12. Brokers don't calculate it for you: your 1099-DIV, 1099-INT and 1099-B feed lines 1–5 of Form 8960, and the rest depends on your whole return. It is not withheld from paychecks automatically, so the IRS says to raise withholding or make estimated payments if you expect to owe it. A large December sale can leave you short on estimated tax.
A running total of realized gains, dividends and interest during the year is what lets you see the threshold coming. GetHossa's realized gains and transactions view keeps those numbers per account and per year.
Common mistakes
- Applying 3.8% to all investment income. Below the "lesser of" crossover, only the MAGI above the threshold is taxed. A single filer with $205,000 of MAGI owes NIIT on $5,000, not on their whole portfolio income.
- Thinking the 0% capital gains rate means no NIIT. The two tests use different income measures. In practice a household under the 0% ceiling is far below the NIIT threshold, but a household with big gains can owe 3.8% on gains taxed at 15%.
- Forgetting that excluded income raises MAGI. Wages, IRA distributions and Roth conversions are not NII, yet they decide how much NII is taxed (see the two examples above).
- Expecting the foreign tax credit to offset it. The IRS Q&A says credits allowed only against the regular income tax, including the foreign tax credit, can't reduce NIIT. Foreign tax withheld on international funds still helps against regular income tax.
- Assuming last year's threshold rises with inflation. It doesn't. A household that just cleared $250,000 will stay over it as nominal pay rises.
- Counting municipal bond interest or a home sale twice. Tax-exempt interest and the excluded part of a main-home gain are outside NII. Only the gain above the $250,000 / $500,000 exclusion counts.
Methodology and sources
Thresholds, the definition of NII and the exclusions come from 26 U.S.C. § 1411, the IRS Net Investment Income Tax page, the IRS questions and answers and the Instructions for Form 8960 (2025). The 2013–2023 table uses the "All returns, total" row of IRS SOI Table 3.3 (Publication 1304) for each tax year: "Net investment income tax" number of returns and amount (published in thousands of dollars), and "Number of returns". Share = NIIT returns ÷ all returns; average = amount ÷ NIIT returns. The inflation figures use CPI-U, U.S. city average, not seasonally adjusted (series CPIAUCNS from FRED, St. Louis Fed): the 2013 annual average and the October 2026 monthly value; rounded to $100. The capital gains breakpoints come from Rev. Proc. 2025-32, the 2026 brackets and the 37% top rate from the IRS release on 2026 inflation adjustments. Worked examples assume only the income listed, federal tax only. This is general information about how the tax works, not tax advice.
Frequently asked questions
What are the NIIT thresholds for 2026?+
The same as every year since 2013: modified AGI over $200,000 for single filers and heads of household, $250,000 for married filing jointly and qualifying surviving spouses, and $125,000 for married filing separately. Section 1411(b) sets them as fixed amounts, and they are not indexed for inflation.
How do I calculate the net investment income tax?+
Take the lesser of your net investment income and the amount by which your MAGI exceeds your threshold, and multiply by 3.8%. A single filer with $260,000 of MAGI and $40,000 of investment income pays 3.8% × $40,000 = $1,520, because the $60,000 excess is larger than the investment income.
Does a Roth conversion count toward the net investment income tax?+
The conversion itself is not net investment income, because distributions from IRAs and other qualified plans are excluded under section 1411(c)(5). But it raises MAGI, which can make your dividends, interest and gains subject to the 3.8% tax for that year.
Are capital gains in an IRA or 401(k) subject to NIIT?+
No. Gains and dividends inside the account are not taxed as they occur, and withdrawals from 401(k), 403(b), 457(b), traditional and Roth IRAs are excluded from net investment income. Withdrawals can still raise MAGI, though.
What is the top federal rate on capital gains with the NIIT?+
23.8% on long-term gains and qualified dividends (20% plus 3.8%) and 40.8% on short-term gains and interest (37% plus 3.8%), before state tax. Payers in the 15% capital gains bracket pay 18.8% on long-term gains.
Sources
- 26 U.S. Code § 1411 — Imposition of tax (Cornell Law School, Legal Information Institute)
- IRS — Net Investment Income Tax
- IRS — Questions and answers on the Net Investment Income Tax
- IRS — Instructions for Form 8960 (2025)
- IRS Statistics of Income — Table 3.3, All Returns: Tax Liability, Tax Credits, and Tax Payments, Tax Year 2023 (Publication 1304, March 2026)
- IRS Statistics of Income — Table 3.3, Tax Year 2013 (Publication 1304, July 2015); same table for 2014–2022
- IRS — Revenue Procedure 2025-32 (2026 inflation adjustments, section 4.03 capital gains breakpoints)
- IRS — Tax inflation adjustments for tax year 2026 (brackets and standard deduction)
- IRS — Topic no. 409, Capital gains and losses
- FRED, Federal Reserve Bank of St. Louis — Consumer Price Index for All Urban Consumers: All Items (CPIAUCNS), from BLS
- Congressional Research Service — In Focus IF11820 on the 3.8% Net Investment Income Tax (June 30, 2023), via EveryCRSReport
This article is for information and education only. It isn't investment or tax advice. Rules and broker practices change — check the current rules or talk to a tax advisor.
See your portfolio next to the S&P 500
Import your Interactive Brokers history or add trades by hand — GetHossa shows your real return, your TWR and your lead over the S&P 500.
Create account