Can the 2 year time periods at 26 USC 121 be met at different times? If I lived in a rental property for a year before owning it (year 1), can I move out after 2 years of living in it and one year after owning it (year 2) and then sell it in/after year 3 and meet the 2 years of use and ownership required for the capital gains tax exclusion upon sale of a principal residence?
No. You must both own and reside there in the same two year period. You don't need to live there consecutively for two years, but you do need to own it and use it as a main home for two years.
How your sale qualifies. Your sale qualifies for exclusion of $250,000 gain ($500,000 if married filing jointly) if all of the following requirements are met.
Yes, that qualifies.
See Example #3 in the Regulation:
Taxpayer C lives in a townhouse that he rents from 1993 through 1996. On January 18, 1997, he purchases the townhouse. On February 1, 1998, C moves into his daughter's home. On May 25, 2000, while still living in his daughter's home, C sells his townhouse. The section 121 exclusion will apply to gain from the sale because C owned the townhouse for at least 2 years out of the 5 years preceding the sale (from January 19, 1997 until May 25, 2000) and he used the townhouse as his principal residence for at least 2 years during the 5-year period preceding the sale (from May 25, 1995 until February 1, 1998).