The moment you see two lines on a test, the question starts forming: is it a boy or a girl? These days you don’t have to rely on guesswork — there are several reliable, medical ways to find out, and each one becomes available at a different point in pregnancy. Knowing which method comes when helps you plan, set expectations, and avoid disappointment if you were hoping for an answer sooner than the science allows. Here’s an honest, practical walkthrough of when you can actually find out your baby’s sex, from the earliest blood test to the mid-pregnancy scan, plus a quick word on the fun-only methods everyone loves to try.

First, a quick note on timing

Everything below depends on how far along you are, so it helps to know your exact stage. You can check how many weeks pregnant you are and use that number to see which options are realistically on the table. Pregnancy weeks are counted from the first day of your last period, not from conception — which is why a “10-week” blood test is possible earlier than many people expect.

One more thing to hold onto: “reliable” and “definitive” aren’t the same word. Screening tests and ultrasounds are very good but not absolute, while diagnostic tests are near-certain but done only for specific medical reasons. And availability varies — what your insurance, health system, or clinic offers, and at what point, differs from place to place. Treat the timings below as typical rather than guaranteed, and confirm the specifics with your own care team. Let’s look at each.

The reliable methods, and when each is available

NIPT / cell-free DNA blood test — from about 10 weeks. This is the earliest dependable option. NIPT (non-invasive prenatal testing) is a simple blood draw from your arm, usually available from around 10 weeks of pregnancy. It analyzes fragments of the placenta’s DNA circulating in your bloodstream, primarily to screen for chromosomal conditions such as Down syndrome. Because that DNA includes sex chromosomes, the same test can also reveal your baby’s sex early and with high accuracy. It’s still a screening test rather than a diagnosis, so results are best interpreted with your provider — and in some cases the lab may not report sex, or a clinic may have its own policy about sharing it.

The mid-pregnancy anatomy ultrasound — about 18 to 20 weeks. Often called the 20-week scan or anomaly scan, this detailed ultrasound is typically done between 18 and 20 weeks. Its real purpose is to check your baby’s growth, organs, spine, heart, and development in depth. Identifying the sex is a side benefit, and usually a reliable one — but only if the baby cooperates. If they’re facing your spine, have their legs crossed, or the cord is in the way, the sonographer may not get a clear look, and you might leave without an answer or with a “best guess” that’s revised later.

Diagnostic tests — CVS at about 10 to 13 weeks, amniocentesis at about 15 to 20 weeks. Chorionic villus sampling (CVS), performed around 10 to 13 weeks, and amniocentesis, around 15 to 20 weeks, examine your baby’s actual chromosomes, so they determine sex with near-certainty. Crucially, these are diagnostic procedures offered for medical reasons — such as following an abnormal screening result or a known family genetic condition — and they carry a small risk. No one has them purely to satisfy curiosity about sex; the sex information is simply part of what the chromosome analysis reveals.

IVF with PGT — potentially known before pregnancy. If you conceived through IVF with preimplantation genetic testing (PGT), your embryos may have been genetically tested before transfer. In that case the sex chromosomes were identified at the embryo stage, so the information may already exist in your records before you’re even pregnant. Whether it’s shared with you depends on the testing done and on clinic and regional policies, some of which restrict disclosing or selecting sex.

At a glance

MethodEarliest timingReliabilityNotes
NIPT / cfDNA blood test~10 weeksHigh (screening)Maternal blood test; also screens for chromosomal conditions
Anatomy ultrasound~18–20 weeksHigh if well positionedMain purpose is checking development; view can be obscured
CVS (diagnostic)~10–13 weeksNear-certainDone for medical reasons, not curiosity; small risk
Amniocentesis (diagnostic)~15–20 weeksNear-certainDone for medical reasons, not curiosity; small risk
IVF with PGTBefore/early pregnancyNear-certainEmbryo tested before transfer; disclosure depends on policy

The fun-only methods

Alongside the medical options, there’s a whole world of playful prediction: the Chinese gender chart, “nub theory” and Ramzi theory read from early scans, and the classic old wives’ tales about bump shape and cravings. Enjoy them for what they are — entertainment. You can read our honest look at the old wives’ tales or try the traditional Chinese chart for a bit of fun, but none of these predicts sex any better than flipping a coin. Screenshot the results, tease the relatives, and hold the outcomes lightly.

The bottom line

If you want a real answer, the earliest reliable route is usually the NIPT blood test from around 10 weeks, followed by the anatomy ultrasound at 18 to 20 weeks; diagnostic tests and IVF with PGT provide near-certain information but arise from specific medical circumstances rather than curiosity. Exactly what’s available to you — and whether a clinic will disclose sex at all — depends on your pregnancy, your provider, and your region, since some clinics and areas have policies about sharing fetal sex. The best next step is simple: check how far along you are, then ask your doctor or midwife which option fits your timeline and what their policy is. That’s the one conversation that turns a guessing game into a genuine answer.