The 2-Out-of-5-Year Rule You can live in the home for a year, rent it out for three years, then move back in for 12 months. The IRS figures that if you spent this much time under that roof, the home qualifies as your principal residence.