Skip to main content
TaxesRental Property1031 ExchangeCapital GainsLandlord

How to Sell a Rental Property Without Paying Taxes

Legal strategies to defer or reduce the tax bill when selling a rental property: 1031 exchanges, depreciation recapture, installment sales, and what cash buyers have to do with any of it.

Published 6 min read
HT Written by Homewise Team
JL Edited by Joshuan Le
How to Sell a Rental Property Without Paying Taxes

The Short Version

You cannot eliminate the tax on a rental sale entirely in most cases, but you can defer it, reduce it, or spread it out. The 1031 exchange is the most powerful tool: roll proceeds into a new investment property and pay nothing now. Depreciation recapture is the tax most landlords do not see coming. Cash buyers can coexist with any of these strategies as long as you plan before you close, not after. Always work with a CPA and a qualified intermediary before acting.

45 Days
1031 identification deadline after closing
180 Days
1031 purchase deadline after closing
25%
Max federal depreciation recapture rate (verify with CPA)

Selling a rental property creates a tax bill that surprises many landlords. It is not just capital gains. Depreciation recapture, state taxes, and the net investment income tax can combine into a number significantly larger than most people expect. The good news: there are legal strategies to defer, reduce, or restructure that bill. The strategies require planning before you close.

None of the strategies below are tax advice. Tax law is complex, changes over time, and your situation depends on your income, holding period, and state of residence. Work with a CPA and a licensed tax professional before making any decision based on this information.

What taxes actually apply when you sell a rental property

Federal capital gains tax. The profit above your adjusted cost basis is subject to capital gains tax. If you held the property more than one year, you pay the long-term rate, which ranges from 0% to 20% depending on your taxable income in the year of the sale. Higher earners also owe the 3.8% net investment income tax on investment profits. These rates and thresholds change; verify current figures with your CPA.

Depreciation recapture. Every year you owned the rental property, you were allowed to deduct a portion of the building’s value as depreciation (typically over 27.5 years for residential property). When you sell, the IRS requires you to recognize those deductions as income, taxed at up to 25% federally. This applies whether or not you actually claimed the depreciation on your returns. On a property held for 10 or 15 years, depreciation recapture can rival or exceed the capital gains bill.

State income tax. Most states tax capital gains as ordinary income. A handful have no income tax. Rates and treatment of property sales vary significantly. Your state may allow deductions for federal capital gains taxes paid; your CPA should model your total bill at both levels.

The 1031 exchange: defer everything

The Section 1031 exchange is the most powerful legal tool available to investment property sellers. It allows you to sell one investment property and defer all capital gains tax and depreciation recapture by reinvesting into a like-kind replacement property.

The strict rules you must follow:

  1. You must use a qualified intermediary (QI). The QI is a neutral third party who receives your sale proceeds directly. You are not allowed to receive or control the money at any point. Set up the QI before your closing.

  2. You have 45 days from your closing date to identify potential replacement properties in writing. You can identify up to three properties, or more under certain rules. This deadline cannot be extended.

  3. You have 180 days from your closing date to complete the purchase of the replacement property. Again, no extensions.

  4. The replacement property must be of equal or greater value than what you sold (to defer the entire gain). If you buy down in value, you pay tax on the difference.

  5. All equity must be reinvested. If you receive any cash out at closing (the “boot”), that amount is taxable.

Miss any of these requirements and the exchange collapses. The full tax bill becomes due immediately. The IRS enforces these rules strictly.

What “like kind” means: Virtually any real property held for investment or business use qualifies. A single-family rental can be exchanged for an apartment building, commercial property, or land. It does not have to be the same type of property. It must be located in the United States.

Can a 1031 exchange work with a cash buyer?

Yes, with one important condition: set up the qualified intermediary before closing. Many landlords contact a QI after they accept an offer and have ample time. The mistake that kills a 1031 is accepting proceeds at closing before the QI structure is in place.

A cash buyer closes faster than a financed buyer, but “fast” is not the problem. Even a 7-day close gives you time to engage a QI if you start the moment you accept an offer. The 45-day identification clock starts the day you close, not the day you sign a contract.

To estimate your potential net proceeds across different tax scenarios, use the net proceeds calculator to model what you keep under a regular sale versus a 1031 exchange.

Installment sales: spread the tax over time

If a 1031 exchange is not right for you (maybe you want to exit real estate entirely), an installment sale lets you spread the tax liability over multiple years. Instead of a lump-sum payment, the buyer pays you over time, and you recognize gain and pay tax as payments arrive.

This works best when you own the property outright (no underlying mortgage to pay off at closing). It requires a willing buyer who can structure owner financing. Most cash buyers pay lump sum; installment sales are more common with individual buyers.

Key consideration: the depreciation recapture is generally taxed in full in the year of sale, even if you structure an installment sale. Only the capital gains portion can be spread out.

Documenting capital improvements to lower your taxable gain

Your taxable gain equals the sale price minus your adjusted cost basis. Every capital improvement you made during ownership increases your basis and reduces your gain dollar for dollar.

Capital improvements include:

  • New roof or HVAC system
  • Room additions or structural changes
  • Major renovations (kitchen, bathroom)
  • New flooring, windows, or siding

They do not include routine repairs and maintenance (painting a room, fixing a leaky faucet, replacing a light fixture). Keep documentation of all capital improvements you made while owning the rental. If records are incomplete, a CPA can help reconstruct what is supportable.

Converting to a primary residence: a limited option

The primary residence exclusion (Section 121) allows homeowners to exclude up to 250,000 dollars of gain (500,000 for married couples filing jointly) from a home sale if the home was their primary residence for at least two of the five years before the sale. This exclusion applies to the capital gain above the adjusted basis.

If you move into your rental and live there for at least two years before selling, you may qualify for a partial exclusion. However, depreciation recapture is not covered by the Section 121 exclusion; it is still taxable. The interaction between Section 121 and Section 1031 is complex. Do not attempt this strategy without a CPA and real estate attorney reviewing the specifics.

Working with a cash buyer alongside your tax strategy

The sell rental property fast situation page covers the mechanics of selling a rental quickly. A cash buyer accommodates tax strategies (1031, installment, timing) as long as the structure is arranged before closing. The buyer’s payment method matters far less than the pre-closing structure you put in place with your QI and CPA.

If you are considering a sale, use cash home buyers who are experienced with investor transactions and understand that QI requirements affect the closing mechanics.

The bottom line

You cannot legally avoid paying taxes on a rental sale in most situations. You can defer them indefinitely through a 1031 exchange, reduce them by documenting capital improvements, or spread the capital gains portion through an installment sale. Depreciation recapture is the tax that most often catches landlords off guard; plan for it before you sign a contract.

The most expensive mistake is closing without a strategy and then asking your accountant what could have been done. The second most expensive is missing the 1031 identification or purchase deadline because you did not engage a qualified intermediary early enough.

Start the conversation with a CPA and a qualified intermediary before you accept any offer.

Request a no-obligation cash offer to see your sale options today. We work with landlords on timing and structure.

FAQ

Frequently Asked Questions

What is the tax loophole for rental property?
The most widely used legal strategy is the Section 1031 exchange, which lets you sell one investment property and defer capital gains taxes by reinvesting in a like-kind property. The IRS allows this deferral indefinitely as long as you keep exchanging. It is not a loophole in the colloquial sense; it is a specific provision in the tax code. The tax is deferred, not erased, unless you hold the replacement property until death and your heirs receive a stepped-up basis.
What is a 1031 exchange and how does it work?
A 1031 exchange (named after IRS code section 1031) lets you swap one investment property for another of like kind and defer capital gains taxes. You must use a qualified intermediary to hold the proceeds, identify a replacement property within 45 days of your closing, and complete the purchase within 180 days. Miss either deadline and the deferral is lost. You cannot touch the sale proceeds yourself during the exchange period.
How do I avoid capital gains tax on a rental property sale?
Complete avoidance of capital gains tax is rarely possible on a rental sale. Deferral through a 1031 exchange is the most powerful strategy. You can also reduce the taxable gain by documenting all capital improvements made during ownership, which increases your cost basis and reduces the gain. If you convert the rental to your primary residence for at least two years before selling, a partial exclusion may apply, though this is complex. Consult a CPA for your specific situation.
What is depreciation recapture and how much will I owe?
When you own a rental property, you deduct depreciation each year as a tax benefit. When you sell, the IRS requires you to pay tax on those deductions at a rate up to 25% federally, regardless of how long you held the property. This is called depreciation recapture and is separate from capital gains tax. Many landlords are surprised by this tax because it applies even if you never took the deduction properly. A CPA can calculate your exact exposure.
Can I still use a cash buyer if I want to do a 1031 exchange?
Yes. A 1031 exchange is compatible with a cash buyer as the seller. The key requirement is that you set up the exchange with a qualified intermediary before closing, not after. The qualified intermediary receives the sale proceeds directly (you cannot touch the money), and you then identify and purchase your replacement property within the required deadlines. The buyer's payment method does not affect your ability to execute a 1031 exchange.

Get your cash offer

Free cash offer · 24 hours · No fees

Get Offer