Personaramic

The Prisoner's Dilemma: What It Is, How It Began and Why Cooperating Is Still Rational

By Personaramic Editorial23 min read
Geometric illustration of two blocks facing each other across a gap, with a translucent horizontal piece above that could join them

The prisoner’s dilemma does not prove that people are selfish. It proves something more uncomfortable: that two reasonable people, each doing what suits them, can end up together in an outcome neither of them wanted. And that the way out is almost never outsmarting the other person. It is changing the game.

It is probably the most famous problem in game theory, and it is almost always told halfway: two prisoners, a table of prison sentences and a quick conclusion about human nature. The full story is more interesting, and a good deal more hopeful.

Each prisoner gains by confessing, but together they both lose

The story of the two prisoners

The police arrest two suspects and lock them up in separate cells, with no way to communicate. They have enough evidence to convict both on a lesser charge, but not on the main one.

Each suspect gets the same offer, separately:

  • If you confess and your partner stays silent, you walk free and he gets the maximum sentence.
  • If you both confess, you each get a substantial sentence.
  • If you both stay silent, we can only convict you on the lesser charge: a short sentence.

With concrete prison terms (fewer years is better), the situation looks like this:

Your partner stays silentYour partner confesses
You stay silent1 year eachYou 10 years, he walks free
You confessYou walk free, he gets 10 years5 years each

In the language of game theory, staying silent is “cooperating” (with your partner, not with the police) and confessing is “betraying” or “defecting.”

The reasoning that leads into the trap

Each prisoner, reasoning coldly, arrives at the same place:

  • If my partner stays silent, I am better off confessing: I walk free instead of serving a year.
  • If my partner confesses, I am also better off confessing: five years instead of ten.

Whatever the other does, confessing is always better for me. Game theorists call this a dominant strategy.

Since the other prisoner reasons the same way, both confess and serve five years. Had they stayed silent, they would have served only one year each. Two individually logical decisions produce an absurd result for both.

What defines the dilemma is the order of the outcomes

The prisoners are just a costume. The literature sums up the dilemma with four letters:

  • T (temptation): what you get if you betray while the other cooperates.
  • R (reward): what you both get if you both cooperate.
  • P (punishment): what you both get if you both betray.
  • S (sucker): what you are left with if you cooperate and the other betrays you.

It is a prisoner’s dilemma when T > R > P > S. If the game is repeated, one more condition applies: cooperating must always pay more than taking turns betraying (2R > T + S).

That is why the dilemma appears in any situation with that structure, jails or no jails: two companies deciding whether to cut prices, two countries deciding whether to arm, two roommates deciding whether to clean the kitchen.

An equilibrium that is worse for both

Mutual betrayal is what John Nash called an equilibrium: a point at which no player gains anything by changing strategy alone. Nash formulated it in 1950, and that work earned him the Nobel Prize in Economics in 1994.

What is disturbing is that this equilibrium is worse for both than mutual cooperation. In technical terms, it is not “Pareto efficient”: there is another outcome in which both would be better off. The dilemma pits individual rationality against collective rationality, and in this game they do not line up.

The game was born at RAND in January 1950; the prisoner story came later

The Flood and Dresher experiment

The dilemma was not born in a philosophy book but at the RAND Corporation, the strategic analysis center in Santa Monica, California, that began as a US Air Force project and became independent in 1948. There, game theory, newly founded by John von Neumann and Oskar Morgenstern (1944), was being applied to military strategy.

In January 1950, Merrill Flood and Melvin Dresher designed a game with the structure we know today and asked two colleagues to play it a hundred times in a row: the economist Armen Alchian, of UCLA, and the mathematician John D. Williams, of RAND.

According to the theory, they should have betrayed in every round. They cooperated mutually in 60 of the 100 games and landed on mutual betrayal in only 14. Their notes reveal something no table captures: one was trying to “teach” the other to cooperate, the other grew impatient, and both punished betrayals in the next round.

John Nash raised an objection: repeated a hundred times, it was not the same game as a single round. He was right, and that objection anticipated the most fertile idea of the following decades: that cooperation can emerge from repetition.

Tucker gave it a name and a jail

Flood and Dresher’s game was a table of numbers. It lacked a story.

Albert W. Tucker, a Princeton mathematician and Nash’s thesis adviser, supplied one. In May 1950, invited to explain game theory to the Psychology department at Stanford, he invented the story of the two prisoners in separate cells. The talk was titled “A Two-Person Dilemma,” but the jail image worked so well that the game came to be called the “prisoner’s dilemma”.

In the Cold War, the nuclear race was read as a prisoner’s dilemma

In August 1949 the Soviet Union tested its first atomic bomb. For many analysts, the situation had exactly the shape of the dilemma: both disarming was best for both, disarming alone meant being at the other’s mercy, and both arming meant spending fortunes and living in fear. Both armed.

The logic led to chilling conclusions. John von Neumann, the founder of game theory, argued for a time in favor of a preemptive strike on the Soviet Union. A profile published in Life in 1957 attributes a line to him: if asked “why not bomb them tomorrow?”, he would reply “why not today?”

Even Bertrand Russell, later one of the great voices of disarmament, argued after Hiroshima for pressuring the USSR, with the threat of war if necessary, while the United States still held the atomic monopoly. Years later he denied it; the historian William Poundstone documents that his writings from the late 1940s said otherwise. The dilemma’s reasoning is not the preserve of cynics: anyone adopts it when fear of the other side’s betrayal dominates the analysis.

In hindsight, the Cold War did not end in the total betrayal the logic seemed to foretell. There were arms limitation treaties, mutual inspections and hotlines between governments. The two players changed the structure of the game (communicating, verifying, repeating the interaction) instead of resigning themselves to it.

Real people cooperate far more than the theory predicts

The theory says that in a single round everyone should betray. The experiments say something else, with nuances that matter.

The name of the game outweighs the player’s reputation

As early as the late 1950s, a team at Ohio State University (Scodel, Minas, Ratoosh and Lipetz, 1959) found that many players betrayed more than was good for them: they seemed more concerned with not falling behind the other than with winning as much as possible.

The most revealing experiment is by Varda Liberman, Steven Samuels and Lee Ross (2004). Same game, same rules, same payoffs; only the name changed:

  • As “the Wall Street Game,” about two thirds of players competed.
  • As “the Community Game,” only a third did.

Beforehand, the researchers had asked dorm advisers to predict who would cooperate and who would compete. That reputation predicted behavior far worse than the name of the game did. What we call character depends to a large extent on how we interpret the situation.

With over $20,000 at stake, 52.8% chose to split

And if the money is serious? Martijn van den Assem, Dennie van Dolder and Richard Thaler (2012) analyzed 287 episodes of the British game show Golden Balls, whose final round was a prisoner’s dilemma with jackpots averaging over $20,000: each contestant secretly chose to “split” or “steal.”

  • 52.8% of the 574 finalists chose to split.
  • In 31% of episodes both split; in 44%, one split and the other stole; in 25%, both stole.
  • Men cooperated less than women, but the gap reversed with age: men became more cooperative as they got older.

The authors also describe an effect they called big peanuts: cooperation was surprisingly high for amounts that would matter a great deal outside the studio but looked small there next to huge jackpots.

Women prisoners cooperated more than students

Menusch Khadjavi and Andreas Lange (2013) took the game into a women’s prison in Germany and compared the inmates with female university students. In the simultaneous version, the inmates cooperated more. And a similar share of both groups showed social preferences: they also cared about what happened to the other person.

Is cooperating the intuitive choice? The question remains open

In 2012, David Rand, Joshua Greene and Martin Nowak reported in Nature that people who decided quickly, under time pressure, cooperated more in a public goods game (a multi-player relative of the dilemma). They read this as evidence that cooperation is, for many people, the intuitive response.

It should be held with caution. A registered replication across 21 labs (Bouwmeester and colleagues, 2017) found the pattern only among those who complied with the time instruction; with all participants included, the effect disappeared.

Talking boosts cooperation, even though in theory it shouldn’t

The classic story isolates the prisoners. When they are allowed to talk, cooperation rises sharply. David Sally (1995) saw this in experiments published between 1958 and 1992. Daniel Balliet (2010), with 45 effects, found a large effect (d = 1.01), bigger for face-to-face conversation (d = 1.21) than for written messages (d = 0.46).

In pure logic, talking changes nothing: if the other promises to cooperate, betraying is still more profitable, and a promise that cannot be enforced is “cheap talk.” If the conversation allows the players to sign a binding agreement, the game is no longer a prisoner’s dilemma.

That it works so well says a lot about us. Talking creates commitment, reduces uncertainty about the other person and makes it psychologically more costly to betray someone you have looked in the eye.

When the game repeats, reciprocity wins: Axelrod’s tournaments

The shortest strategy won

Nash’s objection hung in the air for thirty years. It was taken up by the political scientist Robert Axelrod, of the University of Michigan, with a computer tournament: he invited specialists to submit strategies for playing the repeated dilemma.

He received 14 programs, which played every other program in games of 200 rounds, plus one that played at random. The shortest strategy won: TIT FOR TAT, submitted by the mathematician and psychologist Anatol Rapoport. Its rule fits in one line: cooperate on the first move and, from then on, repeat whatever the other player did on the previous move.

Axelrod called a second tournament. Everyone now knew the winner and could design strategies against it, and the length of the games was no longer known. 62 strategies from six countries arrived, one of them from a ten-year-old. Rapoport submitted the same one. It won again.

The winning strategies shared four traits

  1. Nice: they were never the first to betray.
  2. Retaliatory: they responded to a betrayal right away, so as not to be exploited.
  3. Forgiving: after punishing, they went back to cooperating if the other did.
  4. Clear: the opponent quickly understood how they worked and found it worthwhile to cooperate.

A detail that often goes unnoticed: tit for tat never wins an individual game; at best it ties. It wins the tournament because it racks up many games of mutual cooperation while the aggressive strategies tear each other apart.

The shadow of the future, and the paradox of the known ending

Why does reciprocity work? Because in a repeated game the future weighs on the present. Axelrod called it “the shadow of the future”: betraying today gives a quick gain but costs tomorrow’s cooperation. That is why people behave differently with a lifelong neighbor than with a stranger in an airport.

There is a logical trap. If both know the game has exactly a hundred rounds, in the last one there is no future to protect and the rational move is to betray; then there is no reason to cooperate in round ninety-nine either, and so on backward to the first. This is the backward induction paradox. Real people, once again, don’t play like that: they cooperate for much of the game and betray near the end.

“Live and let live” in the trenches

Axelrod illustrated his theory with the “live and let live” system of World War I, documented by the historian Tony Ashworth. On some stretches of the Western Front, enemy units that faced each other for months fired at predictable times, aimed high on purpose and held off during meals, and responded harshly when the other side broke the truce.

This deserves a caveat: Joanne Gowa and Andrew Gelman have questioned whether the case truly fits the model, and Ashworth himself gives an explanation with more factors. As an illustration of how cooperation arises among people forced to keep meeting, it is still hard to beat.

With 1% errors, tit for tat loses more than half its cooperation

Tit for tat has a serious weakness: it does not forgive misunderstandings. If one player betrays by mistake, or the other misreads a move, a chain of retaliation begins that may never end. Poundstone calls it the echo effect: two countries that do not share the same account of who started it can punish each other indefinitely, each convinced it is only responding.

The theoretical biologists Martin Nowak and Karl Sigmund studied what happens when there are errors and strategies evolve:

  • In 1992 they showed that tit for tat opens the way to cooperation but is eventually displaced by a generous version that randomly forgives some betrayals. Outside the game, how readily each person lets go of an offense is what the forgiveness quiz explores.
  • In 1993 they described an even more robust one, “Pavlov” or “win-stay, lose-shift”: if the previous move went well, you repeat it; if it went badly, you switch. It corrects errors easily and also refuses to be exploited by unconditional cooperators, which keeps them from opening the door to players who always betray.

Our simulation: 200 rounds, 1,000 matches per cell

To measure the echo effect, we programmed a 200-round repeated dilemma using the payoffs from Axelrod’s tournaments: 3 points each if both cooperate, 1 each if both defect, and 5 against 0 if one defects while the other cooperates. In every round, each move is flipped by mistake with a fixed probability, and each match is repeated 1,000 times.

The table shows the percentage of rounds with mutual cooperation when both players use the same strategy and, in brackets, the average points per round (the sustainable maximum is 3).

Strategy of both playersNo errors1% errors5% errors10% errors
Tit for tat100% (3.00)40% (2.45)27% (2.28)26% (2.27)
Generous tit for tat (forgives 1 in 3 defections)100% (3.00)95% (2.97)77% (2.86)62% (2.74)
Pavlov (win-stay, lose-shift)100% (3.00)96% (2.95)82% (2.77)67% (2.61)
Permanent grudge (never cooperates again after a defection)100% (3.00)25% (1.54)5% (1.25)3% (1.34)
Always cooperate (reference)100% (3.00)98% (2.99)90% (2.95)81% (2.89)

What it shows:

  • One mistake in a hundred moves is enough for two tit-for-tat players to drop from 100% to 40% cooperative rounds. Each slip starts a chain of alternating retaliation that only ends with another slip.
  • Strategies that forgive, or that switch when something goes wrong, keep most of the cooperation. It is Nowak and Sigmund’s result on a small scale; the 1-in-3 forgiveness rate is the one their model indicates for these payoffs.
  • The player who never forgives loses the most: at 5% errors, cooperation almost disappears.
  • Always cooperating holds up well against noise among equals, but offers no protection against someone who defects systematically.
Mutual cooperation between two identical players by error rate: tit for tat versus PavlovMoves flipped by mistake. Rounds both cooperate. %. Tit for tat. Pavlov (win-stay). 0%. 1%. One error in a hundred: from 100% to 40%. 5%. 10%. At 10%: 67% versus 26%Tit for tatPavlov (win-stay)0%50%100%0%1%5%10%One error in ahundred: from100% to 40%At 10%: 67%versus 26%Moves flipped by mistakeRounds both cooperate
Personaramic simulation: 200 rounds, Axelrod payoffs (3, 1, 5 and 0), 1,000 games per point.

This is a simplified model: the figures change with the payoffs, the length and the opponents. The direction of the effect, however, is clear: in a world with mistakes, a little forgiveness is worth more than exact reciprocity.

Reciprocity also sustains cooperation among animals

For a long time, cooperation between unrelated animals was a puzzle: if natural selection rewards whoever reproduces most, why help another at your own expense? In 1981, Axelrod and the biologist William D. Hamilton showed in Science that reciprocal cooperation can emerge and persist among selfish players if encounters repeat often enough.

An elegant demonstration came from Manfred Milinski (1987) with sticklebacks, small fish that approach a predator in pairs to inspect it. Using mirrors, he simulated a partner that kept pace with the fish on every advance and another that hung back. With the “cooperator,” the fish got much closer; with the “defector,” they held back. Their behavior resembled tit for tat.

Chicken, stag hunt and other relatives: change the order of outcomes and you change the game

Not every conflict is a prisoner’s dilemma. Reordering the outcomes is enough to produce games with a different logic:

GameWorst outcome for youWhat makes it hard
Prisoner’s dilemmaCooperating while the other betraysBetraying always pays, no matter what
ChickenBoth of you standing firmNobody wants to give way, but neither giving way is the disaster
Stag huntCooperating while the other goes it aloneCooperating is best for both, if you trust the other
DeadlockCooperating while the other betraysBoth prefer to betray: there is no real dilemma
  • Chicken. Two drivers speed toward each other; the one who swerves is the “chicken,” and if neither does, they crash. Bertrand Russell used the image in 1959 for nuclear policy, and the Cuban Missile Crisis (October 1962) is often analyzed this way: the way out depended on finding a way to back down without losing face.
  • The stag hunt. It comes from Jean-Jacques Rousseau: two hunters can catch a stag together, if both work together, or each go after a hare, small but sure. Here cooperating is best for both; the obstacle is fear, not temptation. Many so-called prisoner’s dilemmas are really stag hunts, and that is good news, because trust can be built.
  • The dollar auction. Martin Shubik (1971) auctioned a one-dollar bill with one rule: the second-highest bidder also pays what they bid. When one offers 99 cents and the other 1 dollar, the first is better off bidding $1.01, and the escalation continues far above the value of the bill. It is the logic of price wars and of staying on hold because you have already waited twenty minutes.
  • The tragedy of the commons. With many players, the dilemma becomes the shared pasture of Garrett Hardin (1968), where each herder benefits from one more sheep until the pasture is exhausted. Elinor Ostrom (1990) documented communities that had managed pastures, forests and irrigation systems for centuries without depleting them, with their own rules, mutual monitoring and graduated sanctions. She was the first woman to receive the Nobel Prize in Economics, in 2009.

The dilemma shows up in everyday life, though not everywhere

Once you recognize the structure, you see it in many places:

  • At home: each roommate is better off if the other one cleans; if nobody cleans, everyone lives worse.
  • At work: sharing information benefits the team, but keeping it to yourself can give you an edge in the next review.
  • In sports: if one athlete dopes, they gain an edge; if everyone does, they are back to equal terms, but with risks to their health.
  • In markets: two companies would earn more by holding prices, but each is tempted to cut them.
  • In couples: giving in during an argument can feel like losing, and if neither gives in, the conflict festers.

On this last front, John Gottman’s research on bids for connection describes something very much like a repeated game: each small response to the other person feeds, or erodes, the future willingness to cooperate.

It is also wise not to see dilemmas everywhere. A situation stops being one when:

  • you genuinely care what happens to the other person, because their losses count as yours and the order of outcomes changes;
  • there is an enforceable agreement, such as a contract or a rule with consequences;
  • what is missing is not will but trust: then it is probably a stag hunt.

As Poundstone stresses, the game’s payoffs are utilities, not years in prison or dollars.

Seven factors make cooperation more likely, and none asks you to be a better person

Research does not offer a recipe, but it does identify what tips the balance. They all act on the situation, not on character:

  1. Repetition and a long horizon: the more likely you are to meet again, the more cooperating pays (Axelrod).
  2. Communication, especially face to face: one of the most robust effects in the literature (Sally, 1995; Balliet, 2010).
  3. Reputation and visibility: when actions are seen and remembered, betrayal carries a cost beyond the game.
  4. Different payoffs: contracts, guarantees or shared incentives turn betrayal into a bad option.
  5. A community framing: the same game produces twice as much cooperation when presented as something shared (Liberman, Samuels and Ross, 2004).
  6. Their own rules and graduated sanctions, as in Ostrom’s communities (1990).
  7. Reciprocity with room for error: responding to betrayal while leaving the door open (Nowak and Sigmund, 1992).

In negotiation, several of these ideas overlap with what the Harvard method calls BATNA, the best alternative if there is no agreement: knowing what happens if the other side betrays reduces the fear that pushes people to betray first.

Our reading: the dilemma is about situations, not people

The dilemma has often been used as proof that we are calculating egoists. The data say the opposite: from Alchian and Williams in 1950 to the German inmates in 2013, people cooperate far more than the model predicts. What the dilemma does show is that good will is not enough when the structure rewards betrayal.

The cognitive scientist Douglas Hofstadter proposed “superrationality” in Scientific American (1983): if both players are equally rational and know it, they will reach the same conclusion, and between “we both cooperate” and “we both betray” the choice is obvious. Many theorists reject it, with good arguments. But it captures something real: the reasoning behind betrayal treats the other as an obstacle, not as someone thinking the same thing you are.

The risk of learning the dilemma is turning it into a prophecy: whoever always expects betrayal tends to betray first and brings about what they feared. Poundstone closes his book suggesting that the paradox will never be resolved, or is already resolved, because it does not really exist. What exists is a real conflict between what suits each person and what suits everyone, and managing it is probably one of civilization’s oldest tasks.

What kind of player are you?

The prisoner’s dilemma game lets you play several rounds against a classic strategy and see what pattern forms in your own moves.

How someone faces a dilemma like this has a lot to do with their style in negotiating and handling conflict. The negotiation style quiz looks at whether you tend to create value or claim it, and the quiz on how you handle conflict places your way of responding. If what intrigues you is how hard it is to trust when you don’t know what the other will do, the quiz on how you approach risk rounds out the picture. The articles on the collaborating and competing conflict styles describe how each one behaves when cooperation and competition pull against each other.

Note: this article summarizes research in game theory, experimental economics and social psychology for general readers; it is not advice on financial, legal or negotiation decisions.

Sources

  • Poundstone, W. (1992). Prisoner’s Dilemma: John von Neumann, Game Theory, and the Puzzle of the Bomb. Doubleday.
  • Flood, M. M. (1952). Some Experimental Games. Research Memorandum RM-789-1. RAND Corporation.
  • Tucker, A. W. (1950). A Two-Person Dilemma. Talk notes, Stanford University, May 1950.
  • Von Neumann, J. and Morgenstern, O. (1944). Theory of Games and Economic Behavior. Princeton University Press.
  • Nash, J. F. (1950). Equilibrium points in n-person games. Proceedings of the National Academy of Sciences, 36(1), 48-49.
  • Scodel, A., Minas, J. S., Ratoosh, P. and Lipetz, M. (1959). Some descriptive aspects of two-person non-zero-sum games. Journal of Conflict Resolution, 3(2), 114-119.
  • Axelrod, R. (1980). Effective choice in the prisoner’s dilemma. Journal of Conflict Resolution, 24(1), 3-25.
  • Axelrod, R. and Hamilton, W. D. (1981). The evolution of cooperation. Science, 211(4489), 1390-1396.
  • Axelrod, R. (1984). The Evolution of Cooperation. Basic Books.
  • Ashworth, T. (1980). Trench Warfare 1914-1918: The Live and Let Live System. Macmillan.
  • Milinski, M. (1987). TIT FOR TAT in sticklebacks and the evolution of cooperation. Nature, 325, 433-435.
  • Nowak, M. A. and Sigmund, K. (1992). Tit for tat in heterogeneous populations. Nature, 355, 250-253.
  • Nowak, M. A. and Sigmund, K. (1993). A strategy of win-stay, lose-shift that outperforms tit-for-tat in the Prisoner’s Dilemma game. Nature, 364, 56-58.
  • Sally, D. (1995). Conversation and cooperation in social dilemmas: A meta-analysis of experiments from 1958 to 1992. Rationality and Society, 7(1), 58-92.
  • Balliet, D. (2010). Communication and cooperation in social dilemmas: A meta-analytic review. Journal of Conflict Resolution, 54(1), 39-57.
  • Liberman, V., Samuels, S. M. and Ross, L. (2004). The name of the game: Predictive power of reputations versus situational labels in determining prisoner’s dilemma game moves. Personality and Social Psychology Bulletin, 30(9), 1175-1185.
  • Van den Assem, M. J., van Dolder, D. and Thaler, R. H. (2012). Split or steal? Cooperative behavior when the stakes are large. Management Science, 58(1), 2-20.
  • Khadjavi, M. and Lange, A. (2013). Prisoners and their dilemma. Journal of Economic Behavior & Organization, 92, 163-175.
  • Rand, D. G., Greene, J. D. and Nowak, M. A. (2012). Spontaneous giving and calculated greed. Nature, 489, 427-430.
  • Bouwmeester, S. et al. (2017). Registered Replication Report: Rand, Greene, and Nowak (2012). Perspectives on Psychological Science, 12(3), 527-542.
  • Shubik, M. (1971). The Dollar Auction game: A paradox in noncooperative behavior and escalation. Journal of Conflict Resolution, 15(1), 109-111.
  • Hardin, G. (1968). The tragedy of the commons. Science, 162(3859), 1243-1248.
  • Ostrom, E. (1990). Governing the Commons: The Evolution of Institutions for Collective Action. Cambridge University Press.
  • Hofstadter, D. R. (1983). Metamagical Themas [column]. Scientific American, May and June 1983 issues.

Frequently asked questions

Which Nobel Prizes are related to the prisoner's dilemma?

None was awarded for the dilemma itself, but several honored closely related ideas. In 1994, John Nash, John Harsanyi and Reinhard Selten received the Nobel Prize in Economics for their analysis of equilibria in non-cooperative games. In 2005 it went to Robert Aumann, whose work on repeated games explains why cooperation can be sustained over the long run, and Thomas Schelling. And in 2009 to Elinor Ostrom, for her study of how communities manage common resources.

What is the folk theorem of repeated games?

It is a result in game theory stating that if a game like the prisoner's dilemma is repeated with no known end, and the players give enough weight to the future, mutual cooperation can be sustained as an equilibrium, alongside many other possible outcomes. It is called the 'folk' theorem because it circulated among specialists in the 1950s before anyone published it under their name. It explains why cooperation is possible, though it does not guarantee that it will happen.