Skip to content
klyogames

Game rules

Castling in chess

Castling is a move in which the king steps two squares towards one of its rooks and that rook hops over the king to land right beside it on the other side. It is the only time in chess you move two pieces in one turn, and the quickest way to tuck your king away and bring a rook into play.

Chess: browser game by Klyo

Free chess against the computer on 8 levels, or play a friend on one screen or online. No download, no account.

Chess
New tab

In short

  1. The king moves two squares towards the rook.
  2. The rook jumps over the king and stands next to it.
  3. You can't castle if the king or that rook has already moved.
  4. The squares between them must be empty.
  5. You cannot castle out of check or through an attacked square.

Kingside and queenside castling

Kingside castling uses the rook nearer the king: the white king moves from e1 to g1 and the rook from h1 to f1. Queenside castling uses the rook farther away: the king moves from e1 to c1 and the rook from a1 to d1. Black castles the same way on the eighth rank. In chess notation kingside castling is written O-O and queenside castling O-O-O.

♚︎♜︎♚︎♜︎abcdefgh321
White castles kingside. Before castling, the king is on e1 and the rook on h1; afterwards, the king is on g1 and the rook on f1.

When can you castle? The five conditions

  • The king has not moved yet in this game.
  • The rook you castle with has not moved yet either.
  • All squares between the king and that rook are empty.
  • The king is not in check when you castle.
  • The king does not pass through or land on a square attacked by the opponent. The rook may pass through an attacked square.

When should you castle, and on which side?

Usually in the opening, after developing the knight and bishop on one side. Kingside castling needs only two pieces out of the way and usually leaves the king safer. Queenside castling brings the rook to the centre faster, but it leaves the king closer to the middle of the board, where it needs more cover. If your opponent is attacking on one side, castle on the other.

The most common castling mistakes

  • Moving the king and then trying to castle: once the king has moved, you lose the right to castle for the rest of the game.
  • Castling while in check: first you have to get out of check.
  • Castling too late: a king left in the centre becomes a target before you can tuck it away.

Play chess

It is free in your browser, on a phone or a computer, with nothing to install and no account. A first game is the best way to make the rules stick.

Chess: browser game by Klyo

Read next