← All articles
economicsgame theoryprisoner's dilemmacooperationSeptember 14, 20264 min read

What Is the Prisoner's Dilemma? Why Rational People Fail to Cooperate

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

Two people are arrested for a crime the police cannot quite prove. They are held apart and offered the same deal: confess and testify against the other, and you walk free while your partner serves ten years; stay silent while the other confesses, and the sentences reverse; both confess and you each serve five; both stay silent and you each serve one, on a lesser charge. Each prisoner, thinking only of themselves, confesses. Both serve five years, when silence would have cost them one. That is the prisoner's dilemma, and it is the most studied situation in the theory of games.

Why confessing is rational and the result is not

Look at the choice from one prisoner's side. If the partner confesses, confessing gets five years instead of ten. If the partner stays silent, confessing gets freedom instead of one year. Whatever the other does, confessing is better, which makes it what game theorists call a dominant strategy. Both prisoners reason the same way, both confess, and both land on the outcome that is worse for each of them than mutual silence.

The point is not that the prisoners are stupid or greedy. Each is doing the best they can given what the other might do, and the trap is in the structure: an outcome that is best for the pair is unreachable by two people who cannot trust each other and cannot enforce a promise. The game was devised in 1950 by two mathematicians at the RAND Corporation, Merrill Flood and Melvin Dresher, and given its story by Albert Tucker, and it was studied first because it looked like the nuclear arms race.

The same shape everywhere

Once you know the pattern you see it constantly. Two countries would each be safer spending less on weapons, but each is safer still if it arms while the other disarms, so both arm. Two petrol stations on the same road would both make more money at a high price, but each can grab the other's customers by cutting, so both cut. Fishing fleets on a shared stock, farmers pumping a shared aquifer, neighbours deciding whether to clear the snow from a shared path, students deciding whether to do their share of a group project: in each case defecting is individually best and collectively ruinous. The ingredients:

  • Two or more players who each choose between cooperating and defecting
  • Defecting beats cooperating whatever the other player does
  • Mutual cooperation beats mutual defection for everyone
  • No way to bind the other player to a promise

Playing it more than once

Everything changes when the game repeats. If the two players will meet again, indefinitely, a defection today can be punished tomorrow, and cooperation can be rewarded, so the calculation is no longer about one move but about a relationship. In 1980 the political scientist Robert Axelrod invited game theorists to submit computer programs to play repeated prisoner's dilemmas against each other in a tournament. The winner, submitted by Anatol Rapoport, was four lines long. Tit for tat cooperated on the first move and then simply did whatever its opponent had done on the previous one.

It won both tournaments, against far more elaborate rivals, and Axelrod drew out why. It was nice, never defecting first. It was retaliatory, punishing a defection immediately. It was forgiving, returning to cooperation as soon as the other did. And it was clear, so opponents could learn quickly that cooperating with it paid. Later work found that in a noisy world, where moves are sometimes misread, a slightly more forgiving version does better still, because pure tit for tat can lock two well-meaning players into endless mutual revenge over one mistake.

Cooperation in nature

Biologists took up the game to explain how cooperation could evolve among self-interested organisms. Vampire bats share blood meals with roost-mates who fed them in the past and refuse those who did not. Cleaner fish and their clients, and the reciprocal grooming of primates, follow the same logic. The conditions are the ones Axelrod identified: individuals that meet repeatedly, can recognise each other and remember. Where those conditions fail, among strangers who will never meet again, cooperation collapses, which is why anonymity brings out the worst in people and why reputation systems, from village gossip to online reviews, are attempts to make a one-shot game into a repeated one.

Escaping the dilemma

Since the trap is structural, the escapes are structural too. Change the payoffs, so that defection is punished by a court, a regulator or a contract, and the dominant strategy disappears; that is what a cartel does illegally and an arms control treaty with inspections does legally. Make the game repeated and visible, so that reputation matters. Reduce the number of players, since cooperation is far easier among two than among two hundred. Or change what the players value: people who care about fairness, or about the other player, are not playing the pure game at all, and in laboratory experiments a large fraction of people cooperate in one-shot dilemmas when the theory says they should not. Human beings, it turns out, are worse at being rational than the model and better at being decent.

The takeaway

The prisoner's dilemma is a situation in which each player does better by defecting whatever the other does, yet mutual defection leaves both worse off than mutual cooperation. It describes arms races, price wars and shared resources, and its lesson is that cooperation among the self-interested needs repetition, reputation, enforceable promises or values that go beyond the payoff table.

Practise this

Questions from Advanced Economics

Reading about something is not the same as being able to recall it. These are real questions from the Advanced Economics unit in our Economics track, answers and explanations included. The unit has 120 in total across 23 steps.

  • Choose all that applyLevel 3

    1. Which of these are usually considered public goods? Select all that apply.

    • National defensecorrect
    • A lighthouse guiding shipscorrect
    • Street lightingcorrect
    • A ticketed concert
    • A privately owned car

    Public goods are non-excludable and non-rival, like defense, lighthouses, and street lighting.

  • Choose all that applyLevel 2

    2. Which of these are examples of a helpful 'nudge'? Select all that apply.

    • Placing healthy snacks at eye level in a shopcorrect
    • Automatically enrolling workers in a savings plan they can leavecorrect
    • Showing a suggested tip amount on a billcorrect
    • Banning all unhealthy food by law
    • Fining people for eating dessert

    Nudges guide choices gently while keeping every option open.

  • Fill the blankLevel 3

    3. A single data point that sits far away from all the others and can distort a best-fit line is called an ____.

    • outliercorrect
    • average
    • estimate
    • intercept

    An outlier is an unusual observation that can pull a regression line away from the general pattern.