How Does the Net Investment Income Tax (NIIT) Affect 1031 Exchanges?

1031 exchange and tax planning guide

The short answer is this: a properly structured 1031 exchange can help defer both capital gains tax and the NIIT, but it does not make the tax disappear forever. The NIIT is a 3.8% tax on certain investment income for high-income taxpayers, and it can apply when investors eventually cash out or when part of a deal does not qualify for full 1031 treatment.

What the NIIT is

The Net Investment Income Tax is an extra federal tax that applies to certain investment income, including gains from real estate sales, for taxpayers above certain income thresholds. For many real estate investors, that means a sale can trigger not only regular capital gains tax, but also the additional 3.8% NIIT if the transaction produces taxable investment income and the taxpayer’s income is high enough.

This tax matters because it can quietly increase the total cost of selling an investment property. In plain English, the IRS may take a bigger bite than many sellers expect if the sale is taxable and their income is above the limit.

How a 1031 exchange changes the picture

A 1031 exchange allows an investor to sell qualifying investment or business real estate and reinvest the proceeds into another like-kind property, which can defer capital gains tax. When the exchange is fully completed under the rules, the gain is generally deferred rather than recognized right away, and that also means the NIIT tied to that gain can be postponed as well.

That is the key benefit: the tax is delayed, not erased. So if you trade one property for another and follow the 1031 rules carefully, you may keep more money working for you now instead of sending a large chunk to taxes immediately.

When NIIT still applies

The NIIT can still come into play if the exchange is only partially successful or if the investor later sells the replacement property without another exchange. For example, if some of the proceeds are not reinvested, or “boot” is received, that taxable portion may be subject to regular tax and potentially NIIT too.

NIIT can also matter if the taxpayer’s income is above the threshold and they are earning other investment income, such as rental income or other passive income. In those situations, a 1031 exchange helps with deferral, but it does not shield all future investment income from the NIIT.

Why investors use 1031 exchanges anyway

Investors use 1031 exchanges because deferring tax can improve cash flow and preserve more equity for the next deal. Instead of paying tax immediately on a sale, they can roll more money into a replacement property and potentially grow faster over time.

This is especially useful for real estate owners who want to upgrade properties, diversify locations, or shift into a more profitable asset without taking a tax hit right away. The NIIT is still part of the overall planning picture, but a well-executed exchange can reduce the amount of gain currently exposed to it.

Simple example

Suppose an investor sells a rental property at a gain and qualifies for a 1031 exchange. If the exchange is fully structured and all proceeds are reinvested into a replacement property, the gain is generally deferred, which means the NIIT on that gain is also deferred for now.

Now suppose the investor keeps some cash from the sale or the deal does not meet the exchange rules. That leftover taxable amount may be exposed to both regular tax and NIIT, especially if the investor’s income is above the NIIT threshold. So the tax result depends heavily on how the exchange is structured, not just on the sale itself.

What to watch for

A few details matter a lot in NIIT and 1031 planning. The replacement property must qualify, the timing rules must be followed, and the investor should avoid receiving taxable cash or other boot if the goal is full deferral.

It is also important to remember that NIIT is tied to income level and investment income rules, so a taxpayer’s total financial picture matters. A 1031 exchange can be a powerful tax strategy, but it works best when the deal is designed carefully from the start.

Final takeaway

A 1031 exchange can help defer the NIIT because the gain from a qualifying like-kind exchange is generally not recognized right away. But if the exchange is incomplete, if boot is received, or if the property is later sold outside another exchange, NIIT may apply to the taxable portion.

In short, the NIIT does not cancel a 1031 exchange, and a 1031 exchange does not permanently erase NIIT. It mainly shifts the tax bill into the future, which is why it remains such a useful strategy for real estate investors.