No, there is no single “gay gene.” The idea that one gene controls sexual orientation has been thoroughly tested and ruled out by modern genetics. Sexual orientation is influenced by many genes, each with a tiny effect, along with prenatal biological factors and individual life experiences. The largest genetic study on the topic, analyzing nearly 500,000 people, found that all measured genetic variants combined explained only 8 to 25% of the variation in same-sex sexual behavior.
Where the “Gay Gene” Idea Came From
The concept traces back to a 1993 study by geneticist Dean Hamer, published in Science. Hamer’s team studied 114 families of homosexual men and noticed that same-sex orientation appeared more often among maternal uncles and male cousins than among fathers or paternal relatives. This pattern hinted at something being passed through the X chromosome, which sons inherit from their mothers.
When the researchers did DNA analysis on 40 families with two gay brothers, they found a correlation between homosexual orientation and a region on the X chromosome called Xq28 in roughly 64% of the sibling pairs. The statistical confidence was high, over 99%, that at least one subtype of male sexual orientation had a genetic component. Media coverage quickly condensed this into the “gay gene” narrative, but Hamer himself never claimed to have found a single gene. What he found was a region of DNA, containing many genes, that seemed linked to orientation in some families.
What the Largest Study Actually Found
In 2019, researchers published the most comprehensive genetic study of sexual orientation to date, scanning the genomes of nearly half a million people from the UK Biobank and 23andMe. The results, published in Science, were clear on two points: genetics plays a real role in sexual orientation, and no single gene is responsible.
The study identified five specific locations in the genome that were significantly associated with same-sex sexual behavior. But each one had an extremely small effect on its own. Together, all measured genetic variants accounted for just 8 to 25% of the variation. The researchers emphasized that these genetic markers “do not allow meaningful prediction of an individual’s sexual behavior.” In other words, you cannot look at someone’s DNA and determine their orientation. The genetic influence is real but spread across possibly thousands of tiny contributions, much like height or personality traits.
How Much Genetics Matters Overall
Twin studies offer another way to measure genetic influence, since identical twins share all their DNA while fraternal twins share about half. A large Swedish twin registry study found that genetic factors explained 34 to 39% of the variation in same-sex sexual behavior among men. For women, genetics accounted for a smaller share, about 18 to 19%.
The rest came from environmental factors, but not the kind most people assume. Shared environment (growing up in the same household, same parenting, same neighborhood) had essentially zero effect for men and a modest 16 to 17% effect for women. The biggest contributor for both sexes was what researchers call “unique environment,” meaning individual-specific experiences that differ even between twins raised together. This category can include prenatal conditions, random biological variation, and personal life events. It accounted for roughly 61 to 66% of the variation in both men and women.
Prenatal Biology Plays a Role Too
Some of the strongest non-genetic biological evidence involves what happens in the womb. One well-documented finding is the fraternal birth order effect: each older biological brother a boy has increases his likelihood of being gay by about 33%. This doesn’t mean most gay men have older brothers, but the statistical pattern is consistent across dozens of studies.
The explanation appears to be immunological. When a woman carries a male fetus, her immune system can develop antibodies against proteins produced by the Y chromosome. With each successive male pregnancy, these antibodies accumulate and may cross the placental barrier, subtly influencing brain development in later sons. In 2018, researchers identified the specific protein involved: a molecule called NLGN4Y that plays a role in how brain cells form connections during development. The mechanism is similar to Rh disease, where a mother’s immune response to fetal blood type grows stronger with each pregnancy.
Prenatal hormones also appear relevant, at least for women. Researchers use finger length ratios as a rough marker of androgen exposure before birth, since higher prenatal androgen levels tend to produce a more “masculine” ratio. Studies consistently find that lesbian women, on average, show more masculine finger ratios than straight women. Lesbian women who described themselves as more masculine-presenting had even lower ratios than those who identified as more feminine-presenting. Interestingly, no such difference exists between gay and straight men, suggesting prenatal hormones contribute to female sexual orientation through a different pathway than whatever shapes male orientation.
Epigenetics: Beyond the DNA Sequence
Identical twins have the same DNA, yet they don’t always share the same sexual orientation. This points to epigenetics, the chemical modifications that sit on top of DNA and control how genes are turned on or off. These modifications can differ between twins and can be influenced by prenatal conditions.
A UCLA study of 47 pairs of identical male twins, 37 of which had one gay and one straight brother, found that patterns of DNA methylation (a common type of epigenetic modification) at nine specific genome regions could predict sexual orientation with about 70% accuracy. The study was small and hasn’t been replicated at scale, but it suggests that how genes are regulated, not just which genes you carry, matters for sexual orientation.
Why These Genes Persist in Evolution
If genes contributing to same-sex attraction reduce the likelihood of reproduction, why haven’t they disappeared over thousands of generations? Evolutionary biologists have proposed several explanations, and evidence supports more than one.
The kin selection hypothesis suggests that gay individuals boost the survival of their relatives’ children by helping with caregiving and resources. Since relatives share much of the same DNA, this indirectly keeps those genes in the population. Research on Samoan fa’afafine, biological males who take on feminine social roles, supports this idea. Fa’afafine show significantly more altruistic investment in nieces and nephews compared to heterosexual men.
The sexual antagonism hypothesis takes a different angle: genes associated with male homosexuality may benefit female relatives reproductively. Studies have found that the mothers and maternal aunts of gay men tend to have more children than average. If the same genetic variants that influence same-sex attraction in men also boost fertility in women, natural selection would maintain them in the population because the reproductive advantage in women outweighs the reduced reproduction in some men.
What Science Actually Tells Us
Sexual orientation is a complex trait shaped by many small genetic contributions, prenatal biological conditions like hormone exposure and maternal immune responses, epigenetic modifications, and individual experiences. No single gene determines it. No single environmental factor determines it either. The pattern looks much like other complex human traits where biology sets a range of possibilities and development fills in the specifics. The genetic component is real and measurable, but it works through hundreds or thousands of tiny influences rather than one switch that can be flipped on or off.

