Position 1: the king in front, the pawn waits
Position composed for this article: king and e2 pawn against king, White to move.
The pawn stands on e2, both kings on their back ranks. The key squares of the e2 pawn are d4, e4 and f4.
1.Kf2 also wins. The king goes to the key squares, the pawn waits.
1. e4? The pawn goes two squares, and the key squares go with it: now they are d6, e6 and f6. 1… Ke7 2. Kd2 Ke6 3. Ke3 Ke5 The black king stands in front of the pawn and has the opposition. Draw.
The king stands on the key square e4.
3. Kd4 Also a key square. 3… Ke6 4. Ke4 The only winning move. ( 4. e3? Kd6 Black has the opposition. Draw. )
A pawn move by one square. Now it is Black's move, and Black must give way to the White king.
Tablebase: White wins.
The key squares of the e2 pawn are d4, e4 and f4. A White king that reaches them wins. From e1 it gets there in three moves, and the black king cannot stop it. That is why 1.Kd2 and 1.Kf2 win.
Instinct suggests 1.e4. The pawn goes two squares forward, and the key squares move with it: for an e4 pawn they are d6, e6 and f6. The black king from e8 guards them in one move, and the tablebase rates the position as a draw. 1.e3 draws too.
The variation with 3.Kd4 shows a second trap. The king already stands on a key square, but after 3...Ke6 only 4.Ke4 wins. A pawn move, 4.e3 or 4.e4, gives Black the opposition and a draw. A key square does not end the calculation: before a pawn move, check who will have the opposition after it.
Position 2: distant opposition
Position composed for this article: king and d3 pawn against king, White to move.
The key squares of the d3 pawn are c5, d5 and e5. In two moves the black king reaches d6 and guards all three.
White to move and win. Which king move?
Show solution
The only winning move according to the tablebase. The king takes a roundabout route to win the opposition on d4.
1. Ke3? Ke7 Simpler looking, but the kings stand on the e-file with three squares between them, and it is White's move. Black has the distant opposition. 2. Kd4 Kd6 White to move again. Draw.
1. d4? A pawn move also only draws.
Opposition: one square between the kings and Black to move. Black must give way, and the White king steps onto the key square.
Key square.
Tablebase: White wins.
More positions like this: Training, key squares
Here the pawn stands on d3, so the key squares are c5, d5 and e5. In two moves the black king reaches d6 and guards all three. So White must stand opposite it, on d4, at the moment when it is Black's move.
The tablebase leaves White one winning move. Play it on the board. The solution, including the simpler-looking moves that only draw, is in the comments under the board.
This example shows well that opposition serves a purpose. White does not fight for the opposition just anywhere, only where it opens the way to the key squares.
Position 3: the square and the double step
Position composed for this article: a2 pawn against the king on g5, White to move.
The White king is far away. Will the black king catch the a2 pawn?
The pawn goes two squares. The square of the a4 pawn extends from a4 to e8, and the black king from g5 cannot enter it in one move.
1. a3? The square of the a3 pawn extends from a3 to f8. 1… Kf5 The king enters the square. 2. a4 Ke5 3. a5 Kd6 4. a6 Kc7 5. a7 Kb7 The black king made it in time. Draw.
A queen against a lone king.
The White king stands on h1 and will not make it in time to help. The tablebase confirms that every king move gives only a draw. The pawn has to run by itself.
The rule of the square says that a king catches a pawn if it stands in the pawn's square or can enter it with its move. After 1.a3 the square extends from a3 to f8 and the black king enters it by going to the f-file. Draw. After 1.a4 the square extends only from a4 to e8. The black king on g5 cannot enter it in one move, and the pawn goes through. So only 1.a4 wins, and the result is decided by the double step from the starting square.
Position 4: the defender and the rook pawn
Position composed for this article: a4 pawn and king on e5 against king on f7, Black to move.
Black to move. The a4 pawn needs four moves to promote, and its square extends from a4 to e8.
The king enters the square. 1...Ke8 also draws.
1… Kg6? 2. a5 Kg7 3. a6 Kf7 4. a7 Ke7 5. a8=Q The king stayed outside the square.
The black king stands in the corner in front of the rook pawn. Tablebase: draw.
Now the same rule from the defender's side. The a4 pawn needs four moves to promote, and its square extends from a4 to e8. Black draws only with a move into the square: 1...Ke7 or 1...Ke8. The tablebase rates every other move as losing.
After 1...Ke7 the White king goes alongside the black one and tries to cut it off from the pawn. Black goes file by file toward the corner: d7, c7, b7. When it stands in the corner in front of the rook pawn, the tablebase rates the position as a draw. Key squares for a pawn on the edge do not work the way they do for a central pawn. We describe this exception on the page The rook pawn: an exception to the rules.
Position 5: the distant passed pawn
Position composed for this article: two pawns each, White to move.
Two pawns each, but White has the passed pawn on a4, far from the other pawns.
1. Kc4? The king goes behind its own pawn. 1… g5 Tablebase: now Black wins.
The black king goes to stop the a-pawn.
The White king goes to the other wing.
The h-pawn runs to promotion, and the black king is far away. Tablebase: White wins.
Material is equal, but White has the passed pawn on a4 far from the other pawns. After 1.a5 the black king goes to stop it, and the White king in the meantime heads for the other wing. Black captures the a5 pawn, but White meanwhile collects the pawns on g6 and h5. The black king is then far from the h-pawn, which runs to promotion.
The tablebase also shows how important the direction of the king's march is. 1.Ke4, 1.Ke3 and 1.Kd3 also win, because the king heads toward Black's pawns. 1.Kc4 and 1.Kc3 lose: the king goes behind its own pawn, and after 1.Kc4 Black plays 1...g5 and the tablebase rates the position as a win for Black.
How to calculate a pawn endgame
Five positions give five questions worth asking before every move:
- Where are the key squares, and who gets there first?
- Who will have the opposition after my move?
- Is the enemy king inside the square of the free pawn? Remember the double step from the starting square.
- Is it a rook pawn? With a rook pawn alone, the defender's king in the corner in front of the pawn saves the draw.
- Do I have a distant passed pawn that I can use to draw the enemy king away?
We show the mistakes that lead to lost pawn endgames, for example trading rooks at the wrong moment, in the article Endgame mistakes: five typical beginner errors. The other topics are collected in the section Chess endgames.
Frequently asked questions
What is a pawn endgame?
An endgame in which both sides have only a king and pawns. There are no pieces to repair a mistake, so one tempo decides between a win, a draw and a loss.
What is opposition in a pawn endgame?
A setup where the kings stand facing each other with one square between them and it is the opponent's move. They must give way, and your king goes through.
How does the rule of the square work?
A king catches a pawn if it stands in the pawn's square or can enter it with its move. The square is set by the pawn's distance from the promotion square.
