How to castle in chess

Castling is one move that relocates both the king and a rook. It can put the king behind pawns and bring the rook closer to the centre.

White can castle on either side. The marked squares show the king’s start, crossings and destinations.
After O-O, the white king is on g1 and the rook is on f1.

Kingside castling

White moves the king from e1 to g1 and the rook from h1 to f1. Black does the same on rank 8. The move is written O-O.

Queenside castling

White moves the king from e1 to c1 and the rook from a1 to d1. Black mirrors this on rank 8. The move is written O-O-O. On White’s side, b1 must be empty too, even though the king never crosses it.

Check the three conditions

The king and that rook must never have moved. Every square between them must be empty. The king’s starting square, the square it crosses and its destination must all be free of enemy attacks. An attack on the rook alone does not prevent castling.

Decide whether it helps

Look at the pawn cover and which files the opponent has opened. Castling into an attack can be worse than waiting a turn. If you plan to castle kingside, moving your knight and bishop early clears the way.

Quick quiz Your king moved and returned to e1. Can you still castle?

No. A king move permanently removes both castling rights.

FIDE Laws of Chess

Play the right move

Castle kingside as White.

Play your first game with Léon

Try a free game against Stockfish with Léon as your coach. Play once without an account, then sign in with Google for 10 more free games.

Play a free game