To buy a house, the credit score needed varies from lender to lender. It could take a few months or a few years to build a credit score high enough to qualify for a mortgage.