How to Find Nash Equilibria in a Payoff Matrix (Pure and Mixed)
A clear method for solving two-player games: dominant strategies, the underline method for pure Nash equilibria and the indifference method for mixed ones.
&c=%237c3aed&k=science)
How to Find Nash Equilibria in a Payoff Matrix (Pure and Mixed)
Game theory looks at situations where the outcome for each person depends on what others choose. A price war between two shops, a penalty kick and a negotiation all fit. In economics and politics courses these situations are usually written as a payoff matrix and solved for a Nash equilibrium. This guide shows the standard methods by hand and how to check them with the free game theory payoff matrix solver.
Reading a payoff matrix
Player 1 chooses a row and player 2 chooses a column, at the same time. Each cell holds two numbers: player 1's payoff first, then player 2's. In the solver, player 1's payoffs are blue and player 2's red, and you can rename strategies and players to match your question.
Method 1: look for dominant strategies
A strategy strictly dominates another if it pays more whatever the other player does. A sensible player never uses a dominated strategy, so you can cross it out. After one removal, look again: another strategy may now be dominated. This is called iterated elimination of strictly dominated strategies.
Prisoner's dilemma. Two suspects can stay silent (cooperate) or confess (defect). Payoffs in years of prison, written as negatives:
- both silent: (−1, −1)
- one confesses: the confessor goes free (0), the other gets −3
- both confess: (−2, −2)
Whatever the other does, confessing is better by one year. Both confess and get −2 each, even though both silent would give −1 each. That gap between individual and collective interest is the dilemma. The solver lists the dominance and shows the elimination steps.
Method 2: underline best responses for pure equilibria
A Nash equilibrium is a pair of choices from which neither player wants to switch alone.
- For each column, underline player 1's highest payoff in that column.
- For each row, underline player 2's highest payoff in that row.
- Any cell where both payoffs are underlined is a pure-strategy Nash equilibrium.
The solver underlines and shades these cells automatically. A game can have one equilibrium, several or none. The stag hunt has two: both hunt stag (4, 4) or both hunt hare (3, 3).
Method 3: the indifference method for mixed equilibria
Some games, such as matching pennies, have no cell with both payoffs underlined. Nash's theorem guarantees an equilibrium exists anyway, with players choosing randomly. In a mixed equilibrium each player chooses probabilities that make the other player indifferent between their options.
Battle of the sexes. A couple want to go out together but prefer different events. Payoffs: both at the opera (2, 1), both at football (1, 2), apart (0, 0).
Let q be the probability player 2 chooses opera. Player 1 must be indifferent:
- payoff from opera: 2q
- payoff from football: 1 − q
- set equal: 2q = 1 − q, so q = 1/3.
Let p be the probability player 1 chooses opera. Player 2 must be indifferent:
- payoff from opera: p
- payoff from football: 2(1 − p)
- set equal: p = 2 − 2p, so p = 2/3.
So player 1 picks opera two-thirds of the time and player 2 one-third of the time. Each expects 2/3, worse than either pure equilibrium, because they often miss each other.
A common error is to make a player indifferent between their own strategies using their own payoffs. Remember: your probabilities are chosen to make the opponent indifferent.
The best-response diagram
For 2×2 games, plot p (player 1's probability of the first row) against q. Each player's best response is a step-shaped line. Where the lines cross, both are best-responding, so every crossing is a Nash equilibrium. The solver draws this diagram; for battle of the sexes it shows three crossings, two at corners (pure) and one inside (mixed).
Larger games
For 3×3 games and above, the solver uses support enumeration: it tries every set of strategies a player might mix over, solves the indifference equations and keeps solutions with valid probabilities where no unused strategy would do better. Rock-paper-scissors gives the expected answer of one-third each.
Practice
The practice tab generates random 2×2 games and asks either for the pure equilibrium cell or for the mixed probability. Try the underline and indifference methods on paper first, then check.
Limits
The solver covers simultaneous two-player games with known payoffs. It does not handle sequential games, repeated games or incomplete information, and it is a learning tool rather than advice for real negotiations or business decisions.


