How long do you have to live in a rental property to avoid capital gains?
Christopher Davis
Updated on March 06, 2026
If you like your rental property enough to live in it, you could convert it to a primary residence to avoid capital gains tax. There are some rules, however, that the IRS enforces. You have to own the home for at least five years. And you have to live in it for at least two out of five years before you sell it.
How do you avoid capital gains tax when selling an investment property?
Are there ways to avoid capital gains tax?
- Hold on to any investment property for more than 12 months and you could receive a 50% discount on your capital gain.
- Keep detailed records of all your spending on the property from the day you purchase it, to potentially offset the gain down the track.
How long after selling a house do you have to buy another?
The law allows what is known as a 1031 exchange, which allows you to buy new property with the proceeds of your sale. In order to do this, you have to close on a new property within 180 days after you close the sale on your old property.
How long after buying an investment property can you live in it?
To be eligible, you must meet one of the below conditions: The old property was your primary residence for a continuous period of at least three months in the twelve months before they sold it. You did not use the property to provide assessable income in any part of the twelve months prior to selling.
What happens if you sell a house and don’t buy another?
Profit from the sale of real estate is considered a capital gain. However, if you used the house as your primary residence and meet certain other requirements, you can exempt up to $250,000 of the gain from tax ($500,000 if you’re married), regardless of whether you reinvest it.
Can I occupy my investment property?
You can live in an investment property, but most people choose to rent them out either as someone’s primary residence or vacation rental. Even if you intend to reside in the property yourself, any property that you’ll rent out may still be considered an investment property by lenders.
When is it time to sell your investment property?
Yes, you should sell your investment property if the cost of necessary repairs is too much of a financial burden. When estimating maintenance costs, consider both expected and unexpected expenses.
How long does it take to exchange a property?
There is a strict 45/180 day set of guidelines in place when it comes to exchanges. Once you sell a property, you have exactly 45 days to find a property of equal or greater value to exchange for. You then have either 130 days from the end of the 45 day period or 180 days from the original property sale date to acquire the like-kind property.
When do you have to sell a rental property?
If you never rented out the property, it’s a second home, not an investment. Another rule involves the timing of a 1031 exchange. You don’t have forever to pull off the swap – in fact, you have less than a year. First, you must find another piece of suitable real estate within 45 days after the sale of your first property.
How long does it take to close on rental property?
The main stipulation with property is that it must be for rental purposes and must have generated income. Your personal home, vacation home or other property do not count. Timing is important. You have 45 days from the date of the sale to identify potential replacement properties and you must close on the replacement property within 180 days.