Chess mastery · CHESS-P1-017

How Castling Works

Learn every condition for legal king-side and queen-side castling.

A complete castling example

White has both castling rights in this example. Kingside castling moves the king e1–g1 and rook h1–f1 in one move. Queenside castling instead moves the king e1–c1 and rook a1–d1.

♜♚♜♖♔♖8a7b6c5d4e3f2g1h
White to move, with all castling rights retained.FEN: r3k2r/8/8/8/8/8/8/R3K2R w KQkq - 0 1

What the position assumes

Both kings and all four rooks are on their original squares, the castling rights are retained, and the paths are empty. No black piece attacks e1, f1 or g1, so White may castle kingside. For queenside castling, e1, d1 and c1 must be safe, and b1 must also be empty.

A diagram alone cannot prove a king or rook has never moved. This example explicitly supplies those rights. Returning a moved king or rook to its original square never restores the relevant right.

Apply the same safety test to legal king moves.

Connect castling with opening development.

FIDE Laws of Chess: moves, check and game endings

01 · Understand

The idea

The king and chosen rook must not have moved, squares between them must be empty, and the king may not start in, cross, or finish in check.

Worked example

White castles king-side by moving the king e1-g1; the rook then moves h1-f1.

02 · Think

A reliable method

  1. 1Read the whole position and check king safety.
  2. 2Identify the rule or pattern before choosing a move.
  3. 3List forcing candidates and the opponent's strongest response.
  4. 4Verify the resulting position, then play.

Watch out

Common mistakes

  • Castling out of check
  • Castling through an attacked square

03 · Practise

Try it on the board

The Training Hall uses legal move generation and explains the learning point after your attempt.

Open Chess training →

Keep learning

Continue your chess journey

Quick answers

Questions learners ask

What is the main rule?

The king and chosen rook must not have moved, squares between them must be empty, and the king may not start in, cross, or finish in check.

How should I practise this?

Study the example, then open the interactive Training Hall and solve positions without moving until you have checked the opponent's strongest reply.

Can you castle while your king is in check?

No. Your king must not be in check before castling, and it must not cross or finish on an attacked square.

Can you castle after moving the king or rook back?

No. The king and the chosen rook must never have moved, even if they later return to their starting squares.

Where do the pieces finish when White castles king-side?

White's king moves from e1 to g1, and the rook moves from h1 to f1. The squares between them must be empty and the king's path must be safe.

Chess From Pawn to Master on iPhone

Take lessons, tactical puzzles and games against Leo with you; core play works offline.

Free download · Includes advertising and optional in-app purchases. App and browser progress stay on their respective devices.

Download on the App Store — Chess From Pawn to Master