Case Study 2 — Who Spoils King and Pawn Against King, and Where?
Setup
Section 14.8 found that in Lichess blitz and rapid games, 20.4% of theoretically won K+P vs K positions were not won, and that the failure rate is 34.0% below 1200. That is a striking number for the simplest ending in chess, and a number is only useful if it tells you what to practise. So this case study asks two follow-up questions:
- Which won positions get spoiled? Is it the long, difficult wins, or the rook-pawn positions, or something else?
- What exactly goes wrong? When a win slips, is it a real chess error inside the K+P vs K ending, or the clock, or something that happens after the pawn has promoted?
We can answer both without a single network request, because the chapter's KPKSolver knows the exact value of
every K+P vs K position. The data is code/kpk_games.csv: the first K+P vs K position of every game in our data
that reached one (written by code/04_theory_vs_practice.py). The script is code/case_study_02.py; its output is
code/cs02_output.txt.
📐 Definition: plies to promote. For a theoretically won K+P vs K position, the number of plies (half-moves) to a safe promotion when both sides play perfectly — the winner as fast as possible, the defender resisting as long as possible. Our solver records it for every won position; it is a measure of how long (and roughly how hard) the win is.
The data
The sample is every theoretically won first K+P vs K position from Lichess blitz and rapid: 4,093 games (weighted to 18,072 games of the full 4-million-game sample, because only some un-analysed games keep their moves). For each we know the distance to promotion, the pawn's file, and the actual result.
win rate by distance to promotion (plies, perfect play) and pawn type:
dist rook_pawn n won
1-5 False 1040.0 0.844269
1-5 True 435.0 0.827179
6-10 False 873.0 0.839620
6-10 True 586.0 0.816878
11-20 False 782.0 0.718964
11-20 True 230.0 0.715090
21+ False 147.0 0.523810
all rook pawns: won 80.4% (n=1,251); other pawns: won 79.3% (n=2,842)
theoretically won positions that are rook-pawn positions: 29.7%
theoretically drawn positions that are rook-pawn positions: 46.2% (n=2,401)

📊 Figure (described): Theoretically won first K+P vs K positions in Lichess blitz/rapid, grouped by how many plies the win takes with perfect play. When the promotion is 1–10 plies away, 82–84% are won; at 11–20 plies, about 72%; at 21 plies or more (none of them rook-pawn positions), only 52%. Rook pawns and other pawns convert at almost the same rate once the position is genuinely won.
Analysis
Finding 1: long wins slip; short ones mostly don't
Read the table from top to bottom. A win that needs five plies or fewer — the pawn is close to queening and nothing can stop it — is converted 83–84% of the time. (Even there, one game in six is not won: those are mostly losses on time and draws claimed or agreed in a hurry.) A win that needs 21 or more plies of precise play is converted only 52.4% of the time (n = 147). The long wins are the ones that need the method — king in front, key squares, the opposition, outflanking — and those are exactly what this chapter's section 14.2 teaches.
Finding 2: the rook pawn's damage happens before the ending, not during it
A surprise: once a rook-pawn position is theoretically won, it is converted just as often as any other (80.4% vs 79.3%). But rook pawns make up 46.2% of the theoretically drawn first K+P vs K positions and only 29.7% of the won ones. The rook pawn's weakness is not that it is harder to play; it is that so many rook-pawn positions are draws to begin with. The practical lesson belongs to the moment before K+P vs K arises: when you trade into a pawn ending with a rook pawn, check the corner first.
Finding 3: about two in five spoiled wins are real K+P vs K errors
We took a random sample (seed 2026) of 200 spoiled wins, replayed each from its first K+P vs K position, and asked the solver after every move whether the pawn side had just turned a win into a draw:
random sample of 200 spoiled wins (seed 2026): {"pawn side's error": 84, 'no error (timeout/other)': 116}
termination of the sampled spoiled wins: {'Normal': 111, 'Time forfeit': 87, 'Insufficient material': 2}
In 84 of 200 spoiled wins (42%), the pawn side made a K+P vs K move that changed the exact result from win to draw. In the other 116 the K+P vs K play itself was not the problem: 87 of the 200 games ended on time, and the rest went wrong outside the phase we graded — for example after the pawn had already promoted. So roughly speaking: two spoiled wins in five are pure endgame-knowledge errors, and the rest are mostly clock errors. Both are trainable, but they are trained differently: the first with the reference positions, the second by practising the technique until it is fast (and by keeping time for the ending, Chapter 13's lesson).
A typical error
Here is the first sampled game that ended normally and contained such an error — a Lichess blitz game, both players rated around 1136 on average:

♟️ Position: White Kc4, a4; Black Ke5 — White to move. FEN:
8/8/8/4k3/P1K5/8/8/8 w - - 3 65
The solver's verdict for each White move:
solver before the move: {'result_white': '1-0', 'pawn_side': 'white', 'plies_to_promote': 11}
Kc5 -> 1-0
Kb5 -> 1-0
Kb4 -> 1/2-1/2
Kd3 -> 1/2-1/2
Kc3 -> 1/2-1/2
Kb3 -> 1/2-1/2
a5 -> 1/2-1/2
It is a race for the corner. Black's king wants a8 (or b8 and the squares next to the corner); White's king must shoulder it away — stand between the black king and the corner — with 65.Kc5 or 65.Kb5. Only those two moves win. White played 65.a5?, with 40 seconds on the clock, and the game continued 65...Kd6 66.Kb5 Kc7 67.a6 Kb8: the black king reached the corner, and the remaining 22 plies of shuffling ended in a draw. One pawn move instead of a king move — the same mistake the Lucena teaches you not to make with the rook (king first, pawn later; or here, king in the way, pawn later).
Finding 4: the rating gradient is real but not smooth
The chapter's main script also split the Lichess blitz/rapid results by the average rating of the two players
(code/04_output.txt):
Lichess blitz/rapid <1200 drawn n= 269: pawn side won 15.6% | won n= 514: not won 34.0%
Lichess blitz/rapid 1200-1399 drawn n= 281: pawn side won 13.2% | won n= 549: not won 21.8%
Lichess blitz/rapid 1400-1599 drawn n= 416: pawn side won 15.7% | won n= 815: not won 20.3%
Lichess blitz/rapid 1600-1799 drawn n= 497: pawn side won 14.0% | won n= 869: not won 18.8%
Lichess blitz/rapid 1800-1999 drawn n= 418: pawn side won 12.0% | won n= 703: not won 13.0%
Lichess blitz/rapid 2000-2199 drawn n= 277: pawn side won 9.2% | won n= 400: not won 19.6%
Lichess blitz/rapid 2200-2399 drawn n= 137: pawn side won 6.4% | won n= 176: not won 20.3%
Lichess blitz/rapid 2400+ drawn n= 106: pawn side won 3.8% | won n= 67: not won 17.2%
Two patterns are worth separating. The defender's errors (a theoretical draw that was lost) fall almost steadily with rating, from 15.6% to 3.8%: the drawing methods — the opposition, the king in front of the pawn, the rook-pawn corner — are learned with experience and then simply stop being missed. The attacker's failures fall sharply from below 1200 (34.0%) to 1200–1399 (21.8%) and then hover between 13% and 20% all the way to 2400+. The bands above 2000 are small (n = 176 and 67 at the top), so their percentages are noisy, but the flat shape is consistent with Finding 3: a large part of the attacker's remaining failures at high ratings are clock failures, and a 2300-rated blitz player with eight seconds left is not much faster at walking a king to a key square than a 1700-rated one. The first big step — from a third of wins spoiled to a fifth — is a knowledge step, and it is the cheapest one in this book.
What it means (and doesn't)
- It means that the biggest practical return from K+P vs K study is in the long wins: positions where the promotion is more than ten plies away are spoiled about 28–48% of the time online.
- It means that rook pawns deserve their reputation, but at a different moment than people think: they turn would-be wins into draws before the ending, while the ending itself plays about as well as any other.
- It does not mean that 42% of all spoiled wins in every pool are knowledge errors: our grading sample is 200 games from one pool (Lichess blitz/rapid), the percentages have sampling error of several points, and "no error" includes errors we did not grade (after promotion).
- It does not mean that the clock-related failures are not about knowledge. A player who knows the method plays it faster. Speed of technique is part of technique.
Discussion questions
- Why should the win rate fall with distance to promotion? Name two mechanisms — one about knowledge, one about the clock.
- Rook pawns are 46.2% of theoretically drawn first K+P vs K positions but only 29.7% of won ones. Give a middlegame or early-endgame decision that this statistic should influence.
- In the example, both 65.Kc5 and 65.Kb5 win. Explain the idea in words a 1100-rated player would remember.
- The attacker's failure rate stops falling above about 1800 while the defender's keeps falling. What extra data would you need to test whether the clock explains the difference?
- Our "pawn side's error" counts only moves that turned a win into a draw. Could a game contain a defender's error that turned a draw into a win after the pawn side's error? How would you count it?
Your turn
Modify code/case_study_02.py to study the defender: take the theoretically drawn first K+P vs K positions
in Lichess blitz/rapid (n = 2,401), find the first defender move that turns a draw into a loss, and classify it:
(a) the king left the pawn's file or the corner, (b) the king gave up the opposition, (c) other. Report the counts
for a random sample of 200 games (seed 2026) and one diagrammed example with the solver's verdict for every legal
move. Which of this chapter's reference positions would have prevented the most common error?