To buy a house, you will probably need to get a mortgage loan from a bank and getting a loan can be difficult if you have credit that is less than great. If your credit is not as good as it needs to buy, you will need to devote some time to fix your credit before you apply for a loan. The amount of time you will need for this purpose will depend on what is on your credit report.