Special moves

When can you not castle?

Updated · Sergei Tovmasian

Short answer

You cannot castle when your king has already moved, when the rook on that side has already moved, when any piece stands between them, when you are in check, or when the king would cross or land on a square an enemy piece attacks. The first two are permanent; the last three often disappear a move later.

Look at the board after 1.e4 e5. Neither side can castle, and neither side will be able to for at least two more moves. That is the reason beginners meet first, and it has nothing to do with checks or attacked squares: the bishop is still on f1 and the knight is still on g1, and the rule says every square between the king and the rook must be empty.

8
7
6
5
4
3
2
a
b
c
d
e
f
g
h 1
After 1.e4 e5. Short castling needs f1 and g1 empty; long castling needs b1, c1 and d1 empty. Both sides have five pieces in the way.

Five reasons, then, and they are worth separating by how long they last.

The two you never get back

Your king has moved. That is the end of it, on both wings, for the rest of the game. It does not matter whether the king moved to escape a check, to grab a pawn, or by accident on move three; it does not matter that it walked back to e1 afterwards. Nothing restores the right.

That rook has moved. Same thing, but only on that side. Play Rh1-e1 and short castling is dead while long castling is still available with the untouched a1 rook.

A captured rook counts the same way. If Black’s bishop takes on h1, White has no short castle for the rest of the game, and it makes no difference that the king never budged.

Something in the way

The commonest reason of all, and the one in the diagram above. Pieces between the king and the rook stop it, whether they are yours or your opponent’s. A black knight that has landed on f1 blocks White’s short castle just as effectively as White’s own bishop would.

This is a queue, not a rule about attacks. Empty the squares and you can castle, even if half of them are covered by enemy pieces, as long as the king’s own three squares are safe.

A check costs a move, not the right

Here is the distinction that matters most.

8
7
6
5
4
3
2
a
b
c
d
e
f
g
h 1
The bishop on b4 checks along b4-c3-d2-e1. White has four legal moves: c3, Ke2, Kf1, Kd1. Only the first keeps the castle alive.

White is in check and cannot castle out of it. But count the options: 1.c3 blocks on c3 and attacks the bishop at the same time, and after 1…Bd6 the king is still sitting on its original square with both rooks at home, so 2.O-O is legal. The other three legal moves are all king moves, and every one of them throws the right away forever.

That is the habit to build. When you are checked before you have castled, look for a block or a capture first, and only move the king when there is nothing else. There are separate pages on castling out of check and on castling through check, because those two get confused constantly.

The square you cross

The last one is the sneaky one: a bishop on b5 or a6, a knight on e3, a rook that just arrived on the f-file. If it attacks f1 or g1, short castling is off. If it attacks d1 or c1, long castling is off. And nobody announces it.

So before you castle, look once along the diagonals that end on f1 and d1. That check takes a second and it saves the embarrassment of reaching for two pieces and having to put them back. If you want to train the eye, the exposed king puzzles are full of positions where one side never got round to castling and paid for it.

More questions

Can you castle if there is a piece between the king and rook?

No, every square between them must be empty. Short castling needs f1 and g1 clear, so the bishop and the knight have to move first. Long castling needs b1, c1 and d1 clear, which is three pieces: the knight, the bishop and the queen. That is why players who castle long usually do it several moves later than players who castle short.

Can you castle if your opponent has not castled?

Yes. There is nothing reciprocal about it. You castle when it suits you, and if your opponent leaves the king on e8 that is usually good news, because an uncastled king is what most attacks are aimed at. Some strong players deliberately delay castling to see which way you go first, then castle the other way.

If I get checked before I castle, is the right gone?

Not unless you answer with a king move. Blocking the line or capturing the checking piece leaves the king sitting on e1, so both castles survive and you can castle the moment the squares are clear and safe again. Only a king move kills the right, which is why taking the checker is so often the better answer to an early check, even when stepping aside looks perfectly safe.

Go deeper

Castling, en passant and promotion all have their own tactics. Drill them in the app.

← All: Special moves · Learn chess