Biological sex, at its most fundamental level, comes down to gamete size. Organisms that produce large, nutrient-rich gametes (eggs) are female; those that produce small, mobile gametes (sperm) are male. That distinction sounds simple, but the ways species arrive at it are wildly diverse, spanning rigid genetic switches, temperature-sensitive embryos, fish that change sex midlife, and fungi with thousands of mating types. Understanding sexes means understanding not just male and female in humans but a planet-wide spectrum of reproductive strategies shaped by billions of years of evolution.
Why Sex Exists at All
Reproducing sexually is, on paper, a terrible deal. An asexual female passes all of her genes to every offspring; a sexual female passes only half, and she has to find a mate first. Producing males who don’t themselves bear young roughly halves a population’s reproductive output compared to an all-female clone army. Biologists call this the “twofold cost of sex,” and explaining why nearly all complex life pays it anyway has been one of evolution’s hardest puzzles.
Two explanations have accumulated the most support. The first is that sexual reproduction generates novel gene combinations each generation, helping populations keep pace with changing environments and fast-evolving parasites. The second is that sex allows a population to bundle multiple harmful mutations into one unlucky individual and remove them in a single death, rather than accumulating them irreversibly the way asexual lineages do. If the rate of harmful new mutations per generation is high enough, this purging mechanism can outweigh the cost of males.1PubMed. Advantages of sexual reproduction Both forces probably operate simultaneously, and neither alone fully resolves the paradox, but together they help explain why sexual reproduction has persisted across nearly every branch of complex life.
Gamete Size and the Origin of Two Sexes
Before there were males and females, there were just mating types. Single-celled organisms like the green alga Chlamydomonas have two mating types that look identical but carry different versions of a mating-type gene. In the colonial alga Volvox, a close relative, that same gene has evolved to control the development of large eggs and tiny sperm, meaning the leap from abstract mating types to recognizable sexes happened through a single gene gaining new developmental roles.2PLOS Biology. Evolution of Sexes from an Ancestral Mating-Type Specification Pathway The transition from equal-sized gametes to drastically unequal ones, called anisogamy, is thought to arise from competition among gametes: when gametes compete for fertilization, selection pushes some toward being tiny and numerous (to find partners quickly) and others toward being large and nutrient-packed (to provision the resulting offspring). Modeling work shows that this disruptive pressure robustly produces two distinct gamete sizes rather than a continuum.3Evolution. Competitive gametic traits and their coevolution with strong and slight anisogamy
Once anisogamy is established, much of what we associate with sex differences follows. The sex that invests more per gamete (the egg-maker) becomes the limiting resource for reproduction, and the sex that invests less (the sperm-maker) competes for access. That asymmetry is the seed from which sexual selection, parental care patterns, and sex-role differences grow.
How Sex Is Genetically Determined
The mechanism that tips an embryo toward male or female development varies enormously across species, and no single system dominates the animal kingdom.
Mammals use an XY system: females carry two X chromosomes, males carry one X and one Y. A gene on the Y chromosome, called SRY, kicks off a cascade that builds testes. SRY’s main job is to switch on another gene, Sox9, which drives the formation of Sertoli cells in the developing gonad; once those cells appear, the rest of male development follows.4Development. Sry: the master switch in mammalian sex determination5PubMed. Sry and SoxE genes: How they participate in mammalian sex determination and gonadal development? Without SRY, the default developmental pathway leads to ovaries and female anatomy.
Birds, many reptiles, and some fish flip the script with a ZW system: males carry two identical sex chromosomes (ZZ) and females carry two different ones (ZW). This means the mother’s egg determines offspring sex, whereas in mammals it is the father’s sperm. Amphibians show a patchwork: some species use XY, others use ZW, and the system can differ even between closely related species.6PubMed. A ZZ/ZW-type sex determination in Xenopus laevis The independent evolution of male heterogamety in mammals and female heterogamety in birds from different ancestral chromosomes suggests that sex-chromosome systems have arisen many times over.7PubMed. Sex from W to Z: evolution of vertebrate sex chromosomes and sex determining genes
Social insects like bees, ants, and wasps use yet another arrangement called haplodiploidy: females develop from fertilized eggs and carry two sets of chromosomes, while males develop from unfertilized eggs and carry only one set. This quirk means sisters share an unusually high proportion of their genes, which has been linked to the evolution of sterile worker castes. Research shows that haplodiploidy, combined with male-biased dispersal patterns, strongly favors the evolution of cooperative female helpers.8PubMed Central. Sex-biased dispersal, haplodiploidy and the evolution of helping in social insects9PubMed. Haploidploidy and the evolution of the social insect
Why Sex Chromosomes Decay Over Time
A curious feature of sex chromosomes is that the one carried only by one sex (the Y in mammals, the W in birds) tends to shrink and lose genes over evolutionary time. This happens because that chromosome stops exchanging DNA with its partner during cell division. Without that exchange, harmful mutations pile up and can’t be purged efficiently. Over millions of years, the chromosome accumulates broken genes and deletions.10PubMed Central. Model for evolution of Y chromosomes and dosage compensation The human Y chromosome, for example, carries fewer than 80 protein-coding genes, compared to roughly 800 on the X.
This degeneration creates a problem: the sex carrying only one copy of the remaining chromosome (XY males or ZW females) now has half the dose of hundreds of genes. Organisms compensate through various molecular tricks that boost expression from the single remaining copy, a process called dosage compensation.11Genome Biology and Evolution. HJ Muller and the Relationship Between Sex Chromosome Degeneration and the Evolution of Dosage Compensation The pattern is strikingly similar across distant lineages. Even in a plant species that evolved sex chromosomes independently and relatively recently, roughly 45% of Y-linked genes have already lost expression, and the X-linked copies have begun to be upregulated to compensate.12PubMed Central. Rapid Y degeneration and dosage compensation in plant sex chromosomes That convergence suggests these dynamics are a near-universal consequence of having a non-recombining sex chromosome, whether you’re a mammal, a bird, or a wildflower.
When Temperature or Social Cues Decide Sex
Not all species rely on chromosomes. Many reptiles, including most turtles, all crocodilians, and some lizards, use temperature-dependent sex determination: the temperature the eggs experience during a critical window of incubation determines whether the hatchlings develop as male or female. In painted turtles, for instance, cooler nests produce males and warmer nests produce females. This makes these species acutely vulnerable to climate change. Modeling work on reptiles with temperature-dependent sex determination found that even modest warming of less than 2°C could drastically skew the sex ratio, and an increase of 4°C could effectively eliminate the production of male offspring.13PubMed. Climate change and temperature-dependent sex determination in reptiles Whether these populations can adapt their nesting behavior or physiology fast enough to keep pace with warming remains an open and worrying question.
Fish display perhaps the most fluid relationship with sex. Hundreds of species of coral-reef fish change sex during their lifetime, a phenomenon called sequential hermaphroditism. Wrasses and parrotfish, for instance, are typically born female and transition to male when they grow large enough to dominate a social group. The size-advantage hypothesis explains this: if being large benefits one sex more than the other in terms of reproductive success, an individual can maximize its lifetime offspring by starting as the sex that benefits from being small and switching to the other sex once it grows.14Evolution. A COMPARATIVE ANALYSIS OF SEX CHANGE IN LABRIDAE SUPPORTS THE SIZE ADVANTAGE HYPOTHESIS At the molecular level, these transformations involve wholesale epigenetic reprogramming. When a dominant male is removed from a social group, the largest female experiences a stress response that triggers changes in gene expression through chemical modifications to DNA, passing through an intermediate state that resembles early developmental cells in mammals before settling into a fully male pattern.15PubMed Central. Stress, novel sex genes, and epigenetic reprogramming orchestrate socially controlled sex change
Cichlid fishes show something even more striking: sex in some species doesn’t appear to settle into a permanent, irreversible state at all. Instead, it seems to be maintained by an ongoing tug-of-war between competing male-promoting and female-promoting gene networks, governed by epigenetic switches that environmental conditions can tip in either direction throughout life.16Sexual Development. Epigenetic Regulation and Environmental Sex Determination in Cichlid Fishes
Pollution and Disrupted Sex Development
Environmental chemicals can interfere with the hormonal signals that guide sex development. Endocrine-disrupting compounds found in agricultural runoff, pharmaceuticals, and household products have been linked to intersex conditions in wild amphibians and fish, where individuals develop both testicular and ovarian tissue despite normally being one sex or the other.17PubMed. Intersex in fishes and amphibians: population implications, prevalence, mechanisms and molecular biomarkers A study of green frogs across suburban ponds found intersex in roughly one in five males, a rate that held regardless of the type of wastewater treatment in the area. Because intersex has been shown to be absent or rare in undeveloped landscapes, the findings point to widespread low-level contamination in suburban settings as a likely contributor.18Ecosphere. Amphibian intersex in suburban landscapes These aren’t fringe observations; reports of intersex in wild vertebrates have been increasing steadily as researchers look for it more carefully.
Why Populations Stay Near a 1-to-1 Ratio
In most sexually reproducing species, roughly equal numbers of males and females are born. This isn’t an accident or a mechanical consequence of having two sex chromosomes; it’s maintained by a powerful evolutionary feedback called Fisher’s principle. The logic goes like this: if one sex becomes rarer in a population, individuals of that rare sex have better odds of finding mates and will, on average, produce more offspring. Parents who happen to produce more of the rare sex will therefore leave more grandchildren, and the genes behind that bias will spread until the ratio returns to balance. The equilibrium sits at 1:1 because that is the point where neither sex has an advantage.
A 26-year study of wild red squirrels confirmed the 1:1 prediction at the population level. But when the researchers looked for the finer prediction of Fisher’s principle—that mothers should bias their litters toward the rare sex when the adult ratio is skewed—they found no evidence for it. Females that did happen to produce more of the rare sex did not end up with more grandchildren.19Proceedings of the Royal Society B: Biological Sciences. Is biasing offspring sex ratio adaptive? A test of Fisher’s principle across multiple generations of a wild mammal in a fluctuating environment The result suggests that while the broad-brush 1:1 equilibrium is robust, the subtler idea that individual mothers should actively manipulate their offspring’s sex ratio in response to current conditions is harder to demonstrate in practice.
Sexual Selection and Who Competes
Once two sexes exist and gamete investment differs, sexual selection follows. In 1948, Angus Bateman reported that male fruit flies gained more offspring from each additional mating than females did, implying that males benefit from competing for mates while females benefit from being selective. This observation, known as Bateman’s principle, has been tested and debated ever since.20PubMed Central. Bateman’s principles and human sex roles A modern replication of his experiment, using genetic parentage methods rather than Bateman’s original marker system, confirmed the core findings: males showed more variation in both mating success and total offspring, and the relationship between number of mates and number of offspring was steeper for males than females.21Evolution. Evidence for stronger sexual selection in males than in females using an adapted method of Bateman’s classic study of Drosophila melanogaster
But Bateman’s principle is not a law. In species where males invest heavily in offspring, the pattern can reverse entirely. Gulf pipefish, a relative of seahorses in which males carry developing embryos in a brood pouch, show the most extreme reversal documented in any species: females compete intensely for mating opportunities, and sexual selection acts more strongly on females than on males.22PubMed Central. Genetic evidence for extreme polyandry and extraordinary sex-role reversal in a pipefish These cases reinforce the deeper principle: whichever sex invests less in each reproductive event tends to be the competing sex, and whichever invests more tends to be the choosier one. In most species that happens to be males competing and females choosing, but the roles track investment, not chromosomes.
Sexual selection leaves visible marks on bodies. In agamid lizards, dichromatism (color differences between males and females) on exposed body parts like the back is constrained by predation—being flashy in full view gets you eaten—while color differences on concealed body areas, like the throat or belly, are driven more by sexual selection because predators can’t easily spot them.23PubMed Central. Sexual selection, natural selection and the evolution of dimorphic coloration and ornamentation in agamid lizards In sepsid flies, developing elaborate sexual ornaments takes extra time: the complexity of a male’s abdominal structures significantly prolongs his pupal stage, meaning these ornaments carry a measurable developmental cost.24PubMed Central. Size rather than complexity of sexual ornaments prolongs male metamorphosis and explains sexual size dimorphism in sepsid flies
When Male-Benefit Genes Harm Females, and Vice Versa
Males and females share most of their genome but often have different optimal versions of the same traits. A gene variant that boosts male mating success might, when carried by a female, reduce her survival or fertility. This tension, called sexual antagonism, is predicted to be widespread and has proven surprisingly difficult to pin down at the level of individual genes.25PubMed Central. The search for sexually antagonistic genes: Practical insights from studies of local adaptation and statistical genomics
Gene-expression studies in fruit flies have found that roughly 8% of transcripts show a sexually antagonistic pattern: their expression level is associated with higher fitness in one sex and lower fitness in the other. About 817 of these were classified as male-benefit/female-detriment, and 661 as female-benefit/male-detriment.26PLoS Biology. The Sexually Antagonistic Genes of Drosophila melanogaster The sex chromosomes appear to be a hotspot for this kind of conflict; work in fruit flies has documented ongoing antagonistic coevolution specifically between the X and Y chromosomes, where changes on one chromosome drive compensating changes on the other across generations.27PubMed Central. Sexually antagonistic coevolution between the sex chromosomes of Drosophila melanogaster Sexual antagonism is one of the reasons that sex differences persist in traits that seem maladaptive for one sex: the shared genome can’t optimize for both sexes at once.
Sex Differences in Immunity and Lifespan
In mammals, females generally mount stronger immune responses than males. A major reason is hormonal: estrogen tends to enhance certain branches of the immune system, while testosterone tends to suppress them. The difference is particularly pronounced in type-2 immune responses (those involved in fighting parasites and in allergic reactions), and less so in type-1 responses (those directed at viruses and intracellular pathogens).28PubMed. Sex differences in immune responses: Hormonal effects, antagonistic selection, and evolutionary consequences This stronger female immunity comes with a downside: women are more susceptible to autoimmune diseases, in which the immune system attacks the body’s own tissues.
Females also tend to live longer than males in many mammalian species. One longstanding explanation is the “unguarded X” hypothesis: because males have only one X chromosome, any harmful recessive mutation on it is fully exposed, whereas females with two X copies have a backup. Modeling work, however, suggests this effect is too small to account for the observed lifespan gaps. In mammals, where sex differences in mean lifespan often exceed 20%, the unguarded X is predicted to contribute only a few percent, an effect so slight it would be statistically undetectable in most experiments.29Oxford Academic. How much does the unguarded X contribute to sex differences in life span? The bulk of the lifespan gap likely comes from hormonal effects, behavior, and other genetic factors rather than from the simple geometry of having one sex chromosome versus two.
Hormones and the Organizational-Activational Framework
In mammals, the hormonal cascade triggered by the testes doesn’t just build male anatomy during embryonic development; it also permanently shapes the brain. A landmark 1959 experiment showed that exposing female guinea pigs to testosterone during a critical developmental window permanently altered their adult behavior, masculinizing it in ways that couldn’t be reversed later. This led to the organizational-activational hypothesis: hormones during early development “organize” neural circuits into male or female patterns, and the same hormones in adulthood “activate” behaviors through those pre-wired circuits.30PubMed Central. The organizational-activational hypothesis as the foundation for a unified theory of sexual differentiation of all mammalian tissues
The framework has been extended beyond the brain to virtually every tissue type and has held up as a central organizing concept, though with important amendments. One is that puberty represents a second organizational window: the surge of sex hormones at adolescence further sculpts brain and body in sex-specific ways, not merely activating what was already laid down prenatally.31PubMed Central. Back to the future: The organizational-activational hypothesis adapted to puberty and adolescence Another is that some sex differences in cells and tissues arise from the sex chromosomes directly, without hormones as intermediaries; cells with XX versus XY genotypes can behave differently even when bathed in identical hormone environments.
Why Sex Matters in Medical Research
For decades, biomedical research defaulted to male subjects, in animal studies, in cell lines, and in clinical trials, on the assumption that findings would generalize across sexes. That assumption proved dangerous. Between 1997 and 2000, the U.S. Food and Drug Administration pulled ten prescription drugs from the market for serious adverse effects; eight of those drugs posed greater health risks to women, a disparity traced largely to the male bias in the research that cleared them for approval.32PubMed Central. Sex as an important biological variable in biomedical research Since then, funding agencies like the U.S. National Institutes of Health have moved toward requiring that sex be considered as a biological variable in preclinical and clinical research designs, though compliance remains uneven across fields.
Separate Sexes in Plants
Most flowering plants are hermaphrodites, with both male and female organs in the same flower or at least on the same individual. Only about 5 to 6% of angiosperm species are dioecious, meaning they have separate male and female individuals. Yet dioecy has evolved independently an extraordinary number of times, with estimates ranging from 871 to 5,000 separate origins across flowering-plant lineages, scattered across 175 families.33PubMed. The relative and absolute frequencies of angiosperm sexual systems: dioecy, monoecy, gynodioecy, and an updated online database About a third of dioecious plant species are wind-pollinated, compared with only around 6% of non-dioecious angiosperms, which suggests that wind pollination and separate sexes tend to evolve together, possibly because once you aren’t relying on a pollinator to move pollen within a flower, the advantages of separating the sexes outweigh the costs.
When researchers traced transitions between sexual systems across the flowering plant tree of life, they found no strong directional trend. Lineages moved away from hermaphroditism and away from dioecy at roughly equal rates, with intermediate systems like gynodioecy (where a population includes both hermaphrodites and females) serving as evolutionary waypoints in both directions.34Evolution. Macroevolutionary synthesis of flowering plant sexual systems Chromosomal sex determination, so central to the animal story, is known from only about 40 plant species; most dioecious plants instead adjust their sex allocation through environmental cues and gene-expression changes rather than dedicated sex chromosomes. The parallel between these systems and environmentally influenced sex determination in reptiles and fish is hard to miss: genetics loads the gun, but the environment often pulls the trigger.
Mating Types in Fungi
Fungi push the concept of sexes into genuinely alien territory. Rather than two sexes, many fungal species have mating-type loci that allow compatibility between hundreds or even thousands of types. A mushroom like Schizophyllum commune has over 20,000 possible mating types. Despite this diversity, the genetic architecture of fungal mating-type regions shares structural features with animal sex chromosomes: regions of suppressed recombination, gradual degeneration, and accumulation of repetitive DNA.35PubMed. Evolution of fungal sex chromosomes These parallels suggest that some of the same evolutionary pressures that shape animal sex chromosomes also operate in organisms that diverged from animals over a billion years ago. The difference is that fungi, by allowing many compatibility types, have avoided locking themselves into the two-sex system that gamete-size dimorphism imposes on most animals and many plants.

