All guides

The Prisoner's Dilemma Explained, With Examples

By Buğra Günay, maker of MindType

What the Prisoner's Dilemma is, the payoff matrix, why defecting is the dominant strategy, how repeated games and tit-for-tat change the outcome, and real-life examples. Play it on iPhone with MindType.

The Prisoner's Dilemma is the most famous game in game theory. Two players each choose to cooperate or defect without knowing the other's choice. It shows why two rational people may not cooperate even when cooperating would leave both better off.

The classic story

Two suspects are questioned separately. If both stay silent (cooperate), each gets a short sentence. If one betrays the other (defects) while the other stays silent, the betrayer goes free and the silent one gets a long sentence. If both betray, both get a medium sentence.

The payoff matrix

A common version in points, where higher is better:

Why defecting is the dominant strategy

Whatever the other player does, you score more by defecting: 5 instead of 3 if they cooperate, 1 instead of 0 if they defect. If both reason this way, both defect and get 1, although mutual cooperation would have given each 3. That gap between individual and group interest is the dilemma. Mutual defection is the game's Nash equilibrium.

Repeated games change everything

When the same players meet many times, cooperation can pay. In Robert Axelrod's computer tournaments in the early 1980s, a simple strategy called tit-for-tat, cooperate first and then copy the other player's last move, performed very well. It is nice, retaliates, forgives and is easy to read.

Real-life examples

What your choices say about you

How quickly you cooperate, how you respond after being betrayed and whether you forgive are a mirror of how you handle trust under uncertainty.

You can play this scenario, and other classic game theory games such as Trust and Ultimatum, in MindType for iPhone. Each game takes about three minutes and shows how your choices compare. MindType is for self-discovery and education, not a psychological assessment.

MindType analyzes your choices after each game.
MindType analyzes your choices after each game.

Frequently asked questions

What is the Prisoner's Dilemma in simple terms?

A game where two players each gain by betraying the other, but both end up worse off if both betray than if both cooperate.

What is the Nash equilibrium of the Prisoner's Dilemma?

Both players defect. Neither can do better by changing only their own choice, even though mutual cooperation pays more.

What is the best strategy in the repeated Prisoner's Dilemma?

There is no single best strategy, but tit-for-tat, cooperating first and then copying the other player's last move, did very well in Axelrod's tournaments.

Can I play the Prisoner's Dilemma online?

Yes. MindType for iPhone includes it alongside other game theory games.