Skip to content
Chess

Castling

Castling moves your king and a rook in one turn. It puts the king in a safer place and brings the rook into the game.

How to castle

The king moves two squares toward a rook. The rook then jumps over the king and lands next to it. You move the king first.

a8b7c6d5e4f3g2h1
White can castle kingside. The king goes from e1 to g1 and the rook from h1 to f1.

Castling on the king's side is also called short castling. Castling on the queen's side is called long castling.

a8b7c6d5e4f3g2h1
Queenside castling: the king goes from e1 to c1 and the rook from a1 to d1.

When you cannot castle

  • The king has moved before, or that rook has moved before. Castling is gone for good on that side.
  • There is a piece between the king and the rook, yours or your opponent's.
  • Your king is in check right now.
  • The king would pass over a square that is attacked, or land on one.
a8b7c6d5e4f3g2h1
The rook on f3 attacks f1. White cannot castle kingside, because the king would pass over f1. Queenside is still allowed.

Notice two things that do not stop you. You may castle if your rook is attacked. You may castle if a square the rook crosses is attacked, as long as the king's squares are safe.

Why castle

  • Your king gets behind a wall of pawns, away from the center.
  • Your rook leaves the corner and joins the game.
  • You do it in one move, so you save time.

In most games, castle in the first ten moves. A king in the center is open to attacks, and it blocks your rooks.

Questions

How do you castle in chess?
Move your king two squares toward a rook, then move that rook to the square the king crossed. It counts as one move.
Can you castle out of check?
No. You cannot castle while your king is in check, and you cannot pass over or land on a square that is attacked.
Can you castle if the rook is attacked?
Yes. Only the king's squares matter. The rook can be attacked, and it can cross an attacked square on the queenside.
Can you castle after moving the rook?
Not with that rook. If the rook has moved, even back to its square, castling on that side is gone. The other side may still be open.

Train it in the trainer

The trainer gives you rated puzzles in bullet, blitz and rapid, near your level. It is free, and signing in is optional.

Start solving puzzles

Keep learning

  • Chess rulesEn passant, stalemate, castling and notation, with diagrams.
  • Chess notationHow squares and moves are written, with a board to follow.
  • En passantThe special pawn capture, when it is allowed and when not.
  • StalemateNo legal move and no check: the game is a draw.