In humans, out of the 23 pairs of chromosomes, 22 pairs are autosomes that are identical in both sexes, while the 23rd pair is made up of sex chromosomes. Females possess two X sex chromosomes (XX), while males have one X and one Y chromosome (XY). During spermatogenesis, males generate two types of sperm: one half carries the X chromosome and the other half carries the Y chromosome. In contrast, females produce eggs carrying only the X chromosome.
The sex of the offspring is determined by the type of sperm that fertilizes the egg: if an X-carrying sperm fertilizes the egg, the resulting zygote will develop into a female (XX), whilst if a Y-carrying sperm fertilizes the egg, a male (XY) zygote is produced. As a result, there is an equal probability (50%) of having either a male or female child regarding each pregnancy. This genetic mechanism highlights the misconception that females are culpable for producing female offspring in societal contexts, as it is the male's sperm that ultimately determines the sex of the child.