IRS Topic 559 lists interest, dividends, certain annuities, royalties, rents and capital gains among the income that counts. The tax is charged in addition to regular income tax.
Formula
NIIT = 3.8% × min(net investment income, MAGI − threshold)
- MAGI: modified adjusted gross income.
- Threshold: $200,000 single or head of household, $250,000 married filing jointly, $125,000 married filing separately.
If MAGI is below the threshold, NIIT is zero. These thresholds are written into the law and have not been adjusted for inflation.
Example
A single filer has MAGI of $230,000, including $20,000 of dividends. The excess over the threshold is $30,000. The smaller of $20,000 and $30,000 is $20,000, so NIIT = 3.8% × $20,000 = $760.
With MAGI of $210,000 and the same dividends, the excess is only $10,000, so NIIT = 3.8% × $10,000 = $380.
The capital gains calculator adds NIIT to its estimate, and how are dividends taxed shows how it combines with the 0/15/20% rates.