Castling is the special chess move where the king moves two squares toward a rook and that rook jumps to the square next to the king. It is the fastest standard way to improve king safety and bring a rook closer to the center.
In this simple kingside example, White is ready to castle. The king on e1 can move to g1, and the rook on h1 moves to f1.
Example sequence: 1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5. White can now play 4.O-O.
Resulting FEN after 4.O-O: r1bqk1nr/pppp1ppp/2n5/2b1p3/2B1P3/5N2/PPPP1PPP/RNBQ1RK1 b kq - 5 4
Answer: White can legally castle kingside with 4.O-O. The final position has the king on g1 and the rook on f1.
After-castling FEN: r1bqk1nr/pppp1ppp/2n5/2b1p3/2B1P3/5N2/PPPP1PPP/RNBQ1RK1 b kq - 5 4
Most castling confusion comes from the same few questions: Can you castle while in check? Can you castle through check? Can you castle on both sides? This page answers those directly and gives you a quick checker you can use right away.
You can castle only if your king and chosen rook have never moved, the squares between them are empty, your king is not in check, and the king does not pass through or land on an attacked square.
The rook may move through danger during castling. The safety rule is about the king's path and destination, not the rook's.
In this ChessWorld helpdesk game position, Black's bishop attacks b1, but White can still castle queenside. Only the king's route matters, so the key squares are e1, d1, and c1.
Example sequence: 1.d4 d5 2.Bf4 Nc6 3.Nc3 Bf5 4.Nb5 Rc8 5.Nxc7+ Rxc7 6.Bxc7 Qxc7 7.Qd2 Qa5 8.c3 e6
Answer: White can legally play 9.O-O-O. The bishop attacks b1, but castling queenside only requires the king to stay safe on e1, d1, and c1.
After-castling FEN: 4kbnr/pp3ppp/2n1p3/q2p1b2/3P4/2P5/PP1QPPPP/2KR1BNR b k - 1 9
In this famous KorchnoiβKarpov example, Black's bishop attacks White's rook on h1, but castling kingside is still legal. The rook may be attacked; what matters is that the king stays safe on e1, f1, and g1.
Example sequence: 1.d4 Nf6 2.Nf3 e6 3.g3 b6 4.Bg2 Bb7 5.c4 Be7 6.Nc3 O-O 7.Qc2 c5 8.d5 exd5 9.Ng5 Nc6 10.Nxd5 g6 11.Qd2 Nxd5 12.Bxd5 Rb8 13.Nxh7 Re8 14.Qh6 Ne5 15.Ng5 Bxg5 16.Bxg5 Qxg5 17.Qxg5 Bxd5
Answer: White can legally play 18.O-O. The bishop attacks the rook on h1, but the rook can be attacked during castling as long as the king's path is legal.
After-castling FEN: 1r2r1k1/p2p1p2/1p4p1/2pbn1Q1/2P5/6P1/PP2PP1P/R4RK1 b - - 1 18
Use the buttons above to practice from the position, replay the key castling solution, or watch the full game.
Tick the boxes that match your position. If any hard-block rule is true, castling is illegal on that side.
Looking from White's side, the right half is the kingside and the left half is the queenside. You may castle on either side if that side still satisfies all the rules.
In this starting diagram, neither king has castled yet.
In kingside castling, the king moves two squares toward the rook on the h-file, and the rook moves to the square directly beside the king. This is the shorter castle and usually the easier one to achieve.
In queenside castling, the king moves two squares toward the rook on the a-file, and that rook comes to the square next to the king. This is often called long castling.
These six diagrams turn the castling rules into quick visual tests. Use the reveal buttons first, then practice the exact position or replay the setup.
White cannot castle because the king already moved with 2.Ke2 and returned with 4.Ke1.
Example sequence: 1.e4 e5 2.Ke2 Nf6 3.Nc3 d6 4.Ke1 Be7 5.Nf3 O-O 6.Be2 Be6.
Answer: White cannot castle because the king already moved with 2.Ke2 and returned with 4.Ke1. Castling rights depend on move history, not only the current square of the king.
White cannot castle kingside because the h1-rook moved with 3.Rh2 and returned with 5.Rh1.
Example sequence: 1.e4 e5 2.h3 Nc6 3.Rh2 Nf6 4.Nc3 Be7 5.Rh1 O-O 6.Bc4 d6 7.Nf3 Re8.
Answer: White cannot castle kingside because the h1-rook moved with 3.Rh2 and returned with 5.Rh1. Returning the rook does not restore kingside castling rights.
White cannot castle kingside because the bishop on f1 is still between the king and rook.
Example sequence: 1.e4 e5 2.Nf3 Nc6 3.Nc3 Nf6.
Answer: White cannot castle kingside because the bishop on f1 is still between the king and rook. The route from e1 to g1 must be completely clear.
White cannot castle queenside because the bishop on b4 is already checking the king on e1.
Example sequence: 1.e4 e5 2.Nf3 Nc6 3.d4 Nf6 4.Bg5 a6 5.Na3 b6 6.Qe2 Bb4+.
Answer: White cannot castle queenside because the bishop on b4 is already checking the king on e1. Castling is never allowed as a way to escape check.
Black cannot castle kingside because the bishop on a3 attacks f8.
Example sequence: 1.e4 e5 2.b3 g6 3.Nf3 Bg7 4.Ba3 Nf6 5.d3.
Answer: Black cannot castle kingside because the bishop on a3 attacks f8. The black king would have to pass through f8 on the way to g8.
White cannot castle kingside because the bishop on c5 attacks g1.
Example sequence: 1.e4 e5 2.f4 Nf6 3.Nc3 c6 4.Nf3 Bc5 5.d3 O-O 6.Be2.
Answer: White cannot castle kingside because the bishop on c5 attacks g1. The king would finish the castling move on a square that is in check.
You may castle on either side depending on the position, but you can only castle once in a game. After castling, your king has moved, so castling again is impossible.
Artificial castling means making the king safer without using the official castling move. You may step the king away from the center over several moves and then bring the rooks into better positions later.
This matters because castling rights are valuable, but king safety matters more. If castling is illegal or if one side is too dangerous, a careful βcastle by handβ plan can still be perfectly sensible.
Castling is the special move where the king moves two squares toward a rook and that rook moves to the square next to the king. It is the only normal chess move where two pieces move on the same turn. Use the How castling looks on the board diagrams to see the king-and-rook movement clearly.
First check that the king and chosen rook have not moved, the squares between them are empty, and the king is not starting, crossing, or landing in check. Then move the king two squares toward the rook and place the rook on the square next to the king. Use the Quick checker to test each condition before trying the move.
You can castle when the king and the rook on that side have never moved, the path is clear, the king is not in check, and the king does not cross or land on an attacked square. These conditions all have to be true at the same time. Use the Six clear reasons diagrams to compare your position with each possible block.
The main rules are that the king and chosen rook must still have castling rights, no pieces can stand between them, and the king must stay safe from start to finish. The rook may be attacked, but the king may not be in, pass through, or land in check. Use the Quick checker and the attacked-rook trainer examples to separate those two ideas.
Castling is important because it usually moves the king away from the center and brings a rook closer to useful play. It is not just a defensive move, because safer kings and connected rooks often make the rest of the opening easier. Use the Practical beginner tip and Next step section after checking the diagrams.
You may be allowed to castle on either side before you have castled, depending on the position. Once you castle on one side, your king has moved, so you cannot castle again on the other side. Use the Kingside vs queenside castling section to compare the two options.
No, a player can castle only once in a game. After castling, the king has moved, and a moved king can never castle again. Use the King already moved trainer in the Six clear reasons section to see why the history matters.
Yes, castling is the only standard chess move where two pieces move on the same turn. The king moves two squares and the rook jumps to the square next to it. Use the How castling looks on the board diagrams to remember the exact layout.
Kingside castling is castling toward the rook that starts on the h-file. For White, the king goes from e1 to g1 and the rook goes from h1 to f1; Black has the matching move from e8 to g8 and h8 to f8. Use the Kingside castling diagram to see the final squares.
Queenside castling is castling toward the rook that starts on the a-file. For White, the king goes from e1 to c1 and the rook goes from a1 to d1; Black has the matching move from e8 to c8 and a8 to d8. Use the Queenside castling diagram to see why it is called long castling.
Yes, kingside castling is also called short castling. It is shorter because the rook only moves two squares, and it is usually easier to prepare in beginner games. Use the Kingside castling diagram as your short-castling reference.
Yes, queenside castling is also called long castling. It is longer because the rook travels from the a-file to the d-file, and there are usually more squares to clear first. Use the Queenside castling diagram as your long-castling reference.
Kingside castling is written O-O, and queenside castling is written O-O-O. The letters are capital O characters, not zeroes, because the notation represents the castling move. Use the notation note under the step-by-step section to check it quickly.
Kingside castling is written O-O because it shows the short castle with the king and rook ending close together. The notation does not list the king square and rook square separately. Use the Kingside castling diagram next to the notation note to connect the symbol with the board.
Queenside castling is written O-O-O because it represents the longer castle toward the queenside rook. The extra O helps distinguish it from the shorter kingside castle. Use the Queenside castling diagram next to the notation note to connect the symbol with the board.
In online chess, select the king first and then the king's destination square, such as e1 to g1 for White kingside castling; selecting the rook first will be treated as an ordinary rook move. Over the board, move the king two squares first and then move the rook to the square next to it. Use the Castling at a glance trainer and the touch/click order note before trying it on the board.
No, you cannot castle if your king moved earlier, even if it came back to its starting square. Castling rights are lost permanently once the king moves. Use the King already moved trainer in the Six clear reasons section to replay that exact case.
No, you cannot castle with a rook that moved earlier, even if it returned to its starting square. The right to castle with that rook is gone for the rest of the game. Use the Rook already moved trainer in the Six clear reasons section to test it.
No, castling is illegal if any piece is between the king and the rook on that side. You must clear every square between them before castling can be considered. Use the Pieces between trainer to see how the f1 bishop blocks kingside castling.
No, you cannot castle while your king is in check. You must first get out of check by moving the king, blocking, or capturing the checking piece if legal. Use the King in check trainer to see why castling cannot be an escape move.
No, you cannot castle through check. If the king crosses an attacked square during castling, the move is illegal even when the final square looks safe. Use the Passes through check trainer to see the attacked crossing square.
No, you cannot castle into check. If the king would finish on an attacked square, castling is illegal. Use the King would land in check trainer to see why a bishop attack on g1 stops White from castling kingside.
Castling through check means the king crosses an attacked square on the way, while castling into check means the king finishes on an attacked square. Both are illegal because the king must be safe for the whole castling move. Use the Passes through check and King would land in check trainers side by side.
Yes, you can still castle after being in check earlier if your king and rook have not moved and the current position satisfies every castling rule. The rule only forbids castling while the king is in check now, not after a past check has been solved. Use the Quick checker to separate current check from game history.
Yes, an attacked rook does not by itself stop castling. The safety rule applies to the kingβs starting square, crossing square, and final square, not to whether the rook is under attack. Use the Kingside: the rook is attacked trainer to see the Korchnoi-Karpov example.
Yes, the rook may pass through or land on an attacked square during castling. Only the kingβs path and destination are checked for safety. Use the Queenside: b1 is attacked trainer to see why the rook-side square can be attacked.
Yes, White may still castle queenside if b1 is attacked, provided the king is safe on e1, d1, and c1 and all other rules are satisfied. The rook uses b1, but the king does not. Use the Queenside: b1 is attacked trainer and reveal the answer.
Yes, White may still castle kingside if h1 is attacked, provided the king is safe on e1, f1, and g1 and all other rules are satisfied. The rook may start on an attacked square. Use the Kingside: the rook is attacked trainer and reveal the answer.
Yes, the king must be safe on its starting square, the square it crosses, and the square where it lands. This is why check, passing through check, and landing in check are three separate practical tests. Use the Quick checker boxes for current check, through check, and end in check.
Castling rights are gone if the king has moved, or if the rook on the side you want to castle has moved. You cannot always see that from the current board because the piece may have moved away and returned. Use the King already moved and Rook already moved trainers to remember the history rule.
Castling rights are the remaining legal permission to castle with a particular rook. They depend on whether the king or rook has moved and whether the current position also satisfies the safety and clearance rules. Use the first two trainers in the Six clear reasons section to see castling rights disappear.
No, check on the rook is not a chess concept, and an attacked rook does not automatically stop castling. The king is the piece that must not be in check, pass through check, or land in check. Use the attacked-rook trainer above to see this distinction clearly.
Then you may castle only on the legal side, or choose not to castle at all. Kingside and queenside castling are checked separately because the rook, path, and attacked squares are different. Use the Kingside vs queenside section and then test the position with the Quick checker.
Beginners should often castle early when it is legal and safe, because leaving the king in the center can invite tactics. It is still important to check whether the castled side is actually secure. Use the common castling mistakes list before deciding automatically.
No, castling is legal in many positions but not always best. Sometimes the castled side has open lines, missing defenders, or a strong enemy attack already forming. Use the Practical beginner tip and Quick checker first, then judge whether the chosen side is safe.
If castling is legal but dangerous, you do not have to castle. You can improve defenders, choose the other side, or keep the king central temporarily if that is safer. Use the Kingside vs queenside section to compare both plans before committing.
If you cannot castle, focus on making the king safe by ordinary moves. That may mean blocking lines, trading attackers, moving the king by hand, or coordinating your rooks later. Use the Artificial castling section for the backup plan.
Artificial castling means improving king safety without using the official castling move. The king usually steps away from danger over several moves while the rooks are developed later. Use the Artificial castling section when one of the six illegal-castling trainers matches your position.
The most common mistake is trying to castle while in check, through check, or into check. The second common mistake is forgetting that a moved king or rook permanently loses castling rights. Use the Six clear reasons section as your final checklist.
Tick every box that matches your position, especially the history boxes for whether the king or rook moved earlier. The checker then separates permanent blocks from problems that can still be fixed by clearing pieces. Use the Quick checker before using the practice buttons.
Try to name the reason before pressing Reveal answer. Then use Practice from here to test the position and Replay proof to see the move sequence that created the rule problem. Use the Six clear reasons section as a mini training set.
Practice identifying whether the king moved, whether the rook moved, whether the path is clear, and whether the king crosses or lands on attack. These checks cover almost every castling dispute in beginner games. Use the six trainers first, then continue to the en passant next step.
Beginners often look only at the final square and forget that the kingβs crossing square also matters. That is why a square like f8 or f1 can make castling illegal even when the destination looks safe. Use the Passes through check trainer to make that rule visual.
Yes, the diagrams are designed to show each rule separately. The two legal misconception examples show when castling is allowed, and the six rule trainers show when it is not. Use the Reveal answer buttons as a simple teaching routine.
Remember this checklist: rights, clear path, no current check, no crossing check, and no landing in check. If any one of those fails, castling is illegal on that side. Use the Quick checker and the Six clear reasons diagrams until the checklist feels automatic.
The next special rule many beginners learn after castling is en passant.