Szachmaty

Castling: when it can and cannot be done

Castling is the only move in chess in which two pieces move at once: the king moves two squares toward the rook, and the rook jumps to the square right behind it. It serves two purposes at the same time: it tucks the king behind the pawns and brings the rook into the game.

In short: castling is legal when neither the king nor the chosen rook has moved yet, the squares between them are empty, and the king is not in check, does not pass through an attacked square and does not land on an attacked square. Kingside castling (O-O) goes toward the h-file rook, queenside castling (O-O-O) toward the a-file rook. Try all the scenarios on the board below.

Try it live

The last two scenarios are questions: is castling allowed in this position? Click the king and see which squares it can go to.

When is castling legal?

  1. The king has not moved yet: not once in the whole game. Returning to the starting square restores nothing (check the "Right lost" preset).
  2. The chosen rook has not moved yet: moving one rook does not take away the right to castle with the other.
  3. The squares between the king and the rook are empty.
  4. The king is not in check: you may not "escape" from a check by castling.
  5. The king does not pass through an attacked square or land on one: none of the squares on the king's path may be attacked. Note: this condition applies to the king, not the rook. The rook may pass through an attacked square.

Kingside or queenside castling: which to choose?

Kingside castling (O-O) is quicker to prepare: you only need to develop two pieces. It is also usually safer, because the king lands behind untouched pawns. Queenside castling (O-O-O) requires developing three pieces, but it puts the rook on the central d-file right away and often signals sharp play with attacks on opposite wings. A good practical rule for beginners: castle short and early, usually within the first ten moves.

Common doubts

Why is it worth castling early?

A king in the center is the most common cause of quick losses for beginners: open lines in the middle of the board lead straight to it, and the rooks do not cooperate. That is exactly why the "forgotten castling" is on the list of the most common mistakes in the guide how to play chess. The training mode of playing chess against the computer will mercilessly punish delay.

Castling is one of three special rules: the others are en passant and pawn promotion. You will find all of them, with the complete set of rules, on the page of chess rules.

King Practice castling in the course, free and without an account

The course works offline after the first online visit on this device. Installing the app is not required.