How to castle in chess: the rules, kingside and queenside, and common myths
By ChessHut · 2026-12-06
Castling is the only move in chess where two pieces move at once. In one move your king steps away from the centre to a safer corner, and a rook comes towards the middle where it can join the game. It's one of the most important moves you'll make in most games, and the rules are simple once you know the four conditions.
How to castle
- The king moves two squares towards one of its rooks.
- The rook jumps over the king and lands on the square right next to it, on the other side.
There are two ways to castle:
- Kingside castling (short castling), written O-O: White's king goes from e1 to g1 and the rook from h1 to f1. Black's king goes from e8 to g8 and the rook from h8 to f8.
- Queenside castling (long castling), written O-O-O: White's king goes from e1 to c1 and the rook from a1 to d1. Black's king goes from e8 to c8 and the rook from a8 to d8.
In this line White has moved the knight and bishop off f1 and g1, so the squares between the king and the h1 rook are empty, and castles on move four.
For queenside castling three squares have to be empty: b1, c1 and d1. Here White has moved the knight, bishop and queen, and castles long.
The four rules
You may castle only if all of these are true:
- Neither the king nor that rook has moved earlier in the game. Even if the king moved and came back to e1, castling is gone for the rest of the game. If only one rook has moved, you can still castle with the other one.
- All squares between the king and the rook are empty.
- You are not in check at the moment you castle.
- The king does not pass through or land on a square attacked by an opposing piece. For kingside castling that means f1 and g1 (f8 and g8 for Black); for queenside castling d1 and c1 (d8 and c8).
The Chess from Zero course sums it up in one sentence: castle only if the king and that rook have not moved, the squares between are empty, you are not in check, and the king doesn't cross or land on an attacked square.
Common castling myths
Several rules that beginners believe are not actually rules:
- "You can't castle if the rook is attacked." False. Only the king's squares matter. The rook may be attacked, and it may pass over an attacked square too.
- "You can't castle queenside if b1 is attacked." False. In queenside castling the rook passes over b1, but the king doesn't, so an attack on b1 (or b8 for Black) doesn't stop you. The square only has to be empty.
- "If you have been in check earlier, you can't castle." False. Being in check before doesn't matter, as long as the king didn't move to get out of it and you're not in check now.
- "You can castle out of check." False. Rule 3: if you're in check, deal with the check first.
- "You can castle with a rook that just got there." False. The rook must be the original rook that has never moved.
How to make the move on a real board
Move the king first, two squares, with one hand, then move the rook over it. In official games, touching the rook first can be treated as a rook move, so get into the habit of touching the king first.
When should you castle?
Castling is one of the three opening principles: control the centre, develop your pieces, and castle early. In most openings, castling somewhere around moves 5 to 10 is normal. The reasons:
- Safety. In the centre, your king sits on files that open up when pawns are exchanged. Behind the pawns in the corner it is much harder to attack.
- Activity. The rook comes from the corner towards the centre files, where it can join the game.
Kingside castling is faster (only two pieces to move out of the way) and usually leaves the king safer, because the a-pawn isn't defended by the king after queenside castling. Queenside castling puts the rook straight onto the d-file and is common in sharp openings where both sides attack on opposite wings.
Whichever side you castle on, try not to push the pawns in front of your castled king without a good reason: every pawn move there creates holes an attacker can use. The castle early lesson has exercises on this.
Practise it
Try the castling lesson, with positions where you have to decide whether castling is legal. The free Chess from Zero course covers castling on day 9.
Frequently asked questions
Can you castle after your king has been in check?
Yes, as long as the king didn't move to escape that check and you aren't in check right now.
Can you castle if the rook is under attack?
Yes. The rules only care about the squares the king stands on, passes through and lands on. The rook can be attacked.
Can you castle queenside if the b-file square is attacked?
Yes. On queenside castling the king crosses only d1 (or d8) and lands on c1 (or c8). The b1 or b8 square must be empty, but it may be attacked.
How do you write castling in chess notation?
Kingside castling is written O-O and queenside castling O-O-O, using capital letter O or the digit zero. See how to read chess notation.
Can you castle twice?
No. Each player can castle at most once per game, because castling moves the king, and after the king has moved castling is no longer allowed.