Calculate the 3.8% Medicare surtax on your investment income for 2025. Enter your filing status, Modified Adjusted Gross Income, and net investment income to see your NIIT liability, effective surtax rate, and a detailed breakdown.
A single software engineer has MAGI of $350,000 and net investment income of $60,000 from dividends, interest, and capital gains.
MAGI threshold for Single: $200,000
Excess MAGI = $350,000 - $200,000 = $150,000
Taxable Base = min($60,000, $150,000) = $60,000
NIIT = $60,000 ร 3.8% = $2,280
Effective surtax rate on her investment income: 3.80% (full NIIT rate applies because her investment income is less than her excess MAGI).
A married couple filing jointly has MAGI of $280,000 and net investment income of $100,000 from rental properties and capital gains.
MAGI threshold for MFJ: $250,000
Excess MAGI = $280,000 - $250,000 = $30,000
Taxable Base = min($100,000, $30,000) = $30,000
NIIT = $30,000 ร 3.8% = $1,140
Effective surtax rate: 1.14% on their $100,000 investment income (only $30,000 of it is subject to the surtax because of the MAGI limitation).
A single retiree has MAGI of $210,000 (including a one-time capital gain of $50,000 from selling stock) and net investment income of $55,000.
MAGI threshold for Single: $200,000
Excess MAGI = $210,000 - $200,000 = $10,000
Taxable Base = min($55,000, $10,000) = $10,000
NIIT = $10,000 ร 3.8% = $380
Only $10,000 of the capital gain triggers the surtax. The effective rate on total investment income is just 0.69%.
A taxpayer with MAGI of $300,000 and net investment income of $40,000.
If Single: Excess = $100,000 โ NIIT = min($40K, $100K) ร 3.8% = $1,520
If Married Filing Jointly: Excess = $50,000 โ NIIT = min($40K, $50K) ร 3.8% = $1,520
If Married Filing Separately: Excess = $175,000 โ NIIT = min($40K, $175K) ร 3.8% = $1,520
In this example, investment income is the binding constraint for all statuses โ the NIIT is the same $1,520 regardless of filing status.
The Net Investment Income Tax (NIIT) is a 3.8% Medicare surtax that applies to the lesser of your net investment income or the amount by which your Modified Adjusted Gross Income (MAGI) exceeds a threshold based on your filing status. It was introduced as part of the Affordable Care Act (ACA) and took effect in 2013.
| Filing Status | MAGI Threshold |
|---|---|
| Single | $200,000 |
| Head of Household (HOH) | $200,000 |
| Married Filing Jointly (MFJ) / Qualifying Widow(er) | $250,000 |
| Married Filing Separately (MFS) | $125,000 |
Taxable interest, ordinary dividends, capital gain distributions, capital gains from selling assets, rental and royalty income, non-qualified annuity income, and passive business income.
Wages, salaries, self-employment income, unemployment compensation, Social Security benefits, tax-exempt interest, and distributions from qualified retirement plans (401(k), IRA, etc.).
Gain on the sale of a principal residence that is excluded under Section 121 (up to $250K single / $500K MFJ) is also excluded from net investment income for NIIT purposes.
Income from a trade or business in which you materially participate is generally not treated as investment income for NIIT, unless it involves a passive activity.
The table below shows how NIIT varies for a single filer (threshold: $200,000) with different levels of MAGI and net investment income. Notice how the taxable base is always the lesser of the two amounts.
| Scenario | MAGI | Net Inv. Income | Excess MAGI | Taxable Base | NIIT Owed |
|---|---|---|---|---|---|
| Below threshold | $180,000 | $50,000 | $0 | $0 | $0 |
| Low excess, high investment income | $220,000 | $100,000 | $20,000 | $20,000 | $760 |
| High excess, low investment income | $500,000 | $15,000 | $300,000 | $15,000 | $570 |
| High excess, moderate investment income | $400,000 | $80,000 | $200,000 | $80,000 | $3,040 |
| Typical high-income scenario | $350,000 | $50,000 | $150,000 | $50,000 | $1,900 |
| MFS threshold lower | $200,000 | $40,000 | $75,000 | $40,000 | $1,520 |
The Net Investment Income Tax (NIIT) is a 3.8% surtax on investment income that applies to individuals, estates, and trusts with income above certain statutory thresholds. It was enacted as part of the Health Care and Education Reconciliation Act of 2010 (which amended the Affordable Care Act) and first took effect for tax years beginning after December 31, 2012. The NIIT is sometimes called the "Medicare surtax" or "unearned income Medicare contribution tax" because the revenue is directed to the Medicare Hospital Insurance Trust Fund.
Importantly, the NIIT is a surtax โ it is imposed in addition to any regular income tax you owe on your investment income. This means that investment income that is already subject to ordinary income tax rates or capital gains tax rates is also potentially subject to the additional 3.8% NIIT. For example, if you are in the 32% marginal tax bracket and owe NIIT, your effective tax rate on that investment income could be as high as 35.8%.
The NIIT applies to individuals with Modified Adjusted Gross Income exceeding $200,000 (single or head of household), $250,000 (married filing jointly or qualifying widow(er)), or $125,000 (married filing separately). These thresholds are not indexed for inflation โ they have remained unchanged since the tax was introduced in 2013 and are projected to remain at these levels for 2025.
High-income earners with significant investment portfolios are the most affected by the NIIT. This includes affluent professionals with substantial dividend and capital gain income, real estate investors with rental income, retirees with large retirement account distributions that push their MAGI above the threshold, and business owners who generate passive income from their investments. The surtax is particularly impactful for residents of high-tax states, where the combined federal, state, and NIIT burden on investment income can exceed 50% in some cases.
A common misconception is that the NIIT only applies to "wealthy" investors. In reality, a middle-income taxpayer who sells a highly appreciated asset โ such as a vacation home or a stock portfolio that has grown significantly โ can trigger the surtax in a single tax year. This is why tax planning around the timing of capital gains realization is so important for anyone approaching the MAGI thresholds.
Our NIIT calculator is designed for a wide range of real-world tax planning scenarios. Here are the most common situations where this tool provides valuable insights:
Before December 31, estimate your current-year NIIT liability to decide whether to realize additional capital gains or defer them to the next tax year. Knowing your MAGI "headroom" helps you make informed selling decisions.
When selling rental property or a second home, calculate the potential NIIT impact on your capital gain. The gain on a principal residence is excluded up to $250K/$500K, but gains on investment properties are fully subject to NIIT.
Large IRA or 401(k) distributions can push your MAGI above the NIIT threshold. Model different withdrawal amounts to minimize the combined tax burden from regular income tax and the NIIT surtax.
When rebalancing a taxable investment portfolio, compare the NIIT impact of selling appreciated assets versus holding and collecting dividends. Strategic tax-loss harvesting can offset gains and reduce NIIT exposure.
Getting married or divorced changes your filing status, which affects your NIIT threshold. Compare the NIIT implications of different filing statuses before year-end to optimize your tax outcome.
If you own a business but do not materially participate in its operations, the income may be classified as passive investment income subject to NIIT. Use this calculator to estimate the surtax on your passive business earnings.
โ ๏ธ Important Warning: The Net Investment Income Tax (NIIT) is a surtax โ it is imposed in addition to your regular income tax on investment income. It does not replace any existing taxes. The NIIT is separate from the Additional Medicare Tax on earned income. This calculator provides estimates based on 2025 thresholds and is for educational and planning purposes only. Tax laws are complex and subject to change. Consult a qualified tax professional for personalized advice regarding your specific tax situation. The IRS Form 8960 instructions should be consulted for complete rules and exceptions.