In early 1950, two researchers at the RAND Corporation in Santa Monica, Merrill Flood and Melvin Dresher, persuaded a pair of colleagues to sit down and play a simple two-choice game one hundred times in a row. The payoffs were arranged so that each player always did better by choosing one particular option, and yet if both players chose it they both ended up worse off than if both had chosen the other. The two colleagues, to Flood and Dresher’s interest, cooperated far more often than the theory said they should.
That game is the prisoner’s dilemma. It is a two-player game in which each player independently chooses to cooperate or to defect; defecting gives you a better outcome than cooperating regardless of what your opponent does; and yet if you both defect you both finish worse off than if you had both cooperated. The name and the story about prisoners came slightly later, from the Princeton mathematician Albert Tucker, who wanted a vivid way to present Flood and Dresher’s structure to an audience of psychologists.
The whole content of the dilemma lies in two facts that sit awkwardly together. First, defection is the dominant strategy — it is better for you in every circumstance, so you do not even need to predict your opponent. Second, mutual defection is worse for both of you than mutual cooperation. Individually rational choices produce a collectively bad result, and no appeal to irrationality or stupidity is required to generate it. That is why the game has been studied continuously for more than seventy years in economics, biology, political science and computer science.
The setup and the payoff matrix
Tucker’s story runs as follows. Two people are arrested together and held in separate rooms with no way to communicate. The prosecutor has evidence enough for a minor conviction but not the serious charge, and offers each the same deal: testify against your partner and you walk free, provided the partner stays silent.
Four outcomes follow. Both stay silent and each serves a short sentence on the minor charge. One testifies while the other stays silent: the one who testified is released and the silent one receives the full sentence. Both testify and each receives a substantial sentence, reduced somewhat for cooperating with the prosecution. Writing silence as cooperation — with each other, not with the prosecutor — and testifying as defection, the sentences in years are:
| B cooperates (stays silent) | B defects (testifies) | |
|---|---|---|
| A cooperates (stays silent) | A: 1 year, B: 1 year | A: 10 years, B: 0 years |
| A defects (testifies) | A: 0 years, B: 10 years | A: 5 years, B: 5 years |
Years in prison are a cost, so smaller is better, which makes the inequalities easier to read if we convert to payoff points where larger is better. Taking the conventional labels — for the temptation to defect against a cooperator, for the reward of mutual cooperation, for the punishment of mutual defection, and for the sucker payoff of cooperating against a defector — the usual numerical version is:
| B cooperates | B defects | |
|---|---|---|
| A cooperates | ||
| A defects |
A game of this shape is a prisoner’s dilemma precisely when the four payoffs satisfy
Each inequality is doing specific work. The chain says defecting against a cooperator beats cooperating with one, so there is a temptation. says mutual cooperation beats mutual defection, so the dilemma has teeth. says that if your opponent defects you would rather defect too than be exploited. Together and make defection better in both columns, which is what makes it dominant.
The second condition, , matters only for the repeated game. It says that the total payoff from two rounds of mutual cooperation exceeds the total from one player exploiting the other and then the roles reversing. Without it, players could do better by taking turns being the sucker — alternating exploitation would be more profitable than steady cooperation, and the repeated game would stop being about cooperation at all. With , , , we have , so the condition holds.
Why defection is the dominant strategy
Put yourself in A’s position and reason through the two cases exhaustively. You cannot influence B’s choice and you cannot observe it, but you can consider both possibilities.
Suppose B cooperates. Then cooperating gets you and defecting gets you . Defecting is better.
Suppose B defects. Then cooperating gets you and defecting gets you . Defecting is better.
Defection is better in both cases, strictly, so it strictly dominates cooperation. The remarkable feature of this argument is that it never required a guess about B’s behaviour. Uncertainty about the opponent, which is usually the hard part of strategic reasoning, simply drops out. A does not have to model B’s psychology, estimate probabilities, or worry about B’s beliefs about A. The game is symmetric, so B runs the identical argument, and both defect.
The outcome is that both receive , or five years in prison each, when both could have received and served one year each. The players have reasoned impeccably into the second-worst cell of the matrix.
Promises made in advance do not escape this, because a promise is not binding and defecting is still better once the moment arrives. Caring about the other player does escape it, but only by changing the payoffs: if A assigns real weight to B’s years in prison, A’s matrix is no longer that of a prisoner’s dilemma. The dilemma is a statement about a payoff structure, not a claim about human nature.
Nash equilibrium, and why it is not the same as best
A Nash equilibrium is a choice of strategy for every player such that no single player can increase their own payoff by changing their strategy while all the others keep theirs unchanged. It is a stability condition, and deliberately a weak one: it asks only that nobody has a unilateral reason to move. John Nash proved in his 1950 note in the Proceedings of the National Academy of Sciences, and developed in his 1951 Annals of Mathematics paper on non-cooperative games, that every finite game has at least one such equilibrium once mixed strategies are allowed.
In the prisoner’s dilemma the equilibrium is easy to locate. Check each cell:
| Cell | Can A gain by switching alone? | Can B gain by switching alone? | Equilibrium? |
|---|---|---|---|
| Both cooperate | Yes, | Yes, | No |
| A cooperates, B defects | Yes, | No | No |
| A defects, B cooperates | No | Yes, | No |
| Both defect | No, | No, | Yes |
Mutual defection is the unique Nash equilibrium. Now compare this with Pareto optimality, which asks a different question: is there another outcome that makes somebody better off without making anybody worse off? Mutual cooperation gives both players 3 against 1, so mutual defection is emphatically not Pareto optimal. It is Pareto dominated by the cooperative outcome.
These two facts — the unique equilibrium is mutual defection, and the unique equilibrium is Pareto dominated — are the entire content of the dilemma. Everything else written about the game is an exploration of how to escape that pair of facts or an argument about where it applies. The general lesson, that equilibrium and efficiency are separate properties that can come apart, is the single most transferable idea in game theory and strategic decisions.
The iterated game changes everything
Suppose the two players expect to meet again. Now defecting today has a cost: it may provoke retaliation tomorrow. Whether cooperation can survive depends sharply on how the sequence of future meetings is structured, and the difference between an indefinite and a known-finite horizon is stark.
Take the indefinite case first. Model it with a discount factor , interpreted either as impatience or as the probability that another round occurs. A stream of payoffs in every round is worth
Now suppose both players use tit for tat: cooperate first, then copy the opponent’s previous move. If A cooperates forever against a tit-for-tat opponent, A receives every round, worth . If instead A defects once, A collects immediately, after which the opponent retaliates; the simplest comparison assumes the relationship then collapses into mutual defection forever, worth . Cooperation is sustainable when
Multiplying through by gives , so , and since the inequality reverses on division:
With our numbers this is . If the players are patient enough, or the relationship is likely enough to continue, mutual cooperation is a Nash equilibrium of the repeated game. This is one instance of the folk theorem, which states informally that in an infinitely repeated game with sufficiently patient players, essentially any outcome that gives every player at least their one-shot equilibrium payoff can be sustained as an equilibrium. Cooperation does not become compulsory — mutual defection remains an equilibrium too — but it becomes possible.
Now the asymmetry. Suppose instead that both players know the game will last exactly 100 rounds. Consider the final round. There is no future, so nothing can be deterred, and defection dominates exactly as in the one-shot game. Both players know round 100 will be mutual defection whatever happens earlier. So in round 99 there is nothing to gain by cooperating either, since round 100 is already determined; defection dominates again. Backward induction runs all the way to round 1, and cooperation unravels completely. The entire sequence is mutual defection.
That conclusion is logically watertight and empirically false: in experiments with a known finite number of rounds, people cooperate for most of the game and defect only near the end. It is one of the sharpest known gaps between a rigorous game-theoretic prediction and observed behaviour, and the usual explanations involve uncertainty about the opponent’s rationality, which a slight modification of the model can accommodate.
Axelrod’s tournaments
In 1980 the political scientist Robert Axelrod ran a computer tournament for the iterated prisoner’s dilemma. He invited game theorists, economists, psychologists and computer scientists to submit strategies as programs, which then played each other repeatedly in a round robin. The first tournament had 14 submitted entries plus a random strategy. Axelrod published the results, solicited more entries, and ran a second and much larger tournament with 62 submissions from six countries, again plus random.
Tit for tat won both. It was among the shortest programs submitted — cooperate on the first move, then copy the opponent — and it beat far more elaborate entries that attempted to model opponents and exploit the weak ones. Axelrod’s book The Evolution of Cooperation, published in 1984, drew out four properties shared by the strategies that did well:
| Property | Meaning | Why it pays |
|---|---|---|
| Nice | Never the first to defect | Preserves the high-payoff mutual cooperation against other nice strategies |
| Retaliatory | Punishes defection immediately | Cannot be farmed by exploitative strategies |
| Forgiving | Returns to cooperation once the opponent does | Prevents a single defection from becoming a permanent feud |
| Clear | Simple enough to be recognised | Lets opponents learn that cooperation is reciprocated |
The combination is the interesting part. Nice alone is exploitable; retaliatory alone starts wars it cannot end. Note also that tit for tat never beat any individual opponent — by construction it cannot outscore an opponent head to head — yet it accumulated the highest total across all matches, because it avoided mutually destructive exchanges.
Later work complicated this picture. Tit for tat performs badly with noise: if a cooperative move is misperceived as a defection, two tit-for-tat players fall into alternating recriminations, and more forgiving variants do better. And in 2012 William Press and Freeman Dyson published a paper in the Proceedings of the National Academy of Sciences showing that the game admits a family of zero-determinant strategies, with which a player can unilaterally enforce a fixed linear relationship between the two players’ scores. Among these are extortionate strategies that compel an adapting opponent to accept an unequal split in the extortionist’s favour. The strategic landscape is considerably richer than two tournaments in 1980 had revealed.
Where the structure genuinely appears
The dilemma is worth applying with discipline. Here are cases where the payoff ordering really does hold.
Arms races. Two rival states each prefer to be armed while the other disarms, both prefer mutual disarmament to mutual armament because weapons are expensive, and each fears being the only disarmed party. That is . The difficulty of arms control treaties, and the central role of verification in them, follows directly: verification is an attempt to change the payoffs so that defection is detected and punished.
Cartels and antitrust leniency. Firms in a price-fixing agreement each prefer to undercut the others while the others hold prices high. Competition authorities exploit this deliberately. Leniency programmes offer full or near-full immunity to the first cartel member to come forward with evidence, and reduced treatment to later ones. This converts a cartel’s internal problem into an explicit prisoner’s dilemma with the authority setting the payoffs, and it has been the most productive source of cartel detection in several jurisdictions. The design is not an analogy to the dilemma; it is an application of it.
Doping in sport. Each competitor prefers to dope while rivals stay clean, all prefer a clean field to a doped one because of the health costs and expense, and nobody wants to be the only clean athlete. Anti-doping regimes again work by altering payoffs through detection probability and sanction severity.
Shared resources. Fisheries, aquifers and the atmosphere give an -player version in which each user’s incremental extraction is individually profitable and collectively ruinous. This is the tragedy of the commons, and the many-player case is harder than the two-player one because retaliation cannot be targeted: punishing a single over-extractor requires identifying them, which a shared resource rarely permits. Elinor Ostrom’s work on common-pool resources documented the monitoring arrangements and locally adapted rules by which real communities have escaped this outcome, a reminder that the model describes a problem rather than a fate.
What should be resisted is the habit of labelling every conflict a prisoner’s dilemma. If the parties can make binding agreements, it is not one. If being the only cooperator is better than mutual defection, the ordering fails and the strategic conclusion changes.
What the dilemma does not show
It does not show that cooperation is irrational. It shows that cooperation is not sustainable under one specific payoff structure with one interaction and no enforcement. Change any of those three conditions and the conclusion can change: repetition can support cooperation, enforceable contracts can, and so can payoffs that reflect concern for the other party.
Nor does it show that people behave as the model predicts. In laboratory one-shot prisoner’s dilemmas with anonymous partners, cooperation rates are typically around a third to a half rather than near zero. This is a finding about human behaviour rather than a refutation of the mathematics: the analysis says what the payoffs imply for a payoff-maximising player, while the experiments reveal that participants bring reciprocity norms and fairness concerns that amount to playing a different game from the one written on the instruction sheet.
Finally, the model is not a moral argument. It describes a situation in which self-interested reasoning produces a poor collective outcome. Whether to read that as an argument for institutions, for regulation or for trust is a question the matrix does not answer.
Not every conflict has the same shape
Two closely related games differ only in the ordering of the payoffs, and the different ordering changes the strategic conclusion entirely.
| Game | Payoff ordering | Equilibria | Strategic problem |
|---|---|---|---|
| Prisoner’s dilemma | One: mutual defection | Defection dominates; cooperation needs enforcement or repetition | |
| Stag hunt | Two: both cooperate, both defect | Neither action dominates; the problem is coordinating on the good equilibrium and trusting the other to join | |
| Chicken | Two asymmetric ones | Mutual defection is the worst outcome for both; the problem is who yields |
In the stag hunt, cooperating is best if the other cooperates, so there is nothing to tempt you away from a partner you trust. The obstacle is assurance rather than temptation, and a credible signal of intent can be enough. In chicken, mutual defection is catastrophic rather than merely bad, which inverts the logic of commitment: a player who can visibly make defection irreversible wins, whereas in the prisoner’s dilemma a player benefits from committing credibly to cooperate.
Recognising which structure you are in is the practical skill, and getting it wrong leads to the wrong intervention — building verification machinery for a game that only needed a conversation, or offering reassurance in a game that needed a penalty. Games of this strategic form sit alongside the sequential, perfect-information games of combinatorial game theory and the aggregation problems of the mathematics of voting as distinct branches of one discipline. The repeated dilemma also connects to Markov chains, since memory-one strategies define a Markov process on the four outcome states; to cellular automata, where versions played on a lattice sustain patches of cooperation that the well-mixed model cannot; and to decision rules under repetition such as the Kelly criterion, where long-run growth matters more than any single round.
Related topics: Game Theory and Strategic Decisions, Combinatorial Game Theory, The Mathematics of Voting, Markov Chains: Probability with Memory, Cellular Automata, The Kelly Criterion, Linear Programming, The Mathematics of Epidemics
Frequently asked
What is the prisoners dilemma?
It is a two-player game in which each player can cooperate or defect, defecting yields a better outcome than cooperating no matter what the other player does, and yet mutual cooperation would leave both better off than mutual defection. The gap between individually rational choices and the jointly best outcome is the dilemma.
Why is defecting the rational choice?
Because defection strictly dominates cooperation. If the other player cooperates, defecting gets you the temptation payoff instead of the reward. If the other player defects, defecting gets you the punishment payoff instead of the sucker payoff. Since defection is better in both cases, you never need to know what the other player will do.
What is a Nash equilibrium?
A profile of strategies, one for each player, such that no player can improve their own payoff by changing strategy alone while everyone else keeps theirs fixed. In the prisoner's dilemma, mutual defection is the only such profile, even though both players would prefer mutual cooperation.
What is tit for tat?
A strategy for the repeated game that cooperates on the first round and then copies whatever the opponent did on the previous round. Anatol Rapoport submitted it to Robert Axelrod's computer tournaments in 1980 and it won both of them, despite being one of the shortest programs entered.
Does the prisoners dilemma happen in real life?
Situations with the same payoff structure are genuine and well documented: arms races, cartels undermined by antitrust leniency programmes, doping in sport, and shared fisheries as a many-player version. But not every conflict is a prisoner's dilemma, and real people cooperate considerably more than the one-shot model predicts.