The net investment income tax (NIIT) was sold as a levy on the wealthy. But its thresholds, $200,000 of modified adjusted gross income (MAGI) for single filers and $250,000 for married couples filing jointly, have never been adjusted for inflation since the tax took effect in 2013, leaving more and more Americans getting a surprise tax hit via the NIIT, aka the . As wages and asset values rise, more households cross the line every year. Revenue from the tax has grown from roughly $16.5 billion in 2013 to nearly $60 billion in 2021, and the number of affected taxpayers has grown from about 3.1 million to 7.3 million. Even if you don’t typically earn a high income, you can get hit with this tax if you sell a home or realize large gains from your stock portfolio.
With year-end approaching, you still have time to act. The good news is that this surtax is one of the more plannable taxes in the code. The bad news is most people don’t learn this tax exists until they get hit with it for the first time when filing their taxes (and there is little they can do to soften the big tax hit). Here is how it works and what you can do about it.
If nothing else, remember shouldn’t be something you do only once a year when you file your taxes. A little extra work throughout the year can bring huge tax savings for those willing to do it, or for those working with a fabulous CFP® who can handle it for them.
How the 3.8% NIIT Tax Works
The NIIT is not a flat 3.8% on all your investment income. It applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold for your filing status: $200,000 for single and head-of-household filers, $250,000 for married couples filing jointly and qualifying surviving spouses, and $125,000 for married filing separately. For most people, MAGI is the same as adjusted gross income (AGI). Sorry to get so jargony here, but it helps explain why so many people get confused and frustrated when they see their tax spike due to the NIIT.
Consider a single filer with $180,000 of salary who sells long-held stock for a $100,000 gain. MAGI rises to $280,000, which is $80,000 over the threshold. Because the excess is smaller than the gain, the surtax applies to $80,000, or about $3,040. The tax stacks on top of regular tax, so a long-term gain taxed at 20% can effectively cost 23.8% at the federal level, before any state tax. In a high-tax state like California, where the top rate is 13.3%, the combined burden can be steep. If you live in California, or dream of retiring to someplace fabulous like Palm Springs, CA treats capital gains as regular income.
Many taxpayers are surprised because they think only about their paychecks. Wages are not investment income, but they do raise MAGI, which can expose investment income you already had.
What Counts, And What Doesn’t For The NIIT Surtax
Net investment income generally includes interest, dividends, capital gains, rental and royalty income, non-qualified annuity income, and income from businesses that are passive activities or that trade financial instruments. It does not include wages, self-employment income, Social Security benefits, tax-exempt municipal bond interest, or distributions from IRAs and qualified retirement plans. Gains on the sale of a primary residence that is excluded from regular income tax (up to $250,000 for singles and $500,000 for couples) are also not subject to the tax. However, capital gains on your home sale beyond these exclusion limits are counted towards NIIT.
Remember the trap: retirement plan distributions are not investment income, but they do increase MAGI and can pull other investment income into the surtax.
Tax Planning Strategies To Minimize the 3.8% Obamacare Tax
You may not be able to eliminate the surtax entirely, but with proactive planning you can often reduce it. These are the strategies I review with clients, particularly at year-end.
1. Run the Numbers Before December 31
Start with a projection of your MAGI and net investment income. Sometime around Thanksgiving is a good time to run this estimate. The “lesser of” rule tells you where to focus. If your MAGI is just above the threshold, lowering MAGI can shrink or eliminate the tax. If your MAGI is far above it, nearly all your investment income is exposed, and reducing investment income is the more effective lever.
2. Tax-Loss Harvesting To Offset Capital Gains
Realized capital losses offset capital gains dollar for dollar, which lowers net investment income. Excess losses can offset up to $3,000 of ordinary income each year and carry forward indefinitely. If you are winning big on one holding, look for losers elsewhere in the portfolio. Mind the wash-sale rule: repurchasing a substantially identical security within 30 days before or after the sale disallows the loss.
More on tax loss harvesting:
3. Manage The Timing Of Gains
Bunching a large gain into one year is a common trigger. Where you have flexibility, spread sales across several tax years, or push a sale into a year when your income will be lower. An installment sale can spread the gain on a business or property sale over multiple years. Be especially careful with stock option exercises, restricted stock vesting, and bonus payments, which all raise MAGI in the same year.
4. Lower Your MAGI
Reducing AGI can pull you under the threshold or shrink the excess. Pre-tax contributions to a 401(k), 403(b), or similar plan reduce AGI, as do contributions to a Health Savings Account if you are eligible, and deductible contributions to a retirement plan for the self-employed. Even modest reductions matter if you are close to the line.
Good news: if you are self-employed, you can still often open and fund a small business retirement plan (think Solo 401(k), SEP IRA, Cash Balance Plan) up to when you file your taxes, including extensions. This can be a great way to reduce your MAGI if you end up with way more income and/or investment gains than expected.
5. Use Smart Asset Location
Place tax-inefficient investments, such as taxable bonds, REITs, and high-turnover funds, inside IRAs and 401(k)s, where income is not net investment income. Hold tax-efficient index funds, exchange-traded funds, and long-term growth stocks in taxable accounts. A more tax-efficient taxable portfolio produces less annual interest, dividend, and capital-gain income to count.
6. Consider Municipal Bonds
Interest from tax-exempt municipal bonds is not subject to the NIIT and does not increase MAGI. For high earners in high-tax states, in-state municipal bonds can also reduce state tax. Compare after-tax yields, and check whether any of the interest could be subject to the alternative minimum tax.
7. Maximize Your Roth Accounts
Qualified withdrawals from a Roth IRA or Roth 401(k) are tax-free and do not raise MAGI, so they can fund spending in high-income years without triggering the surtax. A Roth conversion is different: the converted amount is not investment income, but it increases MAGI in the year of conversion and can expose other investment income. Converting in lower-income years, or in partial amounts that keep you under the threshold, is usually more effective.
8. Give Appreciated Assets To Charity
Donating appreciated stock held longer than a year to a charity or donor-advised fund typically avoids the capital gain entirely, which also avoids the 3.8% tax. At the same time, you may still claim a deduction. If you are 70½ or older, qualified charitable distributions (QCD) from an IRA go directly to charity and are excluded from AGI, which can help keep MAGI down and offset the effect of required minimum distributions.
9. Plan Around Real Estate
Before selling a highly appreciated home, review the primary residence exclusion of $250,000 for singles and $500,000 for couples. Gain above that may be subject to the surtax. For rental property, a 1031 like-kind exchange can defer gain, and rental income may fall outside the NIIT if you qualify as a real estate professional or the activity is a trade or business. These rules are technical, so document your hours and get advice.
10. Business Owners: Look At Participation
Income from an S corporation or partnership in which you actively participate is generally not net investment income, while passive income is. Material participation matters, and so does the structure of any sale. Gain from selling an active business interest may be partly excluded. Plan the transaction years, not weeks, before closing.
11. Consider Gifting And Basis Step-Up
Giving appreciated assets to family members in lower tax situations can shift income to people below the thresholds, subject to gift tax rules and the kiddie tax. Holding appreciated taxable investments until death generally gives heirs a step-up in basis, which can eliminate the embedded gain and the NIIT surtax on it. This isn’t exactly a near-term strategy, and it doesn’t apply to inherited IRAs, whose withdrawals remain taxable to heirs.
12. Watch Trusts And Estates
Trusts and estates reach the NIIT at a much lower level, about $16,000 of income for 2026, which is where the top trust tax bracket begins. Trustees should consider distributing income to beneficiaries who are below the individual thresholds, where the trust terms allow.
13. Don’t Get Caught Short On Payments
The NIIT is reported on Form 8960 and flows to your Form 1040. If your withholding and estimated payments do not cover it, you may face an underpayment penalty. Adjust withholding or make a fourth-quarter estimated payment if a large gain or conversion is coming.
Because the thresholds are fixed, the NIIT will keep reaching more households. The best defense is a plan: project your income, coordinate gains and losses, use retirement and Roth accounts wisely, and consider charitable and real estate strategies before you transact, not after. A surprise birthday party is fun; a surprise tax bill is not. Don’t fret if your eyes glazed over through much of this article (I apologize; it’s hard to make taxes exciting), but your should be able to ensure you are making the right moves to minimize your overall taxes each year so that you can stay on track for financial freedom.
Tax Planning Strategy To Maximize Your SALT Tax Deduction:

