Investors & landlords

For the capital gains exclusion the seller must have owned the home and used it as their principal residence for two out of the last five years (up to the date of closing). The two years do not have to be consecutive to qualify. However if you have any capital losses those can offset capital gains.