what is the definition of gender identity?

Gender identity refers to an individual's innermost sense of their own gender, which may or may not correspond with the sex they were assigned at birth. It is a person's deeply held and persistent experience of their own gender, which can be male, female, a combination of both, or neither. Gender identity is different from biological sex and can differ from the gender roles and expectations that society imposes on individuals based on their sex.