Skip to content
Menu

Do you want to sell a rental and put off the tax with a 1031 exchange?

A 1031 exchange can let you put off tax when you trade one investment property for another like-kind property. It does not erase the tax. This overview restates the federal rules in plain words, including the 45-day and 180-day deadlines, and lists questions to take to a CPA.

Last checked December 4, 2026.

The file is a free PDF, 5 pages. Download the 1031 exchange overview.

What's inside

  • What a 1031 exchange is
  • What can count
  • The 45-day and 180-day rule
  • How to name the new property
  • Using a qualified intermediary
  • Cash or other property in the deal
  • Why it puts off tax instead of ending it
  • Moving into the new property
  • Reporting
  • Questions to bring to a CPA

Federal law says you do not count a gain or loss when you swap real property held for business or investment for like-kind real property you will also hold for business or investment (26 U.S.C. 1031(a)(1)). The IRS says that since 2018 this applies only to real property (IRS like-kind tips).

You must name the new property within 45 days after you transfer the old one. You must receive the new property by the earlier of 180 days after that transfer or the due date of your tax return for that year, with extensions (26 U.S.C. 1031(a)(3); IRS Form 8824 instructions).

If you also get money or other property, you count gain up to that amount. You cannot claim a loss on the exchange (26 U.S.C. 1031(b)). Your tax basis in the new property starts from your basis in the old property, with changes for money and gain, so the gain you did not count now is carried into the new property (26 U.S.C. 1031(d)).

The PDF does not name an intermediary. It restates the Form 8824 instructions: if you use a qualified intermediary, the deal can be treated as a like-kind exchange, and a missed deadline because of the intermediary can mean the gain is taxed in the year you sold. The sell or keep worksheet is the place to line up cash from a sale next to cash from keeping the rental.

Questions landlords ask

What are the 45-day and 180-day deadlines for a 1031 exchange?

You must name the new property in writing within 45 days after you transfer the old one. You must receive it within 180 days, or by your tax return due date with extensions if that comes first (IRS Form 8824 instructions).

Is it better to pay capital gains or do a 1031 exchange?

Neither is always better. A 1031 exchange lets you put off tax when you swap investment real property for like-kind real property, but your old basis carries over (26 U.S.C. 1031). Paying the tax now frees the cash. A CPA can compare both for you.

Does a 1031 exchange avoid depreciation recapture?

It puts the tax off instead of ending it. In a qualifying exchange you generally do not count the gain now, but your old basis moves to the new property (26 U.S.C. 1031(d)). So the deferred gain, including the depreciation part, can be taxed when you later sell in a taxable sale.

How can I avoid capital gains tax when I sell a rental property?

The sources we read do not show a way to avoid it in every case. A 1031 exchange can put off the tax, because the basis carries over (26 U.S.C. 1031). The IRS also lists the rates that apply when you do pay (IRS Topic 409). Ask a CPA.

If I convert my rental to my primary residence before selling, can I avoid the tax?

Not all of it. IRS Pub. 523 says the home-sale exclusion cannot cover gain equal to depreciation taken after May 6, 1997. It also says time after 2008 when the home was not your main home can count against you (IRS Pub. 523).

Is there a simple trick for avoiding capital gains tax?

No. We found no simple trick in the IRS or Utah pages we read. The tools the law offers, like a 1031 exchange, have strict rules and deadlines (IRS Form 8824 instructions). A CPA can tell you what fits your sale.

How is the sale of a rental property taxed?

A sale can bring federal long-term capital gain, tax on the depreciation part, and sometimes a 3.8% investment income tax (IRS Topic 409; IRS Topic 559). Utah also taxes income at 4.45% for 2026 (Utah Code 59-10-104). A CPA can put it together.

Who should I talk to before I sell my rental?

Most landlords talk to a few people. A real estate attorney can review the lease and any notice, a CPA can estimate the tax, and a licensed agent can price and list the home. Anyone paid to sell for you needs a Utah license (Utah Code 61-2f-201). Our guide on who to talk to explains each role.

Sources

Next step