Prenatal gender assignment by ultrasound has a high accuracy rate at 12 to 14 weeks.The accuracy of sex determination increased with gestation.
By the routine 18--22week detailed scan the gender is often clearly determined with about a 98% accuracy rate.
Well said doc!