Castling in chess: kingside, queenside and the rules
Contents · 7 sections
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.
- 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 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.
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.
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.
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).









