NIIT Surtax 2025: How the 3.8% Tax Works and 7 Ways to Avoid It

This article is educational and not tax advice; consult a licensed CPA or tax attorney before acting. All NIIT parameters reflect the 2025 tax year unless a 2026 figure is labeled inline.

TL;DR — Quick Verdict

  • The Net Investment Income Tax (NIIT) is a flat 3.8% surtax on investment income once your modified adjusted gross income (MAGI) crosses $200,000 (single) or $250,000 (married filing jointly), per IRS Topic 559.
  • It applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold — a distinction worth thousands of dollars in planning.
  • Stacked on the 20% top long-term capital gains rate, the NIIT pushes the top federal effective rate on those gains to 23.8%.
  • The thresholds have never been indexed for inflation since 2013, so each year pulls more taxpayers in — 4.4% of all filers owed it in 2022 (IRS data via ITEP).
  • Comparison result: reducing MAGI below the threshold eliminates the tax entirely, while merely reducing net investment income only shrinks it.
  • Recommendation: high earners with a one-time liquidity event (business sale, concentrated stock, real estate) should model income-timing and charitable strategies before December 31, not at filing.

A married couple sells a rental property in December, books a $400,000 gain, and feels good about the 20% capital gains rate they planned for. Then their return arrives with an extra $15,200 line item they never budgeted — the Net Investment Income Tax. That surprise is common because the NIIT is never withheld; most people discover it only at filing, sometimes with underpayment penalties attached. The tax is a flat 3.8% surtax created under Section 1411 of the Internal Revenue Code, effective since January 1, 2013, and administered through IRS Form 8960. It targets dividends, interest, capital gains, passive rental income, and royalties once your income clears a fixed threshold. This guide breaks down exactly how the surtax is calculated, who pays it, and seven legal strategies — from Roth conversion timing to donor-advised fund gifting through providers like Fidelity Charitable and Vanguard Charitable — that measurably reduce or eliminate it. Every figure here traces to a named primary source, with the IRS as the anchor.

NIIT Rates and Thresholds: The Numbers That Trigger the Surtax

The NIIT rate is a single, flat figure: 3.8%. What changes from taxpayer to taxpayer is the MAGI threshold, and those thresholds depend entirely on filing status. The IRS sets them in statute, and — critically — they do not adjust for inflation.

Filing Status
MAGI Threshold
Surtax Rate

Married filing jointly / qualifying surviving spouse
$250,000
3.8%

Single / head of household
$200,000
3.8%

Married filing separately
$125,000
3.8%

Estates and trusts (2025)
$15,650
3.8%

Source: IRS Topic No. 559, Net Investment Income Tax (verify at irs.gov). Estate/trust threshold rises to $16,000 for the 2026 tax year.

Two structural facts drive most of the pain here. The individual thresholds have stayed frozen since 2013, so wage growth and asset appreciation drag more households into the tax each year without any vote in Congress. And the estate-and-trust threshold sits dramatically lower — $15,650 in 2025 — which is why trustees routinely distribute investment income to beneficiaries before year-end rather than let it sit undistributed. Understanding how these figures interact with the broader system of investment vs earned income tax treatment is the foundation of every avoidance strategy below.

How the NIIT Is Actually Calculated: The “Lesser Of” Rule

The single most misunderstood feature of the NIIT is that you are never taxed on your full MAGI or your full investment income. The 3.8% applies to the lesser of two numbers: your net investment income, or the amount your MAGI exceeds your threshold. Getting this backward causes people to overestimate — or dangerously underestimate — what they owe.

Consider two single filers, each with $100,000 of net investment income. Steve has a MAGI that exceeds his $200,000 threshold by $50,000. Because $50,000 (his excess MAGI) is smaller than $100,000 (his net investment income), the surtax applies to $50,000. His bill: 3.8% × $50,000 = $1,900. Now take Alison, also with $100,000 of net investment income, but whose MAGI exceeds the threshold by $150,000. Here the excess MAGI is larger, so the tax applies to her net investment income of $100,000 instead — producing 3.8% × $100,000 = $3,800. Same investment income, double the tax, purely because of where total MAGI landed. This illustration follows the calculation structure Fidelity publishes in its NIIT learning center.

The lesson embedded in that math is why MAGI management, not just investment-income reduction, is the higher-leverage move. Wages, Social Security, and IRA distributions are not themselves net investment income, but they still count toward the MAGI that determines whether — and how much of — your investment income gets hit. Coordinating this with your capital gains rates by holding period and income lets you see the full stacked cost before you sell.

The Real Cost: What the NIIT Adds to Your Effective Rate

Investors tend to plan around the headline capital gains rate and forget the surtax rides on top of it. For a high earner in the 20% long-term capital gains bracket, the NIIT lifts the top federal effective rate on those gains to 23.8%. That is before any state tax — and in a state like California, the combined burden climbs well past 37%.

Gain Realized
20% LTCG
3.8% NIIT
Total Federal

$100,000
$20,000
$3,800
$23,800

$400,000
$80,000
$15,200
$95,200

$1,000,000
$200,000
$38,000
$238,000

Modeled calculation applying the 3.8% NIIT to the full gain, assuming excess MAGI exceeds the gain. Rate figures per IRS Topic No. 559 (verify at irs.gov).

Note the assumption baked into that table: it presumes the excess MAGI is larger than the gain, so the entire gain is exposed. If part of your income sits below the threshold, the “lesser of” rule shrinks the taxable base — which is precisely the mechanism the avoidance strategies exploit. The distributional data reinforces who bears this: IRS figures cited by the Institute on Taxation and Economic Policy show roughly 73% of all NIIT dollars in 2022 came from filers earning over $1 million, and just 4.4% of all returns owed the tax at all. This is squarely a high-earner surtax.

Seven Strategies to Reduce or Eliminate the NIIT

Because the surtax keys off both MAGI and net investment income, the most effective plays attack one or both of those numbers. None of these is a loophole — each is a documented planning technique that tax professionals apply routinely.

1. Drive MAGI below the threshold

Maxing pre-tax 401(k) and deductible IRA contributions lowers MAGI directly. Push it below your filing-status threshold and the “lesser of” calculation collapses to zero — the surtax disappears entirely, not just shrinks.

2. Harvest losses against gains

Realized capital losses offset realized gains dollar-for-dollar, and net losses shave up to $3,000 off ordinary income annually with the remainder carrying forward. Because this lowers net investment income, it also lowers the NIIT base. The mechanics of tax-loss harvesting mechanics and real savings pair naturally with surtax planning.

3. Spread a large sale across tax years

An installment sale or a staged liquidation of a concentrated position can keep any single year’s MAGI from spiking above the threshold. Splitting a $400,000 gain across three years may keep more of each slice under the line.

4. Time Roth conversions in low-income years

Conversions are taxable as ordinary income the year you make them, but qualified Roth distributions later are excluded from both MAGI and net investment income. Executing conversions in a gap year — between a job exit and RMD age 73 — is a classic sequencing move, though you must weigh the Roth conversion effects on Medicare premiums before pulling the trigger.

5. Gift appreciated securities to a donor-advised fund

Donating appreciated stock to a donor-advised fund eliminates the capital gain entirely — no gain means no NIIT on that appreciation — while delivering a charitable deduction. The trade-offs of donor-advised fund costs and tax benefits determine whether the vehicle fits your giving pattern.

6. Use qualified charitable distributions after 70½

IRA owners aged 70½ or older can direct up to $111,000 (2026 limit, per Fidelity) straight to charity. The distribution satisfies the RMD without adding to MAGI, a powerful lever for retirees fighting threshold creep.

7. Establish real estate professional status

Meeting the IRS real estate professional test — over 750 hours annually and more than half your working time in real estate trades — can reclassify rental income from passive to active, removing it from the NIIT base. Investors deferring gains should also weigh 1031 exchange costs for deferring real estate gains as a complementary tool.

Donor-Advised Fund vs. Roth Conversion: Which Wins for NIIT Reduction?

Both strategies attack the surtax, but through opposite mechanisms — and for opposite taxpayer profiles. A donor-advised fund gift removes an unrealized gain from the tax base permanently; a Roth conversion adds taxable income now to remove future income from MAGI. Choosing wrong can cost more than doing nothing.

The donor-advised fund route shines when you hold highly appreciated stock and have genuine charitable intent. You erase the embedded gain, dodge the 3.8% on that appreciation, and capture a deduction — a two-sided win. But it only makes sense if you actually want to give the money away; you cannot get it back. The Roth conversion route shines for someone with years of runway before RMDs who expects higher future income. It costs ordinary-income tax today but permanently pulls future distributions out of both MAGI and net investment income. The risk: a poorly timed conversion can spike this year’s MAGI and trigger the very surtax you’re trying to escape, plus higher Medicare premiums.

Verdict

For a charitably inclined high earner sitting on concentrated appreciated stock, the donor-advised fund is the stronger single move — it eliminates the gain and the surtax on it immediately, with no timing risk. The Roth conversion is the better long-horizon play for pre-retirees in a temporary low-income window who want to shrink future MAGI permanently. The most sophisticated plans use both: convert in the gap years, gift appreciated shares in high-income years.

What Most People Get Wrong About the NIIT

The surtax generates a predictable set of expensive mistakes, most stemming from misreading how it interacts with the rest of a return.

Mistake 1: Assuming it’s withheld. The NIIT is not withheld like payroll tax. The consequence is a surprise bill plus possible underpayment penalties at filing. The correct action is to make quarterly estimated payments or increase withholding in any year with a large gain.

Mistake 2: Confusing tax-exempt income’s role. Municipal bond interest escapes the 3.8% surtax, and many investors assume it’s therefore invisible. It is excluded from net investment income — but retirees often forget it can still affect other threshold-based calculations. The correct action is to model muni interest’s full effect, not just its NIIT exemption.

Mistake 3: Reducing investment income instead of MAGI. Shrinking net investment income only lowers the tax; driving MAGI below the threshold eliminates it. The consequence of targeting the wrong number is leaving the entire surtax in place. The correct action is to prioritize MAGI-reducing moves when you’re close to the line.

Mistake 4: Ignoring the primary-residence exclusion. Gain on a principal residence is excluded up to $250,000 (single) or $500,000 (married filing jointly) for regular tax — and that excluded portion is also outside the NIIT. Homeowners who forget this overpay. The correct action is to apply the exclusion first, then calculate the surtax only on any remaining gain. Coordinating this with asset location strategy across account types prevents the most common overpayments.

Is NIIT Planning Worth It for You? Who Should Act

Not every high earner needs an elaborate strategy. The value of NIIT planning scales with how far above the threshold you sit and how much of your income is investment-based.

If your MAGI hovers just above $200,000 or $250,000 and your investment income is modest, a single move — maxing a 401(k), harvesting a few losses — may erase the tax for a few hundred dollars of effort. Act, but keep it simple. If you’re facing a one-time liquidity event — selling a business, exiting a concentrated stock position, liquidating real estate — the stakes jump to five figures, as the earlier $15,200 example on a $400,000 gain showed. Here, multi-year sequencing and charitable strategies pay for professional advice many times over. And if you consistently earn well into seven figures, you’re in the cohort supplying most of the nation’s NIIT revenue; ongoing coordination with strategies like the backdoor Roth IRA process for high earners and long-term estate tax planning tools, costs, and savings belongs in your annual plan. The One Big Beautiful Bill Act of 2025 left the 3.8% rate and thresholds untouched, so none of this urgency is going away — and frozen thresholds guarantee more taxpayers cross the line every year.

Frequently Asked Questions

Does the NIIT apply to my wages or 401(k) withdrawals?

No. Per IRS Topic No. 559, the 3.8% NIIT does not apply to wages, self-employment income, Social Security, unemployment, or qualified distributions from 401(k)s and IRAs. However, those income sources still count toward the MAGI that determines whether your investment income crosses the $200,000 or $250,000 threshold, so they matter indirectly.

Were the NIIT thresholds changed by recent 2025 tax legislation?

No. Multiple tax practitioners confirm the One Big Beautiful Bill Act of 2025 left both the 3.8% rate and the MAGI thresholds unchanged. The thresholds — $200,000 single, $250,000 married filing jointly — have been frozen since the tax took effect in 2013 and remain unindexed for inflation, which steadily expands who owes it.

Can selling my primary home trigger the NIIT?

Usually only on gain above the exclusion. The IRS excludes up to $250,000 of home-sale gain for single filers and $500,000 for married filing jointly from regular tax, and that same excluded amount is outside the NIIT. Only gain exceeding your exclusion — and only if your MAGI clears the threshold — faces the 3.8% surtax.

How do estates and trusts get hit so hard by the NIIT?

Estates and trusts owe the 3.8% surtax on undistributed net investment income once AGI exceeds just $15,650 for 2025 (rising to $16,000 in 2026), per IRS guidance. That threshold is far below the individual levels, which is why trustees frequently distribute investment income to beneficiaries before year-end so it’s taxed at the beneficiary’s often-higher threshold instead.

How We Researched This Article

Every rate, threshold, and calculation rule in this article was verified against primary and official sources before publication, with the Internal Revenue Service serving as the anchor authority. The core NIIT parameters — the 3.8% rate and the MAGI thresholds of $200,000 (single/head of household), $250,000 (married filing jointly), and $125,000 (married filing separately) — were confirmed directly against IRS Topic No. 559 and the 2025 Instructions for Form 8960. The estate-and-trust threshold ($15,650 for 2025, $16,000 for 2026) was cross-checked against IRS guidance and Fidelity’s NIIT learning center, which also supplied the worked calculation examples used to illustrate the “lesser of” rule.

Distributional statistics — that 73% of NIIT dollars came from filers earning over $1 million and 4.4% of all returns owed the tax in 2022 — were drawn from IRS data as compiled by the Institute on Taxation and Economic Policy. The 2026 qualified charitable distribution limit of $111,000 was verified against Fidelity and Northern Trust publications. The effective-rate figures (20% capital gains plus 3.8% surtax equaling 23.8%) are original calculations applying the statutory rates; the dollar tables are modeled, not measured, and assume excess MAGI exceeds the realized gain so the full gain is exposed — actual liability depends on each filer’s specific MAGI position under the “lesser of” rule. Where the One Big Beautiful Bill Act’s effect on the NIIT was relevant, we relied on practitioner analyses noting the rate and thresholds were unchanged. This research was last conducted in July 2026. All figures were verified against named primary sources before publication.