GTO Engine

How a GTO Poker Solver Works and What 0.5 % Accuracy Means

Game trees, CFR and exploitability explained in plain words: how a poker solver finds a GTO strategy and how its accuracy is measured.

A GTO solver takes a poker spot and returns a strategy that cannot be beaten in the long run, as long as both players can only use the actions the spot allows. This article explains, without formulas, how it does that and what an accuracy number like "0.5 % of the pot" means.

The game tree

A solver starts from a description of the spot: the board, the range of hands each player can have, the pot, the stacks and the bet sizes that are allowed. From that it builds a game tree: every sequence of actions that can happen, from the first check or bet to the showdown.

The bet sizes matter. A real player can bet any amount, but a tree with every amount would be far too big to solve. So the tree uses a few fixed sizes, for example a 33 % and a 75 % pot bet on the flop. The solver then finds the best strategy for that tree. More sizes give a finer strategy and cost more time; studies of this trade-off find that the loss from fewer sizes is smaller on early streets.

What "GTO" means

GTO stands for game theory optimal. It is a Nash equilibrium: a pair of strategies where neither player can win more by changing their own strategy while the other keeps theirs.

For two players in a zero-sum game, which heads-up poker is, an equilibrium strategy has a useful property: on average it does not lose against any opponent. It does not try to exploit mistakes, it simply cannot be exploited.

Equilibrium strategies are often mixed. A hand may bet 60 % of the time and check 40 %. That is not indecision: if the solver always bet that hand, an opponent could adjust, and the mix is what removes that option.

How the solver finds the equilibrium

Most modern solvers use counterfactual regret minimization (CFR), introduced by Zinkevich and others in 2007, or one of its faster variants.

The idea is close to how a person learns from experience:

  1. Start with any strategy, for example every action equally often.
  2. Play the tree against itself. At every decision, measure the regret of each action: how much better or worse it would have done than the current mix.
  3. Shift the strategy towards actions with positive regret.
  4. Repeat, many thousands of times.

For two-player zero-sum games, the average strategy over all iterations is proven to approach the equilibrium. Each iteration makes the strategy a little harder to exploit.

Exploitability: the accuracy number

A solver cannot run forever, so it needs a stopping rule. The standard measure is exploitability: how much a perfect opponent, who knows your strategy exactly, could win against it per hand. At the exact equilibrium it is zero.

Solvers usually report exploitability as a share of the pot. "0.5 % of the pot" means that even a perfect counter-strategy would win at most half a percent of the pot per hand on average. In a 10 big blind pot that is 0.05 big blinds.

How low is low enough? There is no official standard. Players who study with solvers commonly stop at 0.5 to 1 % of the pot. Going lower costs time quickly: in our own measurement, solving a flop to 0.3 % took about 1.2 times as long as solving it to 0.5 %.

What a solve costs

Time depends mostly on the street:

  • River: no cards left to come, a small tree. On a warm 8-thread server our river solves take about 0.4 seconds.
  • Turn: 48 possible river cards below each turn decision. About 1.6 seconds in the same setup.
  • Flop: 49 turn cards times 48 river cards below each flop decision. About 16.5 minutes per flop at 0.5 % of the pot on 8 threads.

That difference is why flops are usually solved in advance and stored, while turns and rivers can be solved on request. More on that in 1,755 flops: why a flop base is solved in advance.

Checking a solver against known answers

Some small games have exact answers on paper, and they make good tests. The classic one is the river spot from "The Mathematics of Poker" (Chen and Ankenman, 2006): one player has either the nuts or nothing, the other has a bluff catcher.

With a bet of size s (as a fraction of the pot), the equilibrium is:

  • the bettor bluffs with a share of s / (1 + 2s) of their betting range;
  • the defender calls with a share of 1 / (1 + s).

For a pot-sized bet (s = 1) that is one bluff for every two value bets, and the defender calls half the time. A correct solver must reproduce these numbers on that spot.

Where the guarantees stop

  • Three or more players. CFR is not proven to converge in multiway pots, and an equilibrium no longer guarantees that a player does not lose (Abou Risk and Szafron, 2010). Results can still be checked after the fact, but they are approximations.
  • Bets outside the tree. If an opponent bets a size the tree does not contain, the strategy has to map it to a nearby size. Standard methods exist (Ganzfried and Sandholm, 2013), but the answer is approximate.
  • The input ranges. A solver is only as good as the ranges it starts from. Wrong preflop ranges lead to a precise answer for the wrong spot.

Using solver output in your own tools

Our API returns solver strategies as JSON: preflop ranges, a precomputed flop base and live turn and river solves. Each answer comes with the frequencies for every hand, so you can show the mix, round it, or compare it with what a player actually did.

Get access to the API

Tell us what you are building. We reply with a test key, limits and the price for your volume.

Request access