Depends on Equipment
Our ultrasounds are reliable after 18 weeks if the fetus is in a good position.
High resolution ultrasounds between 12-14 weeks when obtaining "nuchal thickness" screening can sometimes determine gender reliably. Remember it's never 100%, but usually accurate. It also helps to have an experienced sonographer and advanced training. Take care.