Hi... Many pregnant women find out their baby's sex (if they choose to know) during their midpregnancy ultrasound, which is usually done between 16 and 20 weeks. However, if the gynecologist can't get a clear view of the baby's genitals, it may not be possible to tell for sure.