Sexual orientation has a genetic component, but no single gene determines whether someone is gay. The largest genetic study to date, which examined nearly half a million people, found that all measured genetic variants combined accounted for only about 8 to 25 percent of the variation in same-sex sexual behavior. The rest traces to a tangle of prenatal hormones, brain development, and individual environmental influences that researchers are still working to disentangle. The popular shorthand of a “gay gene” was always misleading, and the science has moved well past it.
What Twin Studies Reveal
The clearest early evidence that genes matter came from comparing identical twins (who share all their DNA) with fraternal twins (who share about half). If sexual orientation were entirely learned or chosen, identical twins would not be more likely to share it than fraternal twins. But they are. One twin study using a U.S. national sample found that biometrical modeling pointed to a substantial genetic influence on sexual orientation, although family environment may also play a role.1PubMed. Sexual orientation in a U.S. national sample of twin and nontwin sibling pairs A community-based Australian twin study estimated heritability at roughly 50 to 60 percent in women but only about 30 percent in men.2PubMed. Measurement models for sexual orientation in a community twin sample
Those numbers are averages for a population, not odds for an individual. They also vary from study to study depending on how sexual orientation is measured and who is in the sample. The consistent takeaway across decades of twin research is that genes are a meaningful piece of the puzzle, but they are far from the whole picture. When identical twins do not always match, something beyond shared DNA is clearly at work.
The Rise and Fall of the “Gay Gene”
In 1993, geneticist Dean Hamer published a finding that electrified both the scientific community and the public. His team studied 40 families with two gay brothers and found that roughly 64 percent of the sibling pairs shared genetic markers in a region called Xq28, on the long arm of the X chromosome. The statistical confidence was high enough that Hamer’s group concluded at least one form of male sexual orientation had a genetic influence tied to that region.3PubMed. A linkage between DNA markers on the X chromosome and male sexual orientation A follow-up study by the same group in 1995 corroborated the Xq28 linkage in gay male families, though it found no such link for lesbian families.4PubMed. Linkage between sexual orientation and chromosome Xq28 in males but not in females
The media compressed all of this into a catchy label: the gay gene. But a separate research team using 52 gay male sibling pairs from Canadian families could not replicate the result. Their analysis found no increased allele sharing at Xq28 and concluded the data did not support an X-linked gene underlying male homosexuality.5PubMed. Male homosexuality: absence of linkage to microsatellite markers at Xq28 This failure to replicate was not a definitive disproof, but it suggested the original finding might have been specific to certain family structures or statistical methods rather than universal. The Xq28 story illustrates how a real but narrow finding can be inflated by the press into something it never was.
What the Biggest Genetic Study Found
By 2019, genetic technology had advanced enough to scan hundreds of thousands of genomes simultaneously. A massive genome-wide association study, drawing on data from 477,522 individuals, identified five spots in the genome significantly associated with same-sex sexual behavior. But the researchers were blunt about what that meant: in aggregate, all tested genetic variants explained only 8 to 25 percent of the variation. The genetic signals partially overlapped between men and women, meaning some of the biology differed by sex. And the variants did not allow meaningful prediction of any individual’s sexual behavior.6PubMed Central. Large-scale GWAS reveals insights into the genetic architecture of same-sex sexual behavior
A somewhat smaller genome-wide study had earlier found promising signals on chromosomes 13 and 14, though no single genetic marker reached the threshold for genome-wide significance on its own. When the researchers combined their data with results from another dataset, one marker did cross that threshold, making it the first reported genome-wide significant association for male sexual orientation.7Scientific Reports. Genome-Wide Association Study of Male Sexual Orientation
An additional finding from the large 2019 study that got less public attention may end up mattering more. The genetic variants associated with ever having a same-sex partner were not the same variants associated with the proportion of someone’s partners who were same-sex. In other words, the genetics behind having any same-sex experience and the genetics behind the degree of same-sex orientation appeared to be partly distinct. That complicates any simple “gay or straight” framing and suggests the biology behind sexual orientation is layered even at the DNA level.
Prenatal Hormones and the Womb Environment
Genes do not act in a vacuum. Some of the strongest non-genetic biological evidence points to what happens before birth. One marker of prenatal androgen exposure is the ratio of the second to fourth finger lengths (often called 2D:4D). An updated meta-analysis found that gay women tend to have a more male-typical finger ratio, while gay men show a slightly more female-typical ratio, compared with heterosexual people of the same sex.8PubMed Central. Sexual orientation is associated with 2D:4D finger length ratios in both sexes: an updated and expanded meta-analysis The effect sizes are small, so no one can predict orientation from a hand measurement, but the pattern is consistent enough across studies to suggest that prenatal hormone exposure plays some part.
One early finger-ratio study also observed something intriguing: men with more than one older brother showed higher prenatal androgen exposure, and these men are statistically somewhat more likely to be gay in adulthood. The authors proposed that a mother’s body may in some sense “remember” previously carried sons, altering fetal development of later ones.9Nature. Finger-length ratios and sexual orientation This dovetails with the so-called fraternal birth order effect, long cited as one of the most reliable correlates of male homosexuality. Earlier estimates suggested each additional older brother increases the odds of homosexuality by roughly a third.
However, a recent reanalysis has called that number into question. When the data are analyzed using different statistical approaches, the association between older brothers and homosexual orientation appears smaller, more variable across studies, and apparently not specific to men. The same reanalysis noted that the leading biological explanation for the fraternal birth order effect, the maternal immune hypothesis, rests on very little direct immunological evidence and is better described as speculation than established fact.10PubMed Central. The fraternal birth-order effect as a statistical artefact: convergent evidence from probability calculus, simulated data, and multiverse meta-analysis The effect may be real but substantially overstated, or it may partly be a product of how researchers have sliced the data.
What About the Brain?
In 1991, neuroscientist Simon LeVay reported that a tiny cluster of cells in the hypothalamus, known as INAH-3, was more than twice as large in heterosexual men as in homosexual men, and also more than twice as large as in women. He proposed this as evidence that sexual orientation has a biological substrate in brain structure.11PubMed. A difference in hypothalamic structure between heterosexual and homosexual men Another study around the same time found that a different brain structure, the anterior commissure, was larger in homosexual men than in heterosexual men or women.12PubMed. Brain research, gender and sexual orientation
These findings were groundbreaking in establishing that the brains of gay and straight men could differ in measurable ways. But they came with big caveats. LeVay’s sample was small, most of the gay men had died of AIDS-related complications, and the study could not determine whether the structural difference was a cause of orientation or a downstream consequence of it. Later research has not settled that chicken-and-egg question. Brain differences between gay and straight people are real enough to keep appearing in studies, but we still do not know whether they drive orientation, reflect it, or arise from some shared upstream cause like prenatal hormones.
Epigenetics and Individual Environmental Factors
If genes account for only part of the variation in sexual orientation, and the shared family environment (things siblings experience together, like parenting style or household income) does not account for much at all, where does the rest come from? Twin studies consistently point to a large role for what researchers call the “non-shared environment,” meaning the unique experiences and biological exposures that differ even between siblings raised in the same house.13PLOS ONE. Genetic and Environmental Influences on Female Sexual Orientation, Childhood Gender Typicality and Adult Gender Identity This category includes prenatal conditions (which can differ between pregnancies), random biological variation, and individual experiences. It also includes measurement error, so its apparent size is somewhat inflated.
One theoretical model proposes that epigenetics could bridge the gap between genes and environment. The idea is that chemical tags on DNA, which can dial gene activity up or down without changing the underlying genetic code, sometimes carry over from a parent. Specifically, these sex-specific epigenetic marks normally get erased between generations, but the model suggests that when they are not fully erased, they could shift sexual development in the offspring.14PubMed. Homosexuality as a consequence of epigenetically canalized sexual development It is an elegant hypothesis, but at this point it remains theoretical. No one has directly measured the proposed epigenetic marks in humans in a way that confirms the model.
A recent twin study added another wrinkle. It looked at childhood gender nonconformity, the degree to which children behave in ways more typical of the other sex, and found that higher levels of it were associated with reduced non-shared environmental influence on sexual orientation. In plain terms, among people who were strongly gender-nonconforming as children, the variation in sexual orientation was driven more by genetics and less by individual-specific environment.15PubMed Central. Genetic and Environmental Influences on Sexual Orientation: Moderation by Childhood Gender Nonconformity and Early-Life Adversity That is a subtle finding, but it hints that there may be different pathways to the same outcome, with genetic contributions weighing more heavily in some people than in others.
Same-Sex Behavior Across the Animal Kingdom
One reason scientists are confident that sexual orientation has deep biological roots is its prevalence in other species. A large-scale analysis found that same-sex sexual behavior has been documented in 261 mammalian species across 12 orders, including primates, carnivores, ungulates, and rodents. Most of these observations came from wild or semi-wild animals, ruling out the idea that it only occurs under artificial conditions.16Nature Communications. The evolution of same-sex sexual behaviour in mammals The behaviors ranged from mounting and genital contact to courtship displays and long-term pair bonding.
In lab settings with fruit flies, where genetics can be studied more directly, researchers found heritable genetic variation for same-sex sexual behavior. The pattern of inheritance was complex, with evidence compatible with at least two different genetic models, and an unexpected strong effect linked to the Y chromosome.17PubMed Central. A test of genetic models for the evolutionary maintenance of same-sex sexual behaviour None of this translates directly to humans, but it reinforces the idea that the genes influencing same-sex behavior are not some quirk unique to our species. They appear to be woven into the biology of many animals.
The Evolutionary Puzzle
From a purely Darwinian perspective, genes that reduce the likelihood of reproduction should diminish over generations. The fact that same-sex orientation persists at stable rates across cultures and historical periods demands an explanation. Several hypotheses have been proposed, and the evidence for each is mixed.
The sexually antagonistic genes hypothesis suggests that genetic variants associated with homosexuality in one sex could boost reproductive success in the other. For example, if the same gene variant that predisposes men toward homosexuality also makes women more fertile, the extra offspring produced by the women could compensate for the reduced reproduction by gay men. However, a large Czech study of over 11,000 participants found essentially no support for this idea. Gay men and lesbian women had lower fertility than their heterosexual counterparts, and their relatives of the opposite sex did not show meaningfully higher fertility to compensate.18PubMed Central. Fertility of Czech Gay and Straight Men, Women, and Their Relatives: Testing the Sexually Antagonistic Gene Hypothesis
Another hypothesis invokes kin selection, the idea that gay individuals might enhance their genes’ survival by investing more in nieces and nephews. An Indonesian study found that men with a homosexual orientation did report greater willingness to transfer resources to nieces and nephews, but the researchers estimated that kin selection reduced the reproductive cost of being a homosexual man by only about 20 percent, far too little on its own to explain why the trait persists.19PubMed. Kin Selection and Male Homosexual Preference in Indonesia Most researchers now suspect that no single evolutionary mechanism does the heavy lifting. Some combination of balancing selection, the sheer complexity of the genetic architecture, and the fact that the relevant genes influence many traits beyond sexual orientation probably all contribute.
Differences Between Men and Women
One consistent finding across nearly all of this research is that the biology of sexual orientation looks somewhat different in men and women. Heritability estimates tend to be higher in women. The Xq28 linkage appeared only in men. The 2019 GWAS found that the genetic signals only partially overlapped between sexes. The finger-ratio data shows a clearer link with prenatal androgens in women than in men.20PubMed. Finger length ratio (2D:4D) and dimensions of sexual orientation The fraternal birth order effect, to whatever extent it is real, applies primarily to men.
None of this means that male and female homosexuality have completely different causes. It means the relative weight of different contributing factors likely shifts depending on sex. A model that works for men may explain only part of the story for women, and vice versa. Researchers who study female sexual orientation have also noted that women tend to show more fluidity in attraction over time, which could point to a larger role for non-genetic factors, although the evidence on that front is still developing.
Gaps in the Research
Most large genetic studies of sexual orientation have drawn their participants overwhelmingly from people of European ancestry. A study focused on the Han Chinese population emphasized this problem, noting that the field risks missing important biological insights by not sampling more broadly.21Cell Discovery. Discovery of new genetic loci for male sexual orientation in Han population Genetic architecture can differ across populations. A variant that is common in one group may be rare or absent in another, so the five genome-wide significant loci identified in the 2019 study may not be the whole story for humanity as a whole.
There are also measurement problems. Most studies rely on self-report, and the categories people are asked to choose from (gay, straight, bisexual, or a continuous scale) shape what gets measured. The 2019 GWAS used a simple binary variable: have you ever had a same-sex partner? That captures a wide range of experiences under one umbrella and may be blurring distinct phenomena. Meanwhile, cultural variation in how freely people report their orientation introduces noise that genetic models struggle to account for.
How the “Born This Way” Framing Shapes Attitudes
The science of sexual orientation does not exist in a cultural vacuum. Research has consistently shown that people who believe sexual orientation is inborn tend to hold more tolerant attitudes toward gay men and lesbians, while those who believe it is a choice tend to be less tolerant.22PubMed Central. Beliefs about the etiology of homosexuality and about the ramifications of discovering its possible genetic origin A national survey also found that the more strongly people attributed homosexuality to genetics, the more they supported extending rights such as domestic partnerships and marriage.23Journal of Communication Inquiry. The Portrayal of Research into Genetic-Based Differences of Sex and Sexual Orientation: A Study of “Popular” Science Journals, 1980 to 1997
This creates a tricky dynamic. Advocates may feel pressure to emphasize the genetic evidence because it helps politically, while opponents may seize on the complexity of the science to argue the opposite. But the same research on public attitudes also found something unsettling: belief in a genetic basis for homosexuality could be used to support very diverse agendas, including negative eugenic ones.22PubMed Central. Beliefs about the etiology of homosexuality and about the ramifications of discovering its possible genetic origin The argument “they can’t help it” can shade uncomfortably close to “it’s a defect” in the wrong hands. Scientists who study this topic are acutely aware that their findings travel into a political environment where nuance evaporates quickly. The honest scientific answer, that orientation is influenced by genes but not determined by them, that it is not a choice but also not reducible to DNA, does not compress into a bumper sticker. That may be why the public conversation often lags behind the research.