ChessHutGet the app

← All articles

Endgames

The opposition in chess: how to win (and draw) king and pawn endings

By ChessHut · 2026-12-06

King and pawn against king is the ending that every other ending can turn into. Trade off the last pieces with an extra pawn and you're here. Whether that pawn becomes a queen or the game is drawn usually comes down to one idea: the opposition.

What is the opposition?

Two kings can never stand next to each other. When they face each other on the same file (or rank) with one square between them, neither can step forward. Whoever has to move must give way, so the player who is not to move "has the opposition".

The kings on e4 and e6 face each other. Black is to move, so White has the opposition: the black king must step aside, and the white king gets past.

In this position the side to move decides everything. We checked both cases with an endgame tablebase:

  • Black to move: White wins. The black king has to step to one side, and the white king walks round it to the other side.
  • White to move: draw. Now White has to give way, and Black keeps the king in front of the pawn.
Black to move: White outflanks and wins
Starting position
1... 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.

After 1...Kd6 White goes the other way with 2.Kf5. When Black comes back with 2...Ke7, 3.Ke5 takes the opposition again, and Black has to give way once more. Notice that White's pawn stays at home on e3 until the king has cleared the way. A pawn kept back can still make a waiting move later; a pawn pushed too early can't go back.

The key squares

Instead of counting moves, strong players think about key squares. For a pawn that hasn't crossed the middle of the board, the key squares are the three squares two ranks in front of it. For a pawn on e4 they are d6, e6 and f6.

If your king reaches a key square, and the enemy king can't capture the pawn straight away, you win, whoever is to move.

We checked this for the pawn on e4 in every possible position with a tablebase. That turns a hard calculation into a simple question: can my king get to a key square?

White to move wins by stepping onto a key square: Kd6, Ke6 or Kf6. With Black to move, only 1...Ke7! draws, taking the opposition.
White to move: 1.Ke6 reaches a key square
Starting position
1. 2. 3. 4. 5. 6.

With White's king on d7, nothing can stop the pawn. Now the same position with Black to move:

Black to move: 1...Ke7 takes the opposition and draws
Starting position
1... 2. 3. 4. 5. 6. 7.

Every time White's king moves, Black's king steps in front of it again. At the end, 7.Ke6 leaves Black with no legal move: stalemate. Any other first move by Black (1...Kd7, 1...Kf7, 1...Kd8 or 1...Kf8) lets the white king reach a key square and loses.

How to defend without the pawn

If you're the side with the lone king, your aim is to stay in front of the pawn and take the opposition whenever the enemy king comes forward.

  • Retreat straight back, not to the side. When the pawn advances, step back to the square directly in front of it.
  • Take the opposition at the last moment. When the white king reaches the sixth rank in front of the pawn, it's too late; keep the king out of there.
  • Look for stalemate. In the drawn line above, the game ends in stalemate with the pawn on the seventh rank. That's the defender's goal.

Two exceptions

  • Rook's pawns (on the a- or h-file) are much harder to win. If the defending king gets into the corner in front of the pawn, it's a draw even when the attacking king is close, because the attacker keeps running into stalemate.
  • King on the sixth rank in front of its pawn wins, whoever is to move, as long as the pawn isn't a rook's pawn. That's just the key squares rule again: the king is already standing on one.
A rook's pawn: draw whoever is to move. After 1.h7 Black has no legal move (stalemate), and other white moves can't drive the king out of the corner.

A quick checklist for king and pawn endings

  1. Can my king reach a key square? If yes, go there before pushing the pawn.
  2. If the kings face each other, who is to move? The side not to move has the opposition.
  3. Can I make a waiting move with the pawn to hand the move to my opponent? Only while the pawn is far enough back.
  4. Defending: stay in front of the pawn, step straight back, and look for stalemate.

Where to practise

Frequently asked questions

What does "having the opposition" mean?

When the two kings face each other with one square between them, the player who is not to move has the opposition. The other player has to move their king aside, which lets the opponent's king through.

Is king and pawn against king always a win?

No. Many positions are draws, especially when the defending king is in front of the pawn and can take the opposition, and almost always with a rook's pawn when the defending king reaches the corner. It's a win when the attacking king reaches a key square in front of the pawn.

What is distant opposition?

The same idea from further away: the kings stand on the same file with three or five squares between them. The side not to move again has the opposition, and as the kings come closer it becomes the normal opposition. It's useful in longer king races; learn the normal opposition first.

Why does pushing the pawn too early lose the win?

Every pawn move is permanent. While the pawn is far back, it can make a waiting move to hand the opposition back to your opponent. Push it too early and you lose that spare move, and the defending king can get in front of it.

Put it into practice offline in ChessHut

Play eight computer rivals from beginner to strong, solve puzzles by theme, and follow short lessons from the rules to about 1500. Works offline, no account needed.