Free delivery to Ireland
100% secure payment
Gift ideas
Pieces & boards
Accessories
About us
Country and language
Getting started

Castling in chess: kingside, queenside and the rules

Published 6 min readBy Bilal
Castling in chess: kingside, queenside and the rules
Contents · 7 sections
  1. 1Kingside and queenside castling
  2. 2The conditions for castling
  3. 3The cases that catch beginners out
  4. 4How to castle correctly in a tournament
  5. 5When should you castle?
  6. 6Our pick for practice
  7. 7Frequently asked questions

Castling is a special move that moves the king and a rook at the same time: the king slides two squares towards the rook, then the rook jumps over it and lands on the square the king has just crossed. You can only castle once per game, provided neither the king nor that rook has moved yet, no piece stands between them, and the king isn't in check, doesn't pass through and doesn't land on an attacked square.

This guide explains kingside and queenside castling with diagrams, the cases that catch beginners out and the right way to castle at a club. To practise, set up the pieces on one of our chess sets and replay the positions below.

Key points
  • Kingside castling (0-0): king on g1, rook on f1 (g8 and f8 for Black).
  • Queenside castling (0-0-0): king on c1, rook on d1 (c8 and d8 for Black).
  • Not allowed if the king or the rook has already moved, even if it has returned to its square.
  • Not allowed if a piece stands between the king and the rook.
  • Not allowed if the king is in check, or if the square it passes through or the one it lands on is attacked.
  • The rook, however, can be attacked or pass through an attacked square.
KINGSIDE CASTLING (0-0)♚︎♜︎1abcdefgh♚︎♜︎1abcdefgh→BeforeAfterQUEENSIDE CASTLING (0-0-0)♚︎♜︎1abcdefgh♚︎♜︎1abcdefgh→BeforeAfter
Figure 1. When castling kingside, the king goes from e1 to g1 and the rook from h1 to f1. When castling queenside, the king goes to c1 and the rook to d1. Black does the same on the 8th rank.

Kingside and queenside castling

Castling is always played on the player's first rank. On the king's side, it's called kingside castling (or castling short): the rook is close, with only two squares between it and the king. On the queen's side, it's queenside castling (or castling long): three squares to clear, and the rook travels further. In both cases, the king moves exactly two squares; it's the only move in the game where it can. The FIDE Laws state that castling counts as a single move, made by the king.

Kingside Queenside
Notation 0-0 0-0-0
White King e1 to g1, rook h1 to f1 King e1 to c1, rook a1 to d1
Black King e8 to g8, rook h8 to f8 King e8 to c8, rook a8 to d8
Squares to clear f and g (2 squares) b, c and d (3 squares)
Pieces to bring out first King's knight and bishop Knight, bishop and queen
Squares the king mustn't have attacked e, f and g e, d and c

Swipe the table to see all columns.

The conditions for castling

The FIDE Laws (article 3.8.2) distinguish two kinds of condition: those that take away the right to castle for the rest of the game, and those that only prevent it for the moment.

Permanent conditions

  • The king has never moved. As soon as it moves for the first time, it loses the right to castle on both sides, even if it goes back to e1.
  • The chosen rook has never moved. If the h1 rook has moved, kingside castling is lost, but queenside castling is still possible with the a1 rook.

Temporary conditions

  • No piece between the king and the rook, whether your own or your opponent's.
  • The king isn't in check. You can't castle to escape a check.
  • The square the king passes through isn't attacked (f1 when castling kingside, d1 when castling queenside).
  • The king's arrival square isn't attacked, otherwise the king would be putting itself in check.

These temporary obstacles disappear as soon as the situation changes: once the piece in the way has moved or the threat has gone, castling becomes possible again.

♚︎♜︎♝︎4321abcdefghForbidden: the king crosses f1, attacked♚︎♜︎♜︎4321abcdefghAllowed: only the rook passes through b1♚︎♜︎♞︎4321abcdefghForbidden: the king is in check♚︎♜︎♞︎4321abcdefghForbidden: a piece blocks the way
Figure 2. Only the king's squares count: an attacked square on the rook's path (b1 when castling queenside) doesn't prevent castling.

The cases that catch beginners out

Situation Can you castle?
The rook is attacked Yes, only the king's squares count.
Queenside castling with b1 attacked Yes, the king doesn't pass through b1.
The king was in check earlier, without moving Yes, if the check was blocked without moving the king.
The king went to e2 and then came back to e1 No, it has already moved.
To get out of check No, never.
With a rook obtained by promotion No: it isn't on its original square and it has already moved.
Kingside on one side, queenside on the other Yes, each side chooses its own side.

Swipe the table to see all columns.

One variant is an exception: in Fischer random chess (Chess960), the king and rooks start on squares drawn at random, but after castling they end up on the same squares as in classical chess (g1 and f1, or c1 and d1). The complete rules of the game are summed up in our guide to the rules of chess, and the way each piece moves in our guide to how the pieces move.

How to castle correctly in a tournament

In a friendly game, no one will mind if you move the rook first. At a club or in a tournament, the order matters, because the touch-move rule applies (article 4.4 of the FIDE Laws):

  • Touch the king first, put it down two squares further on, then take the rook and put it down on the other side. The move is made with one hand.
  • If you deliberately touch the rook first, then the king, you can no longer castle on that side for that move: you must move the rook.
  • If you touch the king and the rook intending to castle, you must castle on that side if it's legal.
  • With a clock, only press it once both pieces have been put down.
Caution

An illegal castling move, for example through an attacked square, is treated like any illegal move: in a tournament, the position is restored and a penalty may apply depending on the time control.

When should you castle?

Castling serves two purposes at once: tucking the king away behind its pawns and bringing the rook into play, towards the centre. That's why the usual advice is to castle early, within roughly the first ten moves, once the knight and bishop are out.

  • Kingside castling is the most common: it's quicker to prepare, with only two pieces to bring out, and the king is well sheltered behind its pawns.
  • Queenside castling takes one more move, but it puts the rook straight onto the d-file, which is often open. On the other hand, with the king on c1, the a2 pawn is less well defended.
  • Opposite-side castling: when the two kings have castled on different sides, each side often throws its pawns at the opposing king. Games soon become sharp.
  • Not castling at all is sometimes justified, especially when the queens have been exchanged early: the king is then more useful in the centre.
Tip

Before castling, ask yourself a simple question: are the pawns in front of the square your king will go to still intact? If you've already pushed them, the king will be less sheltered there, and the other side may be better.

Our pick for practice

A magnetic set with coordinates to replay the positions, a tournament-size wooden folding set and a classic Staunton model for playing at home.

Sources: FIDE, Laws of Chess (article 3.8.2 on castling, article 4.4 on touch-move, appendix C.13 on notation).

Frequently asked questions

Can you castle after being put in check?

Yes, as long as you got out of check without moving the king, by blocking with a piece or capturing the checking piece. You only lose the right to castle if the king or the rook in question has moved. However, you can never castle to get out of check.

Can you castle if the rook is attacked?

Yes. The rules only look at the king's squares: its starting square, the one it crosses and the one it lands on. The rook may be attacked or cross an attacked square, such as b1 when White castles queenside.

What is the difference between kingside and queenside castling?

Kingside castling (0-0) is played on the king's side: the king goes to g1 and the rook to f1. Queenside castling (0-0-0) is played on the queen's side: the king goes to c1 and the rook to d1. Queenside castling means clearing three squares instead of two, but it brings the rook straight to the centre.

Should you touch the king or the rook first when castling?

Always touch the king first. At a club or in a tournament, if you deliberately touch the rook and then the king, you can no longer castle on that side for that move and you must move the rook. Castling is done with one hand, and you press the clock once both pieces are in place.

Can you castle with a rook obtained by promotion?

No. You can only castle with a rook still on its original square that has never moved. A rook obtained by promotion appears on the last rank, on the opponent's side, so it doesn't meet these conditions.

Related articles

Go further