The net investment income tax is a federal tax of 3.8 percent on investment income once modified adjusted gross income passes $200,000 for a single filer or head of household, $250,000 on a joint return or for a qualifying surviving spouse, and $125,000 for a married person filing separately. Those amounts are written into the tax code and are not adjusted for inflation. They have been the same since the tax started in 2013, while the regular income tax brackets rise every year.
What counts and what does not
The tax reaches interest, dividends, capital gains, rents, royalties, the taxable part of an annuity bought outside a retirement plan, and income from a business you invest in without working in it.
It does not reach wages, Social Security benefits, tax-exempt interest, self-employment income, unemployment pay, or the profit of a business you actively run. Withdrawals from a 401(k), 403(b), 457(b) plan or a traditional or Roth IRA are not investment income for this tax either.
That last point is the one that catches people. An IRA withdrawal is never taxed by the 3.8 percent, but it is part of adjusted gross income, so it can push total income over the line and expose other investment income to the tax.
How the tax is figured
The tax is 3.8 percent of whichever is smaller:
- your net investment income for the year, or
- the amount your modified adjusted gross income is over the line.
For most filers, modified adjusted gross income is simply adjusted gross income from Form 1040; it differs only for people excluding income earned abroad.
A worked example for a married couple filing jointly:
| Income in the year | Amount |
|---|---|
| Pension and wages | $180,000 |
| Traditional IRA withdrawals | $40,000 |
| Dividends, interest and capital gains | $60,000 |
| Modified adjusted gross income | $280,000 |
| Amount over the $250,000 line | $30,000 |
| Net investment income | $60,000 |
| Tax: 3.8% of the smaller, $30,000 | $1,140 |
Without the IRA withdrawals, the couple's income would be $240,000, under the line, and the tax would be zero. The withdrawals themselves are not taxed by the 3.8 percent, but they moved $30,000 of dividends and gains into it.
To redo it with your own numbers: take adjusted gross income, subtract your line, and compare the result to your investment income after related expenses. Multiply the smaller number by 0.038.
A home sale, a stock sale, one big year
Gain on selling your main home is left out of investment income up to the amount excluded from regular tax: $250,000 for a single filer and $500,000 for a married couple who meet the ownership and use tests. Only gain above that counts. Gain on a second home or a rental is investment income in full.
A single filer earning $150,000 who sells stock with a $90,000 gain has income of $240,000, which is $40,000 over the $200,000 line. The gain is $90,000, so the tax applies to the smaller amount, $40,000, and comes to $1,520. Spreading the sale over two calendar years can keep each year under the line; selling it in one year cannot.
Federal, and not adjusted
This is a federal tax, separate from any state income tax, and the lines are the same in every state. Each state taxes investment income under its own rules, and a state's treatment of a home sale or an IRA withdrawal may differ from the federal one.
Because the lines stay fixed while incomes and prices rise, the same real income sits closer to them every year. A raise, a required minimum distribution, a Roth conversion or a single large sale is often what does it. The retirement taxes guide shows how these pieces fit together, the required minimum distributions guide covers the withdrawals that cannot be put off, and the selling the family home guide covers the home sale exclusion in full.






