Chess Rules: The Complete Official Ruleset
Chess has exactly 20 legal first moves for White and 20 replies for Black, which means 400 different positions after a single move each. All of that comes out of a rulebook you can read in one sitting, and a stable one: FIDE has published the international Laws of Chess since 1929, so the ruleset below has been the world standard for close to 100 years. This page states the whole ruleset plainly, and gives extra room to the rules players actually get wrong: what castling really requires, how en passant expires, the precise definition of stalemate, and when a draw can be claimed.
- White moves first, players alternate, and passing a turn is never allowed. The goal is checkmate, which ends the game instantly.
- Three moves break the ordinary pattern: castling, en passant and promotion.
- Castling needs an unmoved king and rook, empty squares between them, and a king that is not in check and neither crosses nor lands on an attacked square. The rook itself may be attacked.
- Stalemate means the player to move has no legal move and is not in check. It is a draw regardless of material.
- Six drawing rules exist: stalemate, agreement, threefold repetition, the fifty-move rule, a dead position, and a flag fall against insufficient mating material.
Interactive lesson — The stalemate trap: how a queen up becomes half a point: Play it on the board below, and make the key move yourself. A queen up against a bare king, and your own king already guards g7 and g8. This is exactly where a won game turns into a draw. Qh2 is checkmate. The queen checks up the h-file and covers h7 on the way, your king holds g7 and g8, and Black is out of squares. Build the habit: before any quiet move in a winning position, ask whether your opponent still has a legal reply. If the answer is no and he is not in check, you have just drawn.
The board and the starting position
The board is 8 squares by 8 squares, 64 in total, alternating light and dark. The vertical columns are files, labelled a to h from White's left; the horizontal rows are ranks, numbered 1 to 8 starting from White's side. Every square therefore has one name, and e4 means the same square to both players.
Orientation is a rule, not a preference: each player must have a light square in the corner nearest their right hand. If the near-right corner is dark, the board is rotated a quarter turn, and every diagram you compare it against will look wrong.
The back rank runs rook, knight, bishop, queen, king, bishop, knight, rook. The old mnemonic holds: the queen stands on the square matching her own colour, so the white queen starts on d1 and the black queen on d8, which leaves the two kings facing each other down the e-file. Pawns fill the whole rank in front. For a square-by-square walkthrough see how to set up a chess board, and if you want to build a position rather than a fresh game, our chess board editor lets you place pieces on an empty board and export the FEN.
White moves first. After that the players alternate, one move each, with no option to pass: if you have a legal move you are obliged to play one. That obligation is the engine behind half the rules below, including stalemate and zugzwang.
How the pieces move and capture
A capture works the same way for every piece except one: you move onto the square occupied by an enemy piece, and that piece leaves the board. No piece may move through another piece or land on a friendly one, and the knight is the only piece that may jump.
- King: one square in any direction, including diagonally. It may never move to a square attacked by an enemy piece, which also means the two kings can never stand next to each other.
- Queen: any number of empty squares along a rank, a file or a diagonal.
- Rook: any number of empty squares along a rank or a file.
- Bishop: any number of empty squares along a diagonal, which means it stays on its starting colour for the entire game.
- Knight: two squares along a rank or file, then one square perpendicular, always landing on the opposite colour from the one it left. It jumps over anything in between, friendly or enemy.
- Pawn: one square straight forward to an empty square, or two squares forward from its own starting rank provided both squares are empty. It captures one square diagonally forward, and only diagonally, so a pawn blocked head-on by any piece cannot advance at all. Pawns never move or capture backwards.
Those six descriptions are the whole of piece movement, but the pawn is the one most beginners misread, because the way it moves and the way it captures are different. Our companion guide on how chess pieces move works through each piece with diagrams and the standard notation.
Castling: the six conditions
Castling is the only move that shifts two of your pieces at once. The king travels two squares toward one of its rooks, and that rook jumps over the king to the square the king crossed. Kingside for White, written O-O, is Ke1 to g1 with Rh1 to f1. Queenside, written O-O-O, is Ke1 to c1 with Ra1 to d1. Black castles identically on the eighth rank.
It is legal only when all six of these hold:
- The king has never moved in the game.
- That particular rook has never moved. Castling rights are held per rook, so moving one rook leaves the other side available.
- Every square between the king and that rook is empty. Queenside this includes b1, so the knight, bishop and queen all have to be out of the way.
- The king is not currently in check.
- The square the king passes over is not attacked by an enemy piece.
- The square the king lands on is not attacked by an enemy piece.
Now the part that causes arguments. The rook may be attacked, and the square the rook crosses may be attacked. Conditions 4 to 6 restrict the king's journey and nothing else. So with an enemy bishop or rook covering b1, White may still castle queenside: the king goes e1 to c1, neither of which the bishop touches, and the rook crossing an attacked b1 is irrelevant. Equally, a rook on h1 sitting under fire from a bishop on a8 can still castle kingside.
Two more details. Losing the right is permanent: once the king moves it can never castle again, even if it walks straight back to e1. But being in check is temporary. If you cannot castle this move because of a check, and you answer the check with something other than a king move, castling remains available later. Over the board, castling counts as a king move, so under touch-move rules you pick up the king first and complete the whole thing with one hand. The short definition lives in our glossary entry on castling.
En passant, the capture that expires
En passant, French for "in passing", exists to stop a pawn's two-square jump from slipping past an enemy pawn that would otherwise have been able to capture it. When a pawn makes its two-square first move and lands directly beside an enemy pawn on the same rank, that enemy pawn may capture it as though it had advanced only one square.
A worked example
White has a pawn on e5 and Black plays d7 to d5, so the two pawns now stand side by side on the fifth rank. White may answer exd6. The white pawn finishes on d6, the square the black pawn skipped, and the black pawn is lifted off d5 even though nothing ever landed there. It is the only capture in chess where the capturing piece does not end up on the captured piece's square, which is exactly why it looks like cheating the first time it happens to you.
The conditions are narrow and worth memorising in full. Only a pawn can capture en passant, and only a pawn that has just made a double step can be taken this way. The capturing pawn must already be on its own fifth rank, which for White means rank 5 and for Black rank 4. Above all, the right lasts exactly one move: if you play anything else, even a forced recapture elsewhere, the chance is gone permanently. Nothing in the rules makes the capture compulsory, and it is occasionally the wrong move. See the glossary entry on en passant for the one-line version.
Promotion, and why not always a queen
A pawn that reaches the far rank, the eighth for White and the first for Black, is promoted as part of the same move. You replace it immediately with a queen, rook, bishop or knight of your own colour. It cannot become a king, and it cannot decline and remain a pawn: promotion is compulsory.
Two points that surprise people. The choice is not limited by what is already on the board, so a second, third or fourth queen is entirely legal, and a tournament player short of pieces borrows an upside-down rook or calls the arbiter rather than arguing about it. And the new piece acts instantly, so a promotion can deliver check or checkmate on the spot.
Underpromotion, choosing something other than a queen, is rare but real. A knight arrives with a check or a fork a queen could not give. A rook or a bishop sometimes avoids stalemating a trapped king, where a new queen would take the opponent's last legal move away and turn a win into half a point. Our glossary covers promotion in brief.
Check, checkmate and your own king
Your king is in check when an enemy piece attacks the square it stands on. You must deal with it on your move, and there are only three answers: move the king to a square that is not attacked, capture the checking piece, or block the line between the checking piece and your king. Blocking is unavailable against a knight, and against a piece standing right next to your king, because there is no line to interpose on. Against a double check, two pieces giving check at once, only a king move can work.
The deeper rule is that you may never make a move that leaves your own king in check. That single clause produces the pin: a piece standing between your king and an enemy rook, bishop or queen simply has no legal moves off that line. There is no obligation to announce check out loud; in tournament play nobody does. And the king is never actually captured, because the game ends the moment mate is delivered.
Checkmate is the king in check with no legal move available. The game ends there and then, with no further formality, and the checkmating player wins. Our glossary has short definitions of check and checkmate.
The six ways a game is drawn
This is the section that settles most rules disputes, because "draw" is not one rule but six, and three of them have to be claimed rather than happening on their own.
1. Stalemate
The player whose turn it is has no legal move and is not in check. The game is an immediate draw. Material is irrelevant: a player with a queen and two rooks can be stalemated if every piece is blocked or pinned, and a lone king in the corner draws against an army if you take its last square away without giving check. The difference from checkmate is one word, check, and it is the rule beginners get wrong most often. See stalemate.
2. Agreement
Both players may simply agree to a draw. The offer is made after playing your move and before pressing the clock, and the game ends when the opponent accepts, verbally or by offering in return. Many events add a rule forbidding agreed draws before a certain move number.
3. Threefold repetition
If the same position is about to appear, or has appeared, three times with the same player to move, either player may claim a draw. The repetitions need not be consecutive. "Same position" is strict: identical pieces on identical squares and identical available moves, which means castling rights and any en passant possibility must also match. A position with castling still available is not the same position as the one you reach after the rook has shuffled and come back. FIDE adds an automatic version at fivefold repetition, where the arbiter ends the game without a claim.
4. The fifty-move rule
If 50 consecutive moves by each player go by with no capture and no pawn move, either player may claim a draw. That is 50 moves per side, 100 individual moves in total, and any capture or pawn move resets the counter to zero. The claim is optional, but at 75 moves each the arbiter declares the draw regardless. Online, the platform applies both counters for you. Glossary entry: the fifty-move rule.
5. Dead position, usually called insufficient material
When no series of legal moves by either side could ever produce checkmate, the game is drawn immediately. The clear cases are king against king, king and bishop against king, king and knight against king, and king and bishop against king and bishop with both bishops on the same colour squares. Note the wording carefully: king and two knights against a bare king cannot be forced, but mate is legally reachable with cooperation, so it is not a dead position under FIDE rules and the game plays on until the fifty-move rule ends it. Online platforms apply their own shorter automatic lists, which is why a site sometimes declares a draw a little earlier than an arbiter would.
6. Flag fall against insufficient mating material
Running out of time normally loses the game. The exception is that if your opponent could not checkmate you by any possible series of legal moves, your flag fall is a draw rather than a loss. A bare king cannot lose on time.
Touch move, clocks and illegal moves
These rules govern play over the board and have no online equivalent, which is why players who learned on a screen meet them for the first time at a tournament.
- Touch move. Deliberately touch one of your own pieces and you must move it, if it has a legal move. Touch an opponent's piece and you must capture it, if a legal capture exists. Touch your king and a rook intending to castle when castling is illegal, and you must make some other legal king move. Saying "j'adoube", or "I adjust", before you touch anything lets you centre pieces in their squares with no obligation. See the touch-move rule.
- Move completion. Your move is made when you release the piece on a legal square. With a clock, the move is complete when you have released the piece and pressed your clock, and you must press it with the same hand you moved with.
- Illegal moves. An illegal move is taken back and the position restored. In standard play the first illegal move by a player gives the opponent two extra minutes and the second one loses the game; in blitz, a completed illegal move loses once the opponent claims it and stops the clock.
- Clock and scoresheet. Whoever's turn it is has their clock running. In longer time controls both players record the moves; the scoresheet is the evidence for a repetition or fifty-move claim, which is a practical reason to keep it accurate.
- Resignation. A player may resign at any time and loses. There is no rule requiring you to play a lost position out, and none requiring you to resign one.
The authoritative text for all of this is FIDE's Laws of Chess, and Wikipedia's rules of chess article is a good cross-check on the historical detail.
Eight rules players get wrong
- Wrong: you cannot castle if the rook is attacked. Right: only the king's three squares matter. An attacked rook, or an attacked b1, does not prevent castling.
- Wrong: once you have been in check you lose castling rights. Right: only moving the king itself does that. Answer the check another way and castling is still on.
- Wrong: en passant is optional forever. Right: it is optional, but only on the very next move. One move later the right has expired.
- Wrong: a pawn must become a queen. Right: queen, rook, bishop or knight, your choice, and the choice occasionally matters.
- Wrong: stalemate means neither side can win. Right: stalemate is a specific position, no legal move and no check, and it is a draw even when one side has a winning army.
- Wrong: the fifty-move rule counts 50 single moves. Right: 50 by each player, so 100 in total, and a capture or a pawn move resets it.
- Wrong: threefold repetition just needs the pieces back on the same squares. Right: the same side must be to move, and castling and en passant rights must match too.
- Wrong: you must say "check" out loud. Right: no rule requires it, and in tournaments it is simply not done.
What comes after the rules
Learning the rules takes an afternoon. What costs you games afterwards is not a rule you have forgotten, it is a decision you repeat. When we ran Stockfish depth-18 analysis on 164 players across six rating bands, opening accuracy rose from roughly 70 percent under 600 Elo to roughly 84 percent at 1800 and above, while endgame accuracy did not improve at all. The gaps were specific to each player, and they were the same handful of mistakes repeated game after game rather than anything to do with the rulebook. There is more on that breakdown in which phase of chess decides your rating.
If you already know the rules, the useful next step is finding your own repeated pattern instead of studying in general. How to study chess covers what a working study routine looks like, how to improve at chess covers the sequence for a first year of serious play, and why you keep blundering in chess deals with the single habit that costs club players the most rating.
Frequently Asked Questions
What are the basic rules of chess?
Two players share an 8x8 board with a light square in each player's near-right corner. White moves first and the players then alternate, and passing a turn is never allowed. Each piece has its own way of moving, only the knight may jump over other pieces, and a capture removes the enemy piece and puts yours on that square. You may never leave your own king attacked. The game ends when a king is checkmated, when a player resigns, when the clock falls, or when one of the six drawing rules applies.
Can you castle out of check, through check, or into check?
No to all three. Castling is illegal if the king is currently in check, if the square the king crosses is attacked, or if the square the king lands on is attacked. Castling also requires that the king and that particular rook have never moved and that every square between them is empty. What the rule does allow, and what most players get wrong, is that the rook itself may be attacked and the square the rook crosses may be attacked. Queenside castling with an enemy piece covering b1 is perfectly legal.
What is the en passant rule in chess?
When a pawn makes its two-square first move and lands directly beside an enemy pawn, that enemy pawn may capture it as though it had only moved one square. With a white pawn on e5, if Black plays d7 to d5, White may answer exd6: the white pawn lands on d6 and the black pawn is removed from d5. This is the only capture in chess where the capturing piece does not finish on the captured piece's square. The right lasts for exactly one move. Skip it and it is gone for good.
What is the difference between stalemate and checkmate?
Both mean the player to move has no legal move. The difference is check. If that player's king is attacked, it is checkmate and they lose. If the king is not attacked, it is stalemate and the game is an immediate draw, no matter how much material either side has. A player with a queen and two rooks can still be stalemated if every one of their pieces is blocked or pinned. This is why strong players check their opponent's legal replies before playing a quiet move in a winning position.
What is the 50 move rule in chess?
If 50 consecutive moves by each player pass with no capture and no pawn move, either player may claim a draw. That is 50 moves per side, so 100 individual moves in total. Any capture or any pawn move resets the count to zero. Under FIDE's Laws of Chess the draw is claimed, not automatic, but once 75 such moves by each side have passed the arbiter declares the draw whether or not anyone asks. Online platforms simply apply the rule for you the moment the counter is reached.
Do you have to promote a pawn to a queen?
No. A pawn reaching the far rank must be promoted, but you choose a queen, rook, bishop or knight of your own colour. It may not become a king and it may not stay a pawn. The choice is not limited by what is already on the board, so a second or third queen is legal. Underpromotion is occasionally the winning move: a knight can arrive with an immediate check or fork, and a rook or bishop sometimes avoids stalemating a trapped opponent when a new queen would draw the game.
Is the touch move rule real?
Yes, in over-the-board play. If you deliberately touch one of your pieces you must move it, provided it has a legal move. If you touch an opponent's piece you must capture it if a legal capture exists. Your move is finished when you release the piece on a legal square, and after that you cannot take it back. Saying "j'adoube" before touching a piece lets you centre it in its square without obligation. Online play has no equivalent, which is one reason players who only play online are surprised by it at their first tournament.