Biological sex is set at conception, while gender in pregnancy can usually be confirmed by blood tests or ultrasound between 10 and 20 weeks.
When people ask, when is gender determined in pregnancy?, they are often asking two linked questions: when a baby’s sex is set and when parents can reliably find out. Those moments are not the same, which can make the topic feel confusing.
When Is Gender Determined In Pregnancy? Main Milestones
From a biological point of view, sex is decided the instant sperm meets egg. The sperm carries either an X or a Y chromosome, joining the X chromosome from the egg to form either XX or XY. That chromosomal pattern is fixed from conception and does not change.
The visible features that match that chromosomal pattern build up in several steps. Early on, all embryos have the same basic reproductive structures. Around the sixth to seventh week of gestation, the gonads start to differentiate into testes or ovaries under the influence of genes such as SRY on the Y chromosome. Later in the first trimester, the external genitalia begin to look more clearly male or female as hormones act on that tissue.
Clinically, parents can first learn the baby’s sex through blood tests and then through imaging. Noninvasive prenatal testing that reads fragments of fetal DNA in the pregnant person’s blood can report sex from about ten weeks, while ultrasound pictures during the mid-pregnancy anatomy scan give a clear view for many pregnancies.
How Gender Is Determined During Pregnancy Week By Week
It helps to think about pregnancy gender timing as a timeline with three layers: conception, internal sex development, and the point when tests can show those differences. The table below sketches the main steps.
| Gestational Age | Sex Development | What Parents Can Know |
|---|---|---|
| Conception (Week 3 Gestational) | Sperm carrying X or Y chromosome fertilizes egg, setting chromosomal sex as XX or XY. | Sex is fixed, but no pregnancy test or scan can show it yet. |
| Weeks 4–5 | Embryo has “bipotential” gonads and ducts that could form male or female structures. | Home and clinic pregnancy tests can confirm pregnancy but not sex. |
| Weeks 6–7 | SRY gene activity in embryos with a Y chromosome begins testis development; ovaries develop when that signal is absent. | Sex development has started internally, still invisible on scan. |
| Weeks 8–9 | Gonads continue to differentiate; early hormone production starts in male fetuses. | No visual difference yet on standard ultrasound views. |
| Weeks 10–12 | External genitalia begin to diverge as hormones act on shared tissue. | Some specialized early ultrasounds and blood tests may give a sex result, though results can still be uncertain. |
| Weeks 13–16 | External genitalia become more pronounced; accuracy of ultrasound sex prediction rises. | Many clinics can sometimes see sex on scan, but accuracy depends on position and equipment. |
| Weeks 18–22 | Sex organs are usually well defined on imaging. | The standard anatomy scan around twenty weeks is the stage when most parents hear “boy” or “girl” from ultrasound findings. |
Science Behind How Fetal Sex Develops
To explain timing clearly, it helps to look at how sex development unfolds inside the uterus. Doctors often divide this process into chromosomal, gonadal, and anatomical stages.
Chromosomes Set Sex At Conception
Each egg carries one X chromosome. Each sperm carries either an X or a Y. At conception, these join to form XX or XY, which guides later sex development. That chromosomal setup is present in every cell of the embryo from the earliest days and remains present through life.
Gonads And Hormones Shape Internal Sex Organs
During the first several weeks all embryos share the same basic gonadal ridge and paired ducts. Around the sixth week, differences appear under the influence of genes such as SRY and others on the Y chromosome. In embryos with XY chromosomes, the gonads develop into testes, which begin producing testosterone and other hormones a short while later. In embryos with XX chromosomes, the gonads form ovaries instead, and the internal ducts follow a different pattern.
External Genitalia Develop Over The First Trimester
Even after gonads have started to differentiate, the outside genital structures still look similar for several weeks. Around week nine to twelve, hormone signals drive the growth of either a penis and scrotum or a clitoris and labia from the same starting tissue. By the end of the first trimester, some scans can suggest sex, though mistakes remain more common than later in pregnancy.
Medical Tests That Reveal Fetal Sex
Knowing when gender shows up on tests during pregnancy also depends on which method is used. Each option has its own timing window, purpose, and level of certainty.
Noninvasive Prenatal Testing (NIPT)
NIPT looks at small fragments of fetal DNA circulating in the pregnant person’s blood. These fragments come mainly from the placenta and include information about sex chromosomes.
Many labs offer NIPT from ten weeks of pregnancy onward, once there is enough fetal DNA in the bloodstream for analysis. Health organizations such as the Cleveland Clinic describe NIPT as a screening test that can also report fetal sex with high accuracy when the fetal fraction is strong.
NIPT is usually ordered to screen for chromosomal conditions, not only to find out sex. Rarely, low fetal fraction, twin pregnancies, or certain chromosomal patterns can make the result unclear, and mismatches with other findings may lead doctors to suggest follow-up testing.
Chorionic Villus Sampling (CVS) And Amniocentesis
CVS and amniocentesis are diagnostic procedures that take a small sample of tissue or amniotic fluid for direct genetic testing. CVS is usually done between ten and thirteen weeks, while amniocentesis is more common from fifteen weeks onward.
Because these tests analyze fetal chromosomes directly, they can determine sex with near perfect accuracy. They are generally reserved for pregnancies with higher risk of genetic conditions or with concerning screening results, since both procedures carry a small risk of complications.
Ultrasound And The Anatomy Scan
Ultrasound uses high-frequency sound waves to create moving pictures of the fetus. A standard mid-pregnancy anatomy scan around eighteen to twenty-two weeks is recommended by groups such as the American College of Obstetricians and Gynecologists, mainly to check growth and screen for structural conditions.
At that scan, the sonographer may be able to see external genitalia clearly enough to share a sex prediction. Accuracy is usually high at this stage when the baby is in a good position and equipment offers clear resolution. Some clinics also offer early gender scans during the late first or early second trimester, though image quality and accuracy can vary.
Comparing Ways To Learn Fetal Sex
Parents often compare timing, accuracy, and reasons for using each method that can answer when gender is revealed during pregnancy in practical terms. The table below summarizes the main differences.
| Method | Typical Timing | Main Use |
|---|---|---|
| NIPT Blood Test | From 10 weeks onward | Screening for chromosomal conditions with sex reported as part of the panel. |
| CVS | 10–13 weeks | Diagnostic testing of chromosomes when earlier screening or family history suggests higher risk. |
| Amniocentesis | 15 weeks onward | Diagnostic testing of chromosomes and other genetic information when detailed answers are needed. |
| Early Gender Ultrasound | 13–16 weeks | Optional scan in some clinics to look for visible external genitalia. |
| Standard Anatomy Scan | 18–22 weeks | Routine check of anatomy and growth, where many parents learn sex if they choose. |
| Birth | Delivery | Visual confirmation of external genitalia when the baby is born. |
Why Test Results About Gender Can Sometimes Change
Most of the time, information about fetal sex from NIPT, diagnostic testing, or ultrasound matches at birth. Still, a small number of families receive results that later change, or they meet a child whose sex or gender identity does not match what was expected.
Occasional mismatches between early and later ultrasound images can come from baby position, cord placement, or image quality. NIPT can also be affected by placental mosaicism, vanishing twin scenarios, or low fetal fraction, and rare genetic variations can mean that chromosomal patterns, gonadal tissue, and external genitalia do not line up in a simple way.
When results around fetal sex seem unclear or conflict with one another, clinicians may suggest repeat imaging, referral to a maternal-fetal medicine specialist, or diagnostic testing.
Talking With Your Care Team
Deciding when and how to learn about fetal sex is personal. Some people want to know as early as possible, while others prefer to wait until the anatomy scan or until birth. Testing decisions should take risks, benefits, and limits into account.
A good starting point is to tell your prenatal care provider how strongly you want to know the sex, how you feel about screening versus diagnostic tests, and whether any genetic risks run in your family. Together, you can match your preferences with the testing options that fit your pregnancy.
Main Takeaways On Pregnancy Gender Timing
So, when is gender determined in pregnancy? Sex is set at conception, when chromosomes from the egg and sperm combine. Internal sex organs start to differentiate around the sixth to seventh week of gestation, and external genitalia begin to look more typically male or female toward the end of the first trimester.
For parents asking when they can find out, noninvasive prenatal testing can often report sex from about ten weeks, diagnostic tests such as CVS and amniocentesis can provide direct chromosomal answers a little later, and ultrasound around twenty weeks remains the most common point when sex is shared.
Whichever route someone chooses, clear conversations with health professionals and realistic expectations about accuracy can make the process around learning fetal sex calmer and more straightforward.
Mo Maruf
I created WellFizz to bridge the gap between vague wellness advice and actionable solutions. My mission is simple: to decode the research and give you practical tools you can actually use.
Beyond the data, I am a passionate traveler. I believe that stepping away from the screen to explore new environments is essential for mental clarity and physical vitality.
