How to Sell Rental Property Without Paying Taxes

The honest answer is that most rental-property owners are not making tax disappear. They are usually trying to defer current gain, exclude eligible gain, or recognize only part of the gain. Based on the IRS and Treasury sources listed below, the strongest source-supported path is a properly structured 1031 like-kind exchange. A second path may exist when the rental was also your main home during the relevant lookback period and the Section 121 exclusion applies. A partial 1031 exchange can still reduce current tax, but cash or other non-like-kind value you receive can be taxable.

A normal sale followed by a separate purchase is not the same thing. The IRS says that when you sell business or investment property at a gain, you generally pay tax at the time of sale; Section 1031 is the exception that can postpone tax if the proceeds are reinvested in similar property as part of a qualifying exchange (IRS Fact Sheet FS-2008-18).

This guide is deliberately source-bound. Common planning ideas such as opportunity zone planning, basis step-up at death, and loss harvesting are not summarized here because the locked source packet for this page does not include the governing authority for those strategies. Installment-sale treatment is mentioned only to the limited extent that the Form 8824 instructions point taxpayers to section 453(f)(6) and Form 6252 when applicable (IRS Form 8824 instructions).

Ranked options, from most direct to most limited

RankStrategyWhat it can doMain tradeoff
1Full 1031 exchangePostpone current gain when business or investment real property is exchanged for like-kind business or investment real propertyStrict exchange structure, identification rules, receipt deadline, and no premature receipt of proceeds
2Former-home Section 121 exclusionExclude eligible gain if the property was owned and used as the taxpayer’s main home for at least 2 years during the 5-year period ending on sale or exchangeDepreciation-related gain after May 6, 1997 is not eligible for the exclusion
3Combined Section 121 and 1031 treatmentExclude eligible residence gain first, then defer remaining qualifying exchange gainRequires both sets of rules to fit the facts
4Partial 1031 exchangeDefer part of the gain while recognizing gain tied to cash or other non-like-kind value receivedIt reduces current tax only partially; boot can be taxable
5Installment-sale reporting in an exchange contextForm 8824 instructions flag a possible Form 6252 issue when applicableThe source packet does not provide enough authority to explain stand-alone installment-sale planning

1. Full 1031 exchange: strongest deferral tool

A 1031 exchange can postpone recognition of gain when real property held for business or investment is exchanged solely for like-kind real property also held for business or investment. The IRS explains that, after the Tax Cuts and Jobs Act, Section 1031 applies only to exchanges of real property and not to personal or intangible property (IRS real estate tax tips).

For rental owners, the core idea is not complicated: you dispose of one qualifying rental or investment property and acquire qualifying replacement real property as part of an exchange. But the execution matters. The IRS distinguishes a deferred exchange from simply selling one property and using the proceeds to buy another property. In a deferred exchange, the sale and purchase must be mutually dependent parts of an integrated exchange transaction (IRS Fact Sheet FS-2008-18).

Two deadlines drive the process. Replacement property must be identified within 45 days after the relinquished property is transferred. The replacement property must then be received by the earlier of 180 days after the transfer or the due date of the income tax return for the transfer year, including extensions (IRS Form 8824 instructions).

The cash-control rule is just as important. The IRS FAQ says that when selling rental property in a like-kind exchange, you cannot take actual or constructive receipt of the sale proceeds. It also explains that safe harbors can avoid receipt, such as using a qualified intermediary or a qualified trust to hold and use sale proceeds for the replacement property (IRS FAQ: Sales Trades Exchanges 2). A qualified intermediary is therefore common, but the source does not make it the only possible safe harbor in every exchange structure.

2. Section 121 for a rental that used to be your home

The Section 121 exclusion is not a rental-property rule by itself. It applies to a taxpayer’s principal residence. But the IRS Form 8824 instructions state that Section 121 does not require the property to be the taxpayer’s principal residence on the sale or exchange date. If the property was owned and used as the taxpayer’s main home for at least a total of 2 years during the 5-year period ending on the exchange date, Section 121 may allow part or all of the gain figured on Form 8824 to be excluded (IRS Form 8824 instructions).

Treasury and IRS guidance in Rev. Proc. 2005-14 gives the same basic rule: Section 121 generally allows exclusion when the taxpayer owned and used the property as a principal residence for at least 2 years during the 5-year period ending on the sale or exchange date, with a general exclusion limit of $250,000, or $500,000 for certain joint returns (Rev. Proc. 2005-14).

The tradeoff is depreciation. Rev. Proc. 2005-14 states that gain attributable to depreciation adjustments for periods after May 6, 1997 is not eligible for the Section 121 exclusion. In practical terms, a former home that later became a rental may have a split result: some gain may be excluded under Section 121, while depreciation-related gain is not excluded by Section 121.

3. Combining Section 121 and 1031

Some former-home rentals can fit both rules. Rev. Proc. 2005-14 applies to taxpayers who exchange property that satisfies both the principal-residence exclusion requirements under Section 121 and the like-kind exchange nonrecognition requirements under Section 1031. It also states the ordering rule: Section 121 is applied to gain realized before Section 1031 (Rev. Proc. 2005-14).

That ordering matters. If a property was a qualifying principal residence during the lookback period and is investment property at the time of the exchange, eligible residence gain may be excluded first. Remaining gain that qualifies under Section 1031 may then be deferred through the exchange. The IRS example in Rev. Proc. 2005-14 describes a principal residence rented for less than 3 years before being exchanged for rental property and cash; the guidance says that exchange satisfies both Sections 121 and 1031 under the facts given.

This is powerful but fact-specific. The property must meet the residence-use test for Section 121 and the business-or-investment exchange requirements for Section 1031. If either side fails, the combined result can fail.

4. Partial 1031 exchange: less tax, not zero tax

A 1031 exchange does not have to be all-or-nothing. The IRS says that if, as part of an otherwise qualifying like-kind exchange, you also receive money or other non-like-kind property, gain is recognized to the extent of that money or other property; a loss is not recognized (IRS real estate tax tips).

That non-like-kind value is often called boot. Boot may be cash, non-like-kind property, or debt relief. The IRS fact sheet states that if you receive cash, relief from debt, or property that is not like-kind, you may trigger taxable gain in the year of the exchange (IRS Fact Sheet FS-2008-18).

A partial exchange can still be rational. An owner may prefer to keep some cash, buy a smaller replacement property, or reduce leverage. The tradeoff is that the exchange may defer only the remaining gain, while the boot portion can create current taxable gain.

Hypothetical examples

These examples use round numbers only and ignore closing costs, state tax, depreciation schedules, and return-specific reporting details.

Example 1: full 1031 deferral

An investor sells a rental property for $700,000 with an adjusted basis of $420,000. The realized gain is $280,000. The investor completes a qualifying exchange into like-kind replacement real property, receives no cash, and receives no other non-like-kind value.

ItemAmount
Sale price$700,000
Adjusted basis$420,000
Realized gain$280,000
Boot received$0
Current recognized gain in this simplified example$0
Gain deferred in this simplified example$280,000

The result is deferral, not forgiveness. The IRS fact sheet says gain deferred in a Section 1031 exchange is tax-deferred, but not tax-free; when the replacement property is ultimately sold outside another exchange, the original deferred gain plus additional gain is subject to tax.

Example 2: former home converted to rental

Assume a taxpayer sells a former main home that later became a rental. The sale price is $600,000 and adjusted basis is $360,000, producing $240,000 of realized gain. Assume $30,000 of that gain is attributable to depreciation adjustments after May 6, 1997, and the taxpayer otherwise qualifies for a $250,000 Section 121 exclusion.

ItemAmount
Sale price$600,000
Adjusted basis$360,000
Realized gain$240,000
Depreciation-attributable gain in this example$30,000
Non-depreciation gain$210,000
Section 121 exclusion applied in this simplified example$210,000
Gain not excluded by Section 121 in this simplified example$30,000

The point is not that every converted rental has this result. The point is that Section 121 can be valuable, but the IRS guidance does not let depreciation-attributable gain after May 6, 1997 disappear under Section 121.

Reporting and documentation

Like-kind exchanges are reported on Form 8824. The IRS real estate tax tips page says Form 8824 is used to report a like-kind exchange, and the Form 8824 instructions state that if you transferred property to another party in a like-kind exchange during the current tax year, you must file Form 8824 with your tax return for that year (IRS Form 8824 instructions).

The form asks for exchange facts such as descriptions of the exchanged properties, identification and transfer dates, related-party information, values, cash received or paid, liabilities relieved or assumed, adjusted basis, realized gain, and recognized gain. Because timing, proceeds control, depreciation, and residence history can change the result, the planning should happen before closing documents are finalized.

Frequently asked questions

Educational disclaimer

This article is general tax education for U.S. real estate investors. It is not legal, tax, accounting, or investment advice, and it does not apply the rules to your specific return, ownership history, depreciation records, financing, state tax position, or closing documents. Work with a qualified tax professional before listing, signing exchange documents, taking proceeds, or filing a return.

Primary sources

Find a specialist

Get matched with a qualified intermediary

Find a 1031 Specialist

Get connected with qualified intermediaries and tax professionals in your area.