Opposition in chess and the rule of the square
Ferzika Editorial Team · updated · 8 min

Opposition in chess is when the two kings stand on the same line with one square between them and it is the opponent's turn to move, so they have to give way. The rule of the square answers a different question: can a king catch a passed pawn? Draw a square whose side runs from the pawn to its promotion square. If the king can step into that square, it catches the pawn.
- The side that does NOT have to move has the opposition: the kings face each other with one square between.
- A king on the sixth rank in front of its pawn wins in every case, unless it is a rook pawn.
- A pawn on the 2nd to 4th ranks has three key squares: one rank ahead of the pawn's front square, and its two neighbors.
- A rook pawn often gives only a draw, even with the king next to it.
- The rule of the square counts a race in a second, but it ignores obstacles: check whether other pieces and pawns interfere.
What is the opposition in chess?
King and pawn against king is one of the most useful endings for a beginner. A king cannot step onto squares attacked by the enemy king. So two kings on the same line with one square between them block each other, and the one who has to move must give way.
| Type of opposition | How the kings stand | Example |
|---|---|---|
| Direct | On the same file, one square between them | e4 and e6 |
| Distant | On the same file, an odd number of squares between them, more than one | e2 and e6 |
In both cases the opposition belongs to the side that does not have to move right now. A distant opposition becomes a direct one as the kings approach, so you think about it in advance.
King and pawn vs. king: when it is a win and when a draw
The same position, but whose move it is decides everything. White is pushing the e4 pawn, and the kings stand on e5 and e7.
1. 2. 3. 4. 5. 6.
1... 2. 3. 4. 5. 6.
Key squares: where the king has to get to
The opposition is a means, not a goal. The goal is to bring your king to the key squares. As the endgame theorist Yuri Averbakh wrote, the opposition helps you reach such a square. For a pawn on the second, third or fourth rank there are three key squares: two ranks ahead of the pawn, directly on its file and on either side.
| Where the pawn is | Which key squares |
|---|---|
| On the 2nd-4th ranks | Three squares, one rank beyond the square in front of the pawn |
| On the 5th-6th ranks | Six squares: three on the rank in front and three on the next one |
| On the 7th rank | The squares next to the pawn on the 7th and 8th ranks |
| A rook pawn | Two squares: for the h-pawn, g7 and g8 |
1. 2. 3. 4. 5.
Pawn endings decide games in which nothing seems to be happening. Import your games by username, and the review will show which king moves in endgames cost you points.
A spare pawn move: how to win the opposition
When the pawn is still far from promotion, White has a spare move: a small pawn step passes the turn to Black. This is one of the most important uses of the opposition.
Show the answer
e3
1.e3! The pawn takes a short step and Black has to move: after 1...Kd6 2.Kf5 the king lets White forward. The engine also counts 1.Kd4 and 1.Kf4 as winning, but retreating the king to the third rank already throws the win away.
Show the answer
Ke4
1.Ke4! We take the opposition: kings on e4 and e6, and Black to move. Any other move, including 1.e4, lets the win slip and leads to a draw.
The rook pawn: when nothing helps
With an edge pawn everything is different. If the enemy king has reached the corner or next to it, it cannot be driven out: on the edge of the board White's king simply has no way around. Stalemate arises on its own.
1. 2. 3.
The rule of the square: how to count a race
Instead of counting moves, build a square in your head. Its side runs from the pawn to the promotion square, and the square extends toward the king with the same length. If the king can step inside the square on its move, it will catch the pawn. If the pawn moves first, the square at once gets smaller.
- 1Side: from the pawn to the promotion squareThe pawn on a5 runs to a1: four squares
- 2A square toward the kingOf the same length: a5-e5-e1-a1
- 3Can the king enter on its move?If yes, it catches the pawn
- 4If the pawn moves firstThe square at once gets smaller
1. 2. 3. 4.
1... 2. 3. 4.
A pawn on its starting rank can go two squares at once, so for it count the square from the next rank. The rule also ignores other pieces and pawns in the way.
The Reti study: when a king chases two hares
The rule of the square easily shows that the white king cannot catch the h5 pawn. Richard Reti's study (1921) shows that a king on the diagonal does two jobs at once: it heads for the h-pawn and supports its own c-pawn. This is a classic worth playing through at least once.
1. 2. 3. 4. 5. 6. 7.
How to practice this
- Do the lessons opposition and rule of the square and the topic king and pawn in Ferzika.
- Play the positions above against the engine for both sides until you can win and hold them without hints.
- Then move on to rook endgames and pawn races.
A general map of the subject is in the article on chess endgame basics, and the word "zugzwang", which often comes up next to the opposition, is explained here.
FAQ
What is the opposition in plain words?
The kings stand on the same line with one square between them. The player to move must give way. So the opposition belongs to the side that does not have to move right now. In pawn endings it often decides the game.
How does the rule of the square work?
Build a square whose side runs from the pawn to its promotion square. If the king can step inside it on its move, it catches the pawn. If not, the pawn runs through. Before counting, check whose move it is and whether anything is in the way.
Does king and pawn always beat a lone king?
No. Often it is a draw, if the defending king holds the opposition and gets in front of the pawn. The win comes when the attacking king reaches the key squares.
Why does a rook pawn often lead to a draw?
The defending king goes to the corner and cannot be driven out: there is no way around on the edge of the board. So even with the king next to it, a pawn on the a- or h-file often gives only a draw.



