Gender is determined by X and Y chromosomes. While expectant mothers carry only X chromosome fathers carry both X and Y chromosomes at the same time. For that reason the determining Y chromosome is inherited from the father.