Can you castle out of check in chess?
No. You can’t castle while your king is in check, or if it would cross or land on an attacked square. An attacked rook, however, doesn’t stop you castling.
Castling is only legal when the king is safe for its whole trip. Select your king in Trindo and only the legal destinations light up, so if castling isn’t highlighted, one of the rules below is blocking it.
When castling is not allowed
- The king is in check. You have to answer the check by moving the king, blocking or capturing the attacker, so castling can never be the answer.
- The king would cross an attacked square. Kingside that is f1 (f8 for Black); queenside it is d1 (d8). If an enemy piece attacks that square, the king can’t pass over it.
- The king would land on an attacked square. That is g1 or c1 (g8 or c8), the same rule as for any other king move.
- The king or that rook has already moved. This holds even if it has since gone back, and the squares between them must be empty.
What castling still allows
Only the king’s path is checked. If your rook is attacked, you can still castle, and so can you queenside when the square next to the rook (b1 or b8) is attacked, because the king never passes over it.
Wondering how special moves fit together? See what en passant is for the other move players often think is missing.
Play Chess free →Invite a friend or practice with the computer. No sign-up.