Want your exact number - the 3.8% on your interest, dividends, capital gains, and rents, capped at your MAGI over the threshold? Run your figures through the calculator.

Open the Net Investment Income Tax Calculator →
Short Answer

The Net Investment Income Tax (NIIT) is a 3.8% tax on investment income that applies to the smaller of your net investment income or the amount by which your modified adjusted gross income (MAGI) exceeds $250,000 on a joint return, $125,000 married filing separately, or $200,000 for everyone else. The thresholds are statutory and have never been inflation-adjusted since the tax began in 2013. Net investment income covers interest, dividends, capital gains, rents, and royalties, but never wages, self-employment income, Social Security, or retirement plan distributions. You settle it on Form 8960 and report it on Schedule 2, line 12. Nothing is withheld for the NIIT, so plan for it with estimated payments.

Key Takeaways
  • Rate: 3.8% on net investment income, but only once MAGI tops the threshold (IRC §1411).
  • Thresholds: $250,000 MFJ / QSS, $125,000 MFS, $200,000 single / HOH - statutory, never indexed, identical for 2025 and 2026.
  • The base: the smaller of net investment income or MAGI over the threshold (Form 8960, line 16).
  • What counts: interest, dividends, annuities, royalties, rents, capital gains, and passive business income, net of allocable expenses.
  • What never counts: wages, self-employment income, Social Security, tax-exempt interest, active business income, and qualified plan or IRA distributions.
  • The MAGI trap: retirement distributions and Roth conversions are not NIIT income but raise MAGI, which can pull other investment income into the 3.8%.
  • Home sale: gain excluded under §121 is not net investment income; gain above the exclusion is.
  • No withholding: cover the NIIT with estimated payments to avoid a §6654 underpayment penalty.
  • Reporting: Form 8960, line 17 → Schedule 2 (Form 1040), line 12.
M
Written by Munib Ur Rehman · Reviewed by Nausheen Shahid (LMN Tax Inc.) · Tax Years 2025 & 2026 · Last Reviewed: June 2026

What the Net Investment Income Tax Is

The Net Investment Income Tax is a 3.8% tax on investment income for higher-income taxpayers, created by the Affordable Care Act and effective for tax years beginning after December 31, 2012. It lives in IRC §1411, sits outside the regular income tax, and is computed on its own form, Form 8960. It applies to individuals, estates, and trusts, but not to corporations or to nonresident aliens.

The tax is not a flat 3.8% on all investment income. It is 3.8% of the smaller of two numbers: your net investment income, or the amount by which your modified adjusted gross income exceeds a fixed threshold. That lesser-of design is the single most important feature of the tax and the source of most of its surprises. A taxpayer with substantial dividends and gains can owe nothing in a year their MAGI stays under the threshold, then owe thousands in a year a single event lifts MAGI over the line.

Two design choices drive almost every practical problem. First, like the related Additional Medicare Tax, the thresholds are fixed by statute and never adjust for inflation, so wage and portfolio growth pull more taxpayers over the line each year. Second, the tax keys off MAGI, not off investment income alone, so income that is not itself subject to the NIIT - a large IRA withdrawal, a Roth conversion, a one-time bonus - can still trigger it by raising MAGI. The rest of this guide works through both.

The MAGI Thresholds (and Why They Never Change)

The threshold depends only on your filing status:

NIIT MAGI thresholds - statutory, all years since 2013
Filing statusMAGI threshold
Married filing jointly$250,000
Qualifying surviving spouse$250,000
Married filing separately$125,000
Single$200,000
Head of household$200,000

These amounts are written directly into §1411(b). Unlike tax brackets, the standard deduction, or retirement limits, there is no cost-of-living adjustment, so the figures have not moved since 2013 and will not move unless Congress amends the statute. Note that the qualifying surviving spouse threshold is the full $250,000 joint amount, which differs from the Additional Medicare Tax, where a surviving spouse uses the $200,000 figure.

MAGI for the NIIT is a narrow modification: it is your adjusted gross income (Form 1040, line 11) increased by any foreign earned income you excluded under §911, net of the deductions that exclusion disallowed. For taxpayers with no foreign earned income exclusion, which is most filers, MAGI for the NIIT simply equals AGI. That makes the AGI line the practical control point for the tax.

What Counts as Net Investment Income

Net investment income is built from three categories of gross income under §1411(c), then reduced by allocable deductions. The three categories are:

  • Portfolio income: taxable interest, dividends (ordinary and qualified), annuities, royalties, and rents, except amounts earned in the ordinary course of a non-passive trade or business.
  • Passive and trading income: income from a trade or business that is a passive activity under §469, and income from a business of trading in financial instruments or commodities.
  • Net gain: net gain from the disposition of property, except property held in a non-passive trade or business. This includes capital gains on stocks, bonds, mutual funds, and investment real estate.

Qualified dividends and long-term capital gains keep their preferential income-tax rate under §1(h), but they are still fully net investment income for the 3.8%. That is why a high-income investor effectively pays 18.8% or 23.8% on long-term gains: the 15% or 20% capital-gains rate plus the 3.8% NIIT. The Qualified Dividends & Capital Gains Tax Calculator models the income-tax side of that stack, and this guide's calculator models the 3.8% on top.

Rental income is the most fact-sensitive category. For a typical landlord with a separate full-time job, rental income is passive and counts. A taxpayer who qualifies as a real estate professional under §469 and materially participates may treat the rental as non-passive and keep it out of the base. The Rental Income Tax Calculator covers the income-tax mechanics of rental activity.

The Lesser-Of Rule: How the Tax Is Calculated

The NIIT equals 3.8% of the smaller of two amounts:

  • Your net investment income (Form 8960, line 12) - total investment income minus allocable expenses; or
  • Your MAGI over the threshold (line 15) - MAGI minus your filing-status threshold, floored at zero.

Whichever is smaller becomes the base on line 16, and 3.8% of it is the tax on line 17. The rule produces three distinct outcomes:

  • MAGI under the threshold. Line 15 is zero, so the tax is zero regardless of how much investment income you have. This is the relief valve.
  • MAGI just over the threshold. The MAGI excess is small, so you pay only on that thin slice even if your investment income is large. A single filer with $200,000 of investment income but MAGI of $210,000 pays 3.8% of $10,000, which is $380.
  • MAGI far over the threshold. The MAGI excess exceeds your investment income, so you pay 3.8% on your full net investment income. A single filer with $60,000 of investment income and MAGI of $400,000 pays 3.8% of $60,000, which is $2,280.

The practical lesson is that the NIIT is really a tax on the interaction between two numbers. Lowering either one - reducing realized investment income, or reducing MAGI through deductions, deferral, or income timing - reduces the tax. The calculator shows which of the two is binding so you know which lever to pull.

What Is Excluded from the NIIT

Several large income types are specifically outside net investment income, and confusing them for included income is the most common error:

  • Wages and self-employment income. Earned income is never net investment income (§1411(c)(6)); it faces the separate 0.9% Additional Medicare Tax instead.
  • Qualified plan and IRA distributions. Distributions from plans under §401(a), 403(a), 403(b), 408, 408A, and 457(b) are excluded by §1411(c)(5). A 401(k), traditional or Roth IRA, 403(b), or governmental 457(b) distribution is never NIIT income.
  • Social Security benefits. The taxable portion of Social Security is ordinary income, not net investment income.
  • Tax-exempt interest. Municipal bond interest excluded from income is also outside net investment income (and outside MAGI for this tax).
  • Active business income. Income from a trade or business in which you materially participate, and that is not a trading business, is excluded.
  • Excluded home-sale gain. Gain on a main home that you exclude under the §121 exclusion ($250,000 single, $500,000 joint) is not net investment income; only the taxable excess counts. The Home Sale Capital Gains Calculator works out that exclusion.
The MAGI back door: an excluded item can still trigger the NIIT indirectly. A $120,000 traditional IRA distribution is not net investment income, but it is in your AGI, so it raises your MAGI. If that pushes MAGI over your threshold, your dividends and gains - which were sitting untaxed because MAGI was under the line - are suddenly inside the 3.8% base. The exclusion protects the distribution itself, not the rest of your portfolio.

Allocable Investment Expenses

Net investment income is net of expenses properly allocable to that income. On Form 8960, Part II, the deductible expenses are:

  • Investment interest expense (line 9a). Interest on debt allocable to property held for investment, the same amount allowed on Form 4952. Our Investment Interest Expense Calculator works through that limitation.
  • State, local, and foreign income tax (line 9b). The portion of those income taxes allocable to your net investment income, subject to the overall SALT limit on Schedule A.
  • Miscellaneous investment expenses (line 9c). Items such as investment advisory fees once went here, but they are suspended under IRC §67(g) and are not deductible. The 2025 One Big Beautiful Bill Act made that suspension permanent, so line 9c stays at zero going forward.

Because advisory fees and similar costs are no longer deductible, the realistic deductions for most investors are investment interest expense and allocable state income tax. The smaller your deductible expenses, the closer net investment income sits to gross investment income.

Form 8960 Walkthrough: Where It Goes on Your Return

You must file Form 8960 if you have any net investment income and your MAGI exceeds your threshold. The form has three parts:

  • Part I - Investment Income (lines 1-8). Taxable interest (line 1), dividends (line 2), annuities (line 3), net rental, royalty, partnership, and S corporation income (line 4a, adjusted on 4b), net gain from disposition of property (line 5a, adjusted on 5b-5d), other modifications (line 7), and the total on line 8.
  • Part II - Investment Expenses (lines 9-11). Investment interest expense (9a), state, local, and foreign income tax allocable to NII (9b), miscellaneous investment expenses (9c, currently suspended), and the total deductions on line 11.
  • Part III - Tax Computation (lines 12-17). Net investment income (line 12 = line 8 minus line 11), MAGI (line 13), threshold (line 14), MAGI over threshold (line 15), the smaller of line 12 or 15 (line 16), and the NIIT at 3.8% (line 17).

Line 17 carries to Schedule 2 (Form 1040), line 12 and joins your total tax. There is no withholding line and no reconciliation: the entire tax is settled on the return. Estates and trusts use the same form but compare undistributed net investment income against AGI over the top trust bracket under §1(e), a far lower threshold (about $15,650 for 2025). The calculator labels its breakdown with these line numbers so you can trace each figure onto the form.

The 3.8% NIIT vs the 0.9% Additional Medicare Tax

The NIIT is one of two ACA-era surtaxes that share the same dollar thresholds, and they are constantly confused:

The two ACA surtaxes compared
FeatureNet Investment Income TaxAdditional Medicare Tax
Rate3.8%0.9%
BaseInvestment income (interest, dividends, gains, rents)Earned income (wages, self-employment, RRTA)
Threshold measureMAGIEarned income itself
Statute / form§1411 / Form 8960§3101(b)(2), §1401(b)(2) / Form 8959
Withheld at source?No, neverYes, above $200,000 per employer

A high earner can owe both in one year, but never both on the same dollar: portfolio dollars face the 3.8%, salary dollars the 0.9%. An executive with a $400,000 salary and a $50,000 capital gain files both Form 8960 (on the gain) and Form 8959 (on the wages). The wage surtax is modeled in our Additional Medicare Tax Calculator; the Additional Medicare Tax Guide covers the earned-income side in full.

Planning Moves and Estimated Payments

Because the tax keys off the interaction of net investment income and MAGI, the levers are on both sides:

  • Manage MAGI. Maximizing pre-tax retirement contributions, harvesting capital losses, and timing income can keep MAGI under the threshold in years you are close. Even partial relief helps because the tax is on the excess, not a cliff.
  • Spread one-time events. A large Roth conversion, a property sale, or an inherited-account drawdown can be split across two tax years so neither year clears the threshold by much. Confirm the MAGI impact first with the AGI and MAGI Calculator.
  • Use tax-exempt and tax-deferred vehicles. Municipal bond interest is outside both net investment income and MAGI; tax-deferred growth inside a retirement account is not NIIT income when it grows, only AGI when distributed.
  • Cover it with estimates. Nothing is withheld for the NIIT. If you expect to owe it, build it into quarterly estimated payments or add extra income tax withholding on Form W-4, line 4c, so a correct-but-unpaid balance does not generate a §6654 penalty. The Quarterly Tax Calculator handles the safe-harbor math.

The 2025 One Big Beautiful Bill Act did not change §1411, so the 3.8% rate, the thresholds, and the definition of net investment income carry forward unchanged. For most taxpayers this remains a tax to anticipate around income events, not a tax to permanently avoid.

Ready to see your number? Enter your interest, dividends, capital gains, rents, and MAGI to get the full Form 8960 line flow and the lesser-of base.

Open the Net Investment Income Tax Calculator →

Practitioner Insight (LMN Tax Inc.)

LMN Tax Inc. — Planning Notes

The NIIT is an event-year tax, and at LMN Tax Inc. we screen for the event before it happens, not after. The recurring files are the retiree doing a six-figure Roth conversion, the couple selling a long-held rental or a second home, and the heir who liquidates an inherited brokerage account in one year. In each case the investment income was always there; what changed was MAGI clearing the threshold and switching line 15 from zero to a large number.

The single most useful intervention is modeling MAGI before the transaction. If a client is converting $150,000 to a Roth and that lands their MAGI at $310,000 against a $250,000 joint threshold, we can often split the conversion across two years so the MAGI excess - and therefore the lesser-of base - stays small in each. The same logic applies to large gains: realize part this year, part next year.

The most common misunderstanding we correct is that an IRA or 401(k) distribution is taxed by the NIIT. It is not; §1411(c)(5) carves it out. But clients then assume the distribution is harmless for the 3.8%, which is wrong, because it still raises MAGI and can drag the rest of the portfolio into the base. We describe the NIIT as a MAGI tax in an investment-income costume.

Finally, because nothing is withheld, the NIIT is a quiet penalty generator. A client who sells in Q2 and ignores estimates can owe both the 3.8% and a §6654 underpayment penalty on it in April. We build the surtax into the next quarterly voucher the moment a triggering event is on the calendar.

Real-World Scenarios

Scenario 1 — Single, $60,000 NII, $260,000 MAGI
Net investment income (line 12)$60,000
MAGI over $200,000 (line 15)$60,000
NIIT at 3.8% on the smaller$2,280
Scenario 2 — Single, $200,000 NII but MAGI only $210,000
Net investment income (line 12)$200,000
MAGI over $200,000 (line 15)$10,000
NIIT at 3.8% (capped by MAGI excess)$380
Scenario 3 — MFJ, $90,000 NII, MAGI $240,000 (under threshold)
MAGI over $250,000 (line 15)$0
NIIT (no MAGI excess)$0
Scenario 4 — MFJ Roth conversion lifts MAGI to $330,000
Dividends + gains (NII)$70,000
MAGI over $250,000 (line 15)$80,000
NIIT at 3.8% on $70,000 (full NII)$2,660
Scenario 5 — MFJ home sale, $170,000 taxable gain, MAGI $420,000
Taxable gain above §121 + other NII$170,000
MAGI over $250,000 (line 15)$170,000
NIIT at 3.8%$6,460

When the General Rules Do Not Apply

  • Estates and trusts. A trust or estate owes the NIIT on the lesser of undistributed net investment income or AGI over the top §1(e) trust bracket (about $15,650 for 2025), a much lower threshold than the individual amounts, which makes accumulating trusts highly exposed.
  • Real estate professionals. A materially-participating real estate professional under §469 may treat rental income as non-passive and exclude it from net investment income; the determination is fact-specific and contested in audits.
  • Sale of a passthrough interest. Gain on selling a partnership interest or S corporation stock is adjusted on Form 8960, line 5c to the portion attributable to the entity's net investment property, a basis computation outside a single-figure estimate.
  • Section 1411 NOL and special modifications. Line 7 carries §1411 net operating losses, Form 8814 child-income elections, and CFC/PFIC adjustments that simple estimates miss.
  • Nonresident aliens. A nonresident alien is not subject to the NIIT, with special rules for a dual-status year and for a §6013(g) or (h) election to treat a nonresident spouse as a resident.
  • Installment sales. Gain reported under the installment method spreads the net gain across years, so the NIIT can apply in each year the installment is collected rather than all at once.
  • State surtaxes. The 3.8% is federal. Most states have no parallel tax, but check your state return, as a few reach the same income through their own high brackets.

Frequently Asked Questions

Are the Net Investment Income Tax thresholds ever adjusted for inflation?
No. The $250,000 married filing jointly, $125,000 married filing separately, and $200,000 single / head of household thresholds are written directly into IRC section 1411(b) with no inflation indexing. They have been identical every year since the tax took effect in 2013, so ordinary income growth pulls more taxpayers over the line each year. Congress would have to amend the statute to change them.
Why do I owe the NIIT in a year I sold an asset but not in normal years?
Because the tax is the smaller of your net investment income or your MAGI over the threshold. In a normal year your MAGI sits under the threshold, so the MAGI-excess figure is zero and the 3.8% never applies even if you have dividends and interest. A large sale, a Roth conversion, or an inherited-account distribution lifts MAGI above the threshold, the MAGI-excess figure jumps, and the lesser-of base suddenly includes your investment income. The NIIT is effectively a MAGI tax: control MAGI and you control the 3.8%.
Does a 401(k) or IRA distribution get taxed by the NIIT?
No. IRC section 1411(c)(5) excludes distributions from qualified plans under sections 401(a), 403(a), 403(b), 408, 408A, and 457(b), so a 401(k), traditional or Roth IRA, 403(b), or governmental 457(b) distribution is never net investment income. But the taxable part of the distribution is still in your adjusted gross income, which raises your MAGI. So a large retirement withdrawal does not pay the NIIT itself, yet it can push your other investment income over the threshold and into the 3.8%.
Is rental income subject to the Net Investment Income Tax?
Usually yes. Net rental income is investment income under section 1411 unless it comes from a trade or business in which you materially participate and that is not a passive activity, or you qualify as a real estate professional under section 469 and the rental is non-passive. For most landlords with a day job, rental income is passive and counts toward net investment income. A materially-participating real estate professional may keep it out of the base, which is a common and fact-specific planning question.
Does the NIIT apply to the gain on selling my house?
Only the gain above the section 121 home-sale exclusion. If you are single you exclude up to $250,000 of gain on a main home, or $500,000 married filing jointly, and that excluded gain is not net investment income. Any gain above the exclusion is a capital gain that counts, and because a large sale also raises MAGI it can pull that taxable gain into the 3.8% base. Gain on a second home or pure investment property gets no exclusion and is fully included.
Can I owe both the NIIT and the Additional Medicare Tax?
Yes, in the same year, but never on the same dollar. The 3.8% NIIT under section 1411 reaches investment income when MAGI tops the threshold; the 0.9% Additional Medicare Tax under section 3101(b)(2) reaches earned income (wages and self-employment income) above the same dollar thresholds. A high-earning executive with a large salary and a brokerage account can file both Form 8960 and Form 8959 with one return. Portfolio dollars face the 3.8%, salary dollars the 0.9%.
Is the Net Investment Income Tax withheld from my paycheck?
No. Unlike the Additional Medicare Tax, which an employer withholds on wages above $200,000, nothing is ever withheld for the NIIT. You settle it entirely on the return through Form 8960. If you expect to owe it, the IRS expects you to cover it with quarterly estimated tax payments or by adding extra income tax withholding on Form W-4, line 4c; otherwise a large NIIT balance can generate a section 6654 underpayment penalty even though the tax is correct.
Did the One Big Beautiful Bill Act change the NIIT?
No. The 2025 One Big Beautiful Bill Act (P.L. 119-21) did not amend IRC section 1411. The 3.8% rate, the $250,000 / $125,000 / $200,000 thresholds, and the definition of net investment income are unchanged. The Act did make the section 67(g) suspension of miscellaneous itemized deductions permanent, which keeps line 9c miscellaneous investment expenses non-deductible on Form 8960, but the core NIIT computation is the same as before.

What to Do Next

Run Your Numbers

Enter your filing status, investment income, and MAGI in the Net Investment Income Tax Calculator to see the full Form 8960 line flow and whether the tax is capped by your net investment income or your MAGI cushion.

If Your MAGI Is Near the Threshold

Confirm your MAGI with the AGI and MAGI Calculator and read the MAGI Guide. Even a modest dividend or gain can land in the 3.8% base once MAGI clears $200,000 (single) or $250,000 (joint).

If You Also Have High Wages

Check the other ACA surtax. The 0.9% Additional Medicare Tax hits earned income above the same thresholds: run it through the Additional Medicare Tax Calculator and read the Additional Medicare Tax Guide.

If You Are Planning a Sale or Conversion

Model the income-tax side of a gain with the Qualified Dividends & Capital Gains Tax Calculator, then cover the NIIT and any wage surtax with quarterly estimates using the Quarterly Tax Calculator.

Related Tools and Guides

Official Sources
Disclaimer: This guide describes the Net Investment Income Tax under IRC §1411, IRS Form 8960, IRS Topic 559, and the IRS Net Investment Income Tax Questions and Answers, for tax years 2025 and 2026. It is educational only and not tax, legal, or financial advice. The thresholds are statutory and unindexed; the estate and trust threshold, passive-activity and material-participation determinations, partnership-interest basis adjustments, and §1411 net operating losses are summarized and not covered in full. Consult a qualified tax professional for your specific facts.