How a chess game ends

Updated

A chess game is won by checkmate, when the opponent resigns, or when the opponent runs out of time. It is drawn by stalemate, by the same position coming up three times, by the 50-move rule, when neither side has enough material to checkmate, or when both players agree to a draw.

EndingResultWhat happens
CheckmateWinThe king is in check and has no legal way out.
ResignationWinOne player gives up.
Time runs outWin, or a drawA clock reaches zero. Draw if the other side could never checkmate.
StalemateDrawThe player to move has no legal move and is not in check.
Threefold repetitionDrawThe same position comes up three times.
50-move ruleDraw50 moves each with no capture and no pawn move.
Insufficient materialDrawNo series of legal moves could end in checkmate.
AgreementDrawOne player offers a draw and the other accepts.

Winning: checkmate, resignation or time

A chess game is won in one of three ways: by checkmating the other king, by the opponent resigning, or by the opponent running out of time on the clock.

Checkmate

Checkmate ends the game on the spot. The king is attacked, it can't step to a safe square, nothing can block the attack and the attacker can't be captured. The king is never actually taken off the board.

White: king g1, rook a8. Black: king g8, pawn f7, pawn g7, pawn h7.
Checkmate. The rook checks along the back rank and Black's own pawns block every escape square.

This pattern is called a back-rank mate.

If the player to move has no legal move but is not in check, that is stalemate instead, and it's a draw.Checkmate vs stalemate shows the difference with a short quiz.

Resignation

A player can resign at any moment, and the opponent wins at once. Strong players resign when they are sure the game is lost. Beginners usually do better to play on, because at that level a winning position still has to be won: opponents miss mates and walk into stalemate. ChessDays has a Resign button both against the bots and in online games.

Losing on time

When you play with a clock, a player whose time runs out loses, with one exception. Under FIDE's Laws of Chess, the game is a draw instead if the opponent could not checkmate by any possible series of legal moves: for example, if all they have left is a king, or a king and one bishop.

The FIDE test is strict: it asks whether a mate is possible, not whether it could be forced. A lone knight can sometimes still win on time, because the other side's own pawns or pieces could box in their king. The optional clock on ChessDays uses the simpler version: if your opponent has only a king, or a king with a single bishop or knight, running out of time is a draw.

Drawing: five rules

A game is drawn by stalemate, by threefold repetition, by the 50-move rule, by insufficient material, or by agreement between the players.

Stalemate

Stalemate happens when the player to move is not in check but has no legal move with any piece. Passing isn't allowed, so the game stops and it is a draw.

White: king f6, pawn f7. Black: king f8.
Black to move: stalemate. The king on f8 is not in check, but every square it could go to is covered.

Threefold repetition

A game is drawn when the same position comes up three times with the same player to move and the same castling and en passant options. The three times don't have to be in a row. A well-known way it happens isperpetual check: one side gives check after check and the other king can never get away.

White: king g1, queen e4, pawn f2, pawn g2, pawn h2. Black: king g8, queen c2, rook a3, pawn g7.
White is a rook down but can check forever: 1. Qe8+ Kh7 2. Qh5+ Kg8 3. Qe8+ Kh7 4. Qh5+ Kg8 5. Qe8+. Black's king has one legal move each time, and the position after Qe8+ has now appeared three times.

The 50-move rule

If each player makes 50 moves in a row with no capture and no pawn move, the game can be drawn. Any capture or any pawn move starts the count again. The rule stops a game from going on for ever when neither side can make progress, which is why it mostly matters in long endgames.

In over-the-board tournaments, a player has to claim a draw by threefold repetition or by the 50-move rule; the game doesn't stop by itself. On ChessDays the game ends automatically as soon as either one happens.

Insufficient material

A game is drawn as soon as neither side can checkmate by any series of legal moves. That covers king against king, king and bishop against king, king and knight against king, and king and bishop against king and bishop when both bishops stand on the same colour.

White: king e2, bishop c3. Black: king e6.
King and bishop against king: no checkmate is possible, so it is a draw at once.
White: king e2, knight c3, knight f3. Black: king e6.
King and two knights against king: they can't force mate, but a mate can still happen, so the game goes on.

King and two knights is the case that surprises people. Two knights can't force checkmate against a careful defender, but a mate is possible if the defender walks into it, so the rule doesn't end the game. It usually ends by the 50-move rule or by agreement instead.

Agreement

Either player can offer a draw, and if the other accepts, the game is drawn. In tournaments you make the offer just after playing your move. In ChessDays online games there is an Offer draw button next to Resign.

Draws that need no claim: fivefold repetition and 75 moves

Under FIDE's Laws of Chess, two kinds of draw happen automatically, even if nobody claims them: the same position appearing at least five times, and 75 moves by each player with no capture and no pawn move. If the 75th move gives checkmate, the checkmate counts. They let an arbiter stop a game that would otherwise never end because neither player claimed the earlier draw.

The Iron Rook's line when a game is drawn: “A draw. The fortress holds.”

Questions people ask

Is perpetual check a draw?
Not as a rule of its own. Endless checks lead to the same position coming up again and again, so the game is drawn by threefold repetition, or because the players agree.
Does the 50-move rule mean 50 moves in total?
No. It means 50 moves by each player, so 100 moves in a row counting both sides, with no capture and no pawn move. Any capture or pawn move starts the count again.
Does a repeated position have to come up three times in a row?
No. The three times can be spread across the game. What matters is that the pieces stand on the same squares, the same player is to move, and the castling and en passant options are the same.
I ran out of time, but my opponent only has a king left. Who wins?
Nobody. A bare king can never give checkmate, so the game is a draw even though your clock ran out.
Is stalemate a win for the player with more pieces?
No. Stalemate is always a draw, however much material one side has.