Does the 3.8% NIIT Stack on Top of Capital Gains Rates? (w/Examples) + FAQs

This article reflects federal rules and general state rules as of June 2026 and covers tax year 2025 (the return most readers file in early 2026), with 2026 figures noted where they differ. Tax law changes โ€” confirm current figures before you file.

Quick Answer

Yes. For tax year 2025, the 3.8% Net Investment Income Tax (NIIT) stacks on top of your capital gains rate. A high earner who already pays the top 20% long-term rate can owe a combined 23.8% federal rate on the same gain. Short-term gains can hit 40.8%.

If you sold stock, a rental, crypto, or a business this year and your income climbed, you may owe a surtax most people never see coming โ€” and it lands on the very same dollars your capital gains rate already taxed. The sting is that it is a separate tax, calculated on its own form, and it quietly raises your true rate without changing the bracket you thought you were in.

This matters most in a year with a one-time spike: a home sale, a vested grant, an inheritance you sold, or a business exit. The IRS reports the NIIT applies once your income crosses fixed dollar thresholds that have never been adjusted for inflation since 2013, so more taxpayers get pulled in every year as wages and asset values rise.

  • ๐Ÿ’ฐ How the 3.8% surtax stacks on the 0%, 15%, and 20% capital gains rates to produce your real rate.
  • ๐Ÿ“Š The exact 2025 MAGI thresholds for single, joint, separate, and trust filers โ€” and why they never move.
  • ๐Ÿงฎ Fully worked examples (a stock sale, a home sale, and a short-term windfall) you can copy line by line.
  • ๐Ÿ—บ๏ธ Whether your state piles its own tax on top โ€” and why most states have no separate NIIT.
  • โš ๏ธ The seven costliest NIIT mistakes and the deadline-driven steps to shrink or avoid the bill.

What the NIIT Actually Is

The Net Investment Income Tax is a flat 3.8% federal surtax on investment income for people above set income limits. Congress created it under Section 1411 of the tax code to help fund health care, and it took effect in 2013. It is sometimes called the “Medicare surtax” on investment income, though it does not actually fund a Medicare trust the way payroll Medicare tax does.

Here is the key idea in plain words: the NIIT is not a capital gains tax. It is a second, separate tax that happens to fall on many of the same dollars. Your capital gains tax is figured first under the regular 0%/15%/20% rules. Then, if you are over the income threshold, the NIIT is added on the same investment income. That is why people say it “stacks.”

The tax applies to net investment income, which includes capital gains, taxable interest, dividends, rental and royalty income, annuity income, and income from passive businesses. It does not apply to wages, self-employment income, Social Security, tax-exempt municipal bond interest, or qualified retirement plan distributions. So a $50,000 IRA withdrawal is not investment income for NIIT, but a $50,000 stock gain is.

The consequence of ignoring it is concrete: if you owe the NIIT and skip Form 8960, the IRS recomputes your return, adds the 3.8%, and bills you interest and a possible accuracy penalty. The next step is simple โ€” when your income is high and you have investment income, assume the NIIT applies and run the math before you file.

Why It Is Permanent (and Not an OBBBA Change)

A common worry in 2026 is whether the NIIT is going away. It is not. The 2025 tax law known as OBBBA reshaped many deductions, but it did not repeal or change the NIIT, and the surtax has no sunset date. It is permanent law under Section 1411.

This matters for planning. Because the 3.8% is not scheduled to expire, you cannot “wait it out.” A reader hoping a big sale will dodge the surtax by delaying a year should know the rate and the thresholds are essentially fixed. Plan around your income level, not around a hoped-for repeal.

How the Stacking Works

Long-term capital gains get preferential federal rates of 0%, 15%, or 20%, set by your taxable income for tax year 2025. The NIIT 3.8% is then added on top of whichever rate applies, if your modified adjusted gross income (MAGI) is over the threshold. MAGI is your adjusted gross income with a few foreign-income add-backs; for most people, MAGI equals their AGI.

So the true top federal rate on a long-term gain is not 20% โ€” it is 23.8%. On a short-term gain, which is taxed as ordinary income up to 37%, the combined top rate is 40.8%. The Tax Policy Center confirms long-term gains top out at 20% before the surtax, and Wikipedia’s summary notes the resulting top rate of 23.8%.

The crucial nuance is the “lesser of” rule. The NIIT applies 3.8% to the smaller of (a) your total net investment income, or (b) the amount your MAGI exceeds the threshold. This means you are rarely taxed on all your gains โ€” only on the portion that pushes you above the line. Missing this rule is the single biggest reason people overestimate (or underestimate) the bill.

Stacked Federal Rate at the Top

Type of gain True top federal rate for 2025
Long-term capital gain (20% rate + 3.8% NIIT) 23.8%
Short-term capital gain (37% ordinary + 3.8% NIIT) 40.8%
Qualified dividends (20% rate + 3.8% NIIT) 23.8%
Taxable interest (37% ordinary + 3.8% NIIT) 40.8%

The 23.8% figure is what wealthy sellers actually pay on a large stock or business sale, and it is what a popular finance explainer describes as the surtax “stacking” on the 20% rate. The practical takeaway: when you model a sale, use 23.8%, not 20%, for any gain that lands you in high-income territory.

The 2025 Income Thresholds That Trigger It

The NIIT thresholds are based on MAGI and are fixed in the statute. They do not adjust for inflation, which is why each year of rising incomes drags in more filers. The IRS lists these statutory amounts.

Filing status 2025 MAGI threshold
Single or head of household $200,000
Married filing jointly / surviving spouse $250,000
Married filing separately $125,000
Estates and trusts $15,650 (2025)

The estate and trust figure is the trap that surprises people. While an individual gets a $200,000 cushion, a trust crosses into NIIT territory at just $15,650 of undistributed income for 2025. The Minnesota Schedule NIIT and other guidance confirm trusts compute the same 3.8% on the lesser of undistributed NII or AGI over that tiny threshold.

The consequence is that estates and trusts holding investments often pay the NIIT on nearly every dollar of retained gains. The fix many fiduciaries use is to distribute income to beneficiaries who sit below their own higher personal thresholds โ€” but that decision has its own tax effects and a deadline, so it belongs in front of a tax pro.

Which Situation Applies to You?

Because the answer changes with your income and filing status, find your case below and read the matching example.

  • Your MAGI is below your threshold. You owe no NIIT, even on large gains. Your capital gains still get taxed at 0%/15%/20%, but nothing stacks. Skip to the Mistakes section to keep it that way.
  • Your MAGI is over the threshold but your investment income is small. You pay 3.8% only on the lesser amount. See the “lesser of” example below โ€” your bill is often smaller than you fear.
  • You had a one-time spike (home, business, or large stock sale). You likely owe NIIT on the gain that crossed the line. See the stock-sale and home-sale examples.
  • You hold investments inside a trust or estate. You hit the surtax at $15,650 for 2025. Read the trust note above and consider distributions.
  • You are married filing separately. Your threshold is only $125,000 โ€” half the joint amount โ€” so the surtax bites sooner. Model both filing statuses before you choose.

Worked Examples You Can Copy

Money examples are where this gets real. Each one uses 2025 figures and the lesser-of rule.

Example 1 โ€” Long-Term Stock Sale (Single Filer)

Maria, single, earns $150,000 in wages and sells stock for a $300,000 long-term gain. Her MAGI is $450,000.

  • Net investment income (NII) = $300,000.
  • MAGI over threshold = $450,000 โˆ’ $200,000 = $250,000.
  • NIIT base = lesser of $300,000 or $250,000 = $250,000.
  • NIIT = $250,000 ร— 3.8% = $9,500.

Her capital gains tax on the $300,000 (mostly at 15%, partly at 20% above the $533,400 top bracket) comes first; the $9,500 surtax stacks on top. The lesson: her wages used up part of her threshold, so the surtax did not hit the full $300,000.

Example 2 โ€” Home Sale After the ยง121 Exclusion (Married Filing Jointly)

David and Lin sell their longtime home for a $700,000 gain. As a married couple, they exclude $500,000 under the home-sale exclusion, leaving a $200,000 taxable gain. With $180,000 of other income, their MAGI is $380,000.

  • Taxable NII from the sale = $200,000.
  • MAGI over threshold = $380,000 โˆ’ $250,000 = $130,000.
  • NIIT base = lesser of $200,000 or $130,000 = $130,000.
  • NIIT = $130,000 ร— 3.8% = $4,940.

The excluded $500,000 is not investment income, so it never touches the NIIT. Many sellers wrongly assume the whole $700,000 gets surtaxed. It does not โ€” only the taxable slice that pushed MAGI over $250,000.

Example 3 โ€” Short-Term Trading Windfall (Single Filer)

Ben, single, has $90,000 in wages and a $200,000 short-term gain from active trading. MAGI = $290,000.

  • Short-term gain is taxed as ordinary income, reaching the 35%โ€“37% brackets.
  • MAGI over threshold = $290,000 โˆ’ $200,000 = $90,000.
  • NIIT base = lesser of $200,000 NII or $90,000 = $90,000.
  • NIIT = $90,000 ร— 3.8% = $3,420, stacked on top of his ordinary rate.

Near the top, Ben’s marginal dollars face roughly 40.8% federal tax. Holding the position past one year would have moved the gain to long-term rates and cut the underlying tax sharply โ€” the surtax stays 3.8% either way.

Three Common Scenarios and Their Tax Result

Each table below shows a situation and the federal NIIT consequence for 2025.

Investor Situation Federal NIIT Result
Single filer, MAGI $190,000, $40,000 long-term gain No NIIT โ€” MAGI is under the $200,000 threshold
Joint filers, MAGI $300,000, $80,000 of dividends 3.8% on the lesser of $80,000 or $50,000 over threshold = $1,900
Single filer, MAGI $1,000,000, $600,000 stock gain 3.8% on $600,000 NII (less than MAGI excess) = $22,800
Asset Sold in 2025 What Stacks On Top
Long-term stock, high earner 20% capital gains + 3.8% NIIT = 23.8% on the taxed gain
Rental property gain (passive) Capital gains rate + 3.8% NIIT, since rental income is NII
Primary home within ยง121 limit Often $0 NIIT โ€” excluded gain is not investment income
Filer Type Threshold Behavior
Married filing separately Bites at $125,000 โ€” half the joint cushion
Estate or trust Bites at $15,650 (2025) โ€” nearly all retained gains exposed
Head of household Same $200,000 line as single filers

How to Calculate and Report It: Form 8960

You report and pay the NIIT on Form 8960, which attaches to your Form 1040 (or Form 1041 for estates and trusts). The result flows to Schedule 2 of your 1040 and adds to your total tax. There is no separate filing deadline โ€” it rides with your return, due April 15, 2026 for tax year 2025 (or October 15 with an extension to file, though tax owed is still due in April).

The form walks through three parts, and each choice changes your bill:

  • Part I โ€” Investment income. Line 1 reports interest and dividends; later lines add net capital gains, rental, royalty, and passive income. This is where your Schedule D gain lands.
  • Part II โ€” Investment expenses. You subtract expenses tied to earning that income, such as investment interest and the portion of state income tax allocable to investment income, reaching net investment income on Line 8.
  • Part III โ€” Tax computation. Line 13 enters your MAGI, Line 14 subtracts your threshold, and Line 16 multiplies 3.8% by the smaller of NII or the excess.

The consequence of a sloppy Part II is overpaying โ€” many filers forget to deduct allocable state tax and investment interest, inflating their base. The next step before filing: gather brokerage statements, your Schedule D, and your state-tax allocation so Form 8960 starts from the right number. If you are new to the gain side, our guide on filling out Schedule D and Form 8949 shows how to reach the figure that flows here.

Does Your State Stack a Tax Too?

Start with the federal rule: the 3.8% NIIT is a federal tax only. Most states do not have their own separate NIIT. They do, however, tax capital gains as ordinary income, so your combined rate depends on your state.

A handful of states create extra layers worth knowing. Minnesota enacted its own net investment income tax that piggybacks on the federal Form 8960 figure for very high earners. High-tax states like California (top 13.3%) and New York tax capital gains fully as income with no preferential rate, so a top California seller can face roughly 23.8% federal + 13.3% state โ‰ˆ 37.1% on a long-term gain. By contrast, no-income-tax states such as Florida, Texas, Washington (with a narrow exception for certain large gains), and Nevada add $0 in state tax โ€” the federal 23.8% is the whole story there.

The consequence is that where you live when you sell can swing your bill by six figures on a large gain. The next step: confirm your state’s treatment on your state revenue agency’s capital gains page before timing a major sale, especially if a move is on the horizon.

Mistakes to Avoid

  • Assuming gains can’t push you over. A one-time sale raises MAGI itself, which can trigger the surtax โ€” the gain is both the income and the thing that crosses the line.
  • Taxing the whole gain by mistake. Forgetting the lesser-of rule makes people overpay; the surtax often hits only the portion above the threshold.
  • Ignoring the home-sale exclusion. Treating an excluded $250,000/$500,000 gain as investment income inflates the NIIT base; excluded gain is not NII.
  • Skipping Form 8960. Omitting it when you owe leads to an IRS recomputation, interest, and a possible 20% accuracy penalty.
  • Overlooking trust thresholds. Trustees who forget the $15,650 trust threshold leave gains exposed that could have been distributed to lower-bracket beneficiaries.
  • Mishandling married-filing-separately. Choosing MFS without modeling drops your threshold to $125,000 and can create surtax that joint filing would have avoided.
  • Forgetting Part II deductions. Skipping allocable state tax and investment interest overstates net investment income and the 3.8% you owe.
  • Confusing NIIT with the Additional Medicare Tax. The 0.9% wage-based Medicare surtax is separate; counting it as part of the 3.8% leads to wrong planning.

Do’s and Don’ts

  • Do model your sale at 23.8%, not 20%, if it lands you in high-income territory โ€” because the surtax is real money on large gains.
  • Do harvest capital losses before year-end to shrink net investment income, since losses reduce the NIIT base directly.
  • Do spread a large sale across two tax years where possible, because keeping MAGI under the threshold in either year removes the surtax for that slice.
  • Do use tax-exempt municipal bond interest for income, since it is excluded from net investment income.
  • Do revisit trust distributions before year-end, because moving income to beneficiaries below their thresholds can erase the 3.8%.
  • Don’t assume retirement plan withdrawals trigger the NIIT โ€” they are not investment income, though they can raise MAGI.
  • Don’t ignore the surtax on rental income just because rents feel like “ordinary” earnings; passive rental income is NII.
  • Don’t file without Part II expenses, because you will overpay on an inflated base.
  • Don’t treat the thresholds as inflation-indexed โ€” they are frozen, so plan as if they will stay put.
  • Don’t rely on a state having no surtax without checking, since a few states add their own layer.

Pros and Cons of the NIIT’s Design

  • Pro (for taxpayers below the line): the fixed thresholds mean modest investors pay nothing, because the surtax targets only higher incomes.
  • Pro: the lesser-of rule limits the base, so the tax rarely hits every dollar of a gain.
  • Pro: clear exclusions (muni interest, retirement distributions, wages) give real planning levers to lower the base.
  • Con: the thresholds never adjust for inflation, so more middle-upper earners get pulled in each year.
  • Con: it stacks invisibly, raising the true top rate to 23.8% without changing the bracket you see, which surprises sellers.
  • Con: the trust threshold of $15,650 is so low that fiduciaries face the surtax on nearly all retained investment income.

What to Do Next

  1. Estimate your MAGI for 2025 including the gain you are planning, to see whether you cross your threshold.
  2. Run the lesser-of math โ€” compare your net investment income to your MAGI excess and multiply the smaller by 3.8%.
  3. Harvest losses or time the sale before December 31 if you are just over the line, since timing can erase the surtax on part of the gain.
  4. Complete Form 8960 with your return and confirm the figure flows to Schedule 2 of your 1040.
  5. Check your state’s capital gains and surtax rules on its revenue agency page before a large sale.
  6. Call a CPA or tax attorney when the sale is large, involves a business or trust, or crosses state lines โ€” this is exactly where professional planning saves more than it costs.

This article is educational and not a substitute for advice from a licensed tax professional for your specific situation. A complex sale, an estate or trust, or a multi-state move warrants a CPA or tax attorney who can model your actual numbers.

FAQs

Does the 3.8% NIIT stack on top of capital gains rates? Yes. For 2025, the surtax is added on top of your 0%/15%/20% long-term rate or your ordinary short-term rate. The top long-term combined federal rate becomes 23.8%, and short-term can reach 40.8%.

What is the top federal rate on long-term capital gains in 2025? 23.8%. That is the 20% long-term rate plus the 3.8% NIIT, which applies only when your MAGI exceeds your filing-status threshold for the 2025 tax year.

What income triggers the NIIT? MAGI over $200,000 (single), $250,000 (joint), or $125,000 (separate) for 2025. Estates and trusts are exposed at just $15,650. These thresholds are fixed and not adjusted for inflation.

Is the NIIT charged on my whole capital gain? No. It applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold, so often only part of the gain is taxed for 2025.

Do retirement account withdrawals trigger the NIIT? No. Distributions from 401(k)s, IRAs, and other qualified plans are not net investment income, though they do raise your MAGI, which can expose other investment income to the 3.8%.

Does the NIIT apply to a home sale? Usually only the taxable part. The $250,000 single / $500,000 joint home-sale exclusion is not investment income for 2025, so only gain above the exclusion can be hit by the 3.8%.

Did the 2025 OBBBA law repeal the NIIT? No. OBBBA changed many deductions but left the NIIT unchanged. The 3.8% surtax is permanent under Section 1411 with no sunset date.

Which form reports the NIIT? Form 8960. You attach it to Form 1040 (or Form 1041 for trusts), and the tax flows to Schedule 2. It is due with your return on April 15, 2026 for tax year 2025.

Do states charge their own NIIT? Mostly no. The 3.8% is federal. A few states like Minnesota add a separate surtax, and high-tax states like California tax gains fully as income, raising your combined rate.

How is the short-term capital gains rate affected? Up to 40.8%. Short-term gains are taxed as ordinary income up to 37%, and the 3.8% NIIT stacks on top for high earners in the 2025 tax year.

Can capital losses lower my NIIT? Yes. Net capital losses reduce your net investment income, which lowers the 3.8% base. Harvesting losses before year-end is a common way to shrink the surtax for 2025.

Is the NIIT the same as the Additional Medicare Tax? No. The 0.9% Additional Medicare Tax applies to wages and self-employment income. The 3.8% NIIT applies to investment income. They are separate taxes with separate forms.