← StudyX Devlog

The Opposition in King and Pawn Endgames

Hiroki ObaraHiroki Obara · DeveloperChess365How-To
The Opposition in King and Pawn Endgames

A king and pawn against a king leaves three pieces on the board. Even so, moving a king by one square, or handing over the move, can turn a win into a draw.

Use Your King in the Endgame introduced the opposition as two kings facing each other with one square between them. This post picks up from there: how to count the opposition when the kings are far apart, and what the opposition is actually for. All positions here are made up as examples.

Three kinds of opposition

Opposition (chess) on Wikipedia describes three kinds.

  • Direct opposition: the kings stand on the same rank or file with one square between them.
  • Distant opposition: the same rank or file, with more than one square between them.
  • Diagonal opposition: the kings face each other along a diagonal.

In direct opposition, the side that does not have to move has the opposition. For distant opposition the article gives a counting rule: if there is an odd number of squares between the kings, the player not on move has it. One, three or five squares between them, and the side that just moved holds the opposition.

The same article says the opposition is a means to an end. The end is getting your king onto a key square, which comes up below.

Distant opposition

Position 1: White king e1, pawn d2. Black king e8. White to move.

The kings are on the e-file with six squares between them. White plays:

  1. Ke2 Ke7
  2. Ke3 Ke6
  3. Ke4

After 1. Ke2 there are five squares between the kings and Black is to move, so White has the distant opposition. As the black king comes closer, White keeps facing it on the same file. On move 3 the white king reaches e4, one of the key squares of the d2 pawn.

Only 1. Ke2 and 1. Kf2 win. 1. Kd1, 1. Kf1 and both pawn moves, d3 and d4, draw.

Reaching a key square does not end the need for accuracy. After 3…Kd6, the only winning move is 4. Kd4, taking the direct opposition again. Trying to go round with 4. Kf5 draws.

With Black to move in Position 1, it is a draw. 1…Ke7 leaves five squares between the kings with White to move, so now Black has the distant opposition. If 2. Ke2, then 2…Ke6 takes it again. 1…Kd8 or 1…Kf8 would lose.

Key squares

Key square on Wikipedia defines a key square as one where, if your king can occupy it, you can force some gain, such as promoting a pawn. In king and pawn against king, the key squares depend only on where the pawn is.

  • Pawn on the second, third or fourth rank: the square two squares in front of the pawn and the squares on either side, three in all.
  • Pawn on the fifth or sixth rank: the squares one and two squares in front of the pawn and the squares on either side of each, six in all.

In Position 1 the pawn is on d2, so the key squares are c4, d4 and e4.

The key squares are in front of the pawn. King and pawn versus king endgame says that once the white king occupies a key square, White can force promotion wherever the black king is and whichever side is to move, as long as the pawn cannot be taken at once. There is one exception with a knight pawn: the black king in the corner, Black to move, and the position is stalemate.

The opposition is a means

Position 2: White king e3, pawn d3. Black king f5. White to move.

The key squares of the d3 pawn are c5, d5 and e5.

  1. Kf3 takes the direct opposition on the f-file, and it only draws. Black answers 1…Ke5, getting to the key square e5 first, and after 2. Ke3 Kd5 the black king stands in front of the pawn. After 1. Kf3, 1…Ke5 is Black’s only drawing move.

The only winning move is 1. Kd4. The black king cannot cover both c5 and d5. After 1…Ke6, for example, 2. Kc5 is on a key square. Whatever Black plays, White’s next move reaches c5, d5 or e5 and wins.

The move that takes the opposition and the move that heads for a key square are not always the same. Here 1. Kd4 wins and 1. Kf3 draws.

Two out of three

King and pawn versus king endgame also gives a rule for pawns other than rook pawns: White wins if at least two of these hold.

  1. The white king is in front of the pawn.
  2. White has the opposition.
  3. The white king is on the sixth rank.

In Position 1 after 4. Kd4, the white king is in front of the d2 pawn and faces the black king on d6 with Black to move. Conditions 1 and 2 hold.

Position 4 in the previous post (white king e6, pawn e5, black king e8) meets conditions 1 and 3. White wins with either side to move.

The rook pawn exception

None of this works for a pawn on the a- or h-file. King and pawn versus king endgame explains that once the defending king gets anywhere in front of a rook pawn, it cannot be driven off the file, and the pawn cannot queen.

Position 3: White king f6, pawn g5. Black king g8. White to move.

  1. Kg6 Kh8

  2. Kf7 Kh7

  3. g6+ Kh8

  4. g7+ Kh7

  5. g8=Q+

  6. Kg6 takes the direct opposition and is the only winning first move. If Black goes the other way with 1…Kf8, then 2. Kh7 and the g-pawn runs. White also wins with Black to move.

Position 4: Shift Position 3 one file to the right. White king g6, pawn h5. Black king h8.

A draw with either side to move. With White to move, one line is:

  1. h6 Kg8

  2. h7+ Kh8

  3. Kh6

  4. Kh6 is stalemate. Any other king move lets Black take the pawn on h7. The black king just shuttles between h8 and g8, and the white king cannot push it aside.

Positions 3 and 4 have the same layout. Only the file is different.

An order to learn it in

There is no fixed order. One way is to follow direct opposition from the previous post with distant opposition, key squares, the two-of-three rule, and then the rook pawn exception. As Position 1 shows, distant opposition turns into direct opposition, and that leads to a key square.

Practising with Chess365

Chess365 is a checkmate puzzle app with 1,000 puzzles each of mate in 2, 3, 4 and 5. You always play White, you can make any legal move, king moves included, and Black answers with the most stubborn defence. If the line ends without mate, the app tells you the king got away and you start again from the beginning.

A hint lights up the piece to move and its destination, and you play the move yourself. After solving, “Review moves” lets you step back and forward through the moves, so you can see which squares the white king was covering.

All the puzzles are free, and a one-time “Remove Ads” purchase removes the ads. How to start with mate puzzles is in Chess checkmate puzzles for beginners, and how to use the app is in Getting Started with Chess365.

Download on the App Store Get it on Google Play

Chess365A chess mate puzzle every day