Stori

Genetic Sex Determination at the Cellular Level

Biological sex begins to be determined at one of the earliest moments in human development.

Publ.6/9/2026
Updated6/11/2026
10 min read
Genetic sex determination light flare

Long before organs form, long before ultrasound images reveal anatomical differences, and long before most people even know a pregnancy has begun, the genetic instructions that guide male or female development are already present inside the first cell of the embryo.


This process begins at fertilization, when a sperm cell merges with an egg cell to create a new cell known as a zygote. At that moment, the embryo receives a full set of chromosomes—half from the egg and half from the sperm. Among those chromosomes are two that play a key role in determining biological sex.

These chromosomes are known as the sex chromosomes.

Although sex determination begins at fertilization, the physical differences associated with male and female anatomy develop gradually over time. In the earliest stages of development, embryos with different sex chromosomes appear almost identical. Only later do specific genes activate and hormonal signals begin guiding reproductive development.

Understanding genetic sex determination helps explain several common questions about reproduction. It clarifies why genetic testing can sometimes identify biological sex early in pregnancy, why ultrasound imaging requires several weeks before it can detect sex, and how chromosomes guide early development.

This article explains how sex determination works at the cellular level. It describes the role of chromosomes, the genes that trigger sex differentiation, and how early genetic instructions eventually guide the formation of reproductive structures.

Chromosomes: The Genetic Foundation of Development

Every cell in the human body contains genetic instructions encoded in DNA. DNA carries the information that directs how cells grow, divide, and perform specialized functions. DNA is packaged into structures called chromosomes. In most human cells, there are 46 chromosomes, organized into 23 pairs. Each parent contributes half of these chromosomes:

  • The egg (maternal origin) contributes 23 chromosomes
  • The sperm (paternal origin) contributes 23 chromosomes

When fertilization occurs, these chromosomes combine to form a full set of 46 in the newly created cell. Among these 23 pairs of chromosomes is one pair known as the sex chromosomes. The two possible sex chromosomes are:

  • X chromosome
  • Y chromosome

The combination of these chromosomes determines the genetic sex of the embryo.
Typical combinations include:

  • XX → usually associated with female development
  • XY → usually associated with male development

This chromosomal pairing is established immediately when the sperm and egg combine during fertilization.

(For a deeper explanation of fertilization and early embryonic development, see Fertilization and Early Cell Division Explained.)

Why the Sperm Determines Biological Sex

A key detail in human reproduction is that the egg always contributes the same type of sex chromosome. Every egg contains an X chromosome. Sperm cells, however, can carry either:

  • An X chromosome, or
  • A Y chromosome

This means the sperm determines which sex chromosome combination forms during fertilization. Two outcomes are possible:

  • X sperm + X egg → XX embryo
  • Y sperm + X egg → XY embryo

Because sperm determine which chromosome joins the egg, the sperm determines the genetic sex of the embryo. However, while the genetic instructions are present immediately, visible differences between male and female development appear later.

Egg sperm combinations diagram
The egg always contributes an X chromosome, while sperm contributes either X or Y.

Early Embryos Look the Same

In the earliest stages of development, embryos with XX chromosomes and embryos with XY chromosomes look nearly identical. During the first several weeks after conception, the embryo is primarily focused on forming basic body structures necessary for survival and growth. These early structures include:

  • The neural tube, which will develop into the brain and spinal cord
  • Early heart structures
  • Limb buds that will later become arms and legs
  • Foundations for major organ systems

During this stage, embryos also develop early reproductive structures called bipotential gonads. Bipotential gonads are undifferentiated reproductive structures that have the potential to develop into either:

  • Ovaries
  • Testes

At this stage, embryos also contain two early reproductive duct systems known as the Wolffian ducts and Müllerian ducts. Both are initially present in most embryos and later develop differently depending on hormonal signals during sex differentiation. The Wolffian ducts can develop into male internal reproductive structures, while the Müllerian ducts can develop into female internal reproductive structures.

The Key Role of the Y Chromosome

The major difference between XX and XY embryos involves a gene located on the Y chromosome. This gene is called SRY, which stands for sex-determining region Y. The SRY gene acts as a genetic switch that initiates male development. When the SRY gene becomes active, it triggers a series of genetic signals that guide the bipotential gonads to develop into testes.

Once testes begin forming, they start producing hormones that influence further development of male reproductive structures. If the embryo does not contain a Y chromosome, the SRY gene is absent. In that case, the bipotential gonads typically develop into ovaries instead.

This early genetic signal establishes which developmental pathway the embryo follows.

SRY gene diagram
The SRY gene acts as a developmental signal that influences testis formation.

How Gene Activation Guides Development

Genes do not function as isolated instructions. Instead, they operate within networks that regulate when and how other genes activate. When the SRY gene activates in an XY embryo, it initiates a cascade of genetic events that influence the development of the reproductive system. These signals cause cells within the bipotential gonads to organize into testicular tissue.

Once testicular development begins, hormone production soon follows. In embryos without functional SRY signaling, pro-ovarian gene networks promote ovarian development while testis-promoting pathways are not activated.

Hormones That Shape Sex Development

Once the gonads begin developing into testes or ovaries, hormone production begins influencing further development.

In embryos with XY chromosomes, the developing testes produce two important substances:

Testosterone
Testosterone supports the development of male reproductive structures, including the internal reproductive ducts that will later become structures such as the vas deferens.
A related hormone, dihydrotestosterone (DHT), formed from testosterone, is especially important for development of male external genitalia and the prostate.

Anti-Müllerian Hormone (AMH)
AMH causes certain early reproductive structures known as Müllerian ducts to regress.
These ducts would otherwise develop into female reproductive organs.
Together, testosterone, DHT, and AMH guide the development of male reproductive anatomy.

Development in XX Embryos

In embryos with XX chromosomes, the SRY gene is absent. Because the SRY gene is not present, the bipotential gonads develop into ovaries. Without the hormonal signals produced by testes, the Müllerian ducts continue developing. These ducts eventually form structures including:

  • The uterus
  • Fallopian tubes
  • The upper portion of the vagina

Because testosterone is not produced at the levels needed to maintain the Wolffian ducts, those ducts regress rather than developing into male internal reproductive structures. This pathway leads to female reproductive development.

Genetic Instructions and Hormonal Signals Work Together

Sex determination involves both genetic and hormonal influences. The process begins with chromosomes, which determine which genes are present in the embryo. These genes influence the development of reproductive organs. Once reproductive organs begin forming, hormones produced by those organs influence the development of reproductive structures throughout the body.

In other words:
Genes determine which organs form.
Hormones influence how those organs guide further development.

This two-stage process allows genetic instructions and hormonal signals to work together during development.

Why Genetic Sex Is Established So Early

Because sex chromosomes are present from the moment of fertilization, the genetic basis of sex is established very early. However, the visible development of male and female anatomy takes time.

This means biological sex is genetically determined early but becomes physically apparent later. This early genetic determination also explains why certain types of genetic testing can identify biological sex relatively early during pregnancy.

Cell-Free Fetal DNA and Early Detection

During pregnancy, small fragments of fetal DNA circulate in the mother’s bloodstream.
These fragments are known as cell-free fetal DNA (cffDNA). Cell-free fetal DNA comes primarily from placental cells that release fragments of genetic material into the maternal circulation. Because these fragments contain genetic information from the embryo, they can sometimes be analyzed to identify specific DNA sequences.

If fragments of DNA from the Y chromosome are detected in maternal blood, this indicates that the embryo contains a Y chromosome.

If Y chromosome sequences are not detected, the fetus is typically inferred to be chromosomally XX, although results depend on test quality, fetal fraction, and rare biological or technical exceptions..

This approach allows biological sex to be identified using molecular detection methods rather than visual observation.

(For context on how the embryo develops before these DNA fragments appear, see What Happens in the First 10 Days After Conception.)

Fetal DNA bloodstream diagram
Small fragments of fetal DNA can circulate in maternal blood during pregnancy.

Why Ultrasound Detects Sex Later

Ultrasound imaging is commonly used during pregnancy to observe fetal development. However, ultrasound relies on visible anatomical differences. Because the reproductive organs develop gradually, these differences are not visible until several weeks into pregnancy. Accuracy generally improves with gestational age and image quality, which is why later ultrasound exams are more reliable for this purpose.

Genetic testing methods detect DNA sequences rather than anatomical structures. This difference explains why genetic testing can sometimes identify sex earlier than ultrasound imaging.

Natural Variation in Sex Development

Although most embryos follow the typical XX or XY developmental pathways, human biology includes natural variation. In some cases, differences in gene expression, hormone levels, or receptor responses can influence how reproductive structures develop.

These variations are sometimes grouped under the term differences of sex development (DSD). DSD conditions are relatively uncommon but illustrate that sex development is a complex biological process involving multiple genes and signaling pathways. Most individuals follow the typical XX or XY developmental pathways, but variation reflects the complexity of human biology.

Sex Determination and Fertility Timing

Sex determination occurs independently of ovulation timing. Ovulation determines when an egg becomes available for fertilization, but the genetic sex of the embryo depends entirely on which sperm fertilizes the egg.

Because sperm carrying X and Y chromosomes are both present, the outcome is largely determined by chance.

(For more context on ovulation timing and reproductive variability, see Ovulation: Timing, Signals, and Biological Variability.)

Why the Outcome Is Probabilistic

Because sperm carrying X chromosomes and sperm carrying Y chromosomes are both present in the reproductive tract, fertilization outcomes follow roughly equal probabilities. This is why the natural sex ratio at birth remains close to balanced across large populations.

Although small variations occur across populations and the sex ratio can shift slightly during pregnancy and at birth, the distribution reflects the biological probability of X-bearing and Y-bearing sperm fertilizing the egg. This probabilistic outcome highlights the role of chance within reproductive biology.

Frequently Asked Questions

When is biological sex determined?
Biological sex is determined at fertilization when the sperm and egg combine their chromosomes.

Does the egg determine the baby’s sex?
No. The egg always contributes an X chromosome. The sperm contributes either an X or a Y chromosome.

Why can genetic tests identify sex earlier than ultrasound?
Genetic tests detect Y chromosome DNA, while ultrasound requires visible anatomical development that develop later during pregnancy.

Do early embryos look different based on sex?
No. Early embryos appear nearly identical regardless of their sex chromosomes.

Do hormones determine sex?
Hormones influence the development of reproductive structures, but genetic sex is established by chromosomes.

Conclusion

Genetic sex determination begins at the moment fertilization occurs. When sperm and egg combine their chromosomes, the embryo receives either an XX or XY chromosome pair. This genetic combination provides the instructions that guide the development of reproductive anatomy.

Although the genetic signal is present from the beginning, physical differences associated with male and female development appear gradually during early pregnancy. Hormones produced by developing reproductive organs guide the formation of reproductive structures over time.

Understanding sex determination at the cellular level helps clarify how early development unfolds and why genetic testing can identify biological sex before physical differences become visible.

These early genetic signals represent the first step in a complex biological process that continues throughout pregnancy.

Genetic Sex Determination at the Cellular Level