Tabellab
Business & operations

How to find a Nash equilibrium in a payoff matrix

A cell of a payoff matrix is a Nash equilibrium when each player's strategy is a best response to the other's, so neither can gain by changing only its own choice. To find it, mark the row player's best payoff in every column, the column player's best payoff in every row, and look for cells marked twice. In the pricing game below, two coffee chains each pick a Low, Mid or High price. The only pure Nash equilibrium is Low, Low with $28k each per week, although both charging High would earn them $50k each.

Updated 21 Oct 2026 5 min read By Tabellab team

Reading a payoff matrix

Rows are one player's strategies, columns the other's, and every cell holds what each player earns when that pair meets. Textbooks write both payoffs in one cell, such as (28, 28). In a spreadsheet it is easier to keep two tables with the same layout, one per player, so each can be checked with ordinary formulas. Here Crema chooses the row and Bean the column, and the profits are in $ thousands per week.

Step 1: best responses

A best response is the strategy with the highest payoff given what the other player does.

  • For the row player (Crema), the rival's choice is the column, so its best response is the maximum of each column of Crema's table: =IF(B2=MAX(B$2:B$4),1,0). The mixed reference B$2:B$4 keeps the rows fixed and lets the column change as you copy right.
  • For the column player (Bean), the rival's choice is the row, so its best response is the maximum of each row of Bean's table: =IF(B6=MAX($B6:$D6),1,0).

In the example, Crema's best reply to Bean Low is Low (28), to Bean Mid also Low (46) and to Bean High it is Mid (58). Bean's best replies mirror these, because the game is symmetric.

Step 2: cells where both best responses meet

Multiply the two flag tables cell by cell: =B10*B14. A 1 marks a cell where both players are already playing a best response, which is exactly a pure Nash equilibrium. =SUM(B18:D20) counts them. Here there is one, Crema Low and Bean Low. You can also write it in one step with =IF(AND(B2=MAX(B$2:B$4),B6=MAX($B6:$D6)),1,0), see nested IF vs IFS for more on combining conditions. A formula rule in conditional formatting can colour the equilibrium cells like the circles in a textbook.

Worked example: a 3×3 pricing game between two coffee chains

Rows 2 to 8 are the two payoff tables (yellow). Rows 10 to 16 flag each player's best responses, rows 18 to 20 the cells where both meet, and rows 21 to 24 count the equilibria and read their payoffs.

Worked example: a 3×3 pricing game between two coffee chains
ABCD
1Crema's profit ($k)Bean LowBean MidBean High
2Crema Low284654
3Crema Mid224058
4Crema High123050
5Bean's profit ($k)Bean LowBean MidBean High
6Crema Low282212
7Crema Mid464030
8Crema High545850
9Crema's best response? (1 = yes)Bean LowBean MidBean High
10Crema Low110
11Crema Mid001
12Crema High000
13Bean's best response? (1 = yes)Bean LowBean MidBean High
14Crema Low100
15Crema Mid100
16Crema High010
17Nash equilibrium? (1 = yes)Bean LowBean MidBean High
18Crema Low100
19Crema Mid000
20Crema High000
21Number of pure Nash equilibria1
22Crema's payoff in equilibrium ($k)28
23Bean's payoff in equilibrium ($k)28
24Highest joint profit in the matrix ($k)100
Key formulas
  • B10=IF(B2=MAX(B$2:B$4),1,0)Crema's best response: maximum of the column
  • B14=IF(B6=MAX($B6:$D6),1,0)Bean's best response: maximum of the row
  • B18=B10*B14Nash equilibrium: both flags are 1
  • D21=SUM(B18:D20)Number of pure equilibria
  • D24=MAX(B2:D4+B6:D8)Highest joint profit anywhere

Crema and Bean are fictional and every payoff is illustrative. The payoff readings in rows 22 and 23 assume a single equilibrium. Educational only, not business or investment advice.

Why the equilibrium is not the best outcome

Both chains would earn $50k at High, High, the highest joint profit in the matrix ($100k). But it is not stable: if Bean charges High, Crema earns more by switching to Mid (58 instead of 50), and so does Bean. The undercutting continues until both sit at Low and earn $28k. This is the logic of the prisoner's dilemma: individually rational choices lead to an outcome both would like to avoid. A Nash equilibrium is a prediction of stable behaviour, not a recommendation of what is best for the players together. In repeated games, the threat of future price wars can sustain higher prices, which is why the discount factor matters.

Dominated strategies: a shortcut that agrees

A strategy is strictly dominated when another one pays more against every choice of the rival. Mid dominates High for both chains (22 > 12, 40 > 30, 58 > 50 for Crema). Once High is removed, Low beats Mid in both remaining columns (28 > 22, 46 > 40), so iterated elimination of dominated strategies also lands on Low, Low. Elimination does not always shrink a game to one cell, but the best-response method always finds every pure equilibrium.

No pure equilibrium, or several

Some games have no cell marked twice, like matching pennies or the timing of promotions where each player wants to surprise the other. Then the equilibrium is in mixed strategies: each player randomises with probabilities that make the other indifferent between its options. Every finite game has at least one Nash equilibrium once mixed strategies are allowed. Other games, such as choosing locations or technical standards, have several pure equilibria, and which one is reached depends on who moves first, history or convention.

Common mistakes

  • Looking at the wrong direction. The row player's best responses are column maxima, the column player's are row maxima. Swapping them finds the wrong cells.
  • Comparing payoffs across players. Each player compares only its own payoffs. Crema's 58 and Bean's 30 in the same cell are never compared with each other.
  • Confusing equilibrium with the best joint outcome. High, High pays most in total but is not an equilibrium because each player gains by deviating.
  • Stopping at the first equilibrium. Check every cell: a game can have several pure equilibria, or none.
  • Wrong anchors in the MAX range. Use B$2:B$4 for column maxima and $B6:$D6 for row maxima, or the flags shift when copied.
  • Ignoring ties. If two strategies give the same maximum, both are best responses, and both cells can be part of an equilibrium.

Frequently asked questions

How do you find a Nash equilibrium in a payoff matrix?

Mark the row player's highest payoff in each column and the column player's highest payoff in each row. Every cell where both payoffs are marked is a pure-strategy Nash equilibrium.

Can a game have more than one Nash equilibrium?

Yes. Coordination games, such as two firms choosing different locations, often have several pure equilibria. Other games have none in pure strategies, but every finite game has at least one equilibrium in mixed strategies.

Is a Nash equilibrium always the best outcome?

No. In the prisoner's dilemma the equilibrium gives both players less than they would earn by cooperating. A Nash equilibrium only means no player can gain by changing its own strategy alone.

What is the difference between a dominant strategy and a Nash equilibrium?

A dominant strategy is best against everything the rival might do. A Nash equilibrium only requires each strategy to be best against the rival's actual choice. If both players have a dominant strategy, playing them is a Nash equilibrium.

Practise it in a lab

Related guides

Reading is step one. Doing is step two.

Every guide links to a lab where you build the same calculation in an online spreadsheet and get instant feedback.

Open the lab