Can an S corporation do a 1031 exchange?

Trying to figure this out before we close on a sale. We have an S corporation that owns a commercial property we bought about eight years ago. We found a replacement property we like and the timeline works. My CPA mentioned 1031 exchanges are possible but got vague when I asked specifically about an S corp doing it. I've read conflicting things online — some sources say only individuals and partnerships can do it, others say any taxpayer can. We'd be looking at a significant gain if we have to recognize it, and the shareholders would each get a K-1 showing their share of that gain passing through. Can an S corporation do a 1031 exchange, or is there something about the S corp structure that blocks it?

39 comments

Yes, an S corporation can do a 1031 exchange. Section 1031 says "no gain or loss shall be recognized" on a qualifying exchange of real property held for productive use in a trade or business or for investment. It doesn't exclude S corporations. The entity itself owns the property, the entity completes the exchange, and if it qualifies, no gain flows through to the shareholders on their K-1s for that transaction.

Dana B.

Author

That's what I was hoping. So the gain just doesn't appear on the 1120-S at all if the exchange is done right?

Correct. If the exchange is fully qualifying — same taxpayer, properly identified replacement property within 45 days, closed within 180 days — no gain is reported. The deferred gain carries into the basis of the replacement property instead. If it's a partial exchange with boot received, only the boot portion triggers gain on the 1120-S and flows to the K-1s.

The "same taxpayer" rule is the one that actually trips up S corps. The entity that sells has to be the same entity that buys. So the S corp can't sell and have an individual shareholder buy the replacement property, and shareholders can't exchange their stock. The exchange has to be entirely within the S corp. Keep that airtight and you're generally fine.

Dana B.

Author

What if the property is titled in a shareholder's name but the S corp is the actual owner for tax purposes? Does that cause a problem?

Yes, that causes a real problem. The title should match the entity doing the exchange. If the property is titled differently from the tax owner, sort that out with a real estate attorney before you open the exchange — a qualified intermediary is going to look at title carefully.

Worth knowing: the basis in the replacement property inside the S corp carries the deferred gain. So when the S corp eventually sells that property in a taxable sale, the gain from both properties bunches together. Shareholders track their stock basis on Form 7203 when they file their own returns, but the deferred gain lives at the S corp level, not at the shareholder level.

Does the S corp's basis in the replacement property just equal the purchase price minus the deferred gain?

Roughly yes — the adjusted basis of the relinquished property carries over to the replacement property, adjusted for any boot paid or received. The 1120-S instructions and the exchange documents will give you the exact computation. Your intermediary should provide a closing statement that shows the numbers.

We went through this with an S corp rental property last year. I uploaded all our exchange documents and the draft 1120-S to taxr.ai and had it walk through each line of the return against the closing statements to make sure the deferred gain was reflected correctly in the basis carryover and not accidentally showing up as income. Caught a footnote in our depreciation schedule that needed adjusting. The rule itself is what your preparer handles, but having a second set of eyes on the actual numbers before filing was worth it.

Dana B.

Author

How did the depreciation work on the replacement property — did it start fresh from the new purchase price or from the carryover basis?

From the carryover basis, essentially. Because the basis carries over (adjusted for boot), you're not depreciating the full purchase price of the replacement property. Your depreciation going forward is based on that lower carried-over basis. Your CPA needs to set that up right in year one or it compounds.

One thing that can complicate this for S corps specifically: if the S corp has multiple shareholders at different ownership percentages, the deferred gain just sits in the entity. If a shareholder sells their stock before the S corp eventually sells the replacement property in a taxable event, that deferred gain affects what a buyer should pay for the stock, but it's not separately tracked on the K-1 during the deferral period. Something to flag in any shareholder agreement or stock sale negotiation.

Dana B.

Author

We only have two shareholders so it's not super complicated, but good to know for the future.

The qualified intermediary piece is non-negotiable. The S corp cannot touch the proceeds from the sale. If the funds hit the S corp's account even briefly, the exchange is blown. Use a qualified intermediary, get the exchange agreement signed before closing on the relinquished property, and don't close without it in place.

Depreciation recapture is a separate issue too. Even if the exchange defers the capital gain, the depreciation recapture under Section 1250 also defers into the replacement property's basis. It doesn't escape — it just waits. When the S corp eventually sells in a taxable transaction, that recapture comes back as unrecaptured Section 1250 gain on the K-1.

Is the unrecaptured 1250 gain shown separately on the K-1 when it eventually flows through?

Yes. When the S corp has a taxable disposition, the 1120-S Schedule K breaks out unrecaptured Section 1250 gain as a separately stated item, and each shareholder's K-1 Box 8c shows their share of it. It flows to Schedule D on the shareholder's individual return.

Ran into an issue where our S corp's exchange almost fell apart because the 45-day identification window opened at closing on the relinquished property and the replacement property wasn't formally identified in writing within that window. I uploaded the QI correspondence and the timeline to Taxr and it laid out exactly what documents we were missing and what the gap was. Ultimately we had to recognize the gain on that one. The rule is strict — the IRS does not grant extensions on the 45-day or 180-day deadlines except in presidentially declared disasters.

Dana B.

Author

That's a painful lesson. So there's really no way to fix a missed 45-day window after the fact?

Not in ordinary circumstances. The only relief is through disaster declarations under Revenue Procedure 2018-58. Miss the window and the exchange fails — full gain recognized on the 1120-S in that year, flows through to all shareholder K-1s.

S corps can also do reverse exchanges where the replacement property is acquired first through an exchange accommodation titleholder, before the relinquished property is sold. Same 45 and 180 day windows apply in reverse under Revenue Procedure 2000-37. More complicated and more expensive but useful when you find the replacement property first.

Dana B.

Author

Is a reverse exchange something a regular CPA handles or do you need someone specialized?

You need someone who has actually done them before. The exchange accommodation titleholder structure has specific requirements and the documentation is heavier than a forward exchange. Worth finding a CPA or attorney with exchange experience, not just general S corp experience.

The 180-day window for closing on the replacement property also has an interaction with the tax return due date. If your exchange period extends past the S corp's return due date — March 15 for a calendar-year S corp, or September 15 with a Form 7004 extension — you need the extension in place so the return due date doesn't cut the 180 days short. Check the Form 8824 instructions on the IRS site for how that interacts.

The 180-day window for closing on the replacement property also has an interaction with the tax return due date. If your exchange period extends past the S corp's return due date — March 15 for a calendar-year S corp, or September 15 with a Form 7004 extension — you need the extension in place so the return due date doesn't cut the 180 days short. Check the Form 7004 instructions on the IRS site for how that interacts.

Dana B.

Author

We're a calendar-year S corp and the replacement property closes in late October so we should be fine, but I didn't know the return deadline could cut the exchange window. Good catch.

It catches people off guard. The 180-day window ends at the earlier of 180 days or the due date of your return including extensions. File the extension early to protect the full 180 days if there's any chance you're close to the boundary.

Something people don't always check: the property has to be held for productive use in a trade or business or for investment on both sides. If the S corp flips properties or treated the relinquished property as inventory, Section 1031 doesn't apply. The intent and holding period matter and the IRS looks at the facts and circumstances. A short hold with a quick resale history is a red flag.

Dana B.

Author

Eight years of commercial rental, so we're clearly in investment use territory. No flipping history.

Eight years of rental is solid. Just flagging it because I've seen people assume any real property qualifies automatically.

Worth mentioning the shareholder basis side. During the deferral period the shareholders' stock basis on Form 7203 doesn't get a step-up for the deferred gain — that gain was never recognized. What does flow through each year is ordinary income, the depreciation from the replacement property (which will be lower given the carryover basis), and any other items. I uploaded our 7203 and the S corp's depreciation schedule to Taxr and it flagged that our depreciation deduction for the replacement property year one was overstated because the preparer had used purchase price instead of carryover basis.

Dana B.

Author

That's exactly the error I'd be worried about. How significant was the overstatement?

Meaningful enough to matter on the return. Fixing it meant amending both the 1120-S and our individual returns. Definitely worth checking before you file, not after.

To flag a potential misread above — the comment about the return due date cutting the 180-day window is correct but only applies when the return due date falls before the 180 days are up. If you close the relinquished property sale early in the tax year, the 180-day window ends well before the return is due anyway and there's no interaction. It only matters for sales late in the year.

Does the like-kind requirement still limit you to real property only? I know personal property got dropped from Section 1031 after 2017.

Yes, after the Tax Cuts and Jobs Act, Section 1031 applies only to real property. Personal property, equipment, vehicles — none of that qualifies anymore. For the S corp's commercial property exchange you're in the right asset class, but worth confirming everything being exchanged is real property and not, say, fixtures that might be classified as personal property.

What about tenant improvements the S corp paid for — are those real property?

Generally yes if they're attached to the real property and capitalized as part of the building. But if the S corp had separately capitalized equipment or personal property at the site, those don't ride along in the exchange. Your exchange documents and the allocation in the purchase agreement will determine what's real property vs. not.