If you have lived in your home for two years through today, for example, and then rent it out for three years, you will qualify for the cap gains tax exclusion, if you sell it before the end of the three years is up.
This is because you will have lived in your house for 2 out of the preceding 5 years, which meets the standard.