I just found out at 21 weeks
I found out at 14w4d but I had get a gender confirmation at 20 weeks.
Your doctor will usually schedule anatomy ultrasounds around 20 weeks gestation, that is when you usually get to find out the gender of your baby.
I found out at 17 weeks but they were wrong then Told me it was a girl at 19 weeks