November 2026
Evolution
Living things fit their lives with an uncanny precision. A stick insect looks like a stick, a woodpecker's skull absorbs the shock of hammering, and the eye focuses light better than many cameras. For most of history the obvious explanation was that someone had designed them. The theory of evolution says that nobody did, and that a simple, blind process can produce the same result given enough time.
The demonstration below is a small patch of ground with a population of beetles on it. Birds hunt them, and the beetles that survive have young that look roughly like them. The slider changes the color of the soil, and the strip underneath shows the color of every beetle as a dot, with a marker for the soil:
Give it some time, and the population takes on the color of the ground. Move the slider to dark soil, wait, and the beetles slowly turn dark as well. Then try pale sand. No beetle ever changes its color, and nothing in the simulation knows what the right color is. It may not be obvious yet why this works, but by the end of this article it will be, and we'll be able to look at the same scene in a quite different way.
The idea that species change over time is older than the explanation of how they change, and the history of that explanation is a good way to understand it. We'll start with the first serious attempt, made two hundred years ago, then build the modern theory piece by piece, and end with a view of evolution in which the main characters aren't animals at all, but the genes inside them.
Several demonstrations in this article are animated. You can pause or resume all of them at once, or use the button in the corner of each one.
Lamarck's Ladder
In 1809 the French naturalist Jean-Baptiste Lamarck published Philosophie zoologique, a book that proposed, decades before Darwin, that species aren't fixed. Lamarck had spent years classifying shells and worms at the natural history museum in Paris, and he saw series of forms that graded into each other so smoothly that it was hard to say where one species ended and the next began. He concluded that living things change slowly over many generations.
To explain how they fit their surroundings, he offered two rules. The first was that organs that are used a lot grow stronger, and organs that are not used shrink. The second was that these changes, gained during a life, are passed on to the young. His most famous example is the giraffe, an animal that feeds on high leaves and stretches its neck to reach them. In the demonstration below, each giraffe is born with a neck of a certain inborn length and stretches it by a small amount during its life. The slider moves through time, one generation after another, and the bars on the right record each one:
Notice that under Lamarck's rules each child starts where its parent finished. The stretch of one generation becomes part of the inborn neck of the next, so the necks grow like a staircase, step after step, for as long as the high leaves stay out of reach. This idea is called the inheritance of acquired characteristics. It wasn't Lamarck's invention. Almost everybody believed it at the time, Darwin included, and it's still how many people intuitively imagine evolution: animals that try hard become better at what they try.
Lamarck's theory has real strengths. It is a natural explanation, with no need for a designer, and it predicts change that is slow and gradual. But it rests on a claim that nobody had checked: that what a body gains in its life can travel to the next generation. It also says nothing about the many features that can't be improved by effort. A beetle can't make its shell darker by trying. We'll come back to the first problem later. Darwin's answer to the second one started from a much humbler observation.
Variation
No two animals of a species are the same. Some beetles are a little paler, some a little darker, some larger, some faster. This is obvious for people and dogs, but it's just as true of mice, sparrows, and beetles, once you look closely. The demonstration below shows five pairs of beetle parents in the top row, each with four young below them:
You can see two things here. First, every beetle is a little different, even brothers and sisters from the same parents. Second, the young tend to look like their parents: pale parents have mostly pale young, and dark parents have mostly dark ones. Breeders of pigeons, dogs, and cattle had relied on both facts for centuries. To get a fast horse, you breed from the fastest horses you have, and you repeat that in every generation. Charles Darwin bred pigeons himself, and he was struck by how far this artificial selection can change an animal in a few hundred years.
But in nature there's no breeder who picks which animals have young. Darwin needed something that picks without anybody choosing, and he found it in an unlikely place: a book about human poverty.
Too Many Children
In 1798 the economist Thomas Malthus wrote that a population that is not held back grows by multiplication, while the food supply grows, at best, by addition. Darwin read his essay in 1838 and realized that the argument applies to every living thing. In the demonstration below, each pair of beetles has four young that grow up and pair off, so the numbers double in every generation. The green area is the food that this patch of ground can provide, and the slider moves through the generations:
Notice how harmless the first few generations look, and how quickly the numbers overwhelm the food. After eight generations, a single pair would have 512 descendants alive at once, and after thirty it would have more than a billion. Darwin made the same calculation for the elephant, which he thought was the slowest breeder of all animals. With six young in a long life, one pair would leave nearly nineteen million elephants after about 750 years.
That doesn't happen, so in every species most of the young must die before they have young of their own. Darwin called this the struggle for existence. It's mostly not a fight. It's a beetle that is found by a bird, a seedling that doesn't get enough light, an egg that freezes. Now put it together with variation: if most of the young die and they all differ a little, then the question is whether the ones that die are a random sample.
Selection
Let's go back to the beetles and follow one season. This time there are no young, only a population on a patch of soil and birds that hunt them. A bird spots a beetle more easily when its color is far from the color of the ground. The first slider changes the soil, and the second one moves through the season. The beetles that the birds take are marked with a cross:
As you can see, the losses aren't random. On dark soil, the birds mostly take the pale beetles, and the survivors are a darker sample of the population than the one at the start of the season. The histogram below the field shows this: the dashed outline is the population at the start, and the filled bars are the survivors. On very dark soil the shift is strong, and on soil of a middle color the birds take the beetles at both ends.
Only the survivors have young, and the young resemble their parents, so the next generation starts a little darker than the previous one. Repeat this for many generations, and small shifts add up. Darwin called this process natural selection, and he and Alfred Russel Wallace, who had found the same idea independently, presented it together in London in 1858. Darwin's On the Origin of Species followed a year later.
The demonstration below repeats the season many times. Time runs from left to right, one column for each generation, and the shade in each column shows how many beetles have each color, from pale at the top to dark at the bottom. The dashed line is the color of the soil, and the second slider sets how hard the birds hunt:
Notice that the whole population drifts toward the color of the soil and then stays there. Nobody picks the beetles, yet the result looks as if somebody did. With fewer birds the change is slower, but it still goes in the same direction. With many birds it takes only a handful of generations.
This isn't only a simulation. In the nineteenth century, the soot from coal fires darkened the trees around English industrial towns. The peppered moth rests on tree bark during the day, and it normally has pale, speckled wings. A black form was recorded near Manchester in 1848, and by 1895 about 98 percent of the moths caught there were black. When clean-air laws cut the soot in the second half of the twentieth century, the pale form came back.
Notice the difference from Lamarck's giraffes. No individual changes during its life, and no effort is needed. The population changes because its members differ, and the ones that differ in a useful direction leave more young. But Darwin's theory had a weak spot of its own, and it lay in the second ingredient: the way that young resemble their parents.
Blending
Darwin didn't know how inheritance works. Nobody did, and the common assumption was that the traits of the parents mix in the child, like two paints mixed in a pot. In 1867 an engineer, Fleeming Jenkin, pointed out what that would mean for natural selection. In the demonstration below, each row is one generation of a population, with every beetle shown as a dot at its color. In each generation, the beetles pair at random, and each child gets the average of its two parents. The slider adds generations:
As you can see, the spread of the population shrinks by more than a quarter with every generation. After only six generations almost every beetle has the same middle color. Selection needs differences to work on, and blending inheritance would destroy them faster than any reasonable source could create new ones. A single unusually dark beetle would see its darkness halved in its young, and halved again in its grandchildren, long before selection could do anything with it.
Darwin took this objection seriously, and he never fully answered it. The answer had already been published, in 1866, by a monk in Brno who experimented with peas.
Mendel's Peas
Gregor Mendel crossed varieties of garden peas that differ in one clear trait, such as the color of the seed. When he crossed a plant with yellow seeds and a plant with green seeds, all the seeds of the next generation were yellow. When he let those plants fertilize themselves, the green seeds came back, in about one seed out of four. Blending can't explain that: the green would have to be diluted, and it can't reappear from nothing.
Mendel's explanation was that each plant carries two copies of a factor for seed color, one from each parent, and that each seed gets one of the two copies of each parent, at random. The factors don't mix. When a plant has one of each kind, the yellow factor hides the green one, but the green factor is still there, intact. In the demonstration below, I'm drawing each pea with its two factors as small beads under it. You can step through the generations with the buttons:
Notice that in the children every plant has one factor of each kind, and all their seeds are yellow. In the grandchildren the four combinations are equally likely, and only one of them has two green factors, which gives the one green seed out of four. Today we call Mendel's factors genes, and the different versions of a gene, such as the yellow and the green one, are its alleles.
Mendel's paper was almost completely ignored for 34 years, until three botanists found the same results in 1900. It took longer still to see what it meant for Darwin's problem. Let's go back to the population that lost its variation, and give each beetle eight genes that affect its color, each with a pale and a dark allele. The color of a beetle is the share of dark alleles that it carries. The buttons switch between blending and genes:
With genes, the spread of the population doesn't shrink. A child still lands, on average, between its parents, but the alleles themselves pass through it unchanged, and they can recombine into a dark or a pale beetle again in the next generation. Compare it with blending, where the spread disappears. Inheritance by particles keeps the raw material of selection. And the particles open a new question: where exactly do they live, and can a body change them?
The Barrier
The German biologist August Weismann put the inheritance of acquired characteristics to a direct test in the 1880s. He cut off the tails of 68 mice and bred from them, cutting the tails of every new generation too. Lamarck's rule predicts that the cut should gradually be inherited. In the demonstration below, each row is a generation of mice. The dashed outline shows a tail that shrinks generation after generation, as that prediction requires, and the solid tail shows what Weismann saw:
After five generations and 901 young, not one mouse was born with a shorter tail. The experiment is crude, and some people objected that Lamarck had written about the effects of use, not about injuries. But Weismann's real contribution was the explanation behind the result, and that explanation held up.
Weismann proposed that an animal is made of two kinds of cells. The germ cells are the eggs and sperm and the cells that make them. Everything else is the body, or soma. A fertilized egg divides into both: most of its descendants build the body, and a few are set aside to become the germ cells of the next generation. The body is built from the instructions in the germ line, but it doesn't send anything back. In the demonstration below, each column is one generation. The buttons choose where we make a change: in a body, or in a germ cell:
When we change a body, the mark stays in that body and dies with it. When we change a germ cell, the change passes to every later germ cell, and every body built from them carries it too. The germ line is a continuous thread that runs through the generations, and each body is a side branch that grows from it and ends. This separation is called the Weismann barrier. A giraffe's stretched neck is a change in its body, so the stretch ends with that giraffe.
For animals, this rule turned out to be essentially right, and with it the inheritance of acquired characteristics stopped being part of the mainstream theory. It also leaves us with a picture that will matter later: the thing that continues from one generation to the next isn't the animal, but what is in the germ line. To see what that is, we have to look at what genes are made of.
Genes in Populations
We now know that genes are stretches of DNA, a long molecule whose four chemical letters spell the instructions to build proteins. A human germ cell carries about 3.1 billion letters. Before a cell divides, it copies its DNA, and the copying machinery is astonishingly accurate. It isn't perfect, though. In the demonstration below, each row is a copy of the row above it, and the slider adds more rounds of copying. A ring marks each letter that came out wrong:
I've made the errors far more common than they are, so that you can see some. In humans, each letter of the germ line changes with a chance of about one in a hundred million per generation. With billions of letters, that is still about 60 to 70 new changes in every child. These copying errors are called mutations. Most do nothing, some are harmful, and very rarely one is useful. Notice also that a mistake, once made, is copied faithfully in all later rows. Mutation is the source of new alleles, and it's random with respect to need: a beetle on dark soil isn't more likely to get a mutation for a darker shell.
In the 1920s and 1930s, Ronald Fisher, J.B.S. Haldane, and Sewall Wright combined Darwin's selection with Mendel's genes, and they described evolution in a new way: as a change in how common each allele is in a population. This combination is called the modern synthesis. Its first surprise is that alleles can become more or less common with no selection at all. In the demonstration below, each line follows how common one allele is in a separate population, starting at one half. Each generation is built by drawing alleles at random from the previous one, and no allele is better than another. The slider sets the size of the populations:
In small populations the lines wander wildly, and many hit the top or the bottom within a few dozen generations. At the top, every member carries the allele; at the bottom, it's gone for good. In large populations the lines barely move. This random change is called genetic drift. It's why small, isolated populations change quickly, and why much of the change in DNA over long periods has nothing to do with adaptation.
Selection works on the same frequencies. In the next demonstration, a new allele starts in 1 percent of a large population, and its carriers have a small advantage: on average they leave a little more young than the others. The slider sets the size of that advantage. The dashed line shows what happens with no advantage at all:
Notice that even an advantage of 1 percent takes the allele from rare to nearly universal in about a thousand generations. For a mouse, that's a few hundred years. A 5 percent advantage does it in a couple of hundred generations. Differences much too small to notice in one animal are decisive over the time spans of evolution. In large populations selection wins over drift; in small ones a slight advantage can be lost by chance.
By the middle of the twentieth century, then, the theory was a theory of genes in populations, and it explained a great deal. But the way people talked about evolution hadn't quite caught up. Biologists still often said that a trait exists "for the good of the species". In the 1960s and 1970s a group of biologists set out to clean this up, and the result was a change of viewpoint that is easiest to understand if we start at the very beginning of life.
Replicators
In The Selfish Gene, published in 1976, Richard Dawkins invited his readers to imagine the early Earth, before there was anything alive. In the water, molecules form and break apart. At some point, by accident, a molecule forms that can make copies of itself from the building blocks floating around it. Dawkins called it a replicator. Nobody knows what the first one looked like, and I'm drawing it as a short chain of beads. In the demonstration below, the soup holds replicators and the building blocks they use. Each replicator occasionally falls apart. Then a rival appears that copies itself faster, and the slider sets how much faster it is:
The plot on the right shows how much of the soup each kind takes up over time. Notice that the rival takes over, and the original disappears. Nothing kills it; it simply loses the race for building blocks. A rival that is only a little faster still wins, only more slowly. This is natural selection again, but with no animals, no birth, and no death in the usual sense. All it needs is a thing that makes copies of itself, and copies that differ.
Dawkins listed three qualities that make a replicator successful: it lasts a long time, it copies itself quickly, and it copies itself accurately. The last one is easy to overlook. In the next demonstration, there is only one kind of replicator, and the slider sets how often its copies come out right. A wrong copy can't copy itself, and I'm drawing it in gray:
With accurate copying, the replicators fill the soup. As you lower the accuracy, they produce more broken copies than working ones, and the population collapses. A replicator has to copy itself well enough that its design survives the copying, which is why the accuracy of DNA copying that we saw earlier matters so much.
Dawkins's point was that the replicators of today are genes. They are still molecules that get copied, still compete for a place in the next generation, and still win by being long-lived, prolific, and accurate. Only the way they compete has changed beyond recognition.
Vehicles
The early replicators had to survive on their own in the soup. Over billions of years, the ones that survived best were the ones that built protection around themselves: membranes, then cells, then bodies with many cells. Dawkins called these bodies survival machines, and later the word vehicle caught on. A body is a vehicle that its genes build and travel in for one generation. The genes that build better vehicles get more copies of themselves into the next generation.
This sounds like a play on words until you see how short-lived a body's particular combination of genes is. In the demonstration below, the top row shows the genes of one ancestor, two copies of each, as squares. Each row below is one descendant in the next generation, along one line of descent. Every child gets half of its genes from the ancestor's line and half from an unrelated partner, which I'm drawing in gray. The slider adds generations:
The ancestor's genes halve with every generation, and after eight generations almost none are left in this descendant. The combination that made the ancestor is gone, broken up and mixed with others, and it will never exist again. But look at the individual genes that do remain: each is an exact copy of the ancestor's. I've outlined one of them that made it through every generation. A body is a temporary alliance of genes, and the genes are the things that last. (I'm ignoring the fact that genes close together on a chromosome tend to travel together; it slows the dilution but doesn't change the picture.)
This is the gene's-eye view of evolution, developed by George Williams in 1966 and by Dawkins in 1976 and 1982. It doesn't contradict anything in the earlier sections. It describes the same process from the point of view of the thing that persists. Let's go back to the beetles from the start, now with a single gene for color that has a pale and a dark allele. Each beetle carries two copies, and its color depends on how many are dark. The buttons switch between the beetles and the copies of the gene inside them:
In the view of the beetles, we see what we saw at the start: animals that live, get eaten, and have young. In the view of the genes, each beetle is only an outline that carries two copies, and what we see is a competition between two alleles. The bars at the bottom count every copy of each one. When the soil is dark, the dark allele gains copies because its vehicles survive the birds more often. Nothing in the gene wants anything. "Selfish" is a metaphor for a simple fact: the genes we find today are the ones whose effects got them copied.
This view also explains something that looked mysterious from the point of view of the animal: why animals so often help each other.
Kin
A worker honeybee never has young of her own, and she dies stinging an intruder to protect the hive. A ground squirrel that spots a hawk gives an alarm call that warns its neighbors and draws the hawk's attention to itself. If selection favors the animals that leave the most young, how can a habit of sacrifice spread?
The answer, worked out by William Hamilton in 1964, is that a gene can get copies into the next generation in two ways: through the young of the body it sits in, or through the young of other bodies that carry copies of the same gene. Relatives are those bodies. In the demonstration below, imagine that you carry one copy of a rare gene. Each group shows sixteen of your relatives of one kind, and the highlighted ones carry a copy of the same gene, inherited from the same ancestor. The buttons pick the kind of relative:
A brother or sister got one of your mother's two copies, so the chance that they got the same one as you is one half. For a half-sibling it's one quarter, and for a first cousin one eighth. This chance is called the relatedness r. Haldane is said to have joked that he would lay down his life for two brothers or eight cousins, and the numbers show why: two brothers carry, on average, as many copies of his genes as he does.
Hamilton's rule says that a gene for helping spreads when the help, weighted by relatedness, is worth more than it costs:
r · B > C
Here B is the number of extra young that the help gives the relative, and C is the number of young that the helper gives up. In the demonstration below, a helping gene starts out rare. The helper always pays a cost of one young, the buttons choose whom it helps, and the slider sets the benefit. I'm using the simplest model, in which the gene's frequency changes in proportion to r·B − C:
When the helper helps strangers, the gene always loses, however large the benefit, because a stranger is no more likely than anyone else to carry it. When it helps siblings, the gene spreads as soon as the benefit is more than twice the cost, and when it helps cousins, it needs more than eight times the cost. This idea is called kin selection. It explains why social insects live in colonies of close relatives, why alarm calls are more common in animals that live near their kin, and why so much cooperation in nature runs along family lines. From the gene's point of view, helping a sister is a way of copying itself.
Loose Ends
The story so far is the mainstream view, but not every biologist tells it the same way, and two debates are worth knowing about.
The first is about Lamarck. Since the 2000s, biologists have studied epigenetics: chemical marks on DNA that switch genes on or off without changing the letters. Some marks respond to what happens in an animal's life, and in plants and some worms a few of them pass to the next generation. In mammals, almost all marks are erased in the germ line, and evidence for inheritance beyond a generation or two is weak. These findings are real, and they show that the Weismann barrier is less absolute than it once seemed. They don't bring back the inheritance of stretched necks.
The second is about the gene's-eye view itself. Critics argue that it puts too much weight on the gene as the unit that matters, and too little on bodies, development, and groups, which are the things that selection actually sees. Supporters reply that the two descriptions are mostly the same accounting done in a different order. The debate is mostly about which description is more useful, not about what happens in nature, and both sides agree on the mechanism we've built in this article.
Further Reading
Charles Darwin's On the Origin of Species is still very readable, and the first four chapters cover variation, the struggle for existence, and natural selection with many examples. The full text and all six editions are free on Darwin Online.
Richard Dawkins's The Selfish Gene is the classic account of replicators, vehicles, and kin selection for a general reader. Its sequel for a more technical audience, The Extended Phenotype, argues the case for the gene's-eye view in depth.
Jonathan Weiner's The Beak of the Finch follows Peter and Rosemary Grant's decades of measurements of finches on the Galápagos Islands. It shows natural selection measured in the wild, year by year.
Jerry Coyne's Why Evolution Is True is a clear summary of the evidence for evolution, from fossils to genes, for readers who want to know how we know.
Final Words
Lamarck saw that species change and that the change is slow, and he tried to explain it with the striving of animals. Darwin replaced the striving with something stranger: a sieve. Differences arise for no reason, most of the young die, and the survivors are not a random sample. That is all, and it is enough to build an eye.
The gene's-eye view goes one step further and takes the animal out of the center of the story. An animal is a vehicle, assembled once and never again, carrying genes that have passed through countless bodies before it. It's an unsettling idea, and it's also a strangely generous one: the same logic that makes genes "selfish" is what makes a bee give its life for its sisters.
The next time you see a moth on a tree trunk that matches the bark, or a beetle the color of the sand, it's worth remembering that nobody painted it. It is the latest survivor of a very long line, all of whose members happened to be hard to see.