My Dr checks for gender at 16 weeks..
between 16-20 weeks is a good time, but some find out even earlier
Some like to wait till about 20wks because your baby is more developed.
I tried to find out at 19 hut the baby was in a bad position so it all depends but around 20 weeks the baby is big enough to find out normally