NIIT Calculator
Find out if you owe the 3.8% Net Investment Income Tax (NIIT). Enter your income and investment details to calculate your NIIT liability based on IRS thresholds for your filing status.
Net Investment Income Tax
$1,520
3.8% tax on $40,000 of investment income
| Detail | Amount |
|---|---|
| Total Investment Income | $40,000 |
| MAGI Threshold | $200,000 |
| Excess MAGI | $50,000 |
| NIIT Base (lesser of above) | $40,000 |
| NIIT (3.8%) | $1,520 |
NIIT amount
Effective NIIT rate
MAGI threshold
The 3.8% Net Investment Income Tax applies to the lesser of net investment income or MAGI exceeding the threshold. Investment income includes capital gains, params.divs, interest, rental income, and royalties. It does not include wages, Social Security, or active business income.
Edit inputs ↑How the 3.8% Net Investment Income Tax works
The Net Investment Income Tax (also called the Medicare Investment Income surtax) is a 3.8% federal tax codified in IRC §1411, added by the Health Care and Education Reconciliation Act of 2010 and effective for tax years beginning after 2012. It runs on a separate track from regular income tax — you can owe NIIT even on income that already received preferential capital-gains rates, because the 3.8% layers on top of whatever ordinary or LTCG rate applies to the underlying investment income.
The math has a "lesser-of" structure that limits the bite to whichever is smaller: your net investment income, OR the amount by which your modified AGI crosses the threshold. So a filer with $80,000 of net investment income and $230,000 MAGI (single, $30,000 over the $200,000 threshold) owes 3.8% × $30,000 = $1,140 — not 3.8% × $80,000 = $3,040. You only pay on the "imported" income that pushes you across the line.
The IRS instructions for Form 8960 (the NIIT computation form, filed with Form 1040) walks the calculation line by line. Most high-income earners reconcile NIIT alongside the Additional Medicare Tax (Form 8959) — the two use the same $200,000/$250,000 dollar amounts (NIIT tests MAGI; Additional Medicare tests wages and self-employment income), and both are unindexed for inflation since enactment.
MAGI thresholds — frozen since 2013
The MAGI thresholds were set in the 2010 statute, effective from 2013, and have never been indexed for inflation. Roughly 30 years of accumulated wage and asset-price growth means the NIIT now hits a much larger slice of taxpayers than originally projected — a classic example of legislative fiscal drag.
| Filing status | MAGI threshold | First tax year |
|---|---|---|
| Single / Head of household | $200,000 | 2013 |
| Married Filing Jointly / Qualifying Surviving Spouse | $250,000 | 2013 |
| Married Filing Separately | $125,000 | 2013 |
MAGI for NIIT purposes equals AGI plus any foreign earned income exclusion (FEIE) you took on Form 2555 — most filers' MAGI equals AGI exactly. The threshold for trusts and estates is far lower: $16,000 for 2026 (indexed annually), which is why high-balance trusts often distribute investment income to beneficiaries before year-end.
What counts (and what doesn't) as net investment income
Counted as NII
- Taxable interest (1099-INT)
- Ordinary AND qualified dividends (1099-DIV)
- Short-term and long-term capital gains (Schedule D)
- Net rental income (Schedule E) — unless real-estate professional
- Royalty income (Schedule E)
- Income from non-qualified annuities
- Income from passive activities (Schedule E)
- Substitute payments in lieu of dividends (securities lending)
NOT counted as NII
- W-2 wages and self-employment income (those pay Additional Medicare, not NIIT)
- Social Security benefits
- Tax-exempt municipal bond interest
- Distributions from qualified retirement plans (401(k), IRA, Roth, pension)
- Income from a trade or business in which you materially participate
- Gain on sale of an active business interest (active partner / S-corp)
- Up to $250k single / $500k MFJ gain on principal residence sale (§121)
- Income from real estate trade/business if you qualify as a real-estate professional
Investment expenses (advisor fees, margin interest, state income tax allocable to investment income) reduce the gross investment income to arrive at NET investment income — but those deductions are limited under post-TCJA rules. The investment interest expense calculator handles the §163(d) limitation.
Worked examples
Four representative cases showing how the lesser-of mechanic limits the tax. All numbers are illustrative; the calculator above runs your exact figures.
Single, MAGI $230k, NII $80k
MAGI $30k over threshold; NII $80k. Lesser = $30k. NIIT = 3.8% × $30k = $1,140.
Takeaway: at this MAGI you only pay NIIT on the portion that crossed the threshold, not the whole $80k of investment income.
MFJ, MAGI $500k, NII $100k
MAGI $250k over threshold; NII $100k. Lesser = $100k. NIIT = 3.8% × $100k = $3,800.
Once MAGI is comfortably above threshold, the full NII gets taxed at 3.8%.
Single, MAGI $190k, NII $50k
MAGI below threshold. NIIT = $0 regardless of investment income volume.
Below the $200k threshold, NII is irrelevant for NIIT purposes.
Single retiree, MAGI $250k from RMDs + $200k LTCG
RMDs are excluded from NII (qualified plan distributions). NII = $200k LTCG. MAGI excess = $50k. Lesser = $50k. NIIT = 3.8% × $50k = $1,900.
Even though RMDs raise MAGI, they do NOT count as NII themselves — only the brokerage capital gains do.
Planning moves to reduce NIIT
- Tax-exempt municipal bonds. Interest from "muni" bonds doesn't count as NII and doesn't push MAGI either. The tax-equivalent yield calculator compares the after-tax yield of taxable vs muni at your marginal rate plus NIIT.
- Tax-loss harvesting. Realized capital losses offset realized gains dollar-for-dollar (with unlimited carryforward of net losses). Net losses also offset up to $3,000 of ordinary income per year. The tax-loss harvesting calculator models the effect; the wash sale calculator handles the §1091 30-day trap.
- Maximize 401(k) and Traditional IRA contributions. These reduce MAGI directly. Reducing MAGI below the threshold eliminates NIIT entirely (lesser-of becomes zero).
- Roth conversions in low-income years. Conversions are taxable as ordinary income but distributions from the eventual Roth are excluded from BOTH MAGI and NII. Pair with retirement-window planning between job exit and RMD start age (73).
- Real-estate professional status (REPS). If more than half of your working time and over 750 hours a year go to real property trades or businesses where you materially participate (either spouse alone can meet this on a joint return), the rental stops being passive per se. It leaves the NIIT base only if you also materially participate in the rental itself; the 500-hour safe harbor in Treas. Reg. §1.1411-4(g)(7) helps document that. The passive activity loss calculator handles the regrouping rules.
- Qualified Charitable Distributions (QCDs). Owners 70½+ can direct up to $108,000/year (2025) from an IRA directly to charity. The QCD satisfies the RMD but doesn't add to MAGI — keeping you below the NIIT threshold longer.
- Installment sales. Spreading gain recognition across multiple tax years can keep each year's MAGI under threshold. Works for real estate, business sales, and certain securities.
Common NIIT confusions
- NIIT and Additional Medicare Tax (AMT 0.9%) are NOT the same. The dollar amounts match ($200k/$250k), but the 0.9% surtax is tested on earned income (wages, SE) while the 3.8% NIIT is tested on MAGI and applies to investment income. A high-income filer with both wage and investment income can owe both.
- Selling your primary home usually does NOT trigger NIIT. §121 excludes up to $250k single / $500k MFJ of gain on a primary residence (lived in 2 of last 5 years). Only the excess gain above the §121 exclusion enters net investment income.
- S-corp distributions are NIIT-free IF you materially participate. Active S-corp owners' K-1 income is exempt from NIIT. Passive S-corp owners (silent investors) include K-1 income in NII.
- Roth IRA conversions raise MAGI but don't count as NII. The conversion amount is taxed as ordinary income and pushes MAGI up — that increased MAGI may pull MORE of your OTHER investment income into the lesser-of, increasing NIIT indirectly. Plan conversions carefully in years when you have a lot of dividend / capital gain income.
Frequently asked questions
What is the Net Investment Income Tax?
The NIIT is a 3.8% tax on investment income for individuals with modified adjusted gross income (MAGI) above certain thresholds: $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. Section 1411 was added by the Health Care and Education Reconciliation Act of 2010 and applies to tax years beginning after 2012.
What counts as net investment income?
Net investment income includes capital gains, interest, dividends, rental and royalty income, non-qualified annuities, and income from passive activities. It does not include wages, self-employment income, Social Security benefits, tax-exempt interest, or distributions from qualified retirement plans (401(k), IRA).
How is NIIT calculated?
The NIIT is 3.8% of the lesser of (1) your net investment income, or (2) the amount by which your MAGI exceeds the threshold. For example, if you're single with $250,000 MAGI and $80,000 investment income, the tax applies to the lesser of $80,000 or $50,000 (the excess MAGI), so you'd owe 3.8% × $50,000 = $1,900.
How can I reduce my NIIT?
Strategies include maximizing contributions to tax-deferred accounts (401(k), IRA), investing in tax-exempt municipal bonds, harvesting capital losses to offset gains, shifting to qualified dividend stocks, timing large capital gains events, and considering opportunity zone investments. Consult a tax advisor for personalized planning.
Are 401(k) and IRA withdrawals subject to NIIT?
No. Distributions from qualified retirement plans (Traditional 401(k), Traditional IRA, Roth IRA, pensions, 403(b), 457(b)) are explicitly excluded from net investment income under IRC §1411(c)(5). However, Traditional plan distributions DO add to your MAGI — which can push your other investment income into the NIIT base via the lesser-of mechanic.
Does NIIT apply to the sale of my home?
Only the gain that exceeds the §121 principal residence exclusion ($250k single / $500k MFJ if you lived there 2 of the last 5 years) becomes net investment income. If you have $400k gain as a single filer, the first $250k is excluded entirely; the remaining $150k may be subject to NIIT depending on your MAGI. Vacation homes and rental properties don't qualify for §121.
Are S-corp distributions subject to NIIT?
It depends on material participation. If you actively participate in the S-corp business (regularly and substantially involved), your K-1 income is excluded from NIIT. Silent investors with no material participation report K-1 income as passive — which IS net investment income. Reasonable W-2 wages from your S-corp are subject to FICA + Additional Medicare 0.9% (if >$200k), not NIIT.
How does NIIT interact with the Additional Medicare Tax?
The two taxes use the same dollar amounts ($200k single / $250k MFJ / $125k MFS) but test them differently and apply to DIFFERENT income. NIIT is 3.8% on investment income once MAGI passes the amount (Form 8960). Additional Medicare is 0.9% on wages and self-employment income above the amount, measured on that earned income rather than on MAGI (Form 8959). A high-income wage earner with a large brokerage portfolio can owe both: 0.9% on the wage portion above $200k AND 3.8% on the investment portion that crosses MAGI.
What is real-estate professional status (REPS)?
You qualify as a real-estate professional under §469(c)(7) when more than half of the personal services you perform in trades or businesses during the year are in real property trades or businesses in which you materially participate, and those services run past 750 hours. On a joint return the test is met if, and only if, either spouse separately meets it. Qualifying only lifts the rule that treats rental activity as passive per se. Rental income leaves the NIIT base when it is earned in the ordinary course of a trade or business you materially participate in. Treas. Reg. §1.1411-4(g)(7) treats a real-estate professional's rental income that way if you spent more than 500 hours in the rental activity that year, or more than 500 hours in any five of the ten preceding years. Missing that safe harbor does not by itself put the rental income in net investment income: you can still show from the facts that it is excluded under another part of §1411.
Do trusts and estates pay NIIT?
Yes, but at a much lower threshold. For 2026, trusts and estates owe NIIT on undistributed net investment income above $16,000 (the highest ordinary-income bracket threshold for trusts). Distributing investment income to beneficiaries shifts the NIIT calculation to the beneficiary's individual return — usually a lower-threshold problem. Grantor trusts (where the grantor pays tax) follow the individual threshold rules.
Are Roth conversions subject to NIIT?
The conversion itself is NOT net investment income — it's ordinary income from a qualified retirement plan distribution. But the conversion DOES add to MAGI, which can push other investment income across the NIIT threshold. This is why most planners suggest large Roth conversions in years with otherwise low investment income, and avoid converting in years with planned brokerage sales.
Are the NIIT thresholds ever going to be indexed?
Not under current law. The thresholds were set in the 2010 statute that added IRC §1411 without an indexing provision. Each Congress could amend, but no major legislation through 2025 (including OBBBA) changed them. The frozen-since-2013 thresholds make NIIT a textbook example of legislative bracket creep.
Sources
Related Calculators
Tax-Equivalent Yield Calculator
CD vs muni vs Treasury: after-tax yield comparison for your tax bracket + NIIT
Taxable vs Tax-Advantaged Savings
HYSA vs Roth IRA vs 401(k) vs muni bonds: after-tax future value comparison
Capital Gains Tax Calculator
LTCG 0/15/20% rates + 3.8% NIIT based on income brackets
Additional Medicare Tax Calculator
0.9% surtax on Medicare wages and self-employment income above $200k single, $250k MFJ (Form 8959)
Federal Income Tax Calculator
10–37% brackets, $16,100 standard deduction, progressive calculation
FICA & Social Security
6.2% SS to $184,500, 1.45% Medicare, 0.9% additional Medicare
Sold investments this year? Get a reminder before each federal tax deadline. One email before each quarterly estimated tax payment (Tax Day included), plus one when the IRS publishes next year's numbers. About five a year; you confirm once and can unsubscribe anytime.
Emails are sent with Kit. See our privacy policy.