In a king and pawn ending you can often judge the result without calculating a single long line. You only need to know a few squares.
A key square is a square that wins if your king reaches it, with your pawn still safe. After this page you will be able to mark those squares for any pawn from the b file to the g file, aim your king at them, and defend them when the roles are reversed.
Pawns on ranks 2, 3 and 4
While the pawn is on its second, third or fourth rank, the key squares are the three squares two ranks ahead of it: one straight ahead and one on each neighboring file. A pawn on c3 has b5, c5 and d5.
8/2k5/8/1K6/8/2P5/8/8 w - - 0 1Notice that being on a key square guarantees a win, but not that any move will do. In this picture only 1.Kc5 keeps it. The promise is that a winning path exists, and you still have to find it.
There is one condition that applies to everything on this page: the defender must not be able to capture the pawn at once.
Why two ranks ahead? A king there stands far enough in front to clear a path. It can wait for the enemy king to step aside, and the pawn still has spare moves behind it to change whose turn it is.
Pawns on rank 5 and rank 6
Once the pawn reaches the fifth rank, you get six key squares: the three one rank ahead and the three two ranks ahead. The pawn has less ground left, so your king can be closer to it.
2k5/8/3K4/2P5/8/8/8/8 b - - 0 1For a pawn on the sixth rank, the same idea moves up one step: the key squares are on the seventh and eighth ranks, on the pawn's file and its neighbors.
| Pawn stands on | Key squares on | How many |
|---|---|---|
| Rank 2 | Rank 4 | Three |
| Rank 3 | Rank 5 | Three |
| Rank 4 | Rank 6 | Three |
| Rank 5 | Ranks 6 and 7 | Six |
| Rank 6 | Ranks 7 and 8 | Six |
Black pawns follow the same pattern in the other direction. The key squares also move with the pawn. Every time you push, mark them again.
Mark them yourself
Cover the right side and name the squares before you read them.
- A d2 pawn: c4, d4 and e4.
- An f4 pawn: e6, f6 and g6.
- An e5 pawn: d6, e6, f6, d7, e7 and f7.
- A c6 pawn: b7, c7, d7, b8, c8 and d8.
Aim the king, not the pawn
This is where the idea matters most. Do not ask what the pawn should do. Ask which key square your king can reach.
8/3k4/8/8/3K4/4P3/8/8 w - - 0 1The squares d5, e5 and f5 are the targets. The push 1.e4 looks reasonable, but it only draws. Both 1.Kd5 and 1.Ke5 put the king where it has to be.
8/3k4/8/8/3K4/4P3/8/8 b - - 0 1With Black to move, 1...Kd6 stops the white king from reaching any of the three squares. One tempo changes everything.
Plan your route with this in mind. A king has several paths to the same square, and some are easier for the defender to block than others. Go around on the side where the enemy king is further away, and keep the pawn where it is until it can help.
How the defender uses the same squares
As the defender, your job is clear: keep the enemy king off the key squares. You do not need to attack the pawn. Stand where you can answer each step forward. If your king can stay between the enemy king and the marked squares, patience alone may be enough. Do not wander off to the side, and do not step back further than you have to. Each time the pawn advances, look at where the new targets are before you choose your square, because the square that was right a moment ago may be useless now.
8/8/4k3/8/4K3/4P3/8/8 w - - 0 1If White tries 1.Kd4, Black answers 1...Kd6. If White tries 1.Kf4, Black answers 1...Kf6. The black king keeps facing the white one and the targets stay covered. That facing technique is explained in the opposition.
The knight pawn exception
The b and g pawns have one extra trap. It appears when the pawn is on the sixth rank, your king stands on a key square of the c or f file, the defending king sits in the nearest corner and it is the defender's turn.
k7/2K5/1P6/8/8/8/8/8 b - - 0 1The king on c7 is on a key square, yet the game is drawn at once because of whose turn it is. The same happens with the white king on c8 instead of c7. In mirror image on the other wing, with a g6 pawn and the defender in the h8 corner, the squares to watch are f7 and f8.
k7/2K5/1P6/8/8/8/8/8 w - - 0 1When it is your turn, you win. So before you step to such a square, check that the other side will still have a move. Rook pawns are a separate case and this page does not cover them.
Common mistakes with key squares
- Counting from the wrong rank. For pawns on ranks 2 to 4 the targets are two ranks ahead, not one.
- Forgetting that they move. After each pawn step, mark the new set.
- Pushing when the king could advance. A pawn move can push the targets further away from your king.
- Assuming a runner needs them. A pawn that no king can catch simply queens. Check the square of the pawn first.
At the board
Four quick steps.
- Find the pawn's rank and mark the targets.
- See which targets your king can reach.
- See which the enemy king can cover.
- Confirm the pawn is safe while you walk.
For practice, place a pawn and two kings in the Board builder, decide the targets in your head, then check them against the table. Leading with the king shows what to do after you arrive.
Common questions
What are the key squares of a pawn?
They are squares that give a win if your king reaches them while the pawn is safe. Their position depends on the rank of the pawn.
Do key squares work for a pawn on the a or h file?
Not in this form. A rook pawn has far fewer winning chances because the edge of the board limits your king.
Does the player to move matter once the king is on a key square?
Normally not. The exceptions are a pawn that can be captured at once and the knight pawn stalemate with the defender in the corner.
Sources
- lila-tablebase: tablebase server based on Syzygy tables. Lichess open source project. Used to check the result of endgame positions with few pieces. Consulted on 25 November 2026.