A corporation can do a 1031 exchange. Section 1031 lets any “taxpayer” defer capital gains on a swap of business or investment real estate for other real property of like kind, and corporations qualify as taxpayers.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The harder question is whether the deferral is worth it. That depends on the entity type, the exit plan, and half a dozen procedural rules that will void the exchange if any one of them slips.
C-Corp or S-Corp Changes the Answer
Both flavors of corporation can defer gain under Section 1031. The economics are not the same.
A C-Corp defers the corporate-level tax on the sale, and the untaxed gain stays embedded in the replacement property through a lower carryover basis. The trouble comes at the exit. When the C-Corp eventually sells the replacement property in a taxable transaction or liquidates, it pays tax on the recognized gain at the 21% corporate rate.2Office of the Law Revision Counsel. 26 USC 11 – Tax Imposed The after-tax proceeds then move to shareholders as a dividend or liquidating distribution, and shareholders owe a second layer of tax, typically at long-term capital gains rates, on the amount above their stock basis. Higher-income shareholders may also owe the 3.8% Net Investment Income Tax on top.3Internal Revenue Service. Net Investment Income Tax The 1031 postpones the first layer. It does nothing about the second.
For a C-Corp that plans to keep holding real estate and keep exchanging indefinitely, that deferral has real value. For a C-Corp that expects to wind down or sell the business, the exchange often just delays the moment when both layers hit.
An S-Corp fits 1031 more cleanly. Gains pass through to shareholders’ individual returns, but when the S-Corp completes a valid exchange, no gain reaches those returns in the exchange year. There is no corporate-level tax and no shareholder-level tax that year.
The trade-off is basis. Because the deferred gain is never recognized, shareholders’ basis in their S-Corp stock does not go up by the deferred amount. That low stock basis can create surprises later. A future cash distribution that exceeds a shareholder’s stock basis is taxed as capital gain. A sale of the shareholder’s stock produces a larger gain than the sale price alone would suggest. The deferral is real; the basis has to be tracked.
Built-In Gains Tax After a C-to-S Conversion
Corporations that started as C-Corps and later elected S status carry a separate risk. Under Section 1374, any asset held on the conversion date has a built-in gain equal to the difference between its fair market value and basis on that date. If the S-Corp sells that asset within five years of the S election, the built-in gain is taxed at the corporate level at 21%.4Office of the Law Revision Counsel. 26 USC 1374 – Tax Imposed on Certain Built-In Gains
A 1031 exchange defers the built-in gains tax but does not erase it. The deferred gain attaches to the replacement property. Sell that replacement inside the remaining recognition period without another exchange, and the built-in gains tax comes due. The five-year clock runs from the first day of the first S-Corp tax year, not from the exchange date.4Office of the Law Revision Counsel. 26 USC 1374 – Tax Imposed on Certain Built-In Gains Running the clock out through a chain of exchanges is a legitimate approach, but the timing has to be intentional.
The 45-Day and 180-Day Deadlines
Most corporate exchanges are deferred exchanges: the relinquished property sells first, and the replacement comes later. Two deadlines govern the sequence, and missing either one ends the exchange.
Within 45 days of transferring the relinquished property, the corporation must identify potential replacement properties in writing. Within 180 days of that same transfer, or by the due date of the tax return (including extensions) for the year of the transfer, whichever comes first, the corporation must close on at least one identified replacement.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Neither clock extends for weekends, holidays, or any other reason.
The identification goes to the qualified intermediary or another party in the exchange, and it must be specific. The corporation can name up to three properties of any value, or more than three if their combined value is no greater than 200% of the relinquished property’s sale price. For exchanges that begin late in the tax year, a corporation without a filed extension can see its 180-day window truncated by the return due date, which catches taxpayers off guard more often than the calendar itself does.
The Qualified Intermediary Rule
A corporation cannot deposit the sale proceeds in its own account and then buy the replacement. Actual or constructive receipt of the funds at any point during the exchange collapses the transaction, and the gain is taxable immediately.
The qualified intermediary sits between the two closings. Under Treasury Regulations, the intermediary enters a written agreement with the taxpayer, takes the relinquished property, transfers it to the buyer, then acquires the replacement property and transfers it to the taxpayer.5eCFR. 26 CFR 1.1031(b)-2 – Safe Harbor for Qualified Intermediaries The corporation’s rights to receive, pledge, or borrow against the held funds have to be restricted during that window.
The intermediary must be independent. Anyone who has been the corporation’s agent within the prior two years, including its attorney, accountant, real estate broker, or employee, is generally disqualified. Using a related party or recent agent to hold the funds is one of the fastest ways to kill an otherwise valid exchange. Qualified intermediaries are not federally regulated, so bonding, insurance, and fund segregation are worth checking before wiring anything.
Boot Triggers Partial Gain
A clean exchange trades real property for real property of equal or greater value with nothing left over. Real transactions rarely match up that neatly. Any cash, non-real-property assets, or net debt relief the corporation receives is “boot,” and boot triggers gain recognition.
Gain is recognized up to the amount of boot received, capped at the total realized gain on the relinquished property.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Sell a property for $2 million with a $500,000 basis, buy a replacement for $1.8 million, and the $200,000 difference is boot. The corporation recognizes $200,000 in gain even though the rest of the exchange still defers.
Debt relief creates boot more often than leftover cash does. If the old property carried a $1 million mortgage and the new one carries $700,000, the $300,000 in net debt relief is treated as boot. The corporation can offset mortgage boot by adding cash to the exchange, but the fix has to be built into the closing. After the closing, nothing can be done.
The “Held for Investment” Line
Both properties must be held for productive use in a trade or business or for investment.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment A headquarters, a rental portfolio, or an operating warehouse all qualify. Real estate held primarily for sale to customers in the ordinary course of business, known as dealer property, does not.6Internal Revenue Service. Like-Kind Exchanges – Real Estate Tax Tips
A corporation that buys houses, renovates them, and flips them is holding inventory. A development company that subdivides land and sells lots is holding inventory. The IRS looks at the whole picture: how long the property was held, how many properties the corporation sells in a year, the marketing and sales activity, and whether there’s a pattern of buying to resell.
The statute contains no bright-line safe harbor for holding period. Holding a property one to two years with a genuine business or rental use provides much stronger footing than a quick turnaround. Corporations that operate on both the development side and the investment side of real estate often use separate entities so the dealer character of one book doesn’t contaminate the other.
Related Party Exchanges
An exchange between a corporation and a related party triggers extra rules aimed at basis-shifting arrangements. Related parties include anyone connected to the corporation through more than 50% common ownership, plus the other relationships listed in Section 267(b), such as members of a controlled corporate group.7Office of the Law Revision Counsel. 26 USC 267 – Losses, Expenses, and Interest With Respect to Transactions Between Related Taxpayers
The main restriction is a two-year holding period. If either side disposes of the property received within two years, the deferred gain from the original exchange snaps back and becomes taxable as of the disposition date.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Disposition means any sale, gift, or transfer.
Three narrow exceptions apply: death of either party, a compulsory or involuntary conversion such as eminent domain, or a showing to the IRS that neither the exchange nor the disposition had tax avoidance as a principal purpose.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The third one reads broadly and is applied narrowly. Separate from the two-year rule, the statute disqualifies any exchange structured as part of a transaction designed to circumvent the related party rules, no matter how long the property is held.
Reporting on Form 8824
A corporation that completes a like-kind exchange files Form 8824 with its tax return for the year of the exchange. The form asks for the property details, transfer and receipt dates, the relationship between the parties, and the gain computation.8Internal Revenue Service. Form 8824 – Like-Kind Exchanges A related-party exchange requires the other party’s name, identifying number, and relationship in Part II.
The form also carries forward the deferred gain and the basis of the replacement property. That matters for every future year the property is held. Corporations that run serial exchanges, rolling deferred gain from one property into the next across many years, need clean records at every step. Each new exchange carries the whole accumulated deferred gain, and one failed link recognizes the full stack.
State Conformity
Federal deferral does not guarantee state deferral. Most states follow the federal treatment, but some impose additional requirements or do not fully conform. A few require the replacement property to be located in-state, and sourcing rules for gain on real property vary. A corporation with property or filings in multiple states should confirm conformity in each one before assuming the deferral holds at every level.