Beyond sex as a binary or biological variable, within-sex variations related to sociocultural gender variables are of increasing interest in psychiatric research to better understand individual differences. Using a data-driven approach, we developed a composite gender score based on sociodemographic and psychosocial variables showing sex differences in a sample of psychiatric emergency patients upon admission (N = 1708; 39.4% birth-assigned females; mean age = 40 years; age standard deviation = 14). This gender score was extracted from a confirmatory factor analysis (CFI = 0.966; RMSEA = 0.044, SRMR = 0.030) and could predict a person's birth-assigned sex with 67% accuracy. This score allowed the further identification of differences on impulsivity measures that were absent when looking solely at birth-assigned sex. Female birth-assigned sex was also associated with higher rates of mood and personality disorder diagnoses, while higher feminine gender scores were related to higher proportions of anxiety and mood disorder diagnoses. By contrast, male birth-assigned sex and higher masculine gender scores were associated with higher proportions of psychotic and substance use disorder diagnoses. Patients with undifferentiated gender scores (i.e., scoring between masculine and feminine threshold defined by terciles) were more represented in the psychotic disorder group. Considering both sex and gender in psychiatric research is essential and can be achieved even when using secondary data to index gender comprised of demographic and psychosocial variables.