This is most commonly done between weeks 18 and 26 of the pregnancy, but some newer ultrasound technology can determine the baby’s sex as early as 12 or 13 weeks. Finding Out Your Baby’s Sex with Ultrasound