NIIT Calculator
3.8% Net Investment Tax 2026

Compute the IRC §1411 Net Investment Income Tax (Medicare Surtax) — 3.8% on the lesser of net investment income or excess MAGI over $200k single / $250k MFJ / $125k MFS. Thresholds unchanged since 2013 enactment.

Quick answer: NIIT is a 3.8% federal surtax under IRC §1411 on the LESSER of (a) net investment income, or (b) excess of MAGI over the filing-status threshold. 2026 thresholds (NOT indexed for inflation since 2013): $200,000 single/HoH, $250,000 married filing jointly, $125,000 married filing separately. Net investment income includes interest, dividends, capital gains, passive rental/royalty income, non-qualified annuity payouts. Excluded: wages, self-employment income, retirement account distributions, Social Security, municipal bond interest, active business income. Reported on IRS Form 8960. Common reductions: tax-loss harvesting, muni bond substitution, lowering MAGI via retirement contributions. Source: IRC §1411, Treas. Reg. §1.1411.

Threshold: $250,000 — unchanged since 2013.

Above threshold by $100,000 — NIIT may apply

Net Investment Income

$60,000

total NII this year

MAGI Excess

$100,000

over $250,000 threshold

NIIT Base (lesser of)

$60,000

min(NII, MAGI excess)

3.8% NIIT Owed

$2,280

Effective 3.80% on NII

Summary

  • • Filing status: Married Filing Jointly — threshold $250,000
  • • MAGI: $350,000 (above threshold)
  • • Net Investment Income: $60,000 = $5,000 interest + $15,000 div + $40,000 gains + $0 rental − $0 expenses
  • • Lesser of (NII, MAGI excess): $60,000
  • • 3.8% NIIT owed: $2,280

⚠ Reported on IRS Form 8960. To reduce: harvest capital losses (offsets NII directly), substitute taxable bonds with municipal bonds (§103-exempt and NIIT-exempt), increase retirement contributions to lower MAGI, time large capital gains in below-threshold years.

This is the textbook answer. Want to see this calculated against your actual accounts?

Connect them to Richify →

Track Your Finances With Felix

Get personalised AI-powered financial insights. Free to download, no ads.

Download Richify — It’s Free

How It Works

The Net Investment Income Tax (NIIT) — also called the Medicare Surtax — is a 3.8% federal surtax on investment income of higher-income households, enacted under IRC §1411 by the Affordable Care Act effective 1 January 2013:

  • Thresholds (not indexed) — $200,000 MAGI for single/HoH; $250,000 MFJ; $125,000 MFS. Unchanged since 2013 enactment.
  • 3.8% on the lesser of — net investment income, OR the excess of MAGI over your threshold. Apply whichever is smaller.
  • Net Investment Income includes — interest, dividends, capital gains, rental/royalty income (passive), non-qualified annuity payouts, passive business income.
  • Excluded — wages, self-employment income, retirement account distributions (401(k), IRA, Roth), Social Security, municipal bond interest, active business income.

Reported on IRS Form 8960. Common reduction strategies: tax-loss harvesting, muni bond substitution, retirement account contributions to lower MAGI, timing capital gains in below-threshold years. Source: IRC §1411, Treas. Reg. §1.1411, IRS Form 8960 instructions.

How To Use This Calculator

  1. Enter your filing status and Modified Adjusted Gross Income (MAGI). MAGI for NIIT = AGI plus any §911 Foreign Earned Income Exclusion add-back (only matters for US persons with foreign earned income).
  2. Enter your net investment income components: interest (taxable + qualified), dividends, short- and long-term capital gains, rental income (if passive), and other §1411(c) sources.
  3. Subtract investment expenses, investment interest expense, and state/local taxes allocable to investment income — these reduce 'net' investment income.
  4. The calculator computes the LESSER of (a) net investment income, or (b) the excess of MAGI over your threshold ($200k single / $250k MFJ / $125k MFS). The 3.8% NIIT applies to that amount.
  5. Compare scenarios: harvest a capital loss to reduce NII, defer income to a future year, or shift to muni bonds (which are NIIT-exempt). Each option reduces or eliminates the 3.8% liability.

❓ Frequently Asked Questions

What is the Net Investment Income Tax (NIIT)?

A 3.8% surtax under IRC §1411 on net investment income of higher-income taxpayers. Enacted by the Health Care and Education Reconciliation Act of 2010 as part of the Affordable Care Act, effective 1 January 2013. Often called the 'Medicare Surtax' or 'Obamacare investment tax' though it is technically not an additional Medicare tax — proceeds go to general revenue. The 3.8% rate applies to the LESSER of (a) net investment income for the year, or (b) the amount by which MAGI exceeds the filing-status threshold. Thresholds: $200,000 single/HoH, $250,000 married joint, $125,000 married separate. Thresholds are NOT indexed for inflation — they remain at the original 2013 levels.

What counts as net investment income?

IRC §1411(c) includes: (1) interest (taxable and tax-exempt for federal NIIT — but tax-exempt municipal bond interest is excluded), (2) dividends (qualified and ordinary), (3) capital gains (short-term and long-term, both included), (4) rental and royalty income (unless from an active business), (5) non-qualified annuity distributions, (6) passive activity income (income from businesses you don't materially participate in), (7) trading gains from certain passive trader businesses. NOT counted: wages, self-employment income, distributions from qualified retirement accounts (Traditional IRA, 401(k), Roth IRA), Social Security benefits, life insurance proceeds, alimony, active business income where you materially participate, municipal bond interest (tax-exempt for federal income tax purposes). The 'net' adjustment subtracts investment expenses, investment interest expense, and state/local taxes allocable to investment income.

What is MAGI for NIIT purposes?

Modified Adjusted Gross Income for NIIT is your regular AGI plus the foreign earned income exclusion (FEIE — IRC §911), minus deductions and adjustments related to the FEIE. For most domestic taxpayers, MAGI for NIIT = AGI. For US citizens/residents with foreign-source earned income who claim the FEIE, the foreign earned income excluded under §911 is ADDED BACK to AGI for NIIT MAGI calculation. The NIIT MAGI threshold of $200k single / $250k MFJ uses this measure. NIIT MAGI is similar to but distinct from the MAGI used for Roth IRA eligibility, ACA premium tax credits, and IRMAA — each calculation has slightly different add-backs.

Does NIIT apply to the sale of my primary home?

Generally no, if the gain is within the §121 home sale exclusion ($250,000 single / $500,000 MFJ). The exclusion applies to BOTH regular capital gains tax AND NIIT — excluded gain is not net investment income. Gain above the exclusion is subject to long-term capital gains tax AND NIIT if MAGI exceeds the threshold. Example: married couple sells primary home for $900k gain after 25 years. First $500k is excluded; remaining $400k is taxed at LTCG rates (likely 15% or 20%) plus 3.8% NIIT on any portion above the $250k MFJ MAGI threshold. Vacation homes, rental properties, and investment properties get NO §121 exclusion — full gain is subject to capital gains plus NIIT.

Are 401(k) and IRA distributions subject to NIIT?

No. IRC §1411(c)(5) excludes distributions from qualified retirement plans including Traditional 401(k), 403(b), 457(b), Traditional IRA, Roth IRA, SEP IRA, SIMPLE IRA, and pension plans. However, distributions are still counted in MAGI for the threshold calculation — they can push your MAGI above $200k/$250k and cause OTHER investment income (dividends, gains from taxable accounts) to become subject to NIIT. Roth IRA distributions are also excluded from NIIT income, but qualified Roth distributions are also excluded from AGI/MAGI entirely. Roth conversions: the converted amount IS in MAGI but is NOT itself net investment income — so a large conversion can trigger NIIT on your separate dividend/gain income but not on the conversion itself.

How is NIIT calculated step by step?

(1) Determine net investment income (NII) — sum of dividends, interest, capital gains, rental income (passive), royalties, etc., minus allocable expenses. (2) Determine MAGI — AGI plus §911 FEIE add-back. (3) Calculate the excess of MAGI over your filing-status threshold. (4) NIIT = 3.8% × LESSER of NII or the MAGI excess. (5) Report on IRS Form 8960. Example: single filer with $80,000 wages + $30,000 qualified dividends + $50,000 long-term capital gain. AGI = MAGI = $160,000. NII = $80,000 ($30k + $50k). MAGI excess over $200k = $0 (below threshold). NIIT = $0. Same taxpayer with $250,000 wages: MAGI excess = $50,000. NIIT = 3.8% × lesser of ($80,000, $50,000) = 3.8% × $50,000 = $1,900.

Does NIIT apply to S-corporation or partnership distributions?

Depends on whether the taxpayer materially participates. Income from a business in which you materially participate (active business income, under §469 material participation tests) is NOT net investment income. Passive partner/shareholder income (where you don't meet a §469 material participation test, e.g., 500+ hours/year, or substantially-all-the-work test) IS net investment income subject to NIIT. Real estate professionals under §469(c)(7) can convert rental income from passive to active and exempt it from NIIT. S-corp/LLC distributions of profits where you actively work are wages-equivalent and exempt; pure passive investors' shares ARE subject to NIIT on their share of investment income from within the entity.

Is municipal bond interest subject to NIIT?

No — interest from state and local government bonds that is exempt from federal income tax under IRC §103 is also exempt from NIIT under §1411(c)(1)(B). This makes municipal bonds particularly attractive for high-income investors above the NIIT thresholds: a high-MAGI taxpayer in the 37% bracket plus 3.8% NIIT effectively pays 40.8% on taxable interest but 0% on muni interest — a roughly 41% savings advantage on equivalent yield. Private activity bonds are still taxable for AMT purposes but exempt from NIIT. Out-of-state munis are taxable at the state level but federal-exempt and NIIT-exempt.

Can I reduce NIIT by harvesting losses?

Yes. Capital losses reduce net investment income directly under IRC §1411(c)(1)(A)(iii). Tax-loss harvesting in taxable accounts reduces both regular capital gains tax AND NIIT on the harvested gain. After offsetting current-year capital gains, up to $3,000 of net losses can offset ordinary income (and similarly reduces NII via the netting calculation). The wash sale rule (§1091) — buying back the same or substantially identical security within 30 days — disallows the loss for regular tax AND NIIT. Carried-forward losses from prior years also reduce NII. Note: investment expenses and state tax allocable to investment income further reduce NII.

Will the NIIT thresholds ever be indexed for inflation?

Not under current law. The $200k/$250k/$125k thresholds in IRC §1411(b) are STATIC — they have not changed since the tax took effect in 2013. By 2026, real-dollar bracket creep means a household with the same real income as a 2013 $200k earner is now well over the threshold due to ~33% cumulative inflation since 2013. Multiple Congressional proposals over the years have proposed indexing, but none have been enacted. The Treasury Department has no authority to index without Congressional action. As MAGI growth continues to outpace the static threshold, more households become subject to NIIT each year.

More Free Financial Calculators

Track Your Finances With Felix

Get personalised AI-powered financial insights. Free to download, no ads.

Download Richify — It’s Free

Explore Richify