Question: how many weeks do you have to know the gender?
Answer: Most doctors schedule an ultrasound at around 18 to 21 weeks, but the sex may be determined by ultrasound as early as 14 weeks .