Gender is the range of characteristics pertaining to, and differentiating between, masculinity and femininity. Depending on the context, these characteristics may include biological sex (i.e. the state of being male, female or an intersex variation which may complicate sex assignment), sex-based social structures (including gender roles and other social roles), or gender identity.