See exactly how the 3.8% surtax applies to your dividends, interest, and capital gains — and how much of your investment income escapes it.
| Scenario | MAGI | Net Investment Income | NIIT Base | NIIT Owed |
|---|---|---|---|---|
| Single, below threshold | $186,000 | $6,000 | $0 | $0 |
| Single with dividends and gains | $259,000 | $36,000 | $36,000 | $1,368 |
| Married, large capital gain | $700,000 | $300,000 | $300,000 | $11,400 |
| Married filing separately, portfolio | $173,000 | $13,000 | $13,000 | $494 |
The crucial pattern: the surtax is charged on the smaller of your investment income and the amount by which MAGI exceeds the threshold. A retiree with $130,000 of dividends but only $175,000 of MAGI pays on the entire $130,000 — wages are not needed to cross the line.
| Counts Toward NII | Counts Toward MAGI Only | Counts Toward Neither |
|---|---|---|
| Interest and dividends | Wages and salaries | Social Security benefits |
| Capital gains, net of losses | Self-employment income | Tax-exempt municipal interest (MAGI only, actually) |
| Rental and royalty income | Taxable IRA and 401(k) distributions | Gain on the sale of an active business |
| Non-qualified annuity income | Retirement plan withdrawals | Alimony received under pre-2019 agreements |
One surprise: municipal-bond interest is excluded from net investment income but still lifts your modified AGI. Heavy muni holdings can therefore push you over the threshold even though the income itself is untaxed — once you are over, your other investment income bears the 3.8%.
The Net Investment Income Tax is a 3.8% surtax on top of your ordinary income tax, capital-gains tax, and any additional Medicare tax. Congress fixed the trigger points in statute and never indexed them to inflation, so more filers cross the line every year:
| Filing Status | MAGI Threshold |
|---|---|
| Single | $200,000 |
| Head of Household | $200,000 |
| Married Filing Jointly | $250,000 |
| Married Filing Separately | $125,000 |
| Qualifying Surviving Spouse | $250,000 |
A single filer earning a $210,000 salary plus $30,000 of dividends has MAGI of $240,000 — $40,000 over the $200,000 threshold. The excess ($40,000) is larger than the investment income ($30,000), so the surtax applies to $30,000 and costs $1,140. The rule is always the smaller of the two figures: investment income, or MAGI above the threshold.
| Strategy | How It Works | Requirement |
|---|---|---|
| Max out pre-tax retirement accounts | $23,500 into a 401(k) in 2025 lowers MAGI dollar for dollar | Must have earned income and a plan at work |
| HSA contributions | Pre-tax dollars reduce MAGI without a plan | Qualifying high-deductible health plan |
| Capital-loss harvesting | Realized losses offset gains and up to $3,000 of ordinary income | Watch the wash-sale rule across all accounts |
| Charitable bunching via a DAF | Donating appreciated stock avoids the gain and the NIIT | Itemizer; donor-advised fund fees |
| Maximize the qualified portion | Qualified dividends and long-term gains still get 0/15/20% but are never exempt from NIIT | None — planning only, not an exemption |
There is no special exemption for retirees. A household living off dividends, interest, and capital gains can owe the surtax with no wages at all, which is why the calculator accepts a zero-wage input.
⚠️ Important: This calculator estimates the 3.8% Net Investment Income Tax using the statutory MAGI thresholds, which are not indexed for inflation. It uses a simplified definition of net investment income and does not account for the proper allocation of investment interest expense, the exclusion for active business gains, state-level surtaxes, or the interaction with the alternative minimum tax. Form 8960 contains additional adjustments. This is not tax, legal, or accounting advice - consult a qualified tax professional about your specific situation.