King and pawn vs king
The opposition, key squares and the rook pawn: when a single pawn wins, and when it only draws.
The ideas
Every pawn has key squares: if the attacking king reaches one, the pawn promotes whatever the defender does. For a pawn on its fifth rank or below, they are the three squares two ranks in front of it.
The opposition decides who reaches them. When the kings face each other with one square between, the side that does not have to move holds the opposition, and the other king must give way.
The defender's drawing method: stay in front of the pawn, take the opposition whenever you can, and when the pawn checks you, step straight back. A rook pawn is a draw whenever the defending king reaches the corner.
Step through a position with its notes, then press Play it out and try it yourself against the engine, which defends (or attacks) as well as it can.
The positions
King in front: a win
With the king on the sixth rank in front of its pawn, White wins whoever is to move.
1.Kd6 — The king steps aside and keeps guarding the squares in front of the pawn. 1...Kf8 2.e6 — Now the pawn advances with the king beside it. 2...Kg8 3.e7 Kf7 4.Kd7 — Guards e8: nothing can stop the pawn. 4...Kf6 5.e8=Q
The defender's opposition
Black holds the draw by keeping the opposition all the way back.
1...Ke5 — Take the opposition: White's king can't get past to a key square (d4, e4, f4). 2.Kd3 Kd5 — Mirror every king move. 3.e4+ Ke5 4.Ke3 Ke6 — When the pawn checks, step straight back, so you can take the opposition again. 5.Kf4 Kf6 6.e5+ Ke6 7.Ke4 Ke7 8.Kf5 Kf7 9.e6+ Ke7 10.Ke5 Ke8 — Straight back once more. 11.Kf6 Kf8 12.e7+ Ke8 13.Ke6 — Stalemate: a draw.
The rook pawn
A pawn on the edge can't win once the defending king reaches the corner.
1...Kg8 — Just stay in the corner. 2.h6 Kh8 3.h7 — Stalemate. The white king can't drive Black out without stalemating it.
See the other endgames, or look up any three-piece position in the tablebase.