To avoid CGT, you’ll need to live in a property for twelve months for it to be counted as your main residence before you can move out and use it as an investment property.