So, most health care providers schedule an ultrasound at 18 to 21 weeks, but they can determine the sex of the baby as early as 14 weeks. Although, it's not always 100% accurate.