Males got a single fin under its tail.
Females got two.
However, it is not fool-proof since some are born handicapped with either clipped fins or no fins.
But in my more than 15-year fish keeping experience, sexing goldfish by the fin gave me 70-90% positive result.
The best way to determine is wait until they are sexually mature.
Females got rounder bellies and got bigger 'holes' for excreting the eggs compared to males. Females are relatively bigger than males if they are of the same age.
Males are thinner. Males usually like to bump females belly or 'butt' that is to somehow signal the females to lay eggs and that he is ready to fertilize the eggs.
Males also have white spots on the gills when they are ready to fertilize the eggs.
I do however, combine all the above-indicators I mentioned. I do trial and error until I can confirm the goldfishes' sex.
In the long run, you will also find your own technique to sex goldfishes.
Have fun!