Since an ultrasound creates an image of your baby, it can also reveal the sex of your baby. Most doctors schedule an ultrasound at around 18 to 21 weeks, but the sex may be determined by ultrasound as early as 14 weeks. Read More here: https://www.healthline.com/health/pregnancy/when-can-you-find-out-sex-of-baby#medical-tests