N
The Global Insight

How many years can you rent your house before capital gains?

Author

Sarah Garza

Updated on March 10, 2026

If you lived in the home for at least two years and rented it out for no more than three years, you may be able to exclude up to $500,000 in gains from the sale from taxable income, since the home still meets the definition of a “principal residence.” However, if you don’t meet these criteria, any profits are subject …

How many years is a rental house depreciated?

27.5 years
Any residential rental property placed in service after 1986 is depreciated using the Modified Accelerated Cost Recovery System (MACRS), an accounting technique that spreads costs (and depreciation deductions) over 27.5 years. This is the amount of time the IRS considers to be the “useful life” of a rental property.

How long live in property to avoid capital gains?

You can defer at least one year of capital gain (because you own the rental property for 5 years), and you can also get 4 years of capital gain tax free as a result of the election to be filed.

When do you have to pay capital gains on a rental property?

After five years of ownership, you sell. You would then have to pay capital gains taxes on 3/5ths of the profit generated from the sale of the property as you lived in it for 2/5ths of the time.

Can a property be used as a rental for 2 years?

If you used and owned the property as your principal residence for an aggregated 2 years out of the 5-year period ending on the date of sale, you have met the ownership and use tests for the exclusion. This is true even though the property was used as rental property for the 3 years before the date of the sale.

How long does it take to depreciate a rental property?

The IRS allows you to depreciate the value of a rental property over a 27.5 year period to account for wear and tear that the property might go through. Note that the land itself is not depreciable.

When do you have to close on a rental property?

The main stipulation is that the property must be used for rental purposes and generate income. You get 45 days from the date of the sale to identify potential replacement properties and you must close on the replacement property (or properties) within 180 days. If your tax return is due before that 180-day period, you must close sooner.