complete.tools

Net Investment Income Tax Calculator

Calculate the 3.8% NIIT on investment income above MAGI thresholds (k single, k married)

What is the Net Investment Income Tax?

The Net Investment Income Tax (NIIT) is a 3.8% surtax on certain investment income for taxpayers whose Modified Adjusted Gross Income (MAGI) exceeds statutory thresholds. It was enacted as part of the Affordable Care Act in 2013 under Internal Revenue Code Section 1411 and has remained in effect since.

Unlike the regular income tax, the NIIT is an additional layer of tax that sits on top of ordinary income and capital gains taxes. It does not replace them — it adds to them. A taxpayer who owes the NIIT on long-term capital gains pays both the applicable long-term capital gains rate and the 3.8% surtax on the applicable amount.

The NIIT thresholds are not indexed for inflation, which means more taxpayers become subject to it over time as incomes rise. Understanding whether you owe the NIIT and how much is an important part of tax planning for investors, rental property owners, and high-income earners.

MAGI Thresholds by Filing Status

The NIIT applies only when your MAGI exceeds these thresholds:

- **Single or Head of Household:** \$200,000 - **Married Filing Jointly or Qualifying Widow(er):** \$250,000 - **Married Filing Separately:** \$125,000

These thresholds have not changed since the NIIT was introduced in 2013. Because they are not inflation-adjusted, a growing number of middle-to-upper-income taxpayers have become subject to the NIIT over time.

If your MAGI is below your filing status threshold, you owe no NIIT regardless of how much investment income you have.

How the NIIT is calculated

The NIIT equals 3.8% multiplied by the lesser of two amounts:

1. Your total net investment income, or 2. The amount by which your MAGI exceeds the applicable threshold

**Formula:** \`\`\` NIIT = 3.8% x min(Net Investment Income, MAGI - Threshold) \`\`\`

**Example 1:** A single filer has MAGI of \$280,000 and \$60,000 in net investment income.

- Excess MAGI = \$280,000 - \$200,000 = \$80,000 - Lesser of NII (\$60,000) and excess MAGI (\$80,000) = \$60,000 - NIIT = 3.8% x \$60,000 = \$2,280

**Example 2:** The same single filer but with only \$20,000 in net investment income:

- Excess MAGI = \$80,000 - Lesser of NII (\$20,000) and excess MAGI (\$80,000) = \$20,000 - NIIT = 3.8% x \$20,000 = \$760

The "lesser of" rule means that taxpayers who are only slightly over the MAGI threshold pay NIIT on a smaller base than their total investment income.

What counts as net investment income?

Net investment income includes passive income from financial assets and passive business activities. It broadly includes:

- **Interest income:** Taxable interest from savings accounts, CDs, bonds, Treasury securities, and similar instruments - **Dividend income:** Both ordinary dividends and qualified dividends from stocks, mutual funds, and ETFs - **Capital gains:** Short-term and long-term capital gains from sales of stocks, bonds, real estate, and other assets (unless excluded by home sale rules or other provisions) - **Rental income:** Net rental income from property you do not actively manage as a real estate professional - **Royalties:** Income from licensing intellectual property or mineral rights - **Passive business income:** Income from a business or partnership in which you do not materially participate

The word "net" is important: allowable investment expenses such as investment advisory fees, margin interest, and allocable state income taxes may be deducted before calculating NII.

What does NOT count as net investment income?

Many common types of income are excluded from the NIIT calculation:

- **Wages and salaries:** W-2 income from employment is never subject to NIIT - **Self-employment income:** Active business income is excluded (subject to self-employment tax instead) - **Social Security benefits:** Not included in NII at any income level - **IRA and 401(k) distributions:** Retirement account distributions are not NII, though they do count toward MAGI - **Tax-exempt interest:** Municipal bond interest is excluded from NII, though it is included in MAGI - **Non-passive business income:** If you materially participate in a business, that income is excluded

The exclusion of IRA and 401(k) distributions from NII is notable. While those distributions raise your MAGI and can push you over the threshold, the distributions themselves are not taxed by the NIIT. However, they can expose other investment income you have to the NIIT.

How to reduce NIIT

Taxpayers subject to the NIIT have several strategies to reduce or eliminate it:

- **Tax-loss harvesting:** Realizing capital losses to offset capital gains reduces both capital gains tax and NIIT exposure - **Tax-exempt investments:** Municipal bonds produce tax-exempt interest, which is excluded from NII (though it still counts toward MAGI) - **Retirement account contributions:** Maximizing pre-tax 401(k), IRA, or SEP-IRA contributions reduces MAGI, potentially bringing it below the threshold - **Charitable giving:** Qualified Charitable Distributions (QCDs) from IRAs and donor-advised funds can reduce MAGI - **Deferring income:** Installment sales, timing of bonus income, or deferred compensation arrangements can shift MAGI into future years - **Active participation in rental activities:** If you qualify as a real estate professional under IRS rules, rental income may be treated as active rather than passive, removing it from NII - **Health Savings Accounts (HSAs):** HSA contributions reduce MAGI while building tax-free healthcare savings

Tax planning for NIIT is most effective when done proactively, not at year end. Working with a CPA or financial advisor can help identify the right combination of strategies for your situation.

FAQs

Q: What is the NIIT rate? A: The NIIT rate is 3.8% and has been unchanged since the tax took effect in 2013 under the Affordable Care Act. It is set by IRC Section 1411.

Q: Does the NIIT apply to retirement account distributions? A: No. Distributions from traditional IRAs, Roth IRAs, 401(k) plans, and other qualified retirement plans are not considered net investment income and are not subject to the NIIT. However, traditional (pre-tax) distributions do increase your MAGI, which could push you over the threshold and expose other investment income to the tax.

Q: Are Social Security benefits subject to the NIIT? A: No. Social Security benefits are not net investment income and are not taxed by the NIIT, even if a portion of your benefits is included in your taxable income for regular income tax purposes.

Q: Does the NIIT apply to capital gains from selling my home? A: It can. Capital gains from selling a primary residence that exceed the Section 121 exclusion (\$250,000 for single filers, \$500,000 for married filing jointly) are treated as NII. Gains within the exclusion limit are not subject to NIIT.

Q: If my MAGI is only slightly over the threshold, do I owe NIIT on all my investment income? A: No. The NIIT applies only to the lesser of your NII or the amount your MAGI exceeds the threshold. If your MAGI exceeds the threshold by \$10,000 and you have \$50,000 in NII, you only owe NIIT on \$10,000.

Q: Are qualified dividends treated differently for NIIT purposes? A: Qualified dividends are included in NII and are subject to the NIIT, even though they receive preferential rates for regular income tax. This effectively raises the total tax rate on qualified dividends for high-income taxpayers.

Q: Does the NIIT apply to self-employment income? A: No. Income from a trade or business in which you materially participate is not NII. Self-employment income is subject to self-employment tax, but not the NIIT.

Q: Is rental income always subject to NIIT? A: Not always. Net rental income is generally included in NII unless you qualify as a real estate professional under IRS rules (more than 750 hours per year in real property trades or businesses, with more than half your working time in real estate activities). Qualifying real estate professionals may treat rental activities as non-passive, removing them from NII.

How to use this calculator

1. Select your federal income tax filing status from the dropdown menu 2. Enter your Modified Adjusted Gross Income (MAGI) for the year — this is your gross income after above-the-line deductions but before standard or itemized deductions 3. Enter each type of investment income you received: interest, dividends, short-term capital gains, long-term capital gains, rental or royalty income, and other passive income 4. The calculator automatically sums your NII, computes the excess MAGI above your filing status threshold, and applies the 3.8% rate to the lesser amount 5. Review the results to see your estimated NIIT liability, effective rate on your investment income, and a breakdown of how the tax was calculated 6. If your MAGI is below the threshold for your filing status, the calculator will show that no NIIT applies

Results update automatically as you type. This tool is for estimation only. Consult a tax professional for advice specific to your situation.

Explore Similar Tools

Explore more tools like this one:

- Income Tax Calculator — Calculate income tax based on taxable income and filing... - Net Operating Income Calculator — Calculate NOI from rental income minus operating... - Net Worth Calculator — Calculate your net worth by comparing total assets to... - EB-5 Investment Visa Calculator — Calculate EB-5 visa investment requirements, fees, and... - Estate Tax Calculator — Calculate federal estate tax liability and exemptions