Opposition
Opposition is what decides who gives ground first when two kings face each other with nothing else to do. It isn't an endgame in its own right the way king and pawn versus king is — it's a tool you use inside that endgame, and inside plenty of others, to work out which king is forced to step back and hand over territory it can never get back.
Direct opposition, defined precisely
Two kings are in direct opposition when they stand on the same rank, file, or diagonal with exactly one square between them. Whoever is NOT to move in that position has the opposition — and it's a real advantage, because the side to move has to break contact, stepping to the side, while the opponent's king simply walks forward into the square that was just given up.
Starting position. Opposition — winning a square for free.
Black is forced to retreat because it's Black's move in direct opposition — the king that doesn't have to move wins the square.
Why the square matters more than the standoff itself
The opposition isn't valuable for its own sake — nobody cares which square a king stands on in isolation. It matters because of what it wins: a step closer to a pawn that needs escorting, or the key square that decides whether that pawn queens at all. Win the opposition at the right moment and the pawn behind you gets a clear path; win it at the wrong moment, or lose it, and the same pawn can be held forever.
Counting squares before you calculate
You don't need to work out a full line to know who has the opposition — you can count it. If the kings are on the same file with an odd number of squares between them, the side to move does NOT have the opposition (as in the example above, where one square separates them). This lets you check the fact in seconds, before spending any real calculation on the position.
A quick worked example
Picture kings on the same file, five squares apart, with White to move. Five is odd, so White does not have the opposition — the count says so before a single line is calculated. As the kings step toward each other, that same odd gap keeps holding, right down to the moment they stand one square apart with White still to move, which is the losing side of direct opposition. Reverse who's to move at the start and the whole outcome flips, even though every square on the board looks identical.
When you don't have it naturally
Plenty of positions arrive with the wrong side to move — the kings are heading for a confrontation, but the parity is against you. That's what the companion technique on this site, triangulation, exists to fix: a deliberate detour that burns exactly one tempo so the opposition lands on the right side when the kings finally meet.
Distant opposition works the same way
Kings don't need to be adjacent for this to matter — two kings on the same file with an odd number of squares between them are in distant opposition, and the same side-to-move logic applies. As the kings approach each other, it resolves into direct opposition at the critical moment.
Opposition only matters because of what's behind the kings — see key squares for the specific squares a pawn's escort needs to reach, and triangulation for what to do when the parity starts out against you.
Frequently Asked Questions
Does opposition apply to every king and pawn endgame?
It applies whenever two kings are contesting the same squares with a pawn's fate on the line, which is most king and pawn endgames — but not all of them. Some positions are decided outright by the rule of the square or by a pawn racing to promotion long before the kings ever get close enough for opposition to matter.
What's the difference between opposition and just having a better king position?
A king can be more active without either side having the opposition — opposition is specifically about the parity of squares between two kings facing off on the same line, with the move-count deciding who has to break first. A generally active king matters too, but it's a separate idea.
Can opposition apply diagonally, not just on a rank or file?
Yes — kings facing each other on a diagonal with one square between them are in direct opposition exactly the same way as on a rank or file. It comes up less often in practice simply because kings usually approach each other along ranks and files first.