In general, you need two years of employment history in order to obtain a mortgage. There are exceptions to this rule, but the exceptions are case by case. For example, a recent graduate may not have a two year history on the job but can show that he/she was in college and is now gainfully employed.