Two kings can never touch. When they face each other, the squares between them become a wall, and someone has to step aside. That moment decides many pawn endings.
Here you will learn the three forms of opposition, how to take it, how to turn it into a way into the enemy camp, and when you can safely ignore it.
What the opposition means
In the direct opposition, the kings stand on the same file or rank with exactly one square between them. The side that does not have to move holds the opposition. If the side to move has no other useful move, its king must give way.
Squares between the kings that both would like to use are covered. So the mover can only step sideways or backward, and the other king then replies knowing where it went.
To take the opposition, find a legal king move that ends on a line with the enemy king, leaving an odd number of empty squares between them. After your move it is the other side's turn, so you are the one who holds it.
8/3k4/8/3K4/3P4/8/8/8 w - - 0 18/3k4/8/3K4/3P4/8/8/8 b - - 0 1Look at what happens when Black moves first. After 1...Kc7 White steps the other way with 2.Ke6. After 1...Ke7 White answers 2.Kc6. This sidestep past the defender is what the opposition gives you: your king gets through.
With White to move, the same idea fails. After 1.Kc5 Kc7 Black simply faces your king again, and the position stays level.
Diagonal opposition
The same logic works on a diagonal. If the kings stand on one diagonal with one square between them, the player to move is at a disadvantage. With nothing else in the way, the other king can answer any king move by taking the opposition again.
8/8/8/4k3/8/8/2KP4/8 w - - 0 1After 1.Kc3 the kings on c3 and e5 share a diagonal with one square between them. If Black tries 1...Kd5, White switches to the direct form with 2.Kd3, and Black has to give way again. Notice that the pawn never moves.
Distant opposition
Kings do not need to be close. With three or five squares between them on one line, the same rule applies. You prepare the direct opposition before the kings even meet.
8/2k5/8/8/8/3KP3/8/8 b - - 0 1After 1...Kd7, the two natural advances can be matched. If 2.Kd4, Black plays 2...Kd6. If 2.Ke4, then 2...Ke6. Black is mirroring along the line until the two kings are one square apart with White to move.
You can read this from far away. Count the empty squares between the kings on their shared line. If the number is odd and your opponent is to move, you are well placed. If it is even, look for a king move that makes it odd.
Count it out on the last diagram
Walk through the check before and after the move.
- Before the move, the kings on c7 and d3 share no file, rank or diagonal.
- After Kd7 both kings are on the d file.
- The squares d4, d5 and d6 are empty, which makes three, an odd number.
- It is now White's turn, so Black holds the distant opposition.
| Form | Kings stand | Squares between |
|---|---|---|
| Direct | Same file or rank | One |
| Diagonal | Same diagonal | One, three or five |
| Distant | Same file or rank | Three or five |
Using it to get in
The opposition is a tool for entering, not a goal in itself. Here two pawns on the b file block each other, and the white king wants to reach the black one.
8/4k3/8/1p6/1P1K4/8/8/8 w - - 0 1The way in has two parts. First make the other king give way, then walk around it toward your target. Here the only winning move is 1.Kc5. It does two jobs at once: Black cannot come to d6, and the pawn on b5 is hit. After 1...Kd7 2.Kxb5 Kc7 3.Ka6 the white king keeps the lead and the extra pawn wins.
To know which squares matter once you are through, study the key squares of a pawn. The opposition is often just the way you reach them.
When the opposition does not matter
8/8/4k3/8/4K3/8/4P3/8 w - - 0 1White is to move, so Black has the opposition. It does not help. With 1.e3 White uses a spare pawn move, and now Black is the one who must step. If 1...Kd6, then 2.Kf5 gets around.
It also stops mattering when your king is already deep enough, for instance on the sixth rank in front of a safe pawn on the fifth that is not on the a or h file. See leading with the king for those cases. And if your king cannot reach anything useful after the other one steps aside, holding the opposition wins nothing.
So treat it as one question inside a bigger one: where is my king going? Name the pawn or the square first. Then check whether the opposition helps you get there.
Before you rely on the opposition
Answer these first.
- Do I have a spare pawn move that could change who is to move?
- Does my opponent have one?
- If the other king gives way, which square do I want to reach?
- Can the enemy king reach a pawn of mine in the meantime?
Common mistakes with the opposition
- Reading it the wrong way round. The player who has to move is the one who does not hold it.
- Using up the spare pawn move early. Keep it in reserve until it changes the turn in your favor.
- Stopping after you take it. Once the defender steps aside, go past on the other side. Standing still gains nothing.
- Using color as the only test. Kings in opposition stand on squares of the same color, but that alone does not create it.
When no pawn move is available to change the turn, triangulation with the king may hand the move over. Before you head into any pawn ending from a middlegame, check the last swap.
Set up the first two diagrams in the Board builder and switch the side to move between them. Save both with a note, so you can see how one detail changes the verdict.
Common questions
Who has the opposition, the player to move or the other one?
The other one. If the kings are in opposition and it is your turn, your opponent holds it.
Does opposition always win a king and pawn ending?
No. It decides many positions, but a spare pawn move, a king already far advanced or the shape of the pawns can make it irrelevant.
How do I spot distant opposition quickly?
Look for kings on one file or rank with three or five empty squares between them. They will be on squares of the same color.
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.
- FIDE Laws of Chess taking effect from 1 January 2023. International Chess Federation (FIDE) Handbook. Rules of movement (Article 3), end of the game (Article 5), recording moves (Article 8), drawn positions (Article 9) and algebraic notation (Appendix C). Consulted on 25 November 2026.