Fetal sex determination is a biological process that begins at conception and unfolds throughout pregnancy. It involves genetic instructions, hormonal signals, and the subsequent formation of reproductive anatomy. This article explains the biological mechanisms that establish a fetus’s sex and outlines the timeframe for when this difference becomes visible.
Defining Biological Sex Versus Gender
The discussion of a developing fetus focuses strictly on biological sex, which is defined by physical attributes like chromosomes, reproductive anatomy, and hormone profiles. Biological sex is typically categorized as male or female based on these observable and inherent characteristics. This concept is distinct from gender, which is a social and psychological construct relating to an individual’s internal sense of self and the roles, behaviors, and expectations a culture associates with sex. In the context of fetal development, the focus remains exclusively on the biological differentiation of the body, which is fundamentally set at fertilization.
The Role of Chromosomes and Genes
The genetic determination of sex begins with the 23rd pair of chromosomes, known as the sex chromosomes. The egg always contributes an X chromosome, while the sperm contributes either an X or a Y chromosome, which ultimately determines the genetic sex of the fetus. A fetus with two X chromosomes (XX) is genetically female, and a fetus with an X and a Y chromosome (XY) is genetically male. The presence of the Y chromosome is the initial trigger for male development due to the SRY gene (Sex-determining Region Y), which initiates the development of testes. Without the SRY gene, the default developmental pathway leads to the formation of ovaries, regardless of the presence of the other X chromosome.
Development of Physical Sex Characteristics
For the first six weeks of development, all fetuses possess the same undifferentiated structures, including gonadal ridges that could develop into either testes or ovaries. Around the seventh week, the SRY gene activates in XY fetuses, causing the gonadal ridges to transform into testes, which then begin to secrete hormones necessary for male development. These testes produce testosterone, which supports the development of internal male ducts, and Anti-Müllerian Hormone (AMH), which causes the regression of structures that would form female internal organs. The external genitalia, also starting undifferentiated, transform between eight and twelve weeks as testosterone-derived hormones form the penis and scrotum. Conversely, in XX fetuses, the absence of SRY means the gonadal ridges develop into ovaries, and the undifferentiated ducts form the fallopian tubes, uterus, and upper vagina.
When Sex Becomes Detectable
Although genetic sex is determined at conception and physical differentiation begins around seven weeks, the sex is not visually or medically detectable until later in the pregnancy. One of the earliest detection methods is Non-Invasive Prenatal Testing (NIPT), a blood test that analyzes cell-free fetal DNA circulating in the mother’s bloodstream. This test can accurately identify the presence or absence of the Y chromosome as early as nine or ten weeks of gestation. For visual confirmation, an ultrasound is typically performed as part of the mid-pregnancy anatomy scan between 18 and 22 weeks. At this stage, the external genitalia are usually well-formed and visible enough for a technician to determine the sex with high accuracy.

