Intermediate

Prisoner's Dilemma Calculator — Game Theory Payoffs

The prisoner's dilemma is the canonical model of strategic conflict between individual rationality and collective welfare. Enter the four payoffs (T, R, P, S) to see whether a classic dilemma structure holds, identify the Nash equilibrium, and measure the social cost of mutual defection.
Payoff when you defect and the other player cooperates
Payoff when both players cooperate
Payoff when both players defect (Nash equilibrium in classic PD)
Payoff when you cooperate and the other player defects
Nash equilibrium payoff per player
1

Defect (dominant strategy for both players)

Classic PD structure?
Yes — T>R>P>S
Pareto-optimal payoff (C,C)
3
Social cost of defection (total)
4
Cooperation efficiency
60%
Temptation T — defect while other cooperates5
Reward R — both cooperate3
Punishment P — both defect (Nash)1
Sucker S — cooperate while other defects0
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

In a prisoner's dilemma (T>R>P>S), defecting is each player's dominant strategy, producing a Nash equilibrium of (D,D) with payoff P each — even though both would earn R>P from mutual cooperation. The social cost of defection is 2(R−P). Cooperation can emerge through repetition, reputation, or binding agreements.

Formula
Classic PD condition: T > R > P > S • Nash equilibrium: (Defect, Defect) → payoff P each • Social cost = 2(R − P)
How this is calculated

The prisoner's dilemma has two players, each of whom can either cooperate (C) or defect (D). The payoffs are: T (Temptation — you defect, other cooperates), R (Reward — both cooperate), P (Punishment — both defect), and S (Sucker — you cooperate, other defects). The classic dilemma structure requires T > R > P > S.

Under this ordering, defecting is a dominant strategy for each player regardless of what the other does: if the other cooperates, defecting yields T > R; if the other defects, defecting yields P > S. Because both reason the same way, the unique Nash equilibrium is (Defect, Defect) with each receiving P. Yet both would prefer (Cooperate, Cooperate) with payoff R > P — the Pareto-superior outcome — making this a genuine dilemma.

The social cost of defection is 2(R − P): the total welfare lost by the two players compared to mutual cooperation. Cooperation efficiency R/T measures how large the mutual cooperation reward is relative to the maximum individual gain from defecting. Real-world analogues include arms races, overfishing, climate agreements, and pricing wars — anywhere individual incentives conflict with collective benefit. Repeated games, reputation, and binding agreements are the main mechanisms that sustain cooperation.

Frequently asked questions

The four payoffs must satisfy T > R > P > S. This ensures defecting always pays more regardless of the other player's choice (a dominant strategy), yet the dominant-strategy equilibrium (P, P) is strictly worse for both players than mutual cooperation (R, R). Without this ordering — for instance if R ≥ T — cooperation may be individually rational and no dilemma exists.

Yes. In the infinitely repeated game, cooperation can be sustained as a Nash equilibrium if players are patient enough (the discount factor δ ≥ (T−R)/(T−P)). The 'tit-for-tat' strategy — start cooperative, then mirror the other player's last move — proved highly successful in Axelrod's tournaments. Reputations, communication, and binding contracts achieve similar effects in finite settings.

The Nash equilibrium is the strategy profile where no player can improve their payoff by unilaterally switching — in the classic PD this is (Defect, Defect) with payoff P each. The Pareto-optimal outcome is (Cooperate, Cooperate) with payoff R each; no player can be made better off without making the other worse off. The gap R − P per player measures the tragedy of individually rational behaviour.

Also known as

prisoners dilemma payoff
game theory nash equilibrium
cooperation vs defection payoff
dominant strategy calculator
social dilemma game theory
pareto optimal game theory
prisoner dilemma matrix

APA

TG we-Calculate Editorial Team. (2026). Prisoner's Dilemma Calculator — Game Theory Payoffs [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/prisoners-dilemma-calculator

Chicago

TG we-Calculate Editorial Team. "Prisoner's Dilemma Calculator — Game Theory Payoffs." TG we-Calculate. 2026. https://we-calculate.com/calculator/prisoners-dilemma-calculator.

IEEE

TG we-Calculate Editorial Team, "Prisoner's Dilemma Calculator — Game Theory Payoffs," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/prisoners-dilemma-calculator

BibTeX

@misc{wecalculate_prisoners_dilemma_calculator, title = {Prisoner's Dilemma Calculator — Game Theory Payoffs}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/prisoners-dilemma-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?