By Kirill DvoryashinFounder, ImagineMyBaby.com. Reviews every article before it goes live.
Is There a Gender Code Hidden in Your Ultrasound Report?
Look for a line labelled "fetal sex." In that field, "male" means boy and "female" means girl. An M or F in the patient details can refer to the pregnant patient, and a line like "genitalia: appears normal" describes how the anatomy looked without naming the sex. If there's no fetal-sex result at all, the report alone doesn't tell you whether the clinic checked.
If you have your report open:
- Search it for "fetal sex," "genitalia," "male" and "female."
- "Male," or a note that the genitals appear male, means a boy; on labelled images, "Fetal Sex/Male" means the same.
- "Appears normal" or nothing at all means the sex isn't in this copy. The full report in your medical record may include it, and you can ask the clinic for it.
On this page
What Gender Markings Actually Appear on Reports
When fetal sex is recorded, it looks like one of these:
- "Fetal sex: male / female", written out. Sample images in the US sonography society AIUM's library are labelled "Fetal Sex/Female" and "Fetal Sex/Male."
- A plain statement about the genitals. The form one Scottish NHS board uses reads "On scan today the appearance of the genitals are … MALE / FEMALE," with one circled (NHS Greater Glasgow and Clyde).
- "Unable to determine." NHS Greater Glasgow and Clyde tells sonographers to note when they couldn't see the sex. A blank field on its own doesn't say why the result is missing.
Other markings that confuse people:
- A standalone M or F can describe the pregnant patient, especially near the name, date of birth or other demographics. In the DICOM standard that scan images use, the "Patient's Sex" field is the sex of the named patient, which on a pregnancy scan can be the mother.
- XX / XY belongs to DNA results such as NIPT, CVS or amniocentesis reports. Ultrasound can't see chromosomes, so a scan report itself won't state a karyotype.
- "External genitalia: normal" is an anatomy-check line, not a sex disclosure. One US radiology department tells sonographers to select "Appears Normal" when the parents don't want to know, because the field shows up in the patient portal (University of Washington protocol).
The "Secret Code" Myth, Debunked
Forum threads claim clinics hide the sex in codes, image numbers or staff abbreviations. Here is what those are:
- Technical fields aren't about your baby. Health-record systems label the fetal-sex field with codes such as LOINC 11882-8, "Fetal Sex US," but the code names the field, not the answer. CPT 76805 is the billing code for a standard ultrasound after the first trimester, and its list of required checks doesn't even include the genitals. Z36 codes mean antenatal screening and Z3A codes the week of pregnancy (Z3A.20 is 20 weeks). An image number only identifies the image.
- On-screen signs are plain words, not code. "Three lines" (the labia and clitoris) and "dome sign" (the scrotum) describe what sonographers look for on the screen. Patient guides use them when explaining reports: "dome sign" points to a boy and "three lines" to a girl.
How Sonographers Actually Check Gender
In a clinical exam where sex determination is permitted and requested, the sonographer looks directly at the external genitals, typically at the 18–22 week anatomy scan. For a girl, the labial folds show as parallel lines, two or four in clinical guidance and often described as "three lines" with the clitoris; for a boy, the scrotum (the dome sign) and the penis. In a Danish study of 5,786 singleton pregnancies with live births, when the anatomy scan recorded male or female, it matched the birth register 99.2% of the time (Størup et al., 2019). Earlier, from about 12 weeks, the main ultrasound method is the nub angle, which is less reliable than the anatomy scan; our nub theory guide covers them. From about 10 weeks, a blood test such as NIPT can report it, and the timeline of every method compares them.
Why Your Report Doesn't Mention Sex
Common reasons:
- It wasn't assessed. Dating and NT scan checklists don't include the genitals. Even at the anatomy scan, some programmes don't require it: the UK screening programme "does not require fetal sex to be determined" (GOV.UK), and the joint US guideline lists the genitals "if medically indicated or the patient wants to know" (ACR–ACOG–AIUM–SMFM–SRU).
- Clinic policy. Some providers won't tell you before 16 weeks, and some hospitals don't tell at all. Early calls are less certain, especially at the 12-week scan, where a call isn't always possible.
- You asked for a surprise. Some clinics then write a neutral "appears normal"; others record the sex with a note that you don't want to know, so it can still be in the full report.
- The view wasn't there. Legs crossed or cord in the way: the sonographer may note that the sex couldn't be determined.
- The law prohibits it. In some countries, disclosing fetal sex is illegal.
Where Telling You Is Against the Law, and Why
In India, the PCPNDT Act (1994) makes disclosing fetal sex illegal at any stage of pregnancy, for everyone. Clinics must display a sign saying exactly that, patients sign declarations, and violations carry criminal penalties. Similar restrictions exist in some other countries.
The reason deserves respect rather than a workaround: these laws exist because prenatal sex disclosure was being used at scale for sex-selective abortion, skewing entire birth ratios. The law protects daughters rather than targeting curious parents. If you're in a country with such a law, there is no legal "code," no legitimate paid decoder, and anyone offering to reveal your baby's sex is offering to break a law that exists for a serious reason. We don't help with that, and neither should anyone else.
(Outside such jurisdictions, in places like the US or UK, you generally have a right to your medical records. In the US that includes medical images, and providers generally have 30 days to respond (HHS); in the UK, organisations usually have one month (ICO). If sex was assessed and recorded, you can request your full report rather than decode anything.)
The Honest Way to Read Your Own Scan
If you're outside restricted jurisdictions and curious about the photo in your hand, you don't need codes. The image itself is the source:
- 12-week profile shot? The nub angle is the main first-trimester sign; here's how it works, studies included.
- 18+ week scan? The anatomy signs above may be visible in your printout if the view cooperated.
- Not sure what you're looking at? Our free ultrasound gender predictor looks for whichever of these signs your photo shows and gives a boy-or-girl guess with a confidence score, or tells you it couldn't tell when the image doesn't support a call. For fun rather than diagnosis. Your scan goes only to the AI that reads it, and we don't save it. And wherever local law restricts sex disclosure, that law applies to AI tools too, so please follow it.
FAQ
Is the gender written on an ultrasound report?
Only if it was checked and the clinic records it. Then it appears plainly, in a field labelled for fetal sex or a line about the genitals. Some clinics write "appears normal" instead when parents don't want to know, and first-trimester scan checklists don't include it.
What does M or F mean on an ultrasound report?
It depends on the field label. In a field labelled "fetal sex," M/F means male/female. In the patient details, an F can refer to the pregnant patient: scan images carry a "Patient's Sex" field for the named patient. An isolated letter without a label is not enough; ask the clinic that issued the report.
Is there a secret code for gender on ultrasound reports?
No. Technical numbers describe the procedure, billing, the week of pregnancy and the images, not the sex. Health-record codes such as LOINC 11882-8 only label the fetal-sex field. A missing sex line means the sex isn't in that copy; ask the clinic whether it was checked.
Why won't the clinic tell me my baby's gender?
Common reasons: it wasn't part of the scan's medical protocol, the clinic doesn't make calls before about 16 weeks or at all, the view wasn't clear enough, or local law (as in India under the PCPNDT Act) prohibits disclosure entirely.
Is it legal to find out your baby's gender?
Depends on where you are. In most Western countries, yes, and it's often shared at the anatomy scan on request, depending on the hospital's policy. In India and some other countries, prenatal sex disclosure is illegal for everyone, a law enacted to stop sex-selective abortion.
Sources
- PocketHealth: Finding out your baby's gender on ultrasound
- NHS GGC clinical guideline: Fetal gender determination and disclosure
- PC-PNDT Act: handbook for medical professionals — Ministry of Health and Family Welfare, India
- MadeForMums: 3 lines on pregnancy ultrasound: does it show your baby's sex?
- ACR–ACOG–AIUM–SMFM–SRU Practice Parameter for the Performance of Standard Diagnostic Obstetrical Ultrasound (revised 2023)
- GOV.UK: Fetal anomaly screening programme handbook, 20-week screening scan
- University of Washington Radiology: Obstetrical Ultrasound Early Anatomy Protocol
- Størup et al.: Foetal sex determination at the second trimester anomaly scan in Denmark (2019)
- SMFM: Descriptions and Required Components for CPT 76805, 76815 and 76816
- DICOM Standard PS3.3: Patient Module
- LOINC 11882-8 "Fetal Sex US" (NLM Clinical Tables)
- HHS: Your Medical Records
- ICO: Getting copies of your information (SAR)
Have a Scan Photo Instead of a Code?
Upload it and see what the AI can make of the view you have.
This article is general information, not medical advice. Prenatal testing decisions belong with your OB-GYN or midwife. Local laws on sex disclosure apply everywhere, including to online tools.