Net Investment Income Tax (NIIT) Calculator

Isolate the mathematical truth of the IRS Form 8960. Calculate your exact 3.8% Medicare surtax liability by cross-referencing your Excess MAGI against your Net Investment Income.

1. Ordinary Income & Status

Excludes investment income. Drives your MAGI baseline.

2. Investment Portfolio (Form 8960)

Capital gains, dividends, interest.

Rental properties, royalties.

Advisory fees, investment interest expense. Lowers NII.

Awaiting Parameters

Input income boundaries and investment yields to map the 3.8% tax erosion.

NIIT Liquidity Matrix

Decoding The Matrix: The 3.8% Medicare Surtax Trap

A catastrophic mathematical mistake many high-earners make is assuming their capital gains are capped at 15% or 20%. Section 1411 of the Internal Revenue Code introduced the Net Investment Income Tax (NIIT), an unavoidable 3.8% surtax applied to passive yields for high-income individuals. If your Modified Adjusted Gross Income (MAGI) breaches the strict statutory limits, this surtax attaches itself to your stock profits, dividends, and real estate income. Our NIIT Analyst executes the exact "Lesser Of" logic required by IRS Form 8960 to isolate your precise vulnerability.

Foundational Form 8960 Underwriting Truths

To successfully navigate this tax code and protect your investment yields, you must understand its mechanical execution:

  • Unadjusted Statutory Thresholds

    Unlike regular ordinary income tax brackets which adjust upward every year for inflation, the NIIT thresholds ($200,000 for Singles, $250,000 for Married Filing Jointly) were hardcoded into law in 2013 and have never been adjusted for inflation. This creates severe bracket creep. As nominal wages rise over time, an exponentially growing number of middle-to-upper class investors are quietly getting caught in this 3.8% tax trap every single year.

  • The "Lesser Of" Formula

    The NIIT is highly specific. It is not blindly applied to all your investment income. The IRS calculates your "Excess MAGI" (the amount your income clears the threshold) and your total "Net Investment Income". The 3.8% tax is strictly applied to whichever number is smaller. If you earn $300k in salary and $10k in dividends, your excess MAGI is huge, but your NIIT is limited to the $10k dividend overflow.

Expand Your Wealth Stack Modeling

Once you identify your exact NIIT exposure, pivot your focus to tax-loss harvesting and capital allocation. The easiest way to mathematically lower your Net Investment Income (and thus escape the NIIT) is to harvest capital losses against your gains. Utilize our Tax-Loss Harvesting Analyst to model this offset. Additionally, if you are looking to generate returns that bypass the NIIT entirely, consider paying down high-interest loans (a guaranteed tax-free yield) using our Debt Payoff vs Market Analyst.

Explore Next: Strategic Analytics

Frequently Asked Questions

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax applied to certain net investment income of individuals, estates, and trusts that have income above specific statutory threshold amounts. It is often referred to as the Medicare Surtax.

How is the NIIT calculated?

The 3.8% tax is applied to the LESSER of two numbers: 1) Your total Net Investment Income (NII) for the year, or 2) The amount by which your Modified Adjusted Gross Income (MAGI) exceeds your filing status threshold (e.g., $200,000 for Singles).

Are NIIT thresholds adjusted for inflation?

No. Unlike ordinary income tax brackets, the NIIT statutory thresholds ($200,000 for Single, $250,000 for Married Filing Jointly) were set in 2013 and have never been indexed for inflation. As nominal wages rise, more investors are getting caught in this tax trap each year.

Does the NIIT apply to the sale of a primary residence?

Generally, no. The portion of the gain that is excluded from gross income for regular income tax purposes (under the Section 121 exemption of up to $250k/$500k) is also excluded from the NIIT. Only the taxable portion of the gain that exceeds the exemption is included in your Net Investment Income.