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:
-
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.
-
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.
-
You have 180 days from your closing date to complete the purchase of the replacement property. Again, no extensions.
-
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.
-
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.