Chess mastery · CHESS-P1-017
How Castling Works
Learn every condition for legal king-side and queen-side castling.
A complete castling example
White has both castling rights in this example. Kingside castling moves the king e1–g1 and rook h1–f1 in one move. Queenside castling instead moves the king e1–c1 and rook a1–d1.
FEN: r3k2r/8/8/8/8/8/8/R3K2R w KQkq - 0 1What the position assumes
Both kings and all four rooks are on their original squares, the castling rights are retained, and the paths are empty. No black piece attacks e1, f1 or g1, so White may castle kingside. For queenside castling, e1, d1 and c1 must be safe, and b1 must also be empty.
A diagram alone cannot prove a king or rook has never moved. This example explicitly supplies those rights. Returning a moved king or rook to its original square never restores the relevant right.
Apply the same safety test to legal king moves.
Connect castling with opening development.
01 · Understand
The idea
The king and chosen rook must not have moved, squares between them must be empty, and the king may not start in, cross, or finish in check.
Worked example
White castles king-side by moving the king e1-g1; the rook then moves h1-f1.
02 · Think
A reliable method
- 1Read the whole position and check king safety.
- 2Identify the rule or pattern before choosing a move.
- 3List forcing candidates and the opponent's strongest response.
- 4Verify the resulting position, then play.
Watch out
Common mistakes
- Castling out of check
- Castling through an attacked square
Keep learning
Continue your chess journey
Quick answers
Questions learners ask
What is the main rule?
The king and chosen rook must not have moved, squares between them must be empty, and the king may not start in, cross, or finish in check.
How should I practise this?
Study the example, then open the interactive Training Hall and solve positions without moving until you have checked the opponent's strongest reply.
Can you castle while your king is in check?
No. Your king must not be in check before castling, and it must not cross or finish on an attacked square.
Can you castle after moving the king or rook back?
No. The king and the chosen rook must never have moved, even if they later return to their starting squares.
Where do the pieces finish when White castles king-side?
White's king moves from e1 to g1, and the rook moves from h1 to f1. The squares between them must be empty and the king's path must be safe.
