Investors & landlords

Just make sure it is sold within three years of your moving out.  Otherwise, you could potentially lose the entire exclusion.