Skip to main content

    Can investment gains trigger the net investment income tax?

    Skip to answer
    Retirement & Financial Planning

    Published October 22, 2026

    Sources we cited
    Detailed Answer

    Yes. A taxable investment gain can increase both net investment income and modified adjusted gross income, potentially triggering the federal net investment income tax, or NIIT. For individuals, the tax is 3.8% of the smaller of net investment income or the amount modified adjusted gross income exceeds the applicable filing-status threshold. It is separate from regular income tax, not a replacement capital-gain rate.

    Identify the income included in the calculation

    The IRS net investment income tax overview lists interest, dividends, capital gains and certain other investment income. A taxable stock sale can contribute its net gain after the applicable rules, not its entire proceeds. Qualified dividends can still be investment income even though they qualify for preferential regular income-tax rates. Short-term and long-term gains can both matter.

    Net investment income is not simply the total of every brokerage deposit. The Form 8960 instructions address capital-loss netting, permitted deductions and adjustments. Tax-exempt municipal interest generally is excluded. Gains excluded from gross income generally are not added back merely because the transaction involved an investment. Special business, foreign-income and real-estate rules need separate analysis beyond this securities example.

    Wages, Social Security benefits and distributions from qualified retirement plans and IRAs generally are not net investment income. But taxable amounts from those sources can increase modified adjusted gross income and expose other investment income to NIIT. That distinction is especially important near retirement: income can affect the threshold test without being taxed as investment income itself.

    Compare modified income with the threshold

    For individuals, the thresholds are $200,000 for single or head-of-household filers, $250,000 for married filing jointly or a qualifying surviving spouse, and $125,000 for married filing separately. These statutory thresholds are not indexed annually for inflation. Estates and trusts use a different threshold framework; do not apply these individual limits to a trust's own return.

    Modified adjusted gross income for NIIT generally begins with adjusted gross income, with specified adjustments such as certain foreign earned income exclusions. It is not taxable income after the standard or itemized deduction. The ordinary long-term capital-gain rate bands therefore do not answer whether NIIT applies.

    Suppose, hypothetically, married joint filers have $280,000 of NIIT modified adjusted gross income and $50,000 of net investment income. Their threshold excess is $30,000. The smaller amount is $30,000, so NIIT is $1,140. Applying 3.8% to all $280,000 would be wrong, and applying it automatically to the full $50,000 would also overstate this example's tax.

    Test the two limits separately

    If those filers instead have $330,000 of modified adjusted gross income with the same $50,000 of net investment income, the threshold excess is $80,000. The smaller amount is now $50,000 and NIIT is $1,900. The tax is limited by investment income rather than by the threshold excess. These invented figures assume the net investment income amount has already been properly calculated.

    Conversely, a household above the threshold with no net investment income does not owe NIIT solely because its wages are high. A household with investment income but no threshold excess also has no individual NIIT under this formula. Other taxes can still apply in both cases. NIIT and the Additional Medicare Tax on certain earned income are distinct taxes despite some similar thresholds.

    Bring both income measures to the review

    Before a large taxable sale, assemble expected household income, realized gains and losses, capital-loss carryovers and investment-income records. Ask the preparer to calculate both regular federal tax and Form 8960 consequences. A regular gain rate of 15% does not prevent an additional 3.8% charge on the applicable portion. Estimated-payment coverage and Arizona tax are separate questions.

    Do not treat moving cash between accounts as removal of a realized gain, or assume reinvesting proceeds avoids NIIT. Decisions about selling, holding or changing accounts involve investment risk and other rules, not just one surtax. This page does not recommend an avoidance strategy.

    RJP's wealth-management service connects investment holdings with retirement goals, while portfolio optimization addresses portfolio structure and transitions. Ask about coordination with your qualified tax professional, who should determine modified income, permitted deductions and the actual NIIT calculation. Sources checked October 22, 2026.

    Get Started Today

    Need Help With Your Estate Plan?

    RJP Estate Planning works hand in hand with experienced estate planning counsel to help you understand your options.