Within the egg and the sperm, there are chromosomes that decide the biological sex of the baby. Eggs only carry X chromosomes and sperm carry an X or a Y chromosome. If a sperm with a Y chromosome fertilizes the egg, the cell develops into a male (X+Y). If a sperm with an X chromosome fertilizes the egg, the cell develops into a female (X+X).