---
title: "When Should You Castle in Chess"
url: "https://georgelichess.com/learn/when-should-you-castle-in-chess.md"
canonical_url: "https://georgelichess.com/learn/when-should-you-castle-in-chess"
last_updated: "2026-11-30"
type: "guide"
summary: "Castle once your kingside pieces are out and no enemy piece aims at your castling squares. A decision order, four legality diagrams and a castle that loses."
related: ["https://georgelichess.com/learn/touch-move-rule-explained.md", "https://georgelichess.com/learn/chess960-for-kids-rules-and-first-games.md", "https://georgelichess.com/learn/best-chess-openings-for-scholastic-tournaments.md", "https://georgelichess.com/learn/how-opening-traps-work.md", "https://georgelichess.com/glossary/castling.md", "https://georgelichess.com/glossary/kingside-castling.md", "https://georgelichess.com/glossary/queenside-castling.md", "https://georgelichess.com/glossary/king-safety.md", "https://georgelichess.com/chess-lessons-for-kids.md", "https://georgelichess.com/learn/en-prise-please.md", "https://georgelichess.com/pricing.md"]
---

# When Should You Castle in Chess

> **For AI agents:** the complete index of GeorgeLiChess pages is [llms.txt](https://georgelichess.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Castle once your kingside pieces are out and no enemy piece aims at your castling squares. A decision order, four legality diagrams and a castle that loses.

Castle as soon as the pieces on your king's side are developed, unless an enemy piece is already aimed at the squares the king would use, or the opponent's attack is faster on the side you would pick. In most games that means by move 10. The reason is simple: castling tucks the king behind its pawns and brings a rook toward the center in one move, and a king left in the middle can be hit by an open file before it gets the chance.

## How do you castle?

Castling is the one move in which two of your pieces change square, and it always involves the king and one rook. Move the king two squares toward the rook you want, then place that rook on the square the king has just crossed. Short castling, toward the h-file, ends with White's king on g1 and its rook on f1. Long castling, toward the a-file, ends with the king on c1 and the rook on d1. For Black the squares are g8 and f8 on the short side, and c8 and d8 on the long side. Scoresheets write short castling as O-O and long castling as O-O-O. A handy check: the king always ends on a square of the color it started on, a dark square for White and a light one for Black.

White castles short and Black castles long: **1. O-O O-O-O**

**Diagram: The result: White's king is on g1 with a rook on f1, and Black's king is on c8 with a rook on d8** Position (FEN): `2kr3r/8/8/8/8/8/8/R4RK1 w - - 2 2`.

On a real board, touch the king first and move it two squares, and then move the rook. Under the touch-move rules, a player who deliberately touches a rook and then the king may not castle on that side on that move, as the [touch-move rule](https://georgelichess.com/learn/touch-move-rule-explained.md) page explains. Online, you usually click the king and the square two steps away, and the site moves the rook. The same four conditions apply in Chess960, with different squares to clear, as the page on [Chess960 for kids](https://georgelichess.com/learn/chess960-for-kids-rules-and-first-games.md) shows.

## When can you castle at all?

Castling is a move of the king and a rook, and Article 3.8.2 of the Laws of Chess sets the limits. The right is gone for good once the king has moved, or once the rook you want to use has moved. The move is blocked for the time being while the king is in check, while any square the king crosses or lands on is attacked, or while any piece is on a square between them. Notice what is missing from the list: an attacked rook does not matter, and neither does an attacked b1 square on the queenside, since the king never steps on either.

The four positions below show each case. In every one, White has a king on e1 and rooks on a1 and h1.

**Diagram: In check: the rook on e8 attacks the king, so neither side can castle** Position (FEN): `4r1k1/8/8/8/8/8/8/R3K2R w KQ - 0 1`. Arrows: e8 to e1.

**Diagram: The rook on f8 attacks f1, which the king would cross, so kingside castling is illegal while queenside castling is legal** Position (FEN): `5rk1/8/8/8/8/8/8/R3K2R w KQ - 0 1`. Arrows: f8 to f1.

**Diagram: The rook on g8 attacks g1, where the king would land: kingside castling is illegal, queenside castling is legal** Position (FEN): `k5r1/8/8/8/8/8/8/R3K2R w KQ - 0 1`. Arrows: g8 to g1.

**Diagram: The bishop on g6 attacks b1, but the king does not cross b1, so both castling moves are legal** Position (FEN): `6k1/8/6b1/8/8/8/8/R3K2R w KQ - 0 1`. Arrows: g6 to b1.

## What order should you ask the questions in?

Use the same questions each game and answer them in the same order. This is coaching advice for club and junior players, not a rule of the Laws.

**A decision order for castling**

| Question | If the answer is yes | If it is no |
| --- | --- | --- |
| Is castling legal on that side right now? | Go to the next question | Make another useful move, and look again next turn |
| Is the center about to open, or is a file already open toward my king? | Castle now if you can | You have a little time |
| Is an enemy queen, bishop or rook already aimed at the squares near the castled king? | Look for a different side or a move that deals with it first | Castle |
| Are my knight and bishop on that side developed? | Castle | Develop first, unless an attack is on |
| Is the opponent starting a pawn storm on the side I would choose? | Think about the other side | Castle on your usual side |

Most games reach "castle" at question three or four, which is why castling happens in the first ten moves of nearly every game.

## When does a legal castle lose at once?

A castle can be legal and still be the worst move on the board. In the position below, Black's queen on h4 and bishop on d6 are both aimed at the square h2.

**Diagram: White to move: castling is legal here, but it loses at once to ...Qxh2#** Position (FEN): `4k3/8/3b4/8/7q/8/5PPP/4K2R w K - 0 1`. Arrows: h4 to h2, d6 to h2.

After castling, White's king sits on g1 with the rook beside it on f1, and the pawn on h2 is attacked twice and guarded only by the king.

Mate: f1 holds the rook, f2 and g2 hold pawns, h1 is covered by the queen and the bishop guards h2: **1. O-O Qxh2#**

The lesson is to look at the squares where the king will land before you castle, and not only at the squares the king crosses. The Laws ask only that those squares are not attacked at the moment of castling, and the arrangement of the enemy pieces decides everything else.

## Which side should you castle?

Kingside castling is the quicker choice at the start of the game: it needs only two pieces out of the way, the bishop and the knight on the f and g files. Queenside castling needs three squares empty, b1, c1 and d1, so the knight, the bishop and the queen must all move first. That is why most players castle kingside. Queenside castling puts the rook on the d-file at once and is the usual choice when you want to attack on the other wing with your pawns. As a result, it is worth asking which side the opponent castled before you decide.

## When is it right to wait?

Waiting is right in a few cases, and each one has a reason you can say out loud. The squares near the castled king are already under attack. The opponent has castled on the same side and you plan a pawn storm. A closed center means the king is safe for a few more moves. Or you need a move to win material or stop a threat. If you cannot say the reason, castle.

International Master George Li ([FIDE profile](https://ratings.fide.com/profile/2052695)) makes early castling a habit in the first lessons with young players. The glossary entries on [castling](https://georgelichess.com/glossary/castling.md) and [king safety](https://georgelichess.com/glossary/king-safety.md) give the definitions, and a [first lesson](https://georgelichess.com/book/first-lesson.md) shows where your own games left the king in the center too long. The [chess lessons for kids](https://georgelichess.com/chess-lessons-for-kids.md) page describes the format.

## Frequently asked questions

**Does an attacked rook stop you from castling?**

No. Article 3.8.2 looks at the king's squares only, so a rook that is attacked can still take part in castling.

**How do you castle on a chessboard?**

Touch the king and move it two squares toward the rook, then move the rook to the square the king crossed. Short castling ends with the king on g1 or g8, and long castling ends with it on c1 or c8.

**Is castling allowed while in check?**

Never. In check, or with an attacked square to cross or land on, the move is illegal.

**Which is better, castling kingside or queenside?**

Kingside is quicker and the usual choice. Queenside brings the rook to the d-file at once and suits a plan with the pawns on the other wing.

**When is it too late to castle?**

Once the king or the rook has moved, the right is gone for good. Otherwise, castling is still allowed as long as the conditions above are met.

## Castle at the right moment, every game

A first lesson goes through your opening moves and marks the games where the king stayed in the center a move too long. [Book a lesson](https://georgelichess.com/book.md).

## Related

- [The Touch-Move Rule in Chess Explained](https://georgelichess.com/learn/touch-move-rule-explained.md)
- [Chess960 for Kids: Rules and Castling](https://georgelichess.com/learn/chess960-for-kids-rules-and-first-games.md)
- [Best Openings for Scholastic Tournaments](https://georgelichess.com/learn/best-chess-openings-for-scholastic-tournaments.md)
- [Opening Traps: How They Work](https://georgelichess.com/learn/how-opening-traps-work.md)
- [Castling](https://georgelichess.com/glossary/castling.md)
- [Kingside castling](https://georgelichess.com/glossary/kingside-castling.md)
- [Queenside castling](https://georgelichess.com/glossary/queenside-castling.md)
- [King Safety in Chess: What Keeps It Safe](https://georgelichess.com/glossary/king-safety.md)
- [Chess Lessons for Kids, Taught by an IM](https://georgelichess.com/chess-lessons-for-kids.md)
- [En Prise Tactics: When Free Pieces Cost You](https://georgelichess.com/learn/en-prise-please.md)
- [Lesson packages and prices](https://georgelichess.com/pricing.md)

## Related

- [The Touch-Move Rule in Chess Explained](https://georgelichess.com/learn/touch-move-rule-explained.md)
- [Chess960 for Kids: Rules and Castling](https://georgelichess.com/learn/chess960-for-kids-rules-and-first-games.md)
- [Best Openings for Scholastic Tournaments](https://georgelichess.com/learn/best-chess-openings-for-scholastic-tournaments.md)
- [Opening Traps: How They Work](https://georgelichess.com/learn/how-opening-traps-work.md)
- [Castling in chess](https://georgelichess.com/glossary/castling.md)
- [Kingside castling in chess](https://georgelichess.com/glossary/kingside-castling.md)
- [Queenside castling in chess](https://georgelichess.com/glossary/queenside-castling.md)
- [King Safety in Chess: What Keeps It Safe](https://georgelichess.com/glossary/king-safety.md)
- [Chess Lessons for Kids, Taught by an IM](https://georgelichess.com/chess-lessons-for-kids.md)
- [En Prise Tactics: When Free Pieces Cost You](https://georgelichess.com/learn/en-prise-please.md)
- [Chess Lesson Prices: $150 First Lesson](https://georgelichess.com/pricing.md)
