Net Investment Income Tax Calculator 2026 — and What Counts as Portfolio Income

Enter your 2026 income. The federal tax engine works out whether the 3.8% net investment income tax (NIIT) applies to you, how much it is, what the next capital gain or IRA withdrawal adds to it, and how much more gain fits before it starts.

The rate on the gain itself is on 2026 capital gains tax rates. Selling at a loss to offset gains? The tax-loss harvesting calculator nets them for you.

How much net investment income tax will I pay in 2026?

The net investment income tax is 3.8% of the smaller of your net investment income and the amount by which your modified adjusted gross income is over $250,000 (married filing jointly), $200,000 (single or head of household) or $125,000 (married filing separately) (IRC §1411). The thresholds are set in the law and do not rise with inflation. Investment income is interest, dividends, capital gains, rents and royalties and non-qualified annuities; wages, Social Security and IRA or 401(k) withdrawals are not (§1411(c)). Example: a married couple, 67 and 65, with a $60,000 pension, $50,000 of Social Security, $40,000 of IRA withdrawals, $15,000 of interest, $30,000 of dividends and a $120,000 long-term gain have $307,500 of modified AGI, $57,500 over the threshold. Their $165,000 of investment income is more than that, so the tax is 3.8% of $57,500: $2,185, filed on Form 8960.

The worked example, computed by the tax engine: married filing jointly, ages 67 and 65, $60,000 pension, $50,000 Social Security, $40,000 IRA withdrawals, $15,000 interest, $30,000 dividends ($25,000 qualified), $120,000 long-term gain, 2026.
Key number2026
Modified adjusted gross income (§1411(d))$307,500
Over the $250,000 joint threshold (IRS)$57,500
Net investment income (interest + dividends + gain) (§1411(c))$165,000
Net investment income tax (3.8% of the smaller)$2,185
Total federal tax, including it$41,299
NIIT on the next $10,000 of long-term gain$380
NIIT added by the next $10,000 of IRA withdrawal$380
NIIT change with $30,000 less gain−$1,140

An estimate from QuantCalc’s open tax engine (federal 2.6.4, state 1.28.1) for the 2026 tax year. Not tax advice: your return depends on facts this page does not ask about, so check a move with your tax preparer or custodian before acting. How the engine computes each line, with its official source: federal, state.

Run your own numbers in the calculator below.

Your 2026 net investment income tax

Your 2026 income (the whole year)

Rental income, royalties, annuities bought outside a retirement plan, foreign income and investment expenses are not asked here, so the engine counts none of them; the 2026 tax return calculator takes the whole return.

Example — enter your numbers
Paid tool The NIIT is a one-year line; the years before RMDs are when you choose how much gain and how much IRA income each year carries. The Roth Conversion Planner lays that out year by year — conversions, the federal and state tax, the NIIT and the Medicare surcharge each year’s MAGI sets — beside the same years with no conversions. Plan it year by year with the Roth Conversion Planner ($49) → Try its free single-year view first →

An estimate from QuantCalc’s open tax engine (federal 2.6.4, state 1.28.1) for the 2026 tax year. Not tax advice: your return depends on facts this page does not ask about, so check a move with your tax preparer or custodian before acting. How the engine computes each line, with its official source: federal, state.

Does an IRA withdrawal or a Roth conversion raise the NIIT?

An IRA or 401(k) withdrawal is never investment income (IRC §1411(c)(5)), but it is part of your modified AGI. When your investment income is larger than your MAGI excess, as in the example, every extra dollar of MAGI is taxed at 3.8%: the next $10,000 of IRA withdrawal adds $380 of NIIT, the same as $10,000 of gain ($380), on top of the income tax ($2,580 of federal tax in all). The same is true of a Roth conversion. Taking $30,000 less gain this year, by harvesting a loss of that size or deferring a sale, changes the couple’s NIIT by −$1,140.

How much more gain can I take before the NIIT starts?

A single 70-year-old with $40,000 of Social Security, $60,000 of IRA withdrawals, $20,000 of qualified dividends and a $50,000 gain has $164,000 of modified AGI, under the $200,000 single threshold: no NIIT. They could take $36,000 more long-term gain in 2026 before the tax starts (the engine adds gain until the NIIT is above zero, so the Social Security it makes taxable is counted).

Portfolio income vs passive vs active income

The tax code sorts income into three kinds. Portfolio income is what investments pay: interest, dividends, annuities and royalties not earned in the ordinary course of a business, and gains on property held for investment (IRS Publication 925). Passive income comes from rentals and from businesses you do not materially participate in. Active income is wages and the profit of a business you work in. The NIIT reaches the first two and not the third (IRC §1411(c); Form 8960 instructions).

How each kind of income is taxed in 2026 (federal).
IncomeKindIncome tax rate3.8% NIIT?
Interest (bank, bonds, CDs)PortfolioOrdinary bracket rateYes
Qualified dividendsPortfolio0%, 15% or 20%Yes
Ordinary dividendsPortfolioOrdinary bracket rateYes
Long-term capital gains (held more than one year)Portfolio0%, 15% or 20%Yes
Short-term capital gainsPortfolioOrdinary bracket rateYes
Annuity payments bought outside a retirement planPortfolioOrdinary rate on the taxable partYes
Rental income (not a real estate professional)PassiveOrdinary bracket rateYes
Business you do not materially participate inPassiveOrdinary bracket rateYes
Wages, salary, your own business profitActiveOrdinary bracket rateNo (Medicare tax instead)
IRA, 401(k), 403(b), 457(b) withdrawalsNot investment incomeOrdinary bracket rateNo, but they raise MAGI
Social SecurityNot investment incomeUp to 85% taxableNo

The rates: 2026 capital gains and dividend tax rates, 2026 tax brackets; how a sale’s gain is measured: cost basis.

Common questions

What is the net investment income tax for 2026?
3.8% of the smaller of your net investment income and your modified AGI above $200,000 (single, head of household), $250,000 (married filing jointly) or $125,000 (married filing separately) (IRC §1411; IRS).
Are the NIIT thresholds adjusted for inflation?
No. The $200,000 and $250,000 amounts are written into the law with no inflation adjustment (IRC §1411(b)).
What counts as net investment income?
Interest, dividends, capital gains, rents, royalties and non-qualified annuities, less the expenses that go with them. Wages, Social Security and distributions from IRAs, 401(k)s, 403(b)s and 457(b)s are not investment income (§1411(c)).
What is portfolio income?
Interest, dividends, annuities and royalties not earned in the ordinary course of a business, and gains on selling property that produces them or is held for investment (IRS Publication 925). It is neither passive income (rentals, businesses you do not materially participate in) nor active income (wages, a business you run). All portfolio income is net investment income for the NIIT; passive income mostly is; active income is not (IRC §1411(c)).
Does an IRA withdrawal or a Roth conversion trigger the NIIT?
It is not taxed as investment income, but it raises your modified AGI. If you have investment income, more MAGI can mean more NIIT: in the example the next $10,000 of IRA withdrawal adds $380 of it.
How much NIIT will I pay on a capital gain?
3.8% of the part of the gain that falls above your threshold, as long as your investment income is larger than your MAGI excess. In the example the next $10,000 of long-term gain adds $380, on top of the capital gains tax.
How do I reduce the net investment income tax?
Lower either side of the comparison: realise less gain in the year (harvest losses, spread a sale over two years) or lower MAGI. In the example $30,000 less gain changes the NIIT by −$1,140. The calculator shows how much more gain fits under your threshold.