Chess Puzzle Practice

Castling rules

Four conditions. Two of them are the ones students forget.

Free · No account needed · Updated 2026-09-16

Castling moves the king two squares toward a rook, and the rook hops over to the other side. Short castling (O-O) goes toward the h-file rook; long castling (O-O-O) goes toward the a-file rook.

You cannot castle if…

  1. The king has already moved — even if it moved and came back
  2. That rook has already moved — the other rook may still be available
  3. Any square between the king and rook is occupied
  4. The king is in check, passes through an attacked square, or lands on one

What is allowed, and surprises people

Worked examples

Puzzle 1 · White to move

Which move below is possible for White?

Long castling is legal: the squares between King and Rook are empty, the King is not in check, and it does not cross or land on an attacked square. O-O is illegal because a piece is standing between the King and that Rook. Neither listed capture is possible: no White piece can reach those Black pieces this move.

Puzzle 2 · White to move

Which move below is possible for White?

Long castling is legal: the squares between King and Rook are empty, the King is not in check, and it does not cross or land on an attacked square. O-O is illegal because a piece is standing between the King and that Rook. Neither listed capture is possible: no White piece can reach those Black pieces this move.

Puzzle 3 · White to move

Which move below is possible for White?

Short castling is legal: the squares between King and Rook are empty, the King is not in check, and it does not cross or land on an attacked square. O-O-O is illegal because a piece is standing between the King and that Rook. Neither listed capture is possible: no White piece can reach those Black pieces this move.

Common questions

When can you not castle in chess?

If the king or that rook has already moved, if a piece is between them, or if the king is in check, would pass through an attacked square, or would land on one.

Can you castle if the rook is attacked?

Yes. The restriction on attacked squares applies only to the king's starting, passing and landing squares — not to the rook.

Practice this for free

Work through it with instant feedback, then take a timed mock meet in the real 30-minute format.

Open the practice app

Keep going

En passantThe other rule students have never seenPawn promotionAnd when a queen is the wrong choiceWhat's on the testEvery question type, counted