Blog - DealMachine for Real Estate Investing

How to Avoid Capital Gains Tax on a Rental Property

Written by Samantha Ankney | Oct 17, 2025 11:00:00 AM

If you're a real estate investor, you already know that selling a rental property can come with a big tax bill. One of the biggest costs? Capital gains tax on a rental property. This tax can take a large chunk out of your profits if you're not careful.

But here’s the good news: there are smart and legal ways to avoid or reduce capital gains tax when you sell. In this blog, we’ll break down exactly how to avoid capital gains tax on a rental property, using strategies that real estate investors across the country use every day. Whether you're thinking about selling soon or planning for the future, understanding your options now can help you keep more of your money later.

Please note that we are not tax professionals or providing legal guidance. Consult with your own financial advisor to determine what will work best for you when you sell your rentals.

Understanding Capital Gains Tax

Before we dive into how to avoid capital gains tax on a rental property, it’s important to understand what capital gains tax actually is.

When you sell a rental property for more than what you originally paid, the difference between the sale price and the purchase price is called a capital gain. This profit is considered taxable income, and the government takes a portion in the form of capital gains tax.

There are two types of capital gains:

  • Short-term capital gains (if you owned the property for less than a year)
  • Long-term capital gains (if you owned it for more than a year)

Most rental property sales fall under long-term gains, which are taxed at a lower rate than short-term ones — but they can still add up fast. That’s why knowing how to reduce or avoid capital gains tax is key to protecting your investment returns.

Strategies to Reduce or Avoid Capital Gains Tax

Now that you understand what capital gains tax is, let’s explore how to reduce or even avoid it tax on a sale of a rental property. If you've been wondering how to avoid capital gains tax on a rental property, these proven strategies can help you protect your profits while staying compliant with tax laws.

Section 1031 Exchange

A Section 1031 Exchange, also known as a like-kind exchange, is one of the most effective ways to defer capital gains tax on a rental property. This strategy allows you to sell your current investment property and use the proceeds to buy another similar property—without paying taxes on the gain right away.

Here’s how it works: As long as you reinvest the profits into another qualifying property within a specific timeframe (usually 180 days), you can postpone paying capital gains tax. This is a powerful way to grow your real estate portfolio while keeping more of your money working for you.

Pro Tip: Work with a qualified intermediary to handle the exchange process. The IRS has strict rules and timelines for 1031 exchanges.

Depreciation

Depreciation on a rental is another tool investors use to reduce their tax burden over time. The IRS lets you deduct a portion of your rental property's value each year to account for wear and tear. These yearly deductions can lower your taxable income, which means you may owe less when it’s time to sell.

However, be aware of depreciation recapture. When you sell the property, the IRS may tax some of the deductions you previously claimed, so it’s important to factor that into your planning.

Tip: Keeping good records of your depreciation history can help you avoid surprises when calculating your capital gains tax.

Incorporation

Setting up a real estate corporation or LLC can offer tax benefits, depending on your overall strategy and portfolio size. Incorporating may help you structure your real estate investments in a way that reduces personal liability and creates more options for tax planning.

Some real estate investors use an S-corp or C-corp to manage profits, losses, and deductions more efficiently. While it doesn’t directly eliminate capital gains tax, it can help reduce your overall tax exposure when used alongside other strategies.

Caution: Consult a tax advisor or CPA before choosing to incorporate—rules vary by state and entity type.

Primary Residence Exemption

Another approach is converting your rental into your primary residence. If you live in the property for at least two years out of the last five, you may qualify for the primary residence exclusion.

This IRS rule allows you to exclude up to $250,000 of capital gains from taxes (or $500,000 if you’re married and filing jointly). This can be a smart move if you're planning to sell and are flexible about your living situation.

Example: Let’s say your rental property has gained $300,000 in value. If you qualify for the exclusion and file jointly, you could avoid paying taxes on up to $500,000 of that gain.

Selling on Installment Basis

Instead of selling your rental property all at once, consider using an installment sale. This means the buyer pays you over time—monthly, yearly, or in scheduled payments.

With this method, you report the gain—and pay taxes on it—bit by bit as you receive the money. This can help spread out your tax liability over several years and potentially keep you in a lower tax bracket.

Bonus: You may also earn interest on the installment payments, creating an additional stream of income.

Pros and Cons of Each Strategy

Each tax strategy has its strengths and limitations. Here's a quick comparison to help you decide which might work best for your situation:

  • Section 1031 Exchange: Defers capital gains tax and allows reinvestment, but requires strict adherence to IRS rules and deadlines.
  • Depreciation: Lowers annual taxable income during ownership, though it may trigger depreciation recapture when you sell.
  • Incorporation: Offers liability protection and possible tax advantages, but may be too complex or unnecessary for smaller investors.
  • Primary Residence Exemption: Lets you exclude up to $250,000 ($500,000 if married) in gains, but only if you’ve lived in the property for two of the last five years.
  • Installment Sale: Spreads out capital gains tax over several years, but delays full payment and adds financial risk if the buyer defaults.

You can dive into one investors tax loophole strategies for rental properties in the video below.

FAQs about Avoiding Capital Gains Tax

When you sell an investment property, how is it taxed?

When you sell a rental property for more than you paid, the profit is considered a capital gain and is subject to capital gains tax. If you've claimed depreciation on the property, you may also owe depreciation recapture tax. In some cases, net investment income tax may apply.

How do you avoid capital gains tax when selling a rental house?

You can avoid or reduce capital gains tax through strategies like a Section 1031 exchange, converting the property to your primary residence, selling on an installment basis, or incorporating your real estate business.

Do I have to pay capital gains tax if I reinvest the money?

If you reinvest the proceeds using a 1031 exchange and follow all the IRS rules, you can defer capital gains tax. Simply reinvesting the money without meeting 1031 requirements won't exempt you from taxes.

Is capital gains tax the same for all investors?

No. Your tax rate depends on your income level, how long you owned the property, and whether the gains are short-term or long-term. Long-term gains are usually taxed at a lower rate.

Can I deduct repairs or upgrades to reduce capital gains?

Yes. Capital improvements—like a new roof, kitchen remodel, or HVAC system—can increase your cost basis, which reduces the taxable gain. Routine repairs, however, usually don't count.

Conclusion

Knowing how to avoid capital gains tax on a rental property can make a big difference in your overall return. With the right strategy you can keep more of your profits and stay within the law. Always consult a tax professional to make sure you’re choosing the best path for your situation.