Generally speaking, courts consider a number of factors when determining what arrangements are in a child's best interests. These factors include: the child's physical and emotional well-being, the relationships between the child and each parent, and the ability of each parent to provide for the child's needs.
In some cases, a child may express a preference to live with one parent over the other. While a child's wishes are taken into account, the child does not have the final say in the matter. Ultimately, the decision about where a child will live is made by a judge based on what is in the child's best interests.