How the king moves in chess
The king moves one square in any direction but may never step into an attack. Here are the moves, captures, check and the question of what happens when the king reaches the far edge.
The king moves one square in any direction: forward, back, sideways or diagonally. It captures the same way, but only unprotected pieces, and it may never step onto an attacked square. The king decides the game: the goal in chess online is to checkmate it. The moves of every piece are in the guide on how each chess piece moves.
How does the king move in chess?
The number of moves depends on where the king stands:
| Where the king stands | Squares available |
|---|---|
| In the centre (d4) | 8 |
| On an edge (a4) | 5 |
| In a corner (a1) | 3 |
The king is the most important piece but not the strongest: it moves slowly. It is never actually captured: when it is attacked and cannot escape, the game ends in checkmate.
Which squares are forbidden to the king?
The king cannot step onto a square that an enemy piece attacks. In the diagram the black rook on e8 covers the whole e-file, so the white king on d4 cannot go to e3, e4 or e5.
The same rule applies to two kings. They can never stand next to each other, because each king attacks the squares around it. When the kings are one square apart, the empty square between them is closed to both.
How does the king capture?
The king takes any enemy piece on an adjacent square if nothing protects it. It lands on that square and the piece leaves the board. If the piece is protected, the king cannot take it, because it would land on an attacked square.
In the diagram the knight on d5 is undefended and the king takes it. With a black pawn on c6 or e6, Kxd5 would be illegal.
What do you do when the king is in check?
Check means the king is attacked. There are three ways out: move away from the line of attack, block the line with a piece or capture the attacker. More in how to defend against check if you want the details.
Here the queen on e8 checks the king on e1 along the file. There is nothing to block with and nothing to capture her, so the king steps to d1, f1, d2 or f2. If none of that worked, it would be checkmate.
What happens if the king reaches the far edge?
Nothing. The king does not promote like a pawn and gets no reward for reaching the last rank. In checkers a man becomes a king at the far edge, but chess has no such rule for the king. On the edge it is simply less protected, so early in the game players hide it by castling: see the castling rules.
Which pieces work with the king?
The king and the queen move in the same directions, but the queen goes any distance: how the queen moves in chess. A rook and a king can mate on the edge, so it pays to know how the rook moves in chess.
Frequently asked questions
How does the king move in chess?
One square in any direction: along files, ranks and diagonals. It cannot step onto an attacked square.
How does the king capture?
It takes any enemy piece on an adjacent square if no other piece protects it. A protected piece cannot be captured.
What happens if the king reaches the end of the board?
Nothing special. The king does not promote and gets no bonus. The promotion rule applies only to pawns.
Can two kings stand next to each other?
No. Each king attacks the adjacent squares, so there is always at least one empty square between them.
Can the king be captured?
No. Kings are never taken: if the king is in check with no escape, that is checkmate and the game ends.