Skip to content
Aback Chess
Sponsors

King and pawn endgames: opposition, key squares and the rule of the square

How to win and draw a king and pawn endgame: the opposition, key squares, the rule of the square, rook pawns, the outside passed pawn and the pawn breakthrough.

Endgames11 min readUpdated

In short

A king and pawn endgame is won by getting your king to the right squares before the enemy king does. With king and pawn against king, the attacker wins if the king reaches one of the pawn's key squares, usually the three squares two ranks in front of it, and the defender draws by taking the opposition in front of the pawn. The rule of the square tells you whether a lone pawn outruns the enemy king, and rook pawns are drawn if the defending king reaches the corner.

When every piece has been traded and only kings and pawns are left, the game becomes a race and a puzzle at once. There are few moves, so everything can be calculated, and one tempo decides the result more often than in any other ending. The good news is that a handful of rules cover most of what happens. Learn them and you will know, before you trade into a king and pawn ending, whether it wins, draws or loses.

1Why the king matters so much

In the middlegame the king hides. In a king and pawn ending it is your strongest piece. It escorts pawns, attacks enemy pawns and blocks passed pawns. Most king and pawn endings are decided by which king gets to the important squares first, so the first rule is simple: when the queens and pieces come off, bring the king to the centre at once.

2What is the opposition in chess?

The opposition is a standoff between the kings. Kings can never stand on neighbouring squares, so when two kings face each other on the same file or rank with one square between them, neither can step forward. The side that does not have to move is said to have the opposition, because the other king must give way.

White to move. The kings face each other on the e-file with one square between, so Black has the opposition. White cannot force a way through and the position is a draw. With Black to move it would be a win for White.Open on the board

This is the direct opposition. Who has it matters enormously: in the board above, White to move only draws, while Black to move must let White's king through to d6, e6 or f6, and then White wins. The opposition is a form of zugzwang, and it is the tool both sides use in almost every king and pawn ending.

3What is the distant opposition?

When the kings are further apart, the same idea applies with more squares between them. Kings on the same file or rank with three or five squares between them are in distant opposition. Again, the side not to move holds it. As the kings approach, the player with the distant opposition keeps it by always restoring an odd number of squares between the kings, until it becomes the direct opposition at the moment it matters.

The kings on e1 and e5 stand on the same file with three squares between them: distant opposition. Black is to move, so White holds it.Open on the board

There is also a diagonal opposition, with the kings on the same diagonal and an odd number of squares between them. In practice, think of all three as the same question: if the kings keep approaching, which one will be forced to step aside first?

4What are key squares in chess?

Key squares answer the question of whether king and pawn against king is a win. They are the squares where the attacking king wins, whoever is to move, as long as the pawn is not about to be taken. Get your king to a key square and the pawn promotes. The defender's whole task is to keep your king off them.

The key squares of a pawn on e4 are d6, e6 and f6. If White's king reaches any of them with the pawn safe, White wins whoever is to move.Open on the board
Pawn onKey squaresThe pattern
e2d4, e4, f4Two ranks in front
e3d5, e5, f5Two ranks in front
e4d6, e6, f6Two ranks in front
e5d6, e6, f6 and d7, e7, f7One and two ranks in front
e6d7, e7, f7 and d8, e8, f8One and two ranks in front
The same pattern holds for a pawn on the b- to g-files, with one exception: a knight's pawn on the sixth rank has fewer key squares, because of stalemate tricks in the corner. Rook pawns are different again.

Notice what the table says about a pawn far back: the key squares are well in front of it. That is why the king should lead and the pawn follow. Pushing the pawn early moves the key squares forward, and they become harder to reach.

5King and pawn vs king: when is it a win?

  • If your king reaches a key square with the pawn safe, it is a win.
  • A king on the sixth rank directly in front of its pawn on the fifth (for example king e6, pawn e5) wins whoever is to move, for any pawn except a rook's pawn.
  • If the defending king stands in front of the pawn and keeps the opposition as your king approaches, it is a draw.
  • If the pawn can run to promotion before the defending king catches it, it wins on its own: use the rule of the square below.
  • A rook's pawn is usually a draw if the defending king reaches the corner in front of it.

The defender's best hope is stalemate. When the attacker gets the pawn to the seventh rank with the defending king in front of it, one careless king move leaves the defender with no legal move.

The defender's resource: Black to move is not in check and has no legal move, so it is stalemate and a draw.Open on the board

6Why rook pawns are different

A pawn on the a- or h-file has only one neighbouring file, which leaves the attacking king too little room to push the defender aside without stalemate. If the defending king reaches the corner square in front of the pawn, the attacker cannot win however well placed the king is.

Black's king sits in the corner in front of the a-pawn. Whatever White does, the position is a draw: the king cannot be driven out without stalemating it.Open on the board

With a rook's pawn, the attacker can win only by keeping the defending king out of the corner, usually by putting the attacking king on b7 or b8 (g7 or g8 for an h-pawn) with the pawn safe. So when you are the one with the extra rook's pawn, race your king to the corner first. When you are defending, head for the corner and stay there.

7What is the rule of the square?

The rule of the square tells you, without counting moves, whether a lone passed pawn can outrun the enemy king. Imagine a square on the board with one side running from the pawn to its promotion square. If the defending king is inside that square, or can step into it with its move, it catches the pawn. If it cannot, the pawn promotes.

The square of the pawn on c4 runs from c4 to g8. White to move plays c5, the square shrinks to c5-f8, Black's king on h5 cannot step into it and the pawn queens. With Black to move, ...Kg5 (or ...Kg4 or ...Kg6) steps into the square and the pawn is caught.Open on the board
  • If it is the pawn's side to move, draw the square from the square the pawn will move to.
  • A pawn on its starting square can move two squares at once, so draw its square as if it already stood on the third rank (the sixth for Black).
  • The rule assumes the defending king has a clear path and the attacking king is out of the race. Pieces in the way, or the attacker's king guarding the pawn's path, change the count.

8What is an outside passed pawn?

An outside passed pawn is a passed pawn far from the other pawns, usually on the edge of the board. Its strength is that it drags the enemy king away. The defender must go and stop it, and while the king is away your own king walks into the pawns the other side left behind.

White's a-pawn is an outside passed pawn and White wins, whoever is to move. A typical line: 1.a5 Kc6 2.Ke5 Kb5 3.Kf5 Kxa5 4.Kxg5, and the g-pawn promotes. Without the a-pawn, the same position is a draw.Open on the board

The a-pawn did not promote. It did not need to. It cost Black's king three moves to take it, and in those three moves White's king took the g5 pawn and stood in front of its own. This is the main reason players value an outside passed pawn so highly when deciding whether to trade into a king and pawn ending.

9The pawn breakthrough: three against three

Sometimes no pawn is passed, but one can be created by force. The classic case is three pawns facing three, with the attacker's pawns already on the fifth rank and the kings far away. Sacrificing two pawns opens a path for the third.

White to move breaks through with 1.b6. If 1...axb6, then 2.c6 bxc6 3.a6 and the a-pawn queens; if 1...cxb6, then 2.a6 bxa6 3.c6 and the c-pawn queens. If Black ignores b6, White takes on a7 or c7 and promotes.Open on the board

The idea works because Black's king on g8 is outside the square of the pawn that gets through. Before trying a breakthrough, count: how many moves does your pawn need after the sacrifices, and how many does the enemy king need to catch it? And check the other way round too. The same breakthrough can be played against you if your pawns stand too close to the opponent's.

10How to count tempi in a pawn race

Many king and pawn endings come down to a race: both sides push a passed pawn, or one side pushes while the other king rushes to win pawns. Counting tempi means counting the moves each side needs and comparing them, rather than playing it out in your head move by move.

  1. 1Count the moves each pawn needs to promote, remembering that a pawn on its starting square can move two squares the first time.
  2. 2Add any moves the king needs first, for example to capture a pawn or step out of the way of its own pawn.
  3. 3Decide who moves first. With equal counts, the side to move promotes first.
  4. 4Look at the position after promotion. Does the new queen give check, stop the other pawn or win the other queen with a skewer? Does the other side promote with check? Queening first is not the same as winning.
  5. 5Use the rule of the square for any pawn the enemy king might reach in time.

11Common mistakes in king and pawn endgames

  • Pushing the pawn too early. The king should lead and the pawn follow, because the key squares are in front of the pawn.
  • Taking the opposition the wrong way round, so it is your king that must give way.
  • Stalemating the defending king when the pawn reaches the seventh rank.
  • Forgetting that a rook's pawn draws once the defending king reaches the corner.
  • Using up spare pawn moves you will need later to win a zugzwang.
  • Racing without counting what happens after promotion, such as a queen check that wins the other new queen.

Analysis board

Set up any position from this guide on the analysis board, play both sides and let the engine check your moves.

Frequently asked questions

Is king and pawn vs king always a win?

No. It is a win if the attacking king reaches one of the pawn's key squares with the pawn safe, or if the pawn outruns the defending king. If the defending king gets in front of the pawn and keeps the opposition, it is a draw, and a rook's pawn is drawn once the defending king reaches the corner.

Who has the opposition in chess?

When the kings face each other on a file or rank with an odd number of squares between them, the side that is not to move has the opposition. The other king must eventually step aside.

Does the rule of the square work when the pawn is on its starting square?

Yes, with one adjustment. Because a pawn can move two squares on its first move, draw the square as if the pawn were already on the third rank (the sixth for a black pawn).

Why is an outside passed pawn so strong?

Because the defending king has to go and stop it, far from the other pawns. While it does, the attacking king wins the pawns it left behind, even if the outside pawn itself is lost.

What are key squares in chess?

The squares that win king and pawn against king: if the attacking king stands on one of them with the pawn safe, the pawn promotes whoever is to move. For a pawn on its second to fourth rank they are the three squares two ranks in front of it.

How do you win a king and pawn endgame with a rook pawn?

Keep the defending king out of the corner in front of the pawn. Usually that means getting your own king to b7 or b8 (g7 or g8 for an h-pawn) first. If the defending king reaches the corner, it is a draw.