Check, checkmate & stalemate

How do you get out of check?

Updated · Sergei Tovmasian

Short answer

There are exactly three legal ways out of check: capture the piece that is giving check, put one of your own pieces between it and your king, or move the king to a square nothing attacks. You cannot block a knight check or a check from a piece standing next to your king, and you cannot castle out of check. If none of the three works, it is checkmate.

Black has seven legal moves in the position below, and exactly one of them wins a rook.

8
7
6
5
4
3
2
a
b
c
d
e
f
g
h 1
The rook on e5 checks the king on e8. Black can take it with dxe5, block on e6 or e7 with the bishop or the rook, or step aside to d7, d8, f7 or f8. All three kinds of answer are available, and only one of them wins material.

Every one of those seven moves is legal, and a beginner in a hurry plays Kf8 because the king is the piece being shouted at. Then the rook goes home and the game is level again. Take the free rook.

Capture, block, move, in that order

Look for the capture first. A checking piece has walked right up to your king, which usually means it has walked away from its friends, and the whole point of a check is that your opponent gets no time to rescue it. Ask what attacks it: pawns first, then knights and bishops, then the heavy pieces, then the king itself if the checker is undefended.

Look for the block second. Count the squares between the checking piece and your king (two here: e6 and e7), and ask what can reach any of them. Blocking is the answer that lets you keep developing, and it is the answer that wins the piece back later when the block also attacks something.

Move the king last, because it is the answer that never wins anything and often costs you the right to castle. When you do move it, look at the square you are going to rather than the square you are leaving. Every year I watch someone escape a rook check by stepping onto a diagonal a bishop has been eyeing since move six.

The checks with only one answer

Two kinds of check delete the first two options at a stroke.

A knight check can never be blocked. There is no square between a knight and the piece it attacks, so your only replies are to take the knight or run.

A contact check, where the checking piece is standing next to your king, cannot be blocked either, for the same reason. And if it is defended, you cannot take it.

8
7
6
5
4
3
2
a
b
c
d
e
f
g
h 1
The queen on h7 is touching the black king, so nothing can be put in between, and the bishop on b1 defends her, so Kxh7 is illegal. Kf8 is the only legal move on the board.

Double check does the same job with the third option instead: when two pieces give check at once, no single capture and no single block can stop both, so the king has to move. That is why double check puzzles look so violent; the attacker can hang anything they like.

When all three answers are gone, the position has a different name, and it is checkmate. If you find yourself reaching for a fourth option, castling out of check is the one everybody tries, and the rules do not allow it.

More questions

Can you block a check with your king?

No. The king cannot step onto the line between an enemy rook, bishop or queen and itself, because every square on that line is attacked by the checking piece. Blocking is a job for any other piece you own, and the king's only options are to move away or to capture the checker when it is undefended.

Can you take the piece that is giving check with your king?

Only if that piece is undefended. A king captures like any other piece, but it may never land on a square an enemy piece attacks, so taking a defended queen next to your king is illegal even though it looks like the obvious move. Check what defends it before you reach for the king.

Can you castle out of check?

No. Castling is forbidden while your king is in check, and also if the king would cross or land on an attacked square. Those three restrictions are separate: you can lose the right to castle this move and get it back later, once the checking piece has been dealt with.

Go deeper

Spot checkmate faster. The app serves mate-in-one and mate-in-two at your rating.

← All: Check, checkmate & stalemate · Learn chess