As soon as you are thinking about buying a home. Even if you are a year out. The Realtor can help get you started and get you connected with a lender right away. This way if there are any credit issues or other items that need to be address, you have plenty of time to address them.