Calcmatic

Net Investment Income Tax Calculator

Calculate the 3.8% Net Investment Income Tax (NIIT) on your investment income. Determine your NIIT liability based on filing status, MAGI thresholds, and investment income types.

Income Information

Single
$
$
$
$
$
$
$

NIIT Results

Total Net Investment Income

$0

NIIT Threshold (Single)

$0

Modified Adjusted Gross Income

$0

Amount Over Threshold

$0

How the 3.8% Tax is Calculated

The NIIT applies to the LESSER of:

  • Your Net Investment Income: $0
  • Amount Over Threshold: $0

NII Subject to 3.8% Tax

$0

Net Investment Income Tax Owed

$0

($40,000 × 3.8%)

Effective Rate on Net Investment Income

2.53%

NIIT as % of Total MAGI

0.63%

Investment Income Breakdown

Interest Income$0
Dividend Income$0
Capital Gains$0
Rental Income$0
Total NII$0

NIIT Reduction Strategies

  • You're close to the NIIT threshold. Consider maximizing pre-tax retirement contributions (401(k), traditional IRA) to reduce MAGI.
  • Rental income is subject to NIIT unless you qualify as a real estate professional. Maximize depreciation and expense deductions.
  • Consider material participation in rental activities (750+ hours/year) to potentially avoid NIIT classification.
  • Contribute to Health Savings Account (HSA) - reduces MAGI and grows tax-free.
  • Consider charitable giving strategies (donor-advised funds, qualified charitable distributions) to reduce taxable income.
  • Maximize business expense deductions if you have self-employment or business income.

NIIT Liability by Income Level

This chart shows how NIIT increases as your Modified AGI exceeds the threshold for Single. The vertical line indicates the NIIT threshold.

Understanding the Net Investment Income Tax (NIIT)

The Net Investment Income Tax (NIIT) is a 3.8% surtax on certain investment income that was introduced as part of the Affordable Care Act in 2013. This tax applies to individuals, estates, and trusts that have income above specific threshold amounts. The NIIT is in addition to regular income tax and capital gains tax, making it crucial for high-income investors to understand and plan for this additional tax burden.

What Income is Subject to NIIT?

The NIIT applies to net investment income, which includes a wide range of passive income sources:

  • Interest Income: Interest earned from savings accounts, bonds, CDs, money market accounts, and other interest-bearing investments
  • Dividend Income: Both qualified and non-qualified dividends from stocks, mutual funds, and ETFs
  • Capital Gains: Profits from selling stocks, bonds, real estate (other than your primary residence exclusion), cryptocurrency, and other capital assets
  • Rental Income: Net rental income from real estate properties (unless you qualify as a real estate professional)
  • Royalties: Income from intellectual property, patents, mineral rights, oil and gas interests, and creative works
  • Passive Business Income: Income from businesses or partnerships in which you do not materially participate
  • Annuity Income: Income from non-qualified annuities (annuities held outside retirement accounts)
  • Trading Income: Gains from trading financial instruments or commodities (unless you qualify for trader tax status)

What Income is NOT Subject to NIIT?

Importantly, the following types of income are excluded from NIIT calculations:

  • Wages and Salaries: All W-2 income from employment, regardless of amount
  • Self-Employment Income: Active business income from Schedule C (sole proprietorship)
  • Active Business Income: Income from S-corporations or partnerships where you materially participate
  • Social Security Benefits: Retirement benefits from Social Security (though they count toward MAGI)
  • Tax-Exempt Interest: Interest from municipal bonds (not included in net investment income)
  • Qualified Retirement Distributions: Distributions from 401(k), IRA, and other qualified retirement plans (though they increase MAGI)
  • Alaska Permanent Fund Dividends: Payments from the Alaska Permanent Fund
  • Veteran's Benefits: VA disability and other veteran's benefits

NIIT Income Thresholds (2025)

The NIIT only applies when your Modified Adjusted Gross Income (MAGI) exceeds certain threshold amounts based on your filing status. These thresholds have remained unchanged since the tax was introduced in 2013:

Filing StatusMAGI Threshold
Single$200,000
Married Filing Jointly$250,000
Married Filing Separately$125,000
Head of Household$200,000
Qualifying Widow(er)$250,000

Important Note

These threshold amounts are NOT indexed for inflation. This means that as wages and investment income increase over time due to inflation and economic growth, more taxpayers will find themselves subject to NIIT unless Congress acts to adjust these thresholds. Since 2013, the lack of inflation adjustment has effectively expanded the reach of this tax.

How NIIT is Calculated

The calculation of NIIT follows a specific two-step formula. The tax applies to the LESSER of two amounts:

  1. Your Total Net Investment Income for the year, OR
  2. The Amount by Which Your MAGI Exceeds the threshold for your filing status

Once you determine which amount is smaller, you multiply that amount by 3.8% to calculate your NIIT liability.

NIIT = MIN(Net Investment Income, MAGI - Threshold) × 3.8%

Example: If your Net Investment Income is $65,000 and you're $45,000 over the threshold, the NIIT applies to $45,000 (the lesser amount), resulting in $45,000 × 3.8% = $1,710 tax owed.

Strategies to Reduce NIIT Exposure

While the NIIT cannot be completely avoided if you have investment income above the thresholds, there are several legitimate strategies to minimize your exposure:

1. Maximize Pre-Tax Retirement Contributions

Contributing to pre-tax retirement accounts like traditional 401(k)s and traditional IRAs reduces your Modified AGI. For 2025, you can contribute up to $23,500 to a 401(k) ($31,000 if age 50+) and $7,000 to an IRA ($8,000 if age 50+). These contributions lower your MAGI and can potentially bring you below the NIIT threshold.

2. Tax-Loss Harvesting

If you have investments with unrealized losses, consider selling them to offset capital gains. Capital losses reduce your net investment income, potentially lowering or eliminating your NIIT liability. You can deduct up to $3,000 in net capital losses against ordinary income each year, with excess losses carried forward to future years.

3. Hold High-Yield Investments in Tax-Advantaged Accounts

Investment income generated within retirement accounts (401(k), IRA, Roth IRA) is not subject to NIIT. Consider holding your highest-yielding investments (like dividend stocks, REITs, and bonds) in these accounts while keeping tax-efficient investments (like growth stocks or index funds) in taxable accounts.

4. Municipal Bonds for Tax-Free Interest

Interest from municipal bonds is generally exempt from federal income tax and is NOT included in net investment income for NIIT purposes. While municipal bonds typically offer lower yields than taxable bonds, the combined tax savings (federal income tax + NIIT) can make them attractive for high-income investors.

5. Strategic Timing of Income Recognition

If possible, spread large capital gains or other investment income across multiple tax years. For example, if you plan to sell a highly appreciated asset, consider selling portions over two or three years instead of all at once. This strategy can keep your MAGI below the threshold or reduce the amount subject to NIIT.

6. Maximize HSA Contributions

Health Savings Account contributions reduce your Modified AGI. For 2025, you can contribute up to $4,300 (individual) or $8,550 (family) to an HSA if you have a high-deductible health plan. HSA contributions are triple tax-advantaged: deductible when contributed, grow tax-free, and are tax-free when used for qualified medical expenses.

7. Real Estate Professional Status

If you earn rental income, you may be able to avoid NIIT by qualifying as a real estate professional. To qualify, you must spend more than 750 hours per year in real estate activities AND more than 50% of your total working hours on real estate activities, while materially participating in each rental activity. This is a high bar to meet, but if you qualify, your rental income is treated as active business income and exempt from NIIT.

8. Charitable Giving Strategies

Strategic charitable donations can help reduce your AGI. Consider donor-advised funds for large one-time contributions, Qualified Charitable Distributions (QCDs) if you're 70½ or older to satisfy RMDs without increasing AGI, or donating appreciated securities directly to charity to avoid capital gains tax and NIIT while deducting the fair market value.

Combined Tax Rates with NIIT

It's critical to understand that NIIT is in ADDITION to regular income tax and capital gains tax rates. For high-income earners in 2025, this creates effective federal tax rates that are significantly higher:

Income TypeRegular Tax RateWith NIIT
Ordinary Investment IncomeUp to 37%Up to 40.8%
Short-Term Capital GainsUp to 37%Up to 40.8%
Long-Term Capital Gains0%, 15%, or 20%3.8%, 18.8%, or 23.8%
Qualified Dividends0%, 15%, or 20%3.8%, 18.8%, or 23.8%

Note: These are federal rates only and do not include state and local income taxes, which can add 0% to 13%+ depending on your location, further increasing the overall tax burden on investment income.

Advantages of Understanding NIIT

  • Tax Planning Opportunities: Knowing your NIIT exposure allows you to implement strategies to minimize the tax through strategic timing, asset location, and deduction planning.
  • Investment Strategy Optimization: Understanding which income is subject to NIIT helps you make better decisions about where to hold different types of investments (taxable vs. tax-advantaged accounts).
  • Accurate Tax Withholding: Properly estimating NIIT liability helps you avoid underpayment penalties by adjusting estimated tax payments throughout the year.
  • Informed Financial Decisions: Knowing the true after-tax cost of different income sources helps you make better financial decisions about investments, real estate, and business activities.

Common Mistakes to Avoid

  • Ignoring NIIT in Tax Planning: Many taxpayers don't realize they're subject to NIIT until they file their tax return, missing opportunities for year-end planning strategies that could have reduced their liability.
  • Confusing NIIT with Income Tax Brackets: NIIT is a separate surtax, not a tax bracket. You pay regular income tax on all income, then separately calculate and pay NIIT on investment income if you exceed the thresholds.
  • Not Accounting for NIIT in Estimated Taxes: Failing to include NIIT in quarterly estimated tax payments can result in underpayment penalties, even if you paid enough to cover regular income tax.
  • Misunderstanding Material Participation: Claiming exemption from NIIT based on material participation in business or real estate activities without meeting the strict IRS requirements can trigger audits and penalties.
  • Overlooking the "Lesser Of" Rule: NIIT doesn't always apply to all your investment income—it only applies to the lesser of your NII or the amount you're over the threshold. Understanding this can affect planning strategies.

Frequently Asked Questions

Does NIIT apply to my IRA or 401(k) distributions?

No, distributions from qualified retirement accounts (401(k), traditional IRA, Roth IRA) are not considered net investment income and are not directly subject to NIIT. However, these distributions do increase your Modified AGI, which could push you over the NIIT threshold and cause more of your other investment income to be subject to the tax.

Can I deduct investment expenses to reduce my net investment income?

Under current tax law (through 2025), miscellaneous itemized deductions subject to the 2% floor are suspended, which includes many investment advisory fees and investment-related expenses. However, you can still deduct expenses directly related to producing rental income or royalties, which reduces your net investment income subject to NIIT.

Does the $250,000/$500,000 home sale exclusion protect me from NIIT?

Yes, if you sell your primary residence and qualify for the capital gains exclusion ($250,000 for single filers, $500,000 for married filing jointly), the excluded gain is not considered net investment income and is not subject to NIIT. However, any gain above these exclusion amounts is considered net investment income and may be subject to NIIT if you exceed the MAGI thresholds.

How do I report NIIT on my tax return?

If you owe NIIT, you must complete IRS Form 8960 (Net Investment Income Tax—Individuals, Estates, and Trusts) and attach it to your Form 1040. The calculated NIIT is then added to your total tax liability. The form requires detailed breakdown of your investment income sources and deductions.

Are Roth IRA conversions subject to NIIT?

No, Roth IRA conversions are not considered net investment income and are not directly subject to NIIT. However, the conversion amount increases your Modified AGI, which could push you over the NIIT threshold and cause more of your actual investment income to be subject to the tax. This is an important consideration when planning Roth conversions.

Can married couples filing separately avoid NIIT?

Generally, no. Married filing separately actually has the LOWEST NIIT threshold ($125,000 MAGI) compared to other filing statuses. This filing status is rarely beneficial for NIIT purposes and often results in higher overall taxes. Couples should carefully compare their total tax liability under different filing statuses.

How does NIIT affect trusts and estates?

Trusts and estates are subject to NIIT at much lower income thresholds. For 2025, trusts and estates are subject to NIIT when undistributed net investment income exceeds approximately $15,200 (the amount at which the highest trust tax bracket begins). This makes trust and estate planning for NIIT particularly important for high-net-worth individuals.

What records should I keep for NIIT purposes?

Maintain detailed records of all investment income sources, expenses directly related to producing that income, time logs for material participation claims (especially for real estate professionals), and documentation of tax-loss harvesting transactions. Keep records for at least 3 years (or 6 years if you have substantial underreporting), and longer for real estate and other long-term investments.

Will the NIIT thresholds ever be adjusted for inflation?

The NIIT thresholds are not currently indexed for inflation and have remained unchanged since 2013. Any adjustment would require Congressional action. There have been proposals both to eliminate NIIT and to expand it, but as of 2025, no changes have been enacted. Taxpayers should stay informed about potential tax law changes.

Should I work with a tax professional for NIIT planning?

If you're close to or above the NIIT thresholds, working with a qualified CPA or tax advisor is highly recommended. NIIT planning can be complex, especially when coordinating with other tax considerations like Alternative Minimum Tax (AMT), state taxes, and retirement planning. A professional can help develop strategies tailored to your specific situation and potentially save you thousands of dollars in taxes annually.

Take Action Today

Use the calculator above to estimate your Net Investment Income Tax liability and explore different scenarios. If you're approaching or exceeding the NIIT thresholds, consider implementing tax-reduction strategies before year-end. Review your portfolio allocation, maximize retirement contributions, and explore tax-loss harvesting opportunities. Consult with a qualified tax professional to develop a comprehensive strategy tailored to your financial situation.