When to castle in chess, how to do it, and which side
Castling is the only move in chess that moves two pieces at once, and it’s also one of the most poorly used by beginners. Too late, the wrong way, or not at all. Yet the basic rule is simple, and it’ll spare you a good share of the losses where your king gets caught in the center.
How to castle in chess: the move and the rules
Castling gets your king to safety and brings out a rook in one move. The king moves two squares toward a rook, and that rook jumps over the king to land next to it. There are two versions.
- Kingside castling, also called short castling, written O-O: for White, the king goes from e1 to g1 and the h1 rook comes to f1. For Black, e8 to g8 and h8 to f8.
- Queenside castling, also called long castling, written O-O-O: for White, the king goes from e1 to c1 and the a1 rook comes to d1. For Black, e8 to c8 and a8 to d8.
Online, you castle by dragging the king two squares toward the rook (or onto the rook, on some sites). Over the board, always move the king first: touching the rook first can be ruled as a rook move.
You can only castle when all five conditions hold:
- Your king has not moved yet in the game.
- The rook you castle with has not moved yet.
- Every square between the king and that rook is empty.
- Your king is not currently in check.
- Your king does not cross or land on a square attacked by an enemy piece.
Only the king’s path matters for the last rule. The rook can be attacked or cross an attacked square without any problem, which comes up often on b1 or b8 when castling long. Full rules and examples in the castling glossary entry. Above all, remember the principle: it’s a safety move, not an attacking one.
The right moment: early
The short answer fits in one word: early. Aim to castle around move five or six, as soon as the minor pieces on that side are developed.
Why the hurry? Because a king in the center is a ticking bomb. As long as it sits there, the slightest file that opens puts it in danger, and you can’t connect your rooks. Many beginners put off castling “until they finish developing,” then get the center pried open at the worst moment. Take the opposite reflex: the moment you can castle cleanly, do it, and you’ll think about the rest afterward.
In the Italian Game, after 1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5, White can castle as early as move 4 with 4.O-O. The king is safe, the f1 rook is ready, and you approach the rest of the game with a clear head.
Which side?
Kingside castling (O-O) is the default choice, and by far the most common. It’s quick to prepare, it only requires developing two minor pieces, and it leaves the king well protected behind its three pawns.
Queenside castling (O-O-O) is rarer and sharper. It requires developing one more piece (clearing the bishop and queen out of the way on the queenside), and the king on c1 is a notch less safe, because the a2 pawn leaves a small weakness. In exchange, it immediately places your rook on the d-file, often right in the thick of the action. It’s an attacker’s castle, common in positions where both sides castle on opposite wings and charge at each other.
A classic case: when each side castles on a different wing, the game becomes a race. You push your pawns toward the enemy king, they push theirs toward yours, and whoever gets there first wins. It’s spectacular, but save that for when you already have the basics down.
When not to castle right away
Castling early is a good rule, not a dogma. Two situations invite a pause.
If castling drops your king right in front of an enemy attack already underway on that wing, you’re castling straight into danger. Look at where the opponent is massing their forces before choosing your side.
And sometimes, when the center is completely closed and locked by pawns, the king has nothing to fear in the middle for now, and you can afford to develop one more move before castling. But don’t use that as an excuse to forget your king: when in doubt, castle.
Fitting it into the rest of the opening
Castling is the third of the opening principles, and it flows naturally from the first two. Develop your pieces on the kingside, and the castling square clears itself. That’s why developing your pieces in the right order makes castling almost automatic.
In Prologue, castling lands at its natural moment inside the sequence, with a word on why it belongs there and not three moves later. Repeat your lines enough and the timing turns into a reflex rather than a question you re-litigate every game. To put everything in place in order, start with the guide to learning chess. Weighing your options? See our comparison of the best apps to learn chess openings.
Frequently asked questions
By which move should you have castled?
Ideally between move 4 and move 8, as soon as your minor pieces on one side are out. Past move 10 without having castled and with no specific reason to wait, you’ve generally dawdled.
How do you castle in chess?
Move your king two squares toward the rook, then place that rook on the square the king just crossed. Kingside: king e1 to g1, rook h1 to f1. Queenside: king e1 to c1, rook a1 to d1. It counts as a single move, and you must move the king first over the board.
When can you castle?
When your king and the rook involved have never moved, the squares between them are empty, your king is not in check, and it neither crosses nor lands on an attacked square. If any of these fails, castling is illegal for now. The first two conditions are permanent: once the king or rook has moved, that castling right is gone for the rest of the game.
How do you castle queenside (long castle)?
The king goes from e1 to c1 and the a1 rook to d1 (for Black, e8 to c8 and a8 to d8). You need three empty squares between them instead of two, which is why it takes one more developing move than the kingside castle. The b1 square can be attacked without blocking the move, because the king never touches it.
Which side should you castle?
Kingside, almost always. It’s faster, safer, and asks less preparation of you. Save queenside castling for positions where you’re attacking on the queenside and you already have a handle on opposite-side castling attacks.
Can you castle if the king was put in check earlier and then came back?
No. As soon as the king has moved, even if it returns to its starting square, the right to castle is lost permanently. Same for a rook that has moved: it can no longer be used to castle on its side.
Is it a big deal never to castle?
Often, yes. A king left in the center is behind a large number of beginner losses. There are positions where you can do without it, but until you have the experience to recognize them, treat castling as mandatory.