Ultrasounds may help determine the gender of your baby with relative certainty after 20 weeks of gestation (18).