How to Avoid Taxes When Selling Rental Property?

Learn how to avoid or defer taxes when selling rental property using 1031 exchanges, tax-loss harvesting, and capital gains exemptions.

⬇️ Prefer to listen instead? ⬇️


  • 💸 You can defer capital gains and depreciation recapture taxes by reinvesting through a 1031 exchange.
  • 🏡 Converting a rental into a primary residence lets you avoid up to $500,000 in capital gains tax.
  • 🗓️ An installment sale can lower your tax bill. It does this by spreading your gains over several years.
  • 📉 Losses from other investments can directly cut down gains from a rental property sale.
  • 🏙️ If you put gains into Opportunity Zones, you can delay paying taxes. You might also get long-term tax forgiveness on these gains.

Selling a rental property can make a lot of money. But if you don’t plan well, you might also get a big tax bill. Maybe you are getting ready for retirement. Or you might want to buy more real estate. Or you just want to get your cash. Either way, there are clear, IRS-approved ways to avoid taxes on your rental property. Or at least you can delay paying them in a legal, effective way. We will look at the best ways to pay less tax or delay taxes when you sell your investment property.


businessman calculating taxes with paperwork

What Taxes Apply When You Sell a Rental Property?

When you sell a rental property, the two main federal taxes that will impact how much money you keep are capital gains tax and depreciation recapture tax. It is important to know how these taxes work. This helps you pay less.

Capital Gains Tax

You have capital gains when you sell a property for more than its adjusted basis. This basis is your original purchase price. You add any big improvements to it. And you subtract the total depreciation you have claimed.

  • Short-term capital gains: If you owned the rental property for less than one year, that profit counts as short-term. You pay tax on it at your regular income tax rate. This rate can be up to 37%.
  • Long-term capital gains: If you owned the property for more than one year, you get a much lower tax rate. This could be 0%, 15%, or 20%. The rate depends on your filing status and how much money you make.

Depreciation Recapture

Depreciation lowers your taxable income while you own the rental. But when you sell, the IRS takes that benefit back. This is through recapture tax.

  • For every dollar of depreciation you’ve claimed, you will owe up to 25% tax when you sell.
  • Even if your capital gain gets the long-term rate (15% or 20%), depreciation recapture is a different tax. It does not get the same lower rates.

📌 Tax Snapshot Table:

Tax Type Rate When It Applies
Capital Gains (Short) Up to 37% Property held less than 1 year
Capital Gains (Long) 0%, 15%, or 20% Property held more than 1 year
Depreciation Recapture Up to 25% Any depreciation claimed during rental

commercial building with for sale sign

Use a 1031 Exchange to Defer Taxes

A 1031 exchange is a tax move. It gets its name from Section 1031 of the IRS Code. This lets you put off paying capital gains and depreciation recapture taxes. You do this by using the money from your sale to buy another valid property.

How It Works

To make this work:

  • You must reinvest in a “like-kind” property. This means almost any other property that makes money.
  • You must hold the property for investing or business. You cannot use it yourself.
  • You must follow these strict IRS deadlines:
    • 45 days to identify replacement property
    • 180 days to complete the purchase
  • You need a Qualified Intermediary (QI). This person handles the exchange. They are a third party. They hold and move the money. This stops you from getting the cash directly.

Example

Sell a duplex for $800,000 with $300,000 in taxable gains. With a 1031 exchange, you put all that money into a $950,000 apartment building. You put all the gain back into property. And you did not get any cash. So, you owe $0 in taxes today.

Benefits

  • You delay taxes right away: This lets you use 100% of your equity to buy new property.
  • Your money can grow: You put untaxed money back into a bigger property that makes more cash.
  • Good for your heirs: If you leave the property to your heirs, the deferred gain disappears. This is because of the step-up in basis rule.

Limitations

  • This is a delay, not a way to avoid taxes for good. If you sell the new property and do not do another exchange, you will owe taxes.
  • You must follow the strict deadlines exactly.
  • This only works for properties you use for investing or business.

🔗 Source: IRS Like-Kind Exchange Guide


happy family outside suburban home

Convert Rental Property into a Primary Residence

You can turn your rental property into your main home. If you live there for at least two years, you can avoid capital gains taxes. This happens thanks to the Section 121 exclusion.

Key Advantages

  • Single people can avoid tax on $250,000 of gain. Married couples filing jointly can avoid tax on $500,000. But they must have lived in the home for at least 2 of the past 5 years.

Important Rules

  • How long you live there matters. You must live in the property as your main home.
  • This exclusion only works for capital gains. You still have to pay depreciation recapture tax.
  • If the property was a rental before you moved in, the exclusion amount might be prorated.

Strategy Example

You owned a townhouse as a rental from 2017 to 2022. And then you moved in from 2023 to 2025. You sell it in 2026. Then you would get a proportional exclusion on your capital gains. This is because you met the 2-of-5-years rule.


stock market graph dropping on screen

Offset Gains with Capital Losses or Tax-Loss Harvesting

If you lost money on other investments, you can use those losses. This means things like stocks, bonds, or other properties. These losses can directly cut down capital gains from your rental sale.

How It Works

  • Every dollar you lose on an investment cuts down a dollar from your capital gains.
  • If you have more losses than gains, you can also use them. They can cut up to $3,000 from your regular income each year.
  • What if you still have losses left? You can carry them forward year after year. This lets you use them in the future.

Tax Tip

You might want to sell assets that are not doing well. Do this before the tax year ends to lock in those losses. This is called tax-loss harvesting. It is a common thing to do at year-end. But you should work with your CPA. This helps you avoid IRS wash-sale rules.


middle aged couple reviewing contract

Use an Installment Sale to Spread Taxes Over Time

With an installment sale, you act like the bank for your buyer. You do not get all the money when the sale closes. Instead, you agree to take payments over several years.

Tax Advantages

  • You record your capital gains little by little as you get each payment. This can help you:
    • Keep your yearly taxable income lower
    • Stay out of a higher capital gains tax bracket

Potential Risks

  • You need to trust the buyer to keep making payments.
  • You get less cash right away. So you have less money to put into other investments.
  • The property title goes to the buyer right away. So you need to put legal protections into your contract.

When to Use

  • This works well if you are retired or close to it. It also works if you want to keep your yearly taxes low.
  • Use this to get more cash over time. And pay less tax at the start. This is true especially when you have big gains.

urban downtown skyline redevelopment area

Consider Investing in an Opportunity Zone

Qualified Opportunity Funds (QOFs) came from the Tax Cuts and Jobs Act. They give you a special way to delay and maybe pay less capital gains taxes when you sell a rental property.

Key Requirements

  • You must put your capital gains into a certified QOF within 180 days.
  • A QOF puts money into real estate or businesses in specific Opportunity Zones. These are areas chosen for economic growth.

Tax Perks

  • You can delay paying tax on the gain. This delay lasts until December 31, 2026. Or it lasts until you sell your QOF investment. Whichever comes first.
  • If you hold for 5-7 years: You can get a 10–15% step-up in tax basis.
  • If you hold for 10 years: You will not pay tax on future gains from the QOF growing in value.

Considerations

  • There is more investment risk. And it is hard to get your money out quickly.
  • You need to do careful research on the fund. And also on the areas where it invests.
  • This usually works best for wealthy people. Or for those planning to build wealth over many years.

financial advisor pointing at tax forms

Can Depreciation Recapture Be Avoided?

Many people forget about depreciation recapture. It can be the most expensive part of selling a rental. But there are proven ways to lessen it or delay it.

Options to Deal with Recapture:

  • Delay it: Use a 1031 exchange.
  • Get rid of it (later): Give the property to your heirs. You can do this through a Revocable Living Trust or Will. This creates a step-up in cost basis. And it wipes out all past depreciation.
  • Move the gain: You can use a Charitable Remainder Trust (CRT). This lets you get income now. And you donate the future money from the sale. This delays or avoids taxes completely.

Example

You deducted $80,000 in depreciation over 10 years. When you sell, you will owe up to $20,000 in extra tax (25%). Figure out what you might owe before you list the property.


contractor working on home renovation

Additional Ways to Reduce Capital Gains Taxes

Every dollar you can legally add to your adjusted basis helps. And every dollar you can cut from your gain helps. Both of these make your tax bill smaller.

Increase Your Basis

  • Add in major improvements. These are things like new roofs, HVAC systems, or adding rooms.
  • Also count selling costs. These are things like:
    • Realtor commissions
    • Legal fees
    • Title insurance
    • Staging and photography

Time the Sale Strategically

  • Sell in a year when you have low income. This helps you stay in the 0% or 15% long-term capital gains bracket.
  • Keep the property for at least 12 months. This helps you avoid paying short-term capital gains rates.

calendar with red circle over one-year mark

Why Holding Period Matters: Under vs. Over One Year

How long you own the property before selling can greatly change how much profit you keep after taxes.

Holding Period Tax Implication Strategy Tip
Less than 1 year Taxed as ordinary income Avoid if possible
Over 1 year Favorable long-term rates Ideal for tax planning and 1031s

For example, if you made $100,000. That gain could be taxed at $37,000 if it is short-term. Or it could be $15,000–$20,000 if it is long-term capital gains.


financial goals checklist on desk

Match Your Tax Strategy to Your Financial Goals

When you know your next money move, you can choose the best tax strategy:

Financial Goal Optimal Tax Strategy
Reinvest in real estate 1031 Exchange
Retire and minimize annual taxes Installment Sale
Live in the property post-rental Capital Gains Exclusion (Section 121)
Maximize long-term wealth Opportunity Zone Investment
Donate while receiving income Charitable Remainder Trust

Every person’s case is different. So talk to a CPA or advisor to make a plan that works for you.


real estate agent shaking hands with homeowner

Maximize Your Proceeds by Using a Low-Fee Full-Service Agent

Paying less tax is only part of the fight. Agent fees can take another big chunk of your equity.

Traditional Commission vs. 1% Model

Sale Price Traditional Agent (3%) Our 1% Fee Your Savings
$400,000 $12,000 $4,000 $8,000
$600,000 $18,000 $6,000 $12,000
$1,000,000 $30,000 $10,000 $20,000

We provide full MLS exposure, smart pricing, and great marketing. We also provide documents that work for 1031 exchanges. You get all of this for much less than what traditional agents charge.


Ready to Sell and Pay Less Tax? Here is How to Start

You can start your tax-smart selling process with these four simple steps:

  1. ✅ Run your numbers using our Seller Calculator
  2. ✅ Call an experienced listing agent who knows about taxes
  3. ✅ Make a plan for a 1031 exchange or an installment agreement
  4. ✅ List your home for just 1% without cutting corners

You earned that money in your home. We help you keep it.


Citations
Internal Revenue Service. (2023). Like-kind exchanges under IRC Code Section 1031. Retrieved from https://www.irs.gov/businesses/small-businesses-self-employed/like-kind-exchanges-real-estate-tax-tips

Urban Institute. (2020). The Tax Implications of Selling Rental Property.

IRS Publication 527 (2023). Residential Rental Property (Including Rental of Vacation Homes).

Want to listen to more episodes?

Previous Article

Housing Shortage: Can Zoning Reform Fix It?

Next Article

Seller Disclosure: What Must You Reveal When Selling?

Stay Informed

Subscribe to our email newsletter to get the latest real estate tips and tricks.
All inspiration, zero spam ✨