If you are awarded custody of the child and are the residential parent, the courts will generally allow you to remain in the marital home with the child until the child reaches maturity (i.e., 18). At that time, they may require that the house be sold and the proceeds distributed at that time. I do not believe that the court would force you to sell the house while the child is still so young.
I strongly suggest that you consider mediating rather than litigating your divorce, which will save you much money, time, and aggravation.
If you are located in the New York City metropolitan area, please call me at 212-370-1660 to discuss the matter had greater length.
Leonard M. Weiner, Esq. /divorce Solutions