Castling in chess: how and when you can castle
Castling is the one move where two of your pieces move at once: the king moves two squares towards a rook, and that rook jumps over to the square right beside the king, on its other side. It tucks the king away in a corner behind its pawns and brings the rook into the game, so most games see both players castle early. You may castle only if neither the king nor that rook has moved yet, no pieces stand between them, and the king is not in check and does not pass over or land on a square that is attacked.
- Topic
- Chess for beginners
- Author
- onepawn
- Published
- October 27, 2026
- Reading time
- 3 min
- Boards to play
- 2
- Share
- How castling works, on the king's side and the queen's
- The four rules for when you may castle
- Castle on the board, and spot when you may not
Castling on either side
When you may castle
- Neither the king nor that rook has moved yet in the game, not even once and back.
- No piece stands between the king and that rook.
- Your king is not in check right now.
- The king does not pass over or land on a square an enemy piece attacks. The rook may pass an attacked square.
Try it: castle
Both sides have brought out a knight and a bishop, and White's king can now castle. Move the king two squares towards the h1 rook: the board moves the rook for you.
Castle kingside
The knight on f3 and bishop on c4 have left the squares between the king and the h1 rook.
Try it: which side may you castle?
White wants to castle, but Black's bishop on c4 attacks f1, the square the king would pass over on the short side. One castling is still allowed. Find it.
Find the castling that is allowed
What confuses beginners
- On a website, you castle by moving the king two squares. Moving the rook first is just a rook move.
- A king that has moved, even one square and back, can never castle again. Neither can a rook that has moved, on its side.
- You may castle after you have been in check, as long as you are not in check now and the king itself has not moved.
- Castling queenside, the rook passes b1; that square may be attacked. Only the king's path matters.
Questions people ask
Can you castle out of check?
No. You may not castle while your king is in check. Once you are out of check, you may castle later, as long as the king has not moved.
Can you castle if the rook is attacked?
Yes. Only the king's squares matter: the square it starts on, the one it passes over and the one it lands on must not be attacked.
Can you castle after moving the king and moving it back?
No. Once the king has moved, castling is gone for the rest of the game, even if it returns to its square.
Which is better, kingside or queenside castling?
Kingside is played far more: it is quicker, since only two pieces stand between king and rook, and the king ends nearer the corner. Queenside castling puts the rook straight on the central d-file.
Related
More lessons and guides from the library.
- LessonOct 27, 2026En passant: the chess rule explained simplyWhat en passant is, when you may play it and when you may not, in pictures and on boards you play. Lesson 4 of onepawn's chess course for beginners.Chess for beginners
- PuzzlesOct 27, 2026Pawn promotion in chess: reaching the last rowWhat happens when a pawn reaches the last row, why it is nearly always a queen, when it is not, and ten puzzles. Lesson 5 of onepawn's beginners' course.Chess for beginners
- LessonOct 27, 2026Chess notation: how to read moves like 1.e4 e5How to read chess notation: square names, piece letters and the signs for capture, check, mate, castling and promotion. Lesson 6 of the beginners' course.Chess for beginners
- LessonOct 27, 2026Chess for beginners: learn to play in six lessonsLearn chess from zero in six short lessons on boards you play: how the pieces move, checkmate, castling, en passant, promotion and reading moves.Chess for beginners