Same-sex sexual behavior (SSB), defined as any sexual interaction between individuals of the same sex, has been documented across a broad range of animal taxa, including invertebrates (Bagemihl 1999; Bailey and Zuk 2009). These interactions may involve courtship, mounting, copulation, genital contact, or pair bonding (Bailey and Zuk 2009). Traditionally, sexual behavior in animals has been viewed through a binary, reproduction-focused lens, centered on male-female copulation as the primary route to fitness. This perspective has shaped classical evolutionary theory by linking reproductive success exclusively to heterosexual mating and offspring production. However, growing evidence of SSB challenges this paradigm, prompting a re-evaluation of its biological relevance and the possibility that it may serve adaptive functions (Bagemihl 1999; Bailey and Zuk 2009; Richardson et al. 2024).
The growing interest in same-sex sexual behavior (SSB) has raised important questions about its causes, functions, and evolutionary implications. As reports of SSB in invertebrates continue to accumulate, long-standing assumptions in evolutionary biology and behavioral ecology are being challenged, especially given that invertebrates comprise majority of known animal species (Eisenhauer and Hines 2021). With their remarkable diversity in reproductive strategies, social systems, and sexual morphologies (Eisenhauer and Hines 2021), invertebrates offer a powerful framework for investigating sexual behavior beyond vertebrate-centered models. Nonetheless, despite their ecological and taxonomic richness, invertebrates remain underrepresented in research on non-reproductive sexual interactions, including those involving same-sex individuals.
Historically, the classical narrative in behavioral biology held that non-reproductive sexual acts were maladaptive or pathological (Ryan and Rand 1993). Early exceptions, such as male-male copulation in acanthocephalan worms (Abele and Gilchrist 1977), were treated as curiosities rather than integrated into broader evolutionary frameworks. In contrast, recent decades have seen a surge in interest and data, leading to the recognition that SSB is neither rare nor necessarily maladaptive (Scharf and Martin 2013; Monk et al. 2019; Richardson et al. 2024). This growing attention has been fueled in part by studies using controlled laboratory conditions, such as genetic mutants of Drosophila melanogaster that exhibit robust male-male courtship (Yamamoto and Nakano, 1999), and detailed behavioral observations in field and semi-natural environments, such as same-sex tandem running in termites (Reticulitermes speratus) under predator threat (Matsuura et al. 2002). These studies have moved the field beyond anecdotal observations to systematic data collection and hypothesis testing.
Currently, SSB has been documented in a wide range of invertebrate taxa. For example, male-male courtship and mounting behaviors have been found to be common in beetles (Stojković et al. 2010), crickets (Bailey et al., 2013; Boutin et al. 2016), and parasitic wasps (Benelli et al. 2013). Though less studied, SSB has also been reported in spiders and millipedes (Scharf and Martin 2013). Limpets and squids have been observed to display complex same-sex interactions, often linked to sex change or misdirected spermatophore transfer (Rivera-Ingraham et al. 2011; Hoving and Robison 2012). Flatworms, especially the genus Macrostomum, showed reciprocal copulation and hypodermic insemination between same-sex partners (Ramm et al. 2015; Schärer et al. 2017). Similarly, shrimps such as Lysmata wurdemanni display sex-change behaviors influenced by the social environment, including same-sex pairings (Baeza and Bauer 2004).
The scientific literature presents three main hypotheses to explain same-sex sexual behavior (SSB) in invertebrates: (i) mistaken identity or indiscriminate mating, (ii) social and environmental influences, and (iii) adaptive functions. The first hypothesis suggests that SSB may result from an inability to accurately distinguish sexes, especially in species with weak sexual dimorphism or under time-constrained mating conditions (Sales et al. 2018; Monk et al. 2019). For example, male crickets (Teleogryllus oceanicus) often attempt same-sex copulation in dense environments where sex-specific cues are limited (Bailey and French 2012). Similarly, hermaphroditic flatworms such as Macrostomum lignano exhibit reciprocal copulation and hypodermic insemination between same-sex partners, potentially driven by sexual conflict or strategic sperm allocation (Schärer and Ladurner 2003; Vizoso and Schärer 2007). The second hypothesis emphasizes how social structure, and environmental context can shape SSB. In species like termites and shrimps, same-sex interactions may reflect colony dynamics or responses to ecological pressures such as sex ratio imbalances, crowding, or predation (Matsuura and Nishida 2001; Baeza and Bauer 2004). Environmental disturbances, such as flooding in Calopteryx splendens, can alter mating behavior and trigger transient same-sex interactions (Gołąb and Śniegula 2012). Likewise, fungal infections have been linked to increased male-male mounting in Schistocerca gregaria, possibly due to changes in sensory processing or reproductive urgency before death (Clancy et al. 2017). The adaptive hypothesis proposes that SSB may offer direct or indirect fitness benefits (Bailey and Zuk 2009; Mizumoto et al. 2016). These may include mating practice, social dominance, stress relief, reproductive assurance in hermaphrodites, or survival advantages. For example, in the termite R. speratus, same-sex tandem running enhances group cohesion and reduces predation risk (Matsuura et al. 2002; Li et al. 2013). Such cases suggest that SSB, far from being maladaptive, can function as context-dependent and evolutionary relevant behavior. Theoretical models by Lerch and Servedio (2007) further support how indiscriminate mating can persist under high-density conditions, while Scharf and Martin (2013) emphasized the need to view SSB as part of insects’ normal behavioral spectrum.
Although SSB has been documented across numerous invertebrate taxa, its occurrence is not without potential costs. Beyond the immediate consequence of reduced reproductive output, some studies have reported additional fitness-related drawbacks. For instance, SSB has been associated with decreased lifespan in seed beetles (Acanthoscelides obtectus) and parasitic wasps (Psyttalia concolor) (Stojković et al. 2010; Benelli et al. 2013), as well as with energetic expenditures, physical harm such as genital damage in acanthocephalan worms (Abele and Gilchrist 1977), and diminished mating success due to less time allocated to courting females (Bailey et al. 2013). These findings suggest that the persistence of SSB within populations likely reflects a complex balance of costs and benefits, influenced by ecological context and selective pressures. Understanding this trade-off is essential to elucidate the evolutionary dynamics underlying SSB.
Understanding the ecological and evolutionary contexts of same-sex sexual behavior (SSB) in invertebrates requires attention to both proximate mechanisms and broader adaptive frameworks. A range of neurogenetic, chemical, and environmental factors appear to regulate SSB expression (Bailey et al. 2013; Scharf and Martin 2013; Hoskins et al. 2015; Lane et al. 2016; Mizumoto et al. 2023). In model organisms like Drosophila, genes such as fruitless and doublesex control sex-specific neuronal circuits, with mutations leading to male-male courtship (Yamamoto and Nakano 1999; Rideout et al. 2015). More recently, transcription factors like Myc have been shown to suppress such behaviors under typical conditions, revealing the behavioral plasticity that can emerge from neural perturbations (Pan et al. 2022). Chemical cues, especially cuticular hydrocarbons (CHCs), also play a central role in mate recognition among insects. Alterations in these signals can result in recognition errors and same-sex interactions (Benelli and Canale 2012; Seidelmann 2023). In some cases, SSB may even be reinforced by social experience: males that have been courted by others may show heightened mating competitiveness (Benelli et al. 2013). This raises the possibility of feedback mechanisms and social learning in sexual behavior. From an adaptive perspective, SSB has also been interpreted as a byproduct of indiscriminate mating strategies, particularly in short-lived species or high-density populations where missing a mating opportunity may be costlier than engaging in a mistaken one (Sales et al. 2018; Monk et al. 2019). Evidence from crickets (T. oceanicus) and flour beetles (Tribolium castaneum) supports this view (Bailey and French 2012; Martens et al. 2024). However, such behaviors can be condition-dependent; for instance, male crickets in poor physiological health engage less in SSB, suggesting its expression may be sensitive to individual fitness (Richardson et al. 2024). As Han and Brooks (2015) demonstrated, males engaging more often in SSB achieved higher initial success under male-biased ratios, and Gavrilets and Rice (2006) argued that some alleles promoting homosexuality in one sex may increase reproductive output in the opposite sex. This suggests that the benefit of attempting to mate with a conspecific, regardless of gender, can outweigh the costs of misidentification.
This systematic review aims to synthesize the current empirical and theoretical evidence on same-sex sexual behavior (SSB) in invertebrates, addressing existing gaps in the literature. Based on a broad range of taxa, including insects, arachnids, mollusks, annelids, and crustaceans, the study examines the prevalence, ecological contexts, proximate mechanisms, and potential evolutionary implications of SSB. This review includes both intentional same-sex interactions and those likely resulting from mistaken identity, indiscriminate mating, or socially mediated cues. This inclusive approach enables a comprehensive assessment of whether SSB arises from non-adaptive processes or may confer fitness benefits through adaptive functions. As same-sex sexual behavior dataset represents reported cases only, not true prevalence across taxa, it makes the data a bit opportunistic, and subject to strong reporting bias. Given that, some classic meta-analyses like calculating absolute prevalence or richness per order would be misleading. Accordingly, we focused on three guiding questions: i) what is the reported prevalence of SSB across ecological, behavioral, and taxonomic contexts in invertebrates?, ii) what proximate mechanisms have been identified to explain the occurrence of SSB, and how do these vary across lineages?, iii) to what extent is SSB explained by adaptive functions versus non-adaptive hypotheses, and what are the documented fitness consequences?