Guide

How to Sell a Rental Without Paying Capital Gains Tax Now

How a 1031 exchange defers tax on a rental sale, what depreciation recapture means, when paying the tax makes sense, and where Section 121 fits.

The key word is "now." There is a legal way to sell an investment property and put off the tax: a Section 1031 exchange. It postpones the tax. It does not erase it. This page explains what that means, the role depreciation plays, and when paying the tax today may be the smarter move.

Deferral Versus Paying

When you sell a rental in a regular sale, you report the gain and pay tax on it for that year.

In a 1031 exchange, you sell investment real estate and buy other investment real estate of like kind, and gain is not recognized at that time if you meet the rules. The gain carries forward into the new property. If you later sell the replacement property in a taxable sale, the deferred gain is recognized then.

What deferral does for you

What deferral does not do

Depreciation Recapture, in Plain English

Every year you own a rental, depreciation lowers your taxable rental income. Residential rental buildings are generally depreciated over 27.5 years.

The catch shows up when you sell. Your basis (roughly, what you paid plus improvements) goes down by the depreciation you deducted, or could have deducted, even if you never claimed it. A lower basis means a bigger gain.

At the federal level, the part of your gain tied to that depreciation on real property, called "unrecaptured section 1250 gain," is taxed at a maximum rate of 25%. That is often higher than the long-term capital gains rate on the rest of the gain.

A 1031 exchange defers this piece too, as part of the overall deferred gain. If you sell outright, it is part of your bill.

When Paying the Tax Can Be the Better Call

Deferral is a tool. Sometimes it is the wrong one. Paying the tax now may make more sense when:

Section 121: The Home Sale Exclusion

You may have heard you can sell a home and keep up to $250,000 of gain tax-free, or $500,000 for a married couple filing jointly. That is Section 121.

Who it applies to

Section 121 covers your principal residence. Generally you must have owned and lived in the home as your main home for at least 2 years out of the 5 years before the sale. A property that has only ever been a rental does not qualify.

Converted properties, at a general level

Some owners lived in a home, then rented it out, or the reverse. The rules for these cases are narrow:

These rules interact in ways that need a CPA's pencil. Do not assume a former home qualifies.

Putting It Together

Common questions

Can I legally avoid capital gains tax when I sell a rental?

You can defer it with a Section 1031 exchange if you buy like-kind investment real estate and follow the rules. The gain is postponed and can be taxed later when you sell the replacement property in a taxable sale.

What is depreciation recapture on a rental?

Depreciation lowers your basis, which raises your gain when you sell, even for depreciation you could have taken but did not. Federally, the depreciation-related part of the gain on real property is taxed at a maximum 25% rate.

Does a 1031 exchange also defer depreciation recapture?

Yes. When an exchange fully qualifies, gain is not recognized at the time of the exchange, and that includes the depreciation-related portion. It carries into the new property.

Can I use the $250,000 or $500,000 home exclusion on a rental?

Not on property that has only been a rental. Section 121 applies to a principal residence you owned and lived in for at least 2 of the 5 years before the sale.

When should I just pay the tax?

When you want out of real estate, need the cash, have a small gain, cannot find solid replacement property, or your CPA sees a planning reason. Deferral is optional.

Before you list. Talk with a CPA or tax attorney and a qualified intermediary. See who does what.

Sources

  1. 26 U.S. Code § 1031, Exchange of real property held for productive use or investment.
  2. IRS Topic No. 409, Capital gains and losses.
  3. IRS Topic No. 701, Sale of your home.
  4. 26 U.S. Code § 121, Exclusion of gain from sale of principal residence.
  5. IRS Publication 544, Sales and Other Dispositions of Assets (Like-Kind Exchanges).
  6. IRS Publication 527, Residential Rental Property.
  7. California Franchise Tax Board, 2025 Form FTB 3840 Instructions, California Like-Kind Exchanges.

Last reviewed October 2026.