Most lenders recommend getting preapproved 3-6 months before you plan to buy a home. If you foresee roadblocks for your loan (like having to improve your credit score or pay off debts), you may want to get your first preapproval up to a year prior to your home purchase. That should give you enough time to clean up your credit report and increase your down payment.