The court considers various factors, including the child's age, each parent's ability to provide for the child's needs, the child's relationship with each parent, and the child's preferences if they are old enough to express them. Our child custody lawyer frederick md, can assess your situation and build a compelling case based on these factors.