Chess rules guide

Castling in Chess: Rules and How to Castle

Castling is the only move in chess where two pieces move at once. The king steps two squares toward a rook, and that rook jumps over to the square right next to the king. In one move it tucks your king behind its pawns and brings a rook into the game.

How to Castle, Step by Step

CastlingWhite kingWhite rookBlack kingBlack rookNotation
Kingside (short)e1 → g1h1 → f1e8 → g8h8 → f8O-O
Queenside (long)e1 → c1a1 → d1e8 → c8a8 → d8O-O-O
Kingside castling diagram: the white king moves from e1 to g1 and the rook moves from h1 to f1
Kingside (O-O): the king goes e1 to g1, the rook h1 to f1.
Queenside castling diagram: the white king moves from e1 to c1 and the rook moves from a1 to d1
Queenside (O-O-O): the king goes e1 to c1, the rook a1 to d1.

On a real board, move the king first, then the rook, with one hand.

The 5 Castling Rules

You can castle only when all five are true:

  1. Your king has not moved yet in this game.
  2. The rook you castle with has not moved yet.
  3. Every square between the king and that rook is empty.
  4. Your king is not in check right now.
  5. The king does not cross or land on a square attacked by an enemy piece.

Rule 5 is about the king only. The rook may be attacked, and in queenside castling the rook may pass over an attacked square (b1 or b8).

When You Can't Castle

Kingside or Queenside Castling?

Kingside castling is faster: only the knight and bishop need to move out of the way. Queenside castling needs three pieces gone (knight, bishop and queen), and the king ends one square further from the corner, so players often follow up with the king to b1 or b8.

In return, queenside castling puts the rook straight onto the d-file, which is why it is popular in sharp games where both players attack.

Common Castling Mistakes

Practice Castling on a Free Board

On Chess Pass and Play, tap your king. When castling is legal, the move hints show the square two steps to the side; tap it and the rook moves over by itself. If that square doesn't light up, one of the five rules is blocking it.

Two players can practice on one device, free and offline. Next, learn the pawn rules, including en passant and promotion.

Castling FAQ

Can you castle out of check?

No. If your king is in check, you must get out of check another way. You can castle on a later move if your king and that rook haven't moved.

Can you castle through check?

No. The king can't cross a square attacked by an enemy piece, or land on one. The rook may cross an attacked square.

Can you castle if the rook is attacked?

Yes. Only the king's squares matter: the king can't be in check, cross an attacked square or land on one.

Can you castle after being in check?

Yes, as long as the king never moved. Blocking the check or capturing the checking piece keeps your right to castle.

Can you castle twice in one game?

No. Castling moves the king, so after you castle once you can't castle again.

Can you castle with the queen?

No. Castling is only between the king and one of its rooks.

Is castling one move or two?

One move. The king and the rook move together on the same turn.

Practice Castling With a Friend

Two players, one device, no sign-up. Move hints show when you can castle.