Gender exists because of a layered interaction between biology, evolution, and social learning. There is no single explanation. Biological sex differences emerged over hundreds of millions of years of evolution because reproducing through two distinct sexes gave organisms a survival edge. Gender, the psychological and social dimension of being male, female, or something else entirely, developed on top of that biological foundation through a mix of genetics, prenatal hormones, brain development, and the culture you grow up in.
Untangling these layers helps explain not just why most people feel a strong sense of being a man or a woman, but also why gender looks so different across species, across cultures, and across individual lives.
Why Sexual Reproduction Exists at All
The most fundamental question is why organisms bother having two sexes in the first place. Asexual reproduction, cloning yourself, is simpler and faster. But sexual reproduction, combining genetic material from two parents, creates offspring with new combinations of genes. That genetic diversity makes populations far more resilient against parasites, diseases, and changing environments. Over deep evolutionary time, species that reproduced sexually outcompeted those that didn’t in most complex ecological niches.
Once two sexes exist, differences between them tend to follow. In mammals, females carry pregnancies and nurse offspring, which is enormously costly in terms of energy. Males, whose minimum biological investment in reproduction is much smaller, often face different evolutionary pressures. Larger males tend to achieve greater reproductive success in species where males compete physically for mates. But the picture is more complex than simple competition: males and females of different body sizes may also occupy different dietary niches, which reduces competition for food within the same species. In pinnipeds like seals and sea lions, the group of mammals with the most dramatic size differences between sexes, the physical differences actually appear to predate the mating systems they’re usually credited to, suggesting the evolutionary story is rarely as neat as textbooks imply.
Sex Is Not Always Binary in Nature
If you look beyond mammals, the concept of fixed, permanent sex categories starts to break down. At least 69 species of fish across seven families naturally change sex during their lifetimes, a process called sequential hermaphroditism. Clownfish, for example, are born male and the dominant individual in a group becomes female. Wrasses do the opposite: they start female and the largest individual transforms into a male, complete with changes in behavior, body shape, and hormone systems.
These sex changes are triggered by social and environmental cues. In coral gobies, which live in isolated patches of reef where finding a mate is dangerous, individuals can switch sex in either direction. When two males end up together, the smaller one becomes female. When population density of one sex drops, the other sex fills the gap. The low-density model for this phenomenon proposes that when mates are scarce, being able to switch sex is strongly favored by natural selection. Nature, in other words, prioritizes reproductive flexibility over rigid categories when survival demands it.
How Gender Develops in the Brain
In humans, biological sex is established at conception by chromosomes and shaped in the womb by hormones. Gender identity, your internal sense of being male, female, or neither, develops through a related but distinct process. The prevailing theory in neuroscience is that prenatal hormone exposure organizes the developing brain in ways that influence gender identity later in life.
Brain imaging research supports this. Structural and functional brain characteristics in transgender individuals tend to resemble those of people who share their gender identity rather than those who share their chromosomal sex. These similarities show up in the volume of specific brain structures, in the density of certain types of neurons, and in white matter microstructure. The fact that these differences extend beyond brain areas involved in sexual and hormonal functions suggests that gender identity is woven into broader neural networks involved in self-perception, not confined to one “gender center.”
That said, the research has limitations. Some studies involve small sample sizes, and it can be difficult to separate the effects of hormone treatments from pre-existing brain differences, or to distinguish brain patterns linked to gender identity from those linked to sexual orientation.
Genetics Play a Partial Role
Twin studies offer one of the clearest windows into how much of gender identity is inherited versus shaped by environment. A systematic review of the twin literature found that genetic contributions to gender identity ranged enormously, from 0% to 84%, depending on the study and the population examined. In one study, genetic heritability was estimated at 84% for children assigned female at birth but only 15% for those assigned male, highlighting how variable these estimates can be.
Non-shared environmental factors (experiences unique to one twin but not the other) accounted for 15% to 96% of the variation. Shared environment, the household and culture twins grow up in together, ranged from 0% to 70%. Molecular genetic studies have also identified variants in genes involved in sex hormone signaling that may predispose some individuals to a transgender identity, though no single gene determines gender identity on its own. The picture that emerges is one of multiple biological influences interacting with individual experience.
Children Develop Gender Identity Early
Gender identity begins forming far earlier than most people assume. About 25% of children use gender labels like “boy” or “girl” by 17 months of age, and 68% do so by 21 months. By 18 to 24 months, most children can label gender groups and apply those labels in speech. By age two, children begin developing rudimentary stereotypes about what boys and girls do, and by age three, most have absorbed basic gender stereotypes from the world around them.
Between ages five and seven, a significant shift occurs. Children develop what psychologists call gender constancy, the understanding that gender is stable over time and doesn’t change based on clothing or hairstyle. Interestingly, as this understanding solidifies, children actually become less rigid in their judgments about gender rules. One study found a dramatic decrease in negative judgments about gender nonconformity between ages five and seven, driven by increasing gender knowledge. Understanding gender more deeply, it turns out, tends to make children more flexible about it, not less.
The Social Construction Layer
Biology provides a foundation, but culture builds heavily on top of it. The sociological perspective holds that much of what we experience as “gender” is learned through social conditioning: the way children are spoken to, the toys they’re given, the behaviors that are rewarded or punished, and the models they see in media and advertising. Distinctions in how men and women speak, the way women are portrayed as nurturing or submissive in media, and the marketing of gendered products to young children all reinforce particular versions of masculinity and femininity.
This social pressure is perpetual. According to sociological analysis, women are shaped by societal expectations but continue to follow their roles because the pressure eventually becomes self-imposed. Gender performance, the idea that people continuously enact and reinforce gender through everyday behavior rather than simply expressing something fixed inside them, has become a central concept in gender theory. The medical and social science communities now generally distinguish between sex (biological characteristics observed at birth, including chromosomes, hormones, and anatomy) and gender (a societal construct related to perceptions of maleness or femaleness, including one’s internalized sense of identity).
The Hunter-Gatherer Myth
One of the strongest arguments for gender being “natural” has traditionally been the idea that early humans had rigid gender roles: men hunted, women gathered. Recent archaeological and ethnographic evidence has seriously undermined this narrative. A study analyzing 27 archaeological sites with evidence of big-game hunting found that women may have represented up to 50% of big-game hunters in prehistoric Americas. A 9,000-year-old burial in the Andean highlands of Peru included a female buried with a hunting toolkit, and this was not an isolated case.
Cross-cultural ethnographic data tells a similar story. The widespread presence of female hunting across foraging societies suggests women played an instrumental role in hunting throughout human history, contributing disproportionately to total caloric intake in many groups. The rigid “man the hunter” model appears to say more about the assumptions of 20th-century researchers than about the actual behavior of early humans.
Why It All Fits Together
Gender exists because evolution produced sex differences that gave species reproductive advantages, because prenatal biology shapes the brain in ways that create an internal sense of identity, because genetics contribute a variable but real influence, and because human societies elaborate on all of this through culture, language, and social learning. No single factor operates alone. A child’s gender identity emerges from the interaction of their genetic predispositions, their prenatal hormonal environment, and the social world they enter at birth, all layered on top of an evolutionary history stretching back hundreds of millions of years.
The variation within this system is not a flaw. Fish change sex to survive. Human cultures across history have recognized gender categories beyond a strict binary. And within any population, the range of genetic and environmental influences on gender identity is enormous. Gender exists because it solved reproductive problems for evolving organisms, but the specific forms it takes are far more flexible than any single explanation would suggest.

