Human sex is determined by the chromosomes: Y is the male chromosome, and X is the female chromosome. A normal male chromosome pattern is XY, and female is XX.
The phenotype (physical appearance) is determined by the SRY gene, located on the short arm of the Y chromosome.
In embryonic development:
Testosterone and DHT Effects: