John Nash closed his 1951 paper Non-Cooperative Games with a fully worked example: a simplified three-person poker game. The solution he computed does not tell each player what to do. It tells each player a probability. That is characteristic of the solutions in this class of games, and it raises the practical question this article answers, namely how to find a mixed strategy Nash equilibrium in a game you have in front of you.
The method is the indifference principle. If a player assigns positive probability to two or more actions in equilibrium, then every action in that support must yield her exactly the same expected payoff. So you treat the opponent’s mixing probabilities as unknowns, write down your expected payoff from each of your own actions as a function of those unknowns, set the expressions equal to one another, and solve. Then swap roles and repeat. In a two-by-two game that is one linear equation per player, and the whole computation takes a few lines.
Why must the payoffs be equal? Suppose they were not — suppose action gave you strictly more in expectation than action , and you were playing both with positive probability. Then move all the weight you had on onto . Your expected payoff is a weighted average of the payoffs to the actions in your support, so shifting weight from a strictly worse term to a strictly better one strictly raises the average. You have improved unilaterally, which contradicts the definition of an equilibrium. Hence in equilibrium, all actions you actually use must be tied, and every action you do not use must be no better than that tie. Those two conditions, taken together, are the equilibrium, and the second half of them is the part beginners forget.
The indifference principle, stated precisely
Fix a finite game. Player has action set , a mixed strategy is a probability vector over , and is ‘s expected payoff under the profile . Write for everyone else’s strategies and for ‘s expected payoff when she plays the pure action against them. The support of is .
Because is linear in ,
a weighted average of the pure-action payoffs. The maximum of a linear function over a simplex is attained at a vertex, so is a best response if and only if it puts all its weight on maximisers. That gives the characterisation we use throughout:
\begin{cases} u_i(a, \sigma_{-i}) = u_i(\sigma) & \text{for all } a \in \mathrm{supp}(\sigma_i), \\ u_i(a, \sigma_{-i}) \le u_i(\sigma) & \text{for all } a \notin \mathrm{supp}(\sigma_i). \end{cases}$$ The equalities are the indifference conditions and the inequalities are the omitted-action checks. Note the direction of dependence: your equilibrium probabilities are pinned down by the condition that your *opponent* be indifferent, not by anything about your own payoffs. This cross-over is the single most counterintuitive feature of the computation and the source of most errors. ## A worked two-by-two: the inspection game A tax authority can audit a return at a cost, and a taxpayer can under-report. Put the numbers in units of a thousand, with the taxpayer's payoff first and the authority's second. Honest filing costs the taxpayer 10 in tax. Under-reporting costs nothing if it is not caught, and costs 25 if it is — the 10 in tax plus a 15 penalty. The authority collects the 10 in tax from an honest filer, collects 25 from a caught evader, nothing from an undetected one, and spends 5 on any audit it conducts. | | Authority: audit | Authority: skip | | --- | --- | --- | | **Taxpayer: comply** | -10, 5 | -10, 10 | | **Taxpayer: evade** | -25, 20 | 0, 0 | First establish that there is no pure equilibrium, by checking each of the four cells. Against an audit the taxpayer prefers to comply, since $-10 > -25$. Against a skipped audit the taxpayer prefers to evade, since $0 > -10$. Against a complier the authority prefers to skip, since $10 > 5$. Against an evader the authority prefers to audit, since $20 > 0$. Each player's best reply flips with the other's action, so no cell is stable: in every one of the four, somebody wants out. Mixing is forced. **The authority's equilibrium probability.** Let the authority audit with probability $q$. The taxpayer's expected payoffs are $$u_T(\text{comply}) = -10q - 10(1-q) = -10, \qquad u_T(\text{evade}) = -25q + 0\cdot(1-q) = -25q.$$ Complying costs 10 whether or not there is an audit, so that branch is flat. Setting the two equal: $$-10 = -25q \quad \Longrightarrow \quad q^* = \tfrac{2}{5} = 0.4 .$$ The interpretation is immediate. If the audit probability exceeds $0.4$, evasion has expected cost above 10 and honesty is strictly better; below $0.4$, evasion is strictly better. At exactly $0.4$ the taxpayer does not care, which is the only circumstance under which she is willing to do anything other than one or the other. **The taxpayer's equilibrium probability.** Let the taxpayer evade with probability $p$ and comply with probability $1-p$. The authority's expected payoffs are $$u_A(\text{audit}) = 20p + 5(1-p) = 5 + 15p, \qquad u_A(\text{skip}) = 0\cdot p + 10(1-p) = 10 - 10p .$$ Setting them equal gives $5 + 15p = 10 - 10p$, hence $25p = 5$ and $$p^* = \tfrac{1}{5} = 0.2 .$$ So the equilibrium is: the taxpayer evades one time in five, the authority audits two times in five. Note once more which payoffs produced which number. The taxpayer's evasion rate of $0.2$ came out of the *authority's* audit cost and penalty revenue; the authority's audit rate of $0.4$ came out of the *taxpayer's* fine. Raise the penalty and you change the audit rate, not the evasion rate — an inversion with real policy consequences, and one that no amount of intuition about incentives will deliver. ## Checking the answer The indifference conditions are necessary, not by themselves sufficient, so the solution must be verified. At $(p^*, q^*) = (0.2, 0.4)$ the equilibrium payoffs are $$u_T^* = -10, \qquad u_A^* = 5 + 15(0.2) = 8 ,$$ and the cross-check on the authority's side gives $10 - 10(0.2) = 8$ as well, as it must. Now test for profitable deviations. Suppose the authority holds $q = 0.4$ and the taxpayer tries any evasion rate $p$. Her expected payoff is $$p\big(-25 \cdot 0.4\big) + (1-p)(-10) = -10p - 10(1-p) = -10$$ for every $p$ in $[0,1]$. She cannot improve, including by going pure. Symmetrically, with $p = 0.2$ fixed, the authority's expected payoff from auditing with probability $q$ is $$q(5 + 15 \cdot 0.2) + (1-q)\big(10 - 10 \cdot 0.2\big) = 8q + 8(1-q) = 8 ,$$ again constant. Neither player can gain, so this is an equilibrium, and since there is no pure equilibrium and the two linear equations each had a unique solution, it is the only one. That flatness is worth dwelling on. Each player is *exactly* indifferent among everything in her support, so she has no strict incentive to play her equilibrium mixture rather than any other mixture over the same actions. The probabilities are fixed not by her own preferences but by the requirement that her opponent have no strict incentive either. A mixed equilibrium is held in place by mutual constraint, not individual pull — which makes it far more fragile than the dominance argument driving the [prisoner's dilemma](/blog/prisoners-dilemma). ## The general two-by-two formula The computation above generalises to a closed form, provided you are careful about which matrix you are reading. Write **player 2's** payoffs in a two-by-two game as | | Column 1 | Column 2 | | --- | --- | --- | | **Row 1** | a | b | | **Row 2** | c | d | and let $p$ be the probability with which player 1 plays Row 1. Player 2's indifference condition is $$pa + (1-p)c = pb + (1-p)d .$$ Rearranging, $p(a - b - c + d) = d - c$, so $$p^* = \frac{d-c}{a-b-c+d} .$$ Player 2's probability $q$ on Column 1 comes from the same construction applied to **player 1's** matrix. Writing player 1's payoffs as $\alpha, \beta, \gamma, \delta$ in the same layout, player 1's indifference between her rows reads $q\alpha + (1-q)\beta = q\gamma + (1-q)\delta$, giving $$q^* = \frac{\delta - \beta}{\alpha - \beta - \gamma + \delta}.$$ Apply this to the inspection game, taking Row 1 as *comply* and Column 1 as *audit*. The authority's entries are $a=5$, $b=10$, $c=20$, $d=0$, so $$p^* = \frac{0 - 20}{5 - 10 - 20 + 0} = \frac{-20}{-25} = 0.8,$$ the probability of complying, consistent with an evasion rate of $0.2$. The taxpayer's entries are $\alpha = -10$, $\beta = -10$, $\gamma = -25$, $\delta = 0$, so $$q^* = \frac{0 - (-10)}{-10 + 10 + 25 + 0} = \frac{10}{25} = 0.4 .$$ Both agree with the direct calculation. ## When the formula breaks down Write the denominator as $(a-b) + (d-c)$. Then $$p^* = \frac{d-c}{(a-b)+(d-c)},$$ which lies strictly between $0$ and $1$ precisely when $a-b$ and $d-c$ are both positive or both negative. In words: when player 2's preferred column *switches* depending on which row player 1 chooses. If $a > b$ and $c > d$ instead, Column 1 is better for player 2 in both rows, so it is dominant, she plays it for certain, and there is nothing to mix. So a value of $p^*$ outside $(0,1)$, or a vanishing denominator, is not an arithmetic slip to be patched. It is the formula telling you that no equilibrium uses both of player 1's actions with positive probability, and you should go back and look for pure equilibria, which the cell-by-cell check will find. The games where the formula applies are exactly the ones with the cyclic best-reply structure seen above: each player's best answer depends on the other's choice, so no pair of definite choices closes the loop. The zero-sum case of all this, where one matrix suffices because the second player's payoffs are the negatives of the first's, has its own distinctive theory — the maximin and minimax values coincide and the equilibrium payoff is unique. That is the subject of our article on [the minimax theorem](/blog/minimax-theorem). ## Larger games: support enumeration Beyond two-by-two there is no formula, because you no longer know which actions are used. The standard exact method is **support enumeration**, and it has three steps. 1. **Guess the supports.** Choose a non-empty subset $T_1 \subseteq S_1$ and $T_2 \subseteq S_2$ as the sets of actions receiving positive probability. 2. **Solve the linear system.** Impose that each player is indifferent among all actions in her own support, together with the two normalisation conditions that the probabilities sum to one. For supports of sizes $k$ and $\ell$ this is a system of $(k-1) + (\ell-1) + 2$ linear equations in $k + \ell$ unknowns — linear, and so solvable by elimination. 3. **Check.** Verify that the solution has all probabilities strictly positive, and that every action *outside* the support yields no more than the equilibrium payoff. If either check fails, discard the candidate and try the next pair of supports. Step 3 is where candidates die, and skipping it is the usual reason a hand computation produces a wrong answer. A system of indifference equations frequently has a respectable-looking solution that is not an equilibrium, either because a probability comes out negative or because an omitted action turns out to be strictly better than the ones you kept. The cost is the problem. For an $m \times n$ game there are $(2^m - 1)(2^n - 1)$ support pairs, so the enumeration is exponential in the size of the game. This is not merely a deficiency of one algorithm. Daskalakis, Goldberg and Papadimitriou proved that computing a Nash equilibrium is **PPAD-complete**, establishing it first for games with four or more players; the result was pushed down to three players, independently by Daskalakis and Papadimitriou and by Chen and Deng, and then to two players by Chen and Deng in 2006. PPAD is the complexity class of problems whose solutions are guaranteed to exist by a parity or path-following argument, which is precisely the situation a fixed-point existence proof creates: you know the answer is there and you have no efficient way to reach it. The practical upshot is that no polynomial-time algorithm for general Nash equilibrium is expected, and the matter sits alongside the other hardness results discussed in our article on [P versus NP](/blog/p-versus-np). Zero-sum games are the great exception: there the problem is a linear programme and solvable in polynomial time, which is covered under [linear programming](/blog/linear-programming). ## Rock, paper, scissors, and a three-by-three the formula cannot touch Start with the familiar symmetric case. In rock, paper, scissors with payoffs $+1$ for a win, $-1$ for a loss and $0$ for a tie, let the opponent play rock, paper and scissors with probabilities $r$, $u$, $s$. Your expected payoffs are $$u(\text{rock}) = s - u, \qquad u(\text{paper}) = r - s, \qquad u(\text{scissors}) = u - r .$$ Full-support indifference requires all three equal. From $s - u = u - r$ we get $r + s = 2u$, and with $r + u + s = 1$ this gives $2u = 1 - u$, so $u = 1/3$. From $r - s = u - r$ we get $2r = u + s = 1/3 + s$, and since $r + s = 2/3$ we substitute $s = 2/3 - r$ to obtain $3r = 1$, hence $r = 1/3$ and $s = 1/3$. The unique equilibrium is uniform randomisation, with value $0$. Symmetry would have suggested the answer; the indifference conditions prove it is the only one. Now a game where the support is *not* full. Take the zero-sum three-by-three with the row player's payoffs | | Column 1 | Column 2 | Column 3 | | --- | --- | --- | --- | | **Row 1** | 2 | -1 | 1 | | **Row 2** | -1 | 1 | 2 | | **Row 3** | 0 | 0 | 3 | Try the full support first. Equalising the row player's payoff across the three rows against $(q_1,q_2,q_3)$ gives $$2q_1 - q_2 + q_3 = -q_1 + q_2 + 2q_3 = 3q_3, \qquad q_1+q_2+q_3 = 1 .$$ From the first and third expressions, $2q_1 - q_2 - 2q_3 = 0$; from the second and third, $q_2 = q_1 + q_3$. Substituting, $q_1 = 3q_3$, so $q_2 = 4q_3$ and $8q_3 = 1$, giving the apparently respectable candidate $(3/8,\, 1/2,\, 1/8)$. But now do the row player's side. Equalising the three columns against $(p_1,p_2,p_3)$ requires $$2p_1 - p_2 = -p_1 + p_2 = p_1 + 2p_2 + 3p_3 .$$ The first equality gives $p_2 = \tfrac{3}{2}p_1$. Combining the first and last expressions gives $2p_1 + p_2 + 3p_3 = 0$, which with non-negative probabilities forces $p_1 = p_2 = p_3 = 0$ — impossible. The full-support candidate is rejected, and this is exactly the check that step 3 exists to perform. Try the support $\{\text{Row 1}, \text{Row 2}\} \times \{\text{Column 1}, \text{Column 2}\}$. On that block the entries are $2, -1, -1, 1$, with no saddle point, and the two-by-two analysis gives $$p^* = \tfrac{2}{5} \text{ on Row 1}, \qquad q^* = \tfrac{2}{5} \text{ on Column 1}, \qquad v = \tfrac{1}{5}.$$ Verify in the full game. Against $y^* = (0.4,\, 0.6,\, 0)$ the row player's payoffs are $0.4(2) + 0.6(-1) = 0.2$ from Row 1, $0.4(-1) + 0.6(1) = 0.2$ from Row 2, and $0$ from Row 3. Rows 1 and 2 tie at $0.2$ and Row 3 is strictly worse, so the omitted-action check passes. Against $x^* = (0.4,\, 0.6,\, 0)$ the column player faces $0.2$ from Column 1, $0.2$ from Column 2, and $0.4(1) + 0.6(2) = 1.6$ from Column 3. She is minimising, so Column 3 is strictly worse for her and is correctly omitted. The equilibrium is confirmed, with value $1/5$. The instructive point is why Row 3 goes unused. It is not dominated by Row 1, which pays $-1$ against Column 2 where Row 3 pays $0$; nor by Row 2, which pays $-1$ against Column 1. Nor is it dominated by the equilibrium mixture of Rows 1 and 2, which yields $(0.2,\, 0.2,\, 1.6)$ against the three columns and so loses to Row 3's $3$ in the third coordinate. Row 3 is a perfectly good strategy against some opponents. It simply happens to be worthless against the particular mixture the column player is driven to, and that is all that equilibrium requires. No elimination of dominated strategies would have discovered this; only enumeration and checking would. ## Does every game have an equilibrium? Yes, for finite games, and the proof is the reason mixed strategies are taken seriously rather than treated as a patch. Nash's theorem states that every game with finitely many players, each with finitely many actions, has at least one Nash equilibrium in mixed strategies. Nash gave two proofs. The one-page note *Equilibrium Points in n-Person Games*, communicated to the *Proceedings of the National Academy of Sciences* in November 1949 and published in 1950, uses **Kakutani's** fixed point theorem: the best-response correspondence maps each profile $\sigma$ to the set of profiles in which everyone plays a best response to $\sigma$: this set is non-empty and convex, the correspondence has closed graph, the domain is a product of simplices and hence compact and convex, and Kakutani's theorem supplies a fixed point. A fixed point is a profile in which everybody is already playing a best response to everybody — an equilibrium by definition. The 1951 *Annals of Mathematics* paper uses **Brouwer's** theorem instead, by replacing the set-valued correspondence with a single-valued continuous map. For each player $i$ and each action $a$, define the gain from deviating, $$\varphi_{ia}(\sigma) = \max\big\{0,\ u_i(a,\sigma_{-i}) - u_i(\sigma)\big\},$$ and then the map $$\sigma'_i(a) = \frac{\sigma_i(a) + \varphi_{ia}(\sigma)}{1 + \sum_{b \in S_i} \varphi_{ib}(\sigma)} .$$ This shifts weight towards actions that currently outperform the average and renormalises. It is continuous, and it sends the product of simplices to itself, so Brouwer gives a fixed point. At a fixed point one shows that all the gains $\varphi_{ia}$ must vanish, and a profile with no positive gain anywhere is exactly a Nash equilibrium. Neither proof is constructive, which is the honest explanation of why a theorem guaranteeing existence sits so comfortably beside a complexity result saying computation is hard. The relevant fixed point theorem here is Brouwer's, or Kakutani's set-valued extension of it, both of which rest on topological rather than metric arguments; see [fixed point theorems](/blog/fixed-point-theorems) for the landscape. It is worth saying plainly that the [Banach fixed point theorem](/blog/banach-fixed-point-theorem) is a different result, requiring a contraction and delivering a unique fixed point by iteration. Best-response maps are not contractions, equilibria are generally not unique, and iterating best responses need not converge. Finiteness matters. Drop it and existence can fail outright: two players each choosing a natural number, with the larger number winning, has no equilibrium at all. Existence results for infinite action sets require compactness and continuity assumptions bolted back on. ## What randomising actually means A mixed equilibrium is not advice to carry dice. The taxpayer in our example is not expected to roll a five-sided object each April. Three readings of the mathematics avoid the absurdity, and they are not in competition so much as suited to different applications. The **population interpretation** takes the probabilities as frequencies in a large group rather than deliberations in one head. Twenty percent of taxpayers under-report as a matter of settled disposition; forty percent of returns get audited because that is the authority's budgeted rate. Nobody randomises, and the aggregate matches the equilibrium exactly. This is the standard reading in evolutionary game theory, where the probabilities are proportions of a population playing each pure strategy. **Harsanyi's purification**, introduced in a 1973 paper on games with randomly disturbed payoffs, is subtler and more satisfying. Suppose each player's payoffs are perturbed by small private shocks — this taxpayer's circumstances this year, this auditor's workload this week — which each player knows about herself and not about the other. Then each player's behaviour is strictly determined: given her realised payoffs, she has a definite best action and takes it. But because the shocks are private, her behaviour appears random to the other player, and as the shocks shrink to zero the induced distribution over actions converges to the mixed equilibrium of the unperturbed game. The randomness is in the observer's ignorance, not in the actor's choice. Everybody is behaving deterministically and the mixture is still exactly right. The **beliefs interpretation** reads $\sigma_i$ not as something player $i$ does but as what the *other* players think she will do. On this reading an equilibrium is a configuration of mutually consistent beliefs in which each player acts optimally given what she expects. It handles the indifference problem gracefully: player $i$ need not be indifferent in order to mix, because she is not mixing. She is doing one thing, and the probabilities describe her opponent's uncertainty about which. All three readings produce the same numbers. Which one to invoke depends on what you are modelling, and being explicit about it tends to clarify arguments that otherwise go in circles. ## Do real players mix? The laboratory evidence is unflattering. Subjects asked to play games with unique mixed equilibria tend to mix in the wrong proportions, and their sequences of choices show serial dependence rather than the independence the theory implies. Brown and Rosenthal's 1990 reanalysis of O'Neill's experiments found that although long-run frequencies converged tolerably well towards the predicted mixture, the sequences showed significant autocorrelation; the character of that dependence varies from study to study. The strongest evidence for the predictions is from professional sport, where the stakes are high and the players have practised the same strategic situation thousands of times. Ignacio Palacios-Huerta's study of penalty kicks in professional football, published in the *Review of Economic Studies* in 2003, found that scoring probabilities were statistically indistinguishable across the kickers' strategies and that their sequences of choices passed tests for serial independence — both implications of the theory holding simultaneously in field data. Walker and Wooders, in the *American Economic Review* in 2001, found equal win rates across serve directions for top male tennis players at Wimbledon but concluded that those players switched direction too often, producing serial dependence; a subsequent literature has questioned both the power and the validity of that particular test. Two caveats keep the picture honest. The penalty-kick analysis treats the choice as binary and covers kicks during play rather than shootouts; a later replication on a smaller sample recovered the independence result while finding the equal-success-rate result sensitive to that binary reduction. More tellingly, Levitt, List and Reiley brought professional players into a laboratory and found little sign that their field expertise transferred to abstract versions of the same game. The sporting data appear to record narrowly learned behaviour in one heavily rehearsed situation, not a general capacity for strategic randomisation. Which is the right conclusion to draw about the method set out above. The indifference principle is a statement about what a payoff matrix permits to be stable, and it answers that question exactly. Whether any particular people will find the stable point is a separate question, with a separate and considerably messier answer. --- **Related topics:** [What Is the Minimax Theorem?](/blog/minimax-theorem), [What Is the Prisoner's Dilemma?](/blog/prisoners-dilemma), [Game Theory and Strategic Decisions](/blog/game-theory-and-strategic-decisions), [Fixed Point Theorems](/blog/fixed-point-theorems), [The Banach Fixed Point Theorem](/blog/banach-fixed-point-theorem), [Linear Programming](/blog/linear-programming), [P versus NP](/blog/p-versus-np), [The Law of Large Numbers](/blog/law-of-large-numbers), [Monty Hall and Probability](/blog/monty-hall-and-probability)Frequently asked
What is a mixed strategy Nash equilibrium?
A profile in which each player chooses a probability distribution over their available actions, and no player can raise their own expected payoff by switching to any other distribution while the others keep theirs fixed. A pure equilibrium is the special case in which every distribution puts all its weight on one action.
How do you calculate a mixed strategy equilibrium?
Use the indifference principle. Treat the opponent's mixing probability as an unknown, write your expected payoff from each of your actions as a function of that unknown, and set those expressions equal. Solving gives the opponent's equilibrium probabilities. Repeat with the roles reversed to get your own. In a two-by-two game this is one linear equation per player.
Why do players randomise?
Because in some games any predictable choice can be exploited. If the opponent's best reply depends on what you do and yours depends on what she does, no pair of definite choices is stable, and the only stable arrangement makes each player unpredictable. Randomisation is not chosen for its own sake; it is what remains when no single action can be defended.
What if a game has no pure strategy Nash equilibrium?
Then it still has at least one equilibrium in mixed strategies, provided the game is finite. That is Nash's theorem of 1950 and 1951. Matching pennies and inspection games have no pure equilibrium at all, and the mixed equilibrium is their unique solution.
Does every game have a Nash equilibrium?
Every game with finitely many players and finitely many actions each has at least one Nash equilibrium in mixed strategies. Nash proved this using fixed point theorems, in the 1950 note via Kakutani's theorem and in the 1951 paper via Brouwer's. Games with infinitely many actions can fail to have one unless continuity and compactness assumptions are added.