ChessScribe
← Chess blog

Principles · 6 min read

King safety: when to castle, when to wait, when to run

Most decisive attacks below master level land on an uncastled king still sitting on e1 or e8 while the centre is open. Castling is cheap insurance: one move that moves the king off the busiest file and activates a rook.

But king safety is a judgement, not a rule. A castled king in front of three intact pawns is safe; a castled king whose g-pawn has left is often less safe than one that never moved.

1.d4 Nf6 2.c4 e6 3.Nc3 d5 4.Nf3 Be7 5.Bg5 O-O — A Queen's Gambit Declined. Black castles before opening the centre, so the e-file cannot be used against the king.

How to judge a castled king in five seconds

Pawn moves that quietly weaken you

h3 or h6 is usually fine and often useful, since it stops a bishop or knight landing on g4 or g5. The dangerous moves are g3 and g6 once your dark-squared bishop has left, and f3 or f6 with a queen on the board, because both create permanent holes.

If you must push a pawn near your king, ask which square it stops defending, then check whether an enemy piece can reach that square in two moves.

When not to castle

In a closed centre where no file can be opened, the king is often fine in the middle, and you can gain time by developing instead. Delay castling when the opponent has committed their rooks to one wing and you can castle to the other.

In endgames, castling stops being a safety move: the king becomes an attacker and belongs in the centre.

Key takeaways

Frequently asked questions

Is it bad to castle into an attack?
Yes. If the opponent already has two pieces and a rook aimed at one wing, castle to the other side or keep the king in the centre behind a closed pawn structure.
Kingside or queenside castling?
Kingside is faster and usually safer. Castle queenside when you want the c-file and h-file rook lift for an attack and the centre is stable.

Practise the related tactics

Read next