Learn
IRS Form 8960: Net Investment Income Tax (NIIT)
How to calculate the 3.8% Net Investment Income Tax on Form 8960. Covers what counts as net investment income, the MAGI thresholds, and strategies to reduce.
Start with the core idea
This guide is built for first-pass understanding. Start with the key terms, then use the framework in your own money workflow.
Form 8960 calculates the Net Investment Income Tax (NIIT); a 3.8% surtax on investment income for individuals with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly). Combined with the top long-term capital gains rate of 20%, the effective top rate on investment income can reach 23.8%. Like its companion tax on Form 8959, the NIIT thresholds are not indexed for inflation, drawing more taxpayers into its reach each year.
History and Origin
The Net Investment Income Tax was enacted alongside the Additional Medicare Tax as part of the Affordable Care Act (ACA) in 2010, taking effect on January 1, 2013. While the Additional Medicare Tax (Form 8959) targets high earners' wages and self-employment income, the NIIT was designed to capture investment income; interest, dividends, capital gains, rents, royalties, and passive business income; that had previously been exempt from any Medicare-related taxation.
Before the ACA, there was a notable asymmetry in the tax code: wages were subject to both income tax and payroll taxes (Social Security and Medicare), while investment income was subject only to income tax. The NIIT partially closed this gap by imposing a tax on investment income that mirrors the Medicare tax on wages.
The 3.8% rate was not arbitrary; it was designed to approximate the combined employer and employee Medicare tax rate (1.45% + 1.45% + 0.9% = 3.8%). The goal was to ensure that high-income individuals paid a similar level of Medicare-related tax whether their income came from wages or investments.
As with the Additional Medicare Tax, the NIIT thresholds ($200,000 for single filers, $250,000 for MFJ) were not indexed for inflation. In the decade-plus since the tax took effect, inflation has eroded the real value of these thresholds significantly, expanding the number of taxpayers subject to the NIIT well beyond what was originally intended.
Who Files It and When
You must file Form 8960 if you have net investment income and your modified adjusted gross income (MAGI) exceeds:
- $200,000; Single or Head of Household
- $250,000; Married Filing Jointly or Qualifying Surviving Spouse
- $125,000; Married Filing Separately
The 3.8% tax is applied to the lesser of your net investment income or the amount by which your MAGI exceeds the applicable threshold. This means:
- If you are single with $220,000 MAGI and $50,000 of net investment income, the tax applies to $20,000 (the excess over $200,000), not the full $50,000.
- If you are single with $300,000 MAGI and $50,000 of net investment income, the tax applies to $50,000 (the lesser of $50,000 NII and $100,000 excess).
Types of income included in net investment income:
- Interest, dividends, and annuities
- Capital gains (including gains from the sale of stocks, bonds, mutual funds, and real estate)
- Rental and royalty income
- Passive business income from partnerships and S corporations
- Non-qualified annuity income
Types of income excluded from net investment income:
- Wages and self-employment income (subject to Additional Medicare Tax instead)
- Distributions from IRAs, 401(k)s, and other qualified retirement plans
- Social Security benefits
- Tax-exempt interest (e.g., municipal bond interest)
- Veterans' benefits and Alaska Permanent Fund dividends
- Income from an active trade or business (material participation)
Key Sections Explained
Part I; Net Investment Income
This section calculates your total net investment income. You list each category of investment income (interest, dividends, annuities, rental/royalty income, capital gains, and other investment income) and then subtract investment expenses that are properly allocable to the investment income.
Deductible investment expenses include investment interest expense, investment advisory fees (to the extent they are still deductible; TCJA suspended the miscellaneous itemized deduction), state and local income taxes allocable to investment income, and penalties on early withdrawal of savings.
Part II; Modified Adjusted Gross Income
For most taxpayers, MAGI for NIIT purposes is the same as their regular adjusted gross income (AGI). The modification primarily affects taxpayers with foreign earned income excluded under Section 911; the exclusion is added back to AGI for purposes of this calculation.
Part III; Tax Computation
This is where the tax is actually calculated. The 3.8% rate is applied to the lesser of net investment income (from Part I) or the excess of MAGI over the applicable threshold (from Part II). The result is entered on your Form 1040 as an additional tax.
Common Mistakes
- Including retirement account distributions. Distributions from IRAs, 401(k)s, and other qualified plans are not net investment income, even though they may include interest and dividends earned within the account. This is one of the most frequently misunderstood aspects of the NIIT.
- Forgetting the material participation exception. If you materially participate in a business (you work in it regularly, substantially, and continuously), the income from that business is not subject to the NIIT. But if your involvement is passive — limited partnerships, rental activities where you are not a real estate professional; the income is included.
- Ignoring the impact of one-time events. A large capital gain from selling a home, business, or appreciated stock can push your MAGI above the threshold in a single year, triggering the NIIT on all your investment income. Planning around the timing of large dispositions can save significant tax.
- Not claiming deductible investment expenses. The NIIT allows you to reduce net investment income by allocable deductions. Missing investment interest expense or early withdrawal penalties means you pay the 3.8% tax on a larger base than necessary.
- Confusing NIIT with capital gains tax. The NIIT is a separate tax on top of regular capital gains tax. A taxpayer in the 20% long-term capital gains bracket pays 20% plus 3.8% NIIT, for a total of 23.8%.
Recent Changes
The NIIT thresholds have remained unchanged since 2013. Various legislative proposals have sought to modify the tax; some by expanding it to cover active business income for high earners, others by indexing the thresholds to inflation. The Biden administration proposed expanding the NIIT to cover all income above $400,000 for certain taxpayers, which would have significantly broadened the tax. This proposal was not enacted.
The real estate professional exemption continues to be an area of significant IRS scrutiny. Taxpayers who claim to materially participate in rental activities to avoid the NIIT on rental income must meet strict hourly and substantive tests. The IRS has increased audits of this claim, particularly for taxpayers with high rental income who also have other full-time occupations.
For taxpayers subject to both the NIIT and the Additional Medicare Tax, the combined additional burden is significant — up to 0.9% on earned income plus 3.8% on investment income, on top of regular income tax. This has made tax planning around the $200,000/$250,000 thresholds a priority for financial advisors.
How Clarity Helps
Clarity tracks all your investment income — dividends, interest, capital gains, and rental income — in real time alongside your earned income. By aggregating your complete financial picture, Clarity shows you exactly where you stand relative to the NIIT threshold throughout the year. This visibility helps you make informed decisions about when to realize capital gains, whether to harvest losses to offset gains, and how to structure investment income to minimize the 3.8% surtax.
For more details, visit the official IRS page for Form 8960.
This article is educational and does not constitute tax advice. Consult a qualified tax professional for guidance specific to your situation.
Core Clarity paths
If this page solved part of the problem, these are the main category pages that connect the rest of the product and knowledge system.
Money tracking
Start here if the reader needs one place for spending, net worth, investing, and crypto.
For investors
Use this when the real job is portfolio visibility, tax workflow, and all-account context.
Track everything
Best fit when the pain is scattered accounts across banks, brokerages, exchanges, and wallets.
Net worth tracker
Route readers here when they care most about net worth, allocation, and portfolio visibility.
Spending tracker
Route readers here when they need transaction visibility, recurring charges, and cash-flow control.
Frequently Asked Questions
What types of income are subject to the Net Investment Income Tax?
Net investment income includes interest, dividends, capital gains, rental and royalty income, non-qualified annuities, and income from passive business activities. It does not include wages, self-employment income, Social Security benefits, or distributions from most retirement plans.
How is the NIIT calculated?
The 3.8% tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds the threshold ($200,000 single, $250,000 married filing jointly). So if your MAGI is $280,000 and your net investment income is $50,000, you pay 3.8% on $30,000 (the excess over the threshold).
Does the NIIT apply to the sale of a primary residence?
Gain excluded under the Section 121 home sale exclusion ($250,000 single, $500,000 married) is not subject to the NIIT. However, any gain above the exclusion amount is net investment income and may be subject to the 3.8% tax if your MAGI exceeds the threshold.
Citations
Legacy source context
Undated
View source
Try this workflow
Use this with your real data
Apply this concept with live balances, transactions, and portfolio data — not a static spreadsheet.
Next best pages
Graph: 4 outgoing / 1 incoming
blog · explains · 84%
Short-Term vs Long-Term: The $47K Difference Nobody Calculates
Sell a stock at 11 months: 37% tax. Sell at 13 months: 20%. On a $275K gain, that two-month difference costs $47,000. Most investors don't track holding periods. They should.
blog · explains · 84%
When to Exercise Stock Options: A Decision Framework for Startup Employees
The tax implications of exercising stock options at the wrong time can cost more than the options are worth. A framework covering ISOs vs NSOs, AMT, 83(b) elections, and post-IPO strategy.
blog · explains · 84%
Tax-Loss Harvesting in Practice: When It Saves Money and When It Doesn't
Tax-loss harvesting can save thousands in a bad year and almost nothing in a good one. Here's when it creates real savings, when it merely defers taxes, and when it can hurt you.
learn · related-concept · 76%
Capital Gains Tax Explained: 2026 Short-Term vs Long-Term Rates
Capital gains tax applies when you sell investments for a profit. Here's how short-term and long-term rates differ, how to minimize your tax bill.
learn · related-concept · 76%
IRS Form 8949: Reporting Capital Gains and Losses
How to report sales of stocks, crypto, and other capital assets on Form 8949. Covers cost basis reporting, wash sales, and how the form flows into Schedule D.
learn · related-concept · 76%
IRS Form 8959: Additional Medicare Tax on High Earners
How to calculate the 0.9% Additional Medicare Tax on Form 8959. Covers income thresholds, withholding credits, and how this surtax interacts with.