Gender is often thought of as being congruent with sex, but in fact they are two completely separate things. Gender is best described through gender identity and gender expression.
Gender Identity: a person’s perception of having a particular gender, which may or may not correspond with their birth sex.
Gender Expression: the way in which a person expresses their gender identity, typically through their appearance, dress, and behavior.