Ultrasound first became capable of identifying fetal sex in the late 1970s and early 1980s, as real-time scanners replaced the crude, static imaging equipment that had defined the technology’s first two decades. But the question has two layers: when the machines got good enough to see it, and when in pregnancy there is actually something to see. External genitalia look identical in all fetuses until roughly the twelfth week of development, which means even today’s high-resolution equipment faces a hard biological floor that no amount of engineering can bypass.
Why There Is Nothing to See Before Twelve Weeks
During the first several weeks after conception, every fetus develops the same undifferentiated genital structure called the genital tubercle. Whether the chromosomes are XX or XY, the external anatomy looks the same until about the ninth to twelfth week of gestational age, when hormonal signals begin steering the tissue toward male or female development. By around the fourteenth week (counting from the last menstrual period), the external genitalia have typically differentiated enough to look distinct under magnification.1UNSW Embryology. BGDB Sexual Differentiation – Fetal – Section: External Genitalia This shared starting point is why no imaging technology, no matter how advanced, can reliably reveal sex in the earliest weeks of pregnancy. The anatomy simply has not formed yet.
From Metal Flaw Detectors to Real-Time Imaging
Obstetric ultrasound traces back to 1957, when researchers first adapted industrial equipment designed to find cracks in metal for use on pregnant patients. Those early machines produced a single line of signal called an A-scope, which could detect the presence of a fetal head but offered nothing resembling a picture. Over the following four decades, the technology evolved through static B-mode images, real-time gray-scale scanning, and eventually color-flow and three-dimensional capability.2PubMed. Forty years of obstetric ultrasound 1957-1997: from A-scope to three dimensions
The practical consequence for sex determination was that the equipment of the 1960s and most of the 1970s simply lacked the resolution to distinguish fine anatomical details like external genitalia. It was the arrival of real-time scanners in the late 1970s and early 1980s that gave clinicians their first consistent ability to identify fetal sex on screen. Once these machines became standard in obstetric clinics through the 1980s, the mid-pregnancy anatomy scan, typically performed between 18 and 22 weeks, became the moment most parents first learned whether they were expecting a boy or a girl.
The First Trimester and the Genital Tubercle Angle
Modern ultrasound equipment is far sharper than those early machines, and some practitioners now attempt sex determination during first-trimester scans. The method relies on measuring the angle at which the genital tubercle points relative to the fetal spine. In male fetuses, the tubercle tends to angle upward; in females, it stays closer to horizontal or angles slightly downward.
A study measuring this angle found the average was about 36 degrees in male fetuses and roughly 22 degrees in females, a gap large enough to be statistically meaningful. Using a cutoff angle of about 28 degrees, researchers achieved around 92 percent sensitivity and 85 percent specificity for distinguishing sex.3PubMed Central. The Predictive Accuracy of Anogenital Distance and Genital Tubercle Angle for First-Trimester Fetal Sex Determination Those numbers sound impressive, but they describe ideal conditions and experienced hands. In routine clinical practice, the results are less tidy.
A separate analysis tracking accuracy by gestational age window paints a clearer picture of how much timing matters. Between weeks five and eight, ultrasound-based sex classification was right only about 54 percent of the time, essentially a coin flip. By weeks nine through eleven, accuracy climbed to about 70 percent. It was not until weeks twelve through fourteen that accuracy reached roughly 87 percent, with sensitivity for identifying males near 90 percent and specificity around 83 percent.4PubMed Central. The Morphology of the Genital Tubercle: A Macroscopic Assessment and Ultrasound Approach on Early Fetal Sex Determination
Another study of 150 women scanned at weeks eleven and twelve found that sonographers could assign a sex in about 65 percent of cases, with the remainder too uncertain to call. Among those where a call was made, the overall success rate was around 91 percent, though the positive predictive value ran higher for females (about 97 percent) than for males (about 88 percent).5PubMed Central. The ultrasound identification of fetal gender at the gestational age of 11–12 weeks That asymmetry matters: at this early stage, being told “it’s a boy” comes with a meaningful chance of being wrong. The genital tubercle in males is still developing, and the angle measurement can be ambiguous.
The Second Trimester Is Where Accuracy Peaks
By the mid-pregnancy anatomy scan around 18 to 22 weeks, accuracy is essentially perfect in experienced hands. A study of over 200 second-trimester scans found that sex could be assigned in all but one case (where the combination of high maternal BMI, uterine fibroids, and an awkward fetal position made the view impossible), and every assignment made was correct.6PubMed Central. Accuracy of sonographic fetal gender determination: predictions made by sonographers during routine obstetric ultrasound scans This is why the anatomy scan remains the standard moment for sex disclosure in most countries. The genitalia have fully formed, the fetus is large enough to image clearly, and the view rarely fails unless the baby is in an uncooperative position.
For parents wondering why their provider seems reluctant to commit during an early scan but confident at the anatomy scan, the biology explains it. Male testes, for instance, do not begin their descent from the abdomen into the scrotum until around 23 to 25 weeks. One study found that none had descended before 23 weeks, about 7 percent had one testis descended by 23 weeks, and by 32 weeks nearly all had descended.7Prenatal Diagnosis. Prenatal measurement of testicular diameter by ultrasonography: development of fetal male gender and evaluation of testicular descent Another study using slightly different methodology found roughly similar timing, with about 30 percent showing descent by 25 weeks and 97 percent after 32 weeks.8PubMed. Development of fetal male gender: prenatal sonographic measurement of the scrotum and evaluation of testicular descent So while external genitalia are distinguishable by mid-pregnancy, some male anatomy is still actively developing well into the third trimester.
What Makes Early Scans Go Wrong
When first-trimester sex predictions turn out to be incorrect, a few factors tend to be responsible. Fetal position is the most common culprit. If the baby’s legs are pressed together or the angle of the scan is slightly off, the genital tubercle can appear to point in a misleading direction. Maternal body composition also plays a role: a thicker abdominal wall means the ultrasound beam loses clarity before it reaches the fetus, making fine measurements harder. Uterine fibroids or a retroverted uterus can create similar obstacles.
Operator experience is another variable that rarely gets discussed. The genital tubercle angle technique requires a very specific plane of view and a practiced eye. In large academic centers with experienced sonographers, the numbers tend to look better than in smaller clinics where the technique is attempted less frequently. If you are offered a sex prediction at 12 or 13 weeks, it is reasonable to treat it as a strong guess rather than a guarantee and to expect confirmation at the anatomy scan.
Blood Tests That Work Earlier Than Ultrasound
Since the early 2000s, a different approach has emerged: analyzing fragments of fetal DNA circulating in the mother’s blood. Small pieces of the placenta’s genetic material leak into the maternal bloodstream, and by looking for Y-chromosome DNA, labs can determine whether the fetus is male. If Y-chromosome sequences are present, the fetus is male; if absent, female. These tests, often bundled into noninvasive prenatal screening panels, can be performed as early as seven weeks of gestation.
A large meta-analysis pooling data from 90 studies and over 10,500 tests found that cell-free DNA testing achieved an average sensitivity of about 97 percent and specificity of about 99 percent for determining sex. The results held steady regardless of trimester, meaning the test performed just as well in early pregnancy as later on.9PubMed Central. Non-invasive prenatal diagnostic test accuracy for fetal sex using cell-free DNA a review and meta-analysis A separate study examining the method’s performance by trimester found sensitivity of about 95 percent and diagnostic accuracy of about 98 percent in the first trimester, both reaching 100 percent in the second.10PubMed. Use of free fetal DNA in prenatal noninvasive detection of fetal RhD status and fetal gender by molecular analysis of maternal plasma
For parents who want a definitive answer earlier than ultrasound can reliably provide, blood-based testing is now the most accurate option. It is worth noting that these tests are primarily designed to screen for chromosomal conditions, and sex determination is a secondary output. Some providers and insurance plans restrict access to patients with specific medical indications, though direct-to-consumer versions are available in many countries.
Twin Pregnancies Are Trickier
When there are two or more fetuses, ultrasound-based sex determination becomes harder. The babies are smaller relative to their gestational age, they crowd each other, and their limbs frequently overlap on the image. A prospective study of twin pregnancies found that sex could be assigned by ultrasound during any first-trimester scan in about 80 percent of fetuses. Accuracy improved with fetal size, climbing from roughly 54 percent for the smallest twins to about 92 percent for larger ones. Male fetuses were far more likely to be misidentified than females, with an odds ratio over 23 for an assignment error in boys compared to girls.11PubMed Central. High sensitivity and specificity in fetal gender identification in the first trimester, using ultrasound and Noninvasive Prenatal Screening (NIPS) in twin pregnancies, a prospective study
Cell-free DNA testing works in twin pregnancies too, but with a catch. If Y-chromosome DNA is detected, it means at least one fetus is male, but it cannot tell you which one. To know whether both are male or the pair is mixed, ultrasound confirmation later in pregnancy is still needed. For identical twins sharing a placenta, the sex will be the same, so a single blood test result applies to both. For fraternal twins with separate placentas, the ambiguity persists until imaging can resolve it.
When the Ultrasound Shows Something Ambiguous
In a small number of pregnancies, the ultrasound reveals genitalia that do not fit neatly into a male or female category. These findings can be associated with differences of sex development, a group of conditions in which chromosomal, gonadal, or anatomical sex does not follow the typical pattern. A study reviewing cases where atypical genitalia were flagged on ultrasound found that the finding was confirmed after birth in about 91 percent of cases when the referral came from experienced centers, but in only about 64 percent when the referral came from general screening, suggesting a high rate of false alarms in routine practice.12PubMed. Prenatal ultrasound finding of atypical genitalia: Counseling, genetic testing and outcomes
For families who receive this kind of unexpected result, the experience can be distressing, especially when the ultrasound finding later turns out to have been a misreading. Genetic testing through amniocentesis or blood-based analysis can clarify the chromosomal picture, but some conditions involve a mismatch between chromosomal sex and anatomical development, meaning genetic tests alone may not predict how the genitalia will appear at birth. Experienced genetic counseling is essential in these situations.
Countries Where Revealing Sex Is Illegal
Not every country allows providers to share ultrasound-based sex information with parents. India passed the Pre-Natal Diagnostic Techniques (Regulation and Prevention of Misuse) Act in 1994, later amended and expanded in 2003 as the Pre-Conception and Pre-Natal Diagnostic Techniques (Prohibition of Sex Selection) Act, specifically to prevent the use of ultrasound and other technologies for sex-selective abortion.13Indian Journal of Forensic Medicine and Pathology. Awareness about Pre-Conception and Pre-Natal Diagnostic Techniques (PCPNDT) Act among The Married Women: An Observational Cross Sectional Study Under the law, clinics must register with the government, and disclosing the sex of the fetus to the parents is a criminal offense.
China enforced similar restrictions for decades, and several other countries in South and East Asia have laws on the books limiting prenatal sex disclosure. The regulations arose in response to documented skewing of birth sex ratios in regions where cultural preference for sons led to selective termination of female pregnancies. Enforcement has been uneven, and underground sex determination persists in some areas, but the laws have shaped how ultrasound services are delivered in these countries and remain a live policy issue.
How Knowing Earlier Changed Pregnancy Culture
The ability to learn fetal sex months before birth has quietly reshaped how people experience pregnancy. Research comparing the experiences of women who gave birth in the 1970s with those who gave birth in the 2000s found that routine use of ultrasound shifted when and how parents began buying baby items, with younger women tending to make gendered purchases much earlier than their mothers’ generation had.14Journal of Consumer Culture. Fetal sex determination and gendered prenatal consumption The sex reveal became a pivot point in pregnancy planning in a way it simply could not have been when the answer arrived only at delivery.
Gender reveal parties are the most visible manifestation of this shift, but the effects run deeper. Nurseries are decorated months in advance, names are chosen earlier, and the fetus transitions from an abstract idea to a socially gendered person well before birth. Whether this is psychologically beneficial or limiting is debated, but the practical reality is that for most parents in countries without disclosure restrictions, learning the sex at the anatomy scan has become a deeply embedded cultural expectation. Providers who decline to reveal it, whether for clinical reasons or because the view was obstructed, often face genuine disappointment from patients who have planned the moment.
Why Males Are Harder to Call Early
An odd pattern runs through nearly every study of early sex determination: male fetuses are misidentified more often than females. The twin study mentioned earlier found males were over 23 times more likely to be wrongly classified, and the singleton study at 11 to 12 weeks likewise showed a lower positive predictive value for boys than for girls.5PubMed Central. The ultrasound identification of fetal gender at the gestational age of 11–12 weeks The reason is anatomical. The developing penis and clitoris arise from the same structure, and at 11 to 13 weeks the male tubercle is still elongating and migrating. It can appear ambiguous or even female-typical on a single snapshot. The female anatomy, by contrast, tends to remain closer to the baseline position of the undifferentiated stage, making it a more stable target for identification. In practical terms, a first-trimester prediction of “girl” is more likely to hold up than a prediction of “boy.”