There are several reliable ways to find out your baby’s sex during pregnancy, ranging from a simple blood test as early as 7 weeks to the standard ultrasound around 18 to 20 weeks. Which method you use depends mostly on how far along you are and whether you’re already having prenatal screening for other reasons.
How Sex Develops in the Womb
A baby’s biological sex is determined at conception by the chromosomes contributed by the sperm. But the physical differences that allow doctors to identify sex don’t appear right away. Around week 6 of pregnancy, a gene on the Y chromosome (if present) signals the gonads to develop as testes. Testosterone and related hormones then shape the internal and external genitalia over the following weeks. Because this process is gradual, the external anatomy isn’t visually distinguishable on an ultrasound until well into the first trimester, and even then, accuracy is limited.
Blood Tests: The Earliest Option
Tiny fragments of DNA from the placenta circulate in your bloodstream starting around 5 weeks of pregnancy. A blood draw can detect whether any of that DNA carries Y-chromosome material. If it does, the baby is male. If none is found, the baby is female.
A large meta-analysis covering 90 studies and over 10,500 tests found that these cell-free DNA tests have an average sensitivity of 96.6% and specificity of 98.9%. Even at 5 weeks, accuracy reaches roughly 93% to 95%. Reliability improves further with gestational age: samples taken at week 7 or later show sensitivity climbing from about 95% in weeks 7 through 12 to 99% after week 20.
You’ll encounter this technology in two forms. Clinical-grade noninvasive prenatal testing (NIPT), typically offered around weeks 10 to 12, screens for chromosomal conditions like Down syndrome and reports fetal sex as part of the results. At-home sex tests sold directly to consumers use the same underlying science. Both analyze fetal DNA in your blood, but clinical NIPT is performed in accredited labs with stricter quality controls. If you use a consumer kit, timing matters: waiting until at least 7 weeks reduces the chance of an inconclusive or incorrect result.
Ultrasound: What to Expect at Each Stage
Ultrasound is how most people learn their baby’s sex. The accuracy depends almost entirely on when the scan happens.
At the first-trimester scan (around 11 to 13 weeks), sonographers can sometimes make a prediction based on the angle and shape of a small tissue bud called the genital tubercle. This is the basis of what’s informally known as the “nub theory.” In a study of routine scans, the overall success rate for first-trimester sex identification was about 75%. When sonographers excluded cases where they couldn’t make a confident call, accuracy rose to 91%. That’s decent but far from definitive, so treat any early guess with caution.
The picture changes dramatically after 14 weeks. The same study found 100% accuracy for predictions made after that point. By the standard anatomy scan at around 19 to 20 weeks, the external genitalia are well developed and clearly visible in most cases. Correct sex assignment was achieved in 99.5% of second-trimester scans and 99% of third-trimester scans, with the small remainder being cases where the baby’s position made visualization impossible rather than cases where a wrong call was made.
Baby position, body habitus, and the amount of amniotic fluid can all affect visibility. If the sonographer can’t get a clear view, you may be asked to return for another scan or simply wait for a later appointment.
Diagnostic Procedures
Amniocentesis and chorionic villus sampling (CVS) analyze fetal chromosomes directly, making them essentially 100% accurate for determining sex. However, these are invasive procedures performed for medical reasons, such as diagnosing genetic conditions, not simply to learn whether you’re having a boy or girl.
Both carry a small but real risk of pregnancy loss. Second-trimester amniocentesis raises the miscarriage rate by roughly 1 percentage point above the background rate (about 2.1% versus 1.3% without the procedure). CVS performed through the abdomen has a comparable risk profile to amniocentesis, while CVS done through the cervix carries somewhat higher loss rates. Because of these risks, neither procedure is recommended solely for sex determination.
Old Wives’ Tales and Heart Rate Myths
You’ve probably heard that a fetal heart rate above 140 beats per minute means a girl, while below 140 means a boy. A systematic review and meta-analysis of five studies covering 4,308 pregnancies put this claim to rest. The pooled data showed no statistically significant difference in heart rate between male and female fetuses. Some individual studies found slightly faster rates in boys, one found slightly faster rates in girls, and one found no difference at all. The variation was too small and inconsistent to predict anything.
The same goes for other popular methods: carrying high versus low, food cravings, skin changes, or the ring-on-a-string test. None have any scientific backing. They’re fun to speculate with, but they perform no better than a coin flip.
Choosing the Right Method for You
Your timeline and circumstances will guide which approach makes the most sense:
- Before 10 weeks: An at-home fetal DNA blood test can give a result as early as 7 weeks with high accuracy (around 95%). Consumer tests vary in quality, so look for ones that use accredited labs.
- 10 to 13 weeks: If you’re having NIPT for chromosomal screening, sex will be reported alongside those results. The first-trimester ultrasound may offer an early visual prediction, but accuracy at this stage is only 75% to 91%.
- 14 weeks and beyond: Ultrasound becomes highly reliable. The anatomy scan at 18 to 20 weeks is when most parents learn their baby’s sex with near-perfect accuracy.
Current clinical guidelines recommend that fetal sex be examined as part of the routine second-trimester anatomy scan and disclosed to parents who want the information. If you’d rather wait or prefer not to know, let your care team know before any scan or blood test so results can be handled accordingly.

