8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h
Castling kingside The king goes two squares towards the rook, and the rook jumps over to the king's other side.

Castling in chess: how and when you can castle

Chess for beginnersOctober 27, 20263 min read2 boards

Castling is the one move where two of your pieces move at once: the king moves two squares towards a rook, and that rook jumps over to the square right beside the king, on its other side. It tucks the king away in a corner behind its pawns and brings the rook into the game, so most games see both players castle early. You may castle only if neither the king nor that rook has moved yet, no pieces stand between them, and the king is not in check and does not pass over or land on a square that is attacked.

What you will learn
  • How castling works, on the king's side and the queen's
  • The four rules for when you may castle
  • Castle on the board, and spot when you may not

Castling on either side

8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h
Kingside: O-OThe king goes to g1 and the rook from h1 to f1. The short side, and the one players use most.
8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h
Queenside: O-O-OThe king goes to c1 and the rook from a1 to d1. The king still moves only two squares; the rook moves three.

When you may castle

  • Neither the king nor that rook has moved yet in the game, not even once and back.
  • No piece stands between the king and that rook.
  • Your king is not in check right now.
  • The king does not pass over or land on a square an enemy piece attacks. The rook may pass an attacked square.

Try it: castle

Both sides have brought out a knight and a bishop, and White's king can now castle. Move the king two squares towards the h1 rook: the board moves the rook for you.

Castle kingside

8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h
3...Bc5
White to move
  1. The knight on f3 and bishop on c4 have left the squares between the king and the h1 rook.

Try it: which side may you castle?

White wants to castle, but Black's bishop on c4 attacks f1, the square the king would pass over on the short side. One castling is still allowed. Find it.

Find the castling that is allowed

8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h
Start
White to move

    What confuses beginners

    • On a website, you castle by moving the king two squares. Moving the rook first is just a rook move.
    • A king that has moved, even one square and back, can never castle again. Neither can a rook that has moved, on its side.
    • You may castle after you have been in check, as long as you are not in check now and the king itself has not moved.
    • Castling queenside, the rook passes b1; that square may be attacked. Only the king's path matters.

    Questions people ask

    Can you castle out of check?

    No. You may not castle while your king is in check. Once you are out of check, you may castle later, as long as the king has not moved.

    Can you castle if the rook is attacked?

    Yes. Only the king's squares matter: the square it starts on, the one it passes over and the one it lands on must not be attacked.

    Can you castle after moving the king and moving it back?

    No. Once the king has moved, castling is gone for the rest of the game, even if it returns to its square.

    Which is better, kingside or queenside castling?

    Kingside is played far more: it is quicker, since only two pieces stand between king and rook, and the king ends nearer the corner. Queenside castling puts the rook straight on the central d-file.