There are 23 pairs of chromosomes in the nucleus of all diploid human cells. One of these pairs determine gender. These chromosomes are therefore called the sex chromosomes. For females these chromosomes are XX and for males the chromosomes are XY. All female egg cells contain only an X chromosome, whereas male sperm cells may contain an X or a Y, thus the gender of the baby depends on which sperm cell fertilizes the egg cell.