Dao Academy

Sex, love, and romantic relationshipsLesson 2 of 4

Why there are two sexes

Sex is costly, and some animals do without it. How it began, what makes a male and a female, and why a clownfish can change from one to the other.

About 25 minutes, with 2 activities · 14 minutes of video

Watch this lesson

A dragon with no mate

In 2006 a Komodo dragon named Flora, at Chester Zoo in England, laid a clutch of 25 eggs. Flora had never been kept with a male. At London Zoo another female, Sungai, had already done the same in 2005, laying eggs two and a half years after her last contact with a male, which could have meant long-stored sperm. DNA fingerprinting settled it. The young had no father at all. Phillip Watts and his colleagues reported both cases in Nature in December 2006: parthenogenesis, from the Greek for “virgin birth.” Five of Flora’s eggs had hatched by late January 2007, with others still to come, and every young dragon from both zoos was male.

The reason is the way sex is determined in these lizards. In birds and in many reptiles, including the Komodo dragon, females carry two different sex chromosomes, Z and W, and males carry two Zs. A parthenogenetic egg ends up with two copies of one of its mother’s chromosomes: ZZ, a male, or WW, which does not survive. Even so, the young were not clones: they differed from their mother and from one another. Sungai’s story shows that this can be a backup rather than a way of life: she later mated with a male, and one of her eggs hatched. Nor is it only a last resort. A 2021 DNA study found two California condor chicks that had hatched from unfertilized eggs although their mothers lived with fertile males.

Komodo dragons are not alone. A 2021 count found 39 described all-female species of lizards and snakes, among them several whiptails of the American Southwest; a bonnethead shark gave birth without a mate at a zoo in Omaha in 2001; wild copperhead and cottonmouth snakes have been found doing it; dandelions make seeds without fertilization, and aphids can go generation after generation without males. A single-celled amoeba simply divides in two. The one group where it never happens naturally is the mammals, because genes that are switched on or off according to which parent they came from block it. For many organisms, then, reproduction without sex is an option. For a lineage, it looks efficient: every individual can have young. Yet such species tend to be young, a sign that they die out sooner. So why does nearly everything with a complex body bother with sex?

The cost of sex

The British biologist John Maynard Smith put the puzzle in a famous way in 1978. Imagine a population in which every mother raises two surviving young, one daughter and one son. Now a mutant mother appears who reproduces without sex and raises two daughters. A sexual mother has one daughter to carry on the line, because her son cannot bear young; the mutant mother has two. The asexual lineage doubles each generation; the sexual one holds steady. Within a few dozen generations the mutants should take over. This is the “twofold cost of sex”: the cost of making males, if, as in many species, a father gives nothing but genes. The activity below lets you set how much better a sexual mother’s young would have to do to pay for it.

What would sex have to be worth?

Start with one asexual female for every 99 sexual ones. Each generation an asexual mother’s daughters outnumber a sexual mother’s two to one. Slide to give the offspring of sexual mothers a survival advantage, and read what happens over 12 generations.

A toy model with the simplest assumptions: males contribute only genes, and the advantage does not change as the population changes. It illustrates the logic of the twofold cost; it is not a measurement.

Sex has other costs too: finding and winning a mate takes time, courtship can attract predators, mating can spread disease, and sex breaks up gene combinations that were working. Yet sex is almost universal among animals and plants. That is a real puzzle, and the surprising answer is that biologists do not agree on a single solution.

Why sex persists anyway

Several ideas each have evidence behind them. The first is about parasites. Germs and parasites evolve to attack whatever is common, so a host that is genetically the same as its neighbors is an easy target. Sex shuffles genes into new combinations, and a rare combination may escape the parasites. The idea is called the Red Queen hypothesis, after the character in Through the Looking-Glass who says that it takes all the running you can do to stay in the same place. It is one of the best-supported ideas, with good evidence from the New Zealand mud snail, which comes in both sexual and cloning forms. Curt Lively found in 1987 that sexual snails were more common in places where a parasitic worm was common. In a later study by Jukka Jokela and colleagues, the commonest clones were replaced by rarer ones within seven to ten years, while the sexual snails held their own. In a laboratory test, a roundworm forced to coevolve with a disease-causing bacterium reproduced by outcrossing more, while worms that could only fertilize themselves died out.

A second idea is about harmful mutations. In 1964 Hermann Muller argued that, in theory, an asexual lineage can only add new harmful mutations and cannot shuffle them away, like a ratchet that clicks in one direction. Sex lets a lineage make some offspring with fewer mutations than their parents. Studies of mitochondrial DNA in asexual water fleas and snails show the faster build-up of harmful changes that the idea predicts. But in March 2026 a team reported that the all-female Amazon molly, a small fish, escapes much of this decay by gene conversion, overwriting some harmful mutations with healthy copies; it still needs sperm from a related species to start its eggs. A third idea is about repair: the cell machinery of meiosis, the special cell division that makes eggs and sperm, includes repair of damaged DNA, and some biologists think this is why sex arose. A fourth is about changing worlds: a sexual species can generate new combinations quickly when conditions change.

These ideas are not rivals so much as parts of a puzzle, and the weights differ between species. Textbooks now say that there is no complete consensus. This course’s own reading, in which sex is a “gene repair shop” that clears out harmful mutations, is closer to the second idea than to the third: a respectable hypothesis, not the settled answer.

From idea to tool

One theory holds that sex, by breaking up gene partnerships every generation, favors genes that work well with many partners. Computer scientists borrowed the idea for training neural networks, the kind of program behind much of today’s AI. Nitish Srivastava, Geoffrey Hinton, and three colleagues wrote in 2014 that a motivation for dropout “comes from a theory of the role of sex in evolution.” Dropout switches off a random selection of a network’s artificial neurons at each training step, so no neuron can lean on fixed partners and each must be useful on its own.

Dropout became a standard tool, and in 2024 Hinton shared the Nobel Prize in Physics for work on neural networks. The theory behind it, called mixability, remains one contested idea among several.

What makes a male

The word “male” has a precise meaning in biology, and it is defined neither by chromosomes nor by behavior. The first sexual organisms probably had neither males nor females. Like some algae today, they released sex cells of one size, and cells of different mating types could fuse. Then, probably more than once, the cells split into two sizes. In 1972 Geoff Parker, Robin Baker, and Vic Smith proposed an explanation that biologists still use. A fertilized cell needs a supply of food to get started, which favors cells that carry a big supply. But if a few cells carry the supply, other cells do better by being tiny and numerous, so they can find the big ones. Selection pulls the two kinds apart. The result is anisogamy, “unequal gametes.” A female is the sex that makes the large sex cells, the eggs. A male is the sex that makes the small ones, the sperm.

On the left, two sex cells of equal size joined by a plus sign. On the right, after an arrow, one large cell surrounded by many tiny cells. + equal cellstwo mating types two sizeseggs and sperm
How two sexes arose: from equal sex cells, to a few large cells and many small ones. “Female” and “male” only have meaning once the sizes differ.

This corrects a popular story. Life did not begin with females, with males added later as a repair kit; before gametes differed in size, “female” and “male” had no meaning, and the two sexes arose together. A second account of why there are two sexes looks at the mitochondria, the cell’s power plants. Cosmides and Tooby suggested in 1981, and Laurence Hurst and William Hamilton in 1992, that when two cells fuse it is safer for only one parent’s mitochondria to be passed on, since two sets could compete. In cattle and monkeys the father’s mitochondria are tagged and destroyed after fertilization, and in human sperm they hold no intact DNA of their own, so a child’s mitochondrial DNA, about 16,500 base pairs carrying 37 genes, comes from its mother. In the slime mold Physarum polycephalum, which has many mating types rather than two sexes, a ranking decides whose mitochondrial DNA survives: about 90 minutes after two cells’ nuclei fuse, the lower-ranked partner’s mitochondrial DNA is digested, though in a 2003 study both survived in about a third of crosses. Researchers still dispute whether this idea alone explains why two kinds of gamete arose. What the size difference does explain is a great deal of what follows in this course: eggs are costly to make and sperm are cheap, which is where the story of mate choice begins.

Many ways to be a sex

In people, development as a male is usually triggered by a single gene. In 1990 a team found a gene on the Y chromosome, called SRY, that starts the embryo developing testes; genes on other chromosomes, such as SOX9, do the rest. In 1991 Peter Koopman and colleagues showed that chromosomally female (XX) mouse embryos given a small piece of DNA carrying the mouse version of the gene developed as males. The X is a sex chromosome too, not an “ordinary” one, and holds about 5 percent of the DNA in one set of our chromosomes. The Y carries far fewer genes, though it is not empty: it holds genes needed to make sperm. Each parent gives a child twenty-three chromosomes. A son gets his X from his mother and his Y from his father; a daughter gets an X from each, so it is the sperm, carrying an X or a Y by chance, that settles a baby’s chromosomal sex. It is sometimes said that a son gets less from his father, so daughters look more like their fathers. But the only difference is a Y in place of an X, about 3 percent of the DNA a father passes on (about 1.5 percent of the child’s), which gives no reason to think daughters take after their fathers more.

Other animals use other systems. Birds and Komodo dragons use Z and W. Many reptiles use temperature. In a classic 1982 study of alligators, eggs kept at 30°C or below hatched as females and eggs at 34°C or above as males. In sea turtles, warm nests produce females: in a 2018 study of green turtles from the warm northern Great Barrier Reef, about 99 percent of the young turtles were female, against 87 percent of the adults. In leopard geckos, a common pet, a 2026 study found that the hatchlings from eggs at 26.5°C (about 80°F) were all female and those from eggs at 31.5°C (about 89°F) mostly male; older work found that the hottest eggs turn mostly female again.

Some single-celled organisms and fungi have mating types, not sexes, with far more than two. The pond protozoan Tetrahymena thermophila has seven. The split-gill mushroom Schizophyllum commune has well over ten thousand. Among humans, nearly everyone develops clearly as female or male, and a small number are born with natural variations in how sex develops. One rare example is complete androgen insensitivity, in which a person with XY chromosomes develops a typically female outward body because the cells cannot respond to the hormones that drive male development. Biology shows a clear pattern here, with a few rare exceptions.

Fish that change sex

In hundreds of fish species a single animal may be both sexes in the course of its life, and the trigger is often social. In the bluehead wrasse, a reef fish of Florida and the Caribbean, many of the large, brightly colored males began life as females; others started as small males. In a 1991 study, Robert Warner and Stephen Swearer removed the big males from reef patches and found that the largest females took over almost one for one: their behavior changed within minutes, their colors began to change within a day, and mature sperm could appear in as little as eight days.

Clownfish do it the other way round, from male to female. A clownfish group lives in one sea anemone and is a queue. The largest fish is the breeding female, the second largest is her breeding mate, and smaller fish wait in line, not yet breeding. If the female is lost, the breeding male becomes the female and the largest waiting fish becomes the breeding male. The change takes weeks to months: in a 2016 study of a Red Sea clownfish, the brain responded within about two weeks, and changes in the reproductive organs were clear by three to four weeks. In Pixar’s Finding Nemo the mother clownfish is killed at the start, and the father, Marlin, goes on as a father. In real clownfish biology, he would be expected to change into the female. In anthias, a reef fish that lives in groups in which females far outnumber males, removing a male leads one of the larger females to change into a male. A fish sold in Chinese markets changes the same way: in wartime Chongqing in 1944, the biologist Liu Jiankang (刘建康) examined 659 rice-field eels (黄鳝, huángshàn) and showed that they begin life female and later turn male.

Remove the female

A small clownfish group: one female, one breeding male, and two smaller fish that are not breeding yet. Press the button to lose the female, then wait a few weeks.

A simplified picture of the ranking system described by Fricke and Fricke (1977) and Buston (2004). In real fish the change takes weeks to months.

These fish do not go looking for a replacement, as is sometimes said. The roles are tied to rank, and the ranks move up: the male changes, and the next fish already living in the anemone takes his old place.

Why were all the young dragons from Flora’s eggs male?

A need that isn’t thirst

Many people would call sex a physical need, like food. This course’s own starting point argues the opposite, and it has a point. Someone who goes without water dies in a matter of days; no one has died from an unmet sex drive. Psychologists, however, have long listed sex among the basic needs. Abraham Maslow’s 1943 paper on motivation said that sex “may be studied as a purely physiological need,” though he called sexual behavior “multi-determined”; the textbook pyramid is not in his paper, and others drew it later. In 2010 Douglas Kenrick and colleagues proposed a renovated pyramid in which the top levels are not self-actualization but the needs to attract a mate, to keep a mate, and to care for children. In their picture, mating no longer sits with hunger and thirst, and this course goes further, reading sex as one of the social needs, the needs we can only meet with other people.

That puts it alongside a need that can be measured in lives. In 1995 Roy Baumeister and Mark Leary argued that people have a basic “need to belong,” and in 2010 Julianne Holt-Lunstad and colleagues pooled 148 studies of 308,849 people and found that those with stronger social relationships had about 50 percent higher odds of being alive at the end of follow-ups that averaged seven and a half years. The data are observational, so the link may not be simply causal. They do not tell us how much sex anyone should want, and they say nothing at all about sex in particular. They suggest that wanting closeness is no luxury.

Closer to home

For two thousand years Chinese tradition has treated having descendants as a duty, not a want. The philosopher Mencius, around 300 BCE, said that there are three ways to fail one’s parents and that having no heirs is the worst: 不孝有三,无后为大 (bù xiào yǒu sān, wú hòu wéi dà). Evolutionary accounts speak of wants, and tradition speaks of duties, and the two do not always agree. Today China’s fertility rate is about one child per woman (a UN estimate for 2023), even though a two-child policy, announced in 2015 and in force from 2016, replaced the one-child policy, and a three-child policy was announced in 2021. In the United States, where there is no comparable duty, it was about 1.6 in 2024, a record low, and births fell again in 2025. Whether a society tells its people to have children, or tells them not to, the number it gets depends on much more than either a want or a duty.

Another view

The question this lesson started with has no settled answer, and the confident versions in popular books are simplifications. The “twofold cost” assumes that a male contributes only genes; where fathers feed, protect, or carry young, as in people, the cost is smaller than two. The “ancient asexual scandal” of the bdelloid rotifers, tiny animals long thought to have had no sex for tens of millions of years, has been challenged: genome studies in 2020 and 2022 found signs of genetic exchange that suggest occasional sex, though no male has ever been seen. Even the definition is argued over: in July 2026 biologists including Geoff Parker restated the gamete-size definition, as a matter separate from human gender, while others argue that biology uses several concepts of sex. And even a good explanation of why sex exists does not by itself explain why the two sexes differ in what they invest in offspring, which is the subject of the next lesson.

What to keep

  • Many animals reproduce without sex, as Komodo dragons sometimes do. Sex has real costs, including the cost of making males, so its near-universality is a puzzle. Parasites and harmful mutations are among the best-supported answers, and there is no consensus.
  • “Male” and “female” are defined by the size of the sex cells, small and numerous or large and few. Life did not begin with females, and each parent gives a child twenty-three chromosomes.
  • Sex is determined in many ways: by chromosomes, by temperature, and by social rank; some fungi have thousands of mating types instead of sexes. A clownfish’s sex depends on its place in the group.
  • This course argues that sex is better called a social need than a bodily one: no one dies of an unmet sex drive, but strong social ties are linked to a longer life.

Think it over

Your notes are saved in this browser.

Sources and further reading

  • Phillip C. Watts et al., “Parthenogenesis in Komodo dragons,” Nature 444 (2006); Oliver A. Ryder et al., on facultative parthenogenesis in California condors, Journal of Heredity 112 (2021); Moreira, Fonseca, and Rojas, on all-female lizards and snakes, Biology Letters 17 (2021); Demian Chapman et al., “Virgin birth in a hammerhead shark,” Biology Letters 3 (2007); Warren Booth et al., “Facultative parthenogenesis discovered in wild vertebrates,” Biology Letters 8 (2012).
  • John Maynard Smith, The Evolution of Sex, Cambridge University Press, 1978; Jussi Lehtonen, Michael Jennions, and Hanna Kokko, “The many costs of sex,” Trends in Ecology & Evolution 27 (2012); Olga Vakhrusheva et al., Nature Communications 11 (2020), and Veronika Laine, Timothy Sackton, and Matthew Meselson, Genetics 220 (2022), on bdelloid rotifers.
  • Curtis M. Lively, “Evidence from a New Zealand snail for the maintenance of sex by parasitism,” Nature 328 (1987); Jukka Jokela, Mark Dybdahl, and Curtis Lively, “The maintenance of sex, clonal dynamics, and host-parasite coevolution in a mixed population of sexual and asexual snails,” American Naturalist 174 (2009); Levi Morran et al., “Running with the Red Queen: host-parasite coevolution selects for biparental sex,” Science 333 (2011); Hermann J. Muller, “The relation of recombination to mutational advance,” Mutation Research 1 (1964); Susanne Paland and Michael Lynch, Science 311 (2006), on water fleas, and Maurine Neiman et al., Molecular Biology and Evolution 27 (2010), on snails; Edward S. Ricemeyer et al., “Gene conversion empowers natural selection in a clonal fish species,” Nature 652 (2026; published online March 11, 2026).
  • Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov, “Dropout: a simple way to prevent neural networks from overfitting,” Journal of Machine Learning Research 15 (2014); Adi Livnat et al., “A mixability theory for the role of sex in evolution,” PNAS 105 (2008).
  • Geoff A. Parker, Robin R. Baker, and Vic G. F. Smith, “The origin and evolution of gamete dimorphism and the male-female phenomenon,” Journal of Theoretical Biology 36 (1972); Leda Cosmides and John Tooby, “Cytoplasmic inheritance and intragenomic conflict,” Journal of Theoretical Biology 89 (1981); Laurence D. Hurst and William D. Hamilton, “Cytoplasmic fusion and the nature of sexes,” Proceedings of the Royal Society B 247 (1992); Peter Sutovsky et al., “Ubiquitin tag for sperm mitochondria,” Nature 402 (1999); William Lee et al., “Molecular basis for maternal inheritance of human mitochondrial DNA,” Nature Genetics 55 (2023); Moriyama and Kawano, on mitochondrial inheritance in Physarum, Genetics 164 (2003); Tim Janicke et al., “Biological sex is binary and rooted in anisogamy,” Ecology Letters 29 (July 2026), and, for the other side, Karen Warkentin, Jay Falk, and A. M. Aramati Casper, “Evolution, development, and the incoherence of sex: a framework for multiple sex concepts,” Integrative and Comparative Biology 66 (2026).
  • Andrew H. Sinclair et al., Nature 346 (1990), on SRY; Peter Koopman et al., “Male development of chromosomally female mice transgenic for Sry,” Nature 351 (1991); MedlinePlus Genetics (US National Library of Medicine), pages on the X and Y chromosomes, mitochondrial DNA, and androgen insensitivity syndrome; Marcella Cervantes et al., PLOS Biology 11 (2013), on Tetrahymena’s seven mating types; Carlene Raper and Thomas Fowler, “Why study Schizophyllum?,” Fungal Genetics Reports 51 (2004).
  • Mark W. J. Ferguson and Ted Joanen, “Temperature of egg incubation determines sex in Alligator mississippiensis,” Nature 296 (1982); Michael P. Jensen et al., “Environmental warming and feminization of one of the largest sea turtle populations in the world,” Current Biology 28 (2018); Shinnosuke Okano et al. (Tokyo University of Science), “Gonadal development and gene expression in the leopard gecko during temperature-dependent sex determination,” Developmental Biology 533 (2026; online February 18, 2026); Flores, Tousignant, and Crews, Physiology & Behavior 55 (1994).
  • Robert R. Warner and Stephen E. Swearer, “Social control of sex change in the bluehead wrasse, Thalassoma bifasciatum (Pisces: Labridae),” Biological Bulletin 181 (1991); Munday, White, and Warner, Proceedings of the Royal Society B 273 (2006), on wrasses that start as males; Erica V. Todd et al., Science Advances 5 (2019), on how the change works; Hans Fricke and Simone Fricke, “Monogamy and sex change by aggressive dominance in coral reef fish,” Nature 266 (1977); Peter Buston, “Territory inheritance in clownfish,” Proceedings of the Royal Society B 271 (2004); Casas et al., on sex change in clownfish, Scientific Reports 6 (2016); Lev Fishelson, Nature 227 (1970), on anthias.
  • Liu Jiankang, “Rudimentary hermaphroditism in the symbranchoid eel, Monopterus javanensis,” Sinensia 15 (1944); Zhou and Gui, on Liu Jiankang’s work, Protein & Cell 7 (2016).
  • Abraham H. Maslow, “A theory of human motivation,” Psychological Review 50 (1943); Bridgman, Cummings, and Ballard, Academy of Management Learning & Education 18 (2019), on who drew Maslow’s pyramid; Douglas T. Kenrick et al., “Renovating the pyramid of needs: contemporary extensions built upon ancient foundations,” Perspectives on Psychological Science 5 (2010); Roy F. Baumeister and Mark R. Leary, “The need to belong: desire for interpersonal attachments as a fundamental human motivation,” Psychological Bulletin 117 (1995); Julianne Holt-Lunstad, Timothy Smith, and J. Bradley Layton, “Social relationships and mortality risk: a meta-analytic review,” PLOS Medicine 7 (2010).
  • Mencius, Lilou I (4A.26); United Nations, World Population Prospects 2024 (still the latest revision as of October 2026; the next is due in July 2027); US Centers for Disease Control and Prevention, National Center for Health Statistics, “Births: final data for 2024,” National Vital Statistics Reports 75, no. 2 (June 2026), and provisional births for 2025 (April 2026).