What Is a Pin in Chess?
A pin is an attack along a line on a piece that can't move without exposing a more valuable piece behind it. If the piece behind is the king, moving the pinned piece off that line is illegal. Otherwise it is legal but usually loses material.
What a pin is
Put a white bishop on g5, a black knight on f6 and the black queen on d8, with e7 empty. The knight can still move, but if it does, the bishop takes the queen. The knight is pinned: the bishop is the pinning piece, and the queen is the piece it is pinned to.
When the piece behind is the king, the pin is absolute. The pinned piece may not leave the line, because a move that leaves your own king in check is illegal. When it is anything else, the pin is relative: moving is legal, it just usually costs the piece behind.
Which pieces can pin
Only the pieces that move along lines.
Bishop
Pins on diagonals. Two come straight out of the opening: Bg5 against a knight on f6 with the queen on d8, and Bb5 against a knight on c6 with the king on e8. Black has the same pins the other way round, ...Bg4 and ...Bb4. Each needs an empty square between the knight and the piece behind it, e7 for Bg5 and d7 for Bb5.
Rook
Pins on files and ranks. A common case is an open e-file with the king still in the centre: a rook on e1, a black knight or bishop on e7, the king on e8.
Queen
Pins along files, ranks and diagonals, but it is the clumsiest pinner. If the pinned piece is defended, the queen can't take it without losing herself. And a rook pinned by the queen on a file, or a bishop pinned on a diagonal, can take her.
Knight, pawn and king
Cannot pin. A knight jumps, and a pawn or a king attacks only the next square, so there is never a line running through the target to something behind it.
Absolute and relative pins
What the pinned piece may do depends on what stands behind it.
Absolute pin: the king is behind
The pinned piece may not leave the line, because no move may leave your own king in check. The pin lasts until the line changes: a piece is put in between, the pinner is driven away or taken, or the king steps off the line.
Relative pin: the queen or a rook is behind
Moving the pinned piece is legal and usually loses the piece behind it, so it normally stays put. But it can move, and it will if moving it creates a bigger threat, such as a mate or a check that wins the queen back. The Elephant Trap and Legal's mate, both below, work this way.
Partial pin: moving along the line
A pinned piece can still move along the line of the pin, and that includes taking the pinner. A rook pinned on a file by a rook can slide along the file or capture it. A knight pinned to its king can never move, since a knight never moves along a line.
Pins from the opening
Three you will see in your own games, straight out of common openings.
Bg5 against the knight on f6
Standard in the Queen's Gambit Declined (1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bg5) and the Torre Attack (1.d4 Nf6 2.Nf3 e6 3.Bg5). The queen on d8 is behind the knight, so the pin is relative. Black usually puts a bishop between knight and queen with ...Be7, and sooner or later plays ...h6 to make the bishop take or retreat.
Bb5 against the knight on c6
After 1.e4 e5 2.Nf3 Nc6 3.Bb5 (the Ruy López) the bishop attacks the knight, but the pawn on d7 stands between the knight and the king, so this is not a pin yet. It becomes one when the d-pawn moves. After 3...d6 the knight is pinned to the king, and against 4.d4 Black normally blocks the line with 4...Bd7. Black uses the same pin against White in the Nimzo-Indian, 1.d4 Nf6 2.c4 e6 3.Nc3 Bb4. There it is a pin at once: White's d-pawn has already left d2, so nothing stands between the knight on c3 and the king on e1.
Bc4 against the knight on d5 (Fried Liver)
In the Two Knights Defence, 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 d5 5.exd5 Nxd5 6.Nxf7 Kxf7 7.Qf3+ Ke6 is the Fried Liver Attack. The bishop on c4 pins the d5-knight to the king on e6, and the queen on f3 attacks it as well. 8.Nc3 adds a third attacker. Black has to find another defender, usually by bringing the c6-knight to b4, with the king still standing in the middle of the board.
Pin, skewer and fork
A pin and a skewer use the same line with the pieces in the opposite order. A fork works differently.
| Pin | Skewer | Fork | |
|---|---|---|---|
| How it works | Attack on a line; the front piece can't move safely | Attack on a line; the front piece must move and the one behind falls | One piece attacks two or more |
| More valuable piece | Behind | In front | Either |
| Done by | Bishop, rook, queen | Bishop, rook, queen | Any piece, most often a knight |
| Defence | Block, move the piece behind, attack the pinner | Block, or move the front piece to where it guards the back one | Take the forking piece, or move one target with a threat |
How to win a pinned piece
A pinned piece is a target that can't run away.
Attack it again
A pinned piece can't run, so count attackers against defenders and add attackers one at a time. Each new attacker demands a new defender, and 8.Nc3 in the Fried Liver is exactly that kind of move. Taking or driving off one of its defenders does the same job from the other side. When the defenders run out, the piece falls.
Attack it with a pawn
A pawn is the cheapest attacker. If Bg5 pins a knight on f6 to the queen and a white pawn reaches e5, the knight is attacked and can't step aside without giving up the queen. Black has to deal with the pin before that pawn arrives.
Keep the pin when it is challenged
Against ...h6, Bh4 keeps the bishop on the same diagonal and the pin stays. Bxf6 ends it. That trade of bishop for knight is worth it when Black has to recapture with the g-pawn and the kingside pawns are broken up. It gives little when the queen recaptures.
How to break a pin
The same pins, seen from the side that is pinned.
Put a piece in between
Against Bg5, ...Be7 puts a bishop between the f6-knight and the queen. The knight is still on the line, but only a bishop defended by the queen stands behind it now, so the knight is free to move: if it does, Bxe7 Qxe7 is an even trade. Against Bb5, ...Bd7 does the same job.
Move the piece behind
Castling takes the king off the line and ends an absolute pin. Against a relative pin, the queen steps off the line instead.
Attack the pinner
...h6 against Bg5 and ...a6 against Bb5 make the bishop take or retreat. If it retreats along the same diagonal (Bh4, Ba4), the pin is still there, and ...g5 or ...b5 ends it at the cost of loosening your pawns.
Move the pinned piece anyway
This works only against a relative pin, and only with a bigger threat. Legal's mate: 1.e4 e5 2.Nf3 d6 3.Bc4 Bg4 4.Nc3 g6 5.Nxe5. The knight was pinned to the queen and leaves anyway. If Black takes the queen, 5...Bxd1 6.Bxf7+ Ke7 7.Nd5# is mate. The right reply is 5...dxe5 6.Qxg4, and White has won a pawn.
Common mistakes
Counting a pinned piece as a defender
A piece pinned to the king can't recapture off the line. A knight on d7 pinned by Bb5 against the king on e8 does not defend e5 or f6, however it looks. Take it out of the count.
Seeing a pin that isn't there
1.d4 Nf6 2.Bg5, the Trompowsky, looks like a pin, but the pawn on e7 stands between the knight and the queen, so the knight can go where it likes. 3.Bb5 in the Ruy López is the same case with the pawn on d7. Look at the square behind the attacked piece before you call it pinned.
Trusting a relative pin
1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bg5 Nbd7 5.cxd5 exd5 6.Nxd5? White grabs a pawn because the f6-knight looks pinned. It is pinned only to the queen: 6...Nxd5! 7.Bxd8 Bb4+ 8.Qd2 Bxd2+ 9.Kxd2 Kxd8, and Black has won a piece for a pawn. This is the Elephant Trap.
Pushing ...g5 in front of your own king
Chasing the bishop with ...h6 and ...g5 is a normal way to break the Bg5 pin while your king is still in the centre. Once you have castled kingside, those pawns are your king's cover, and a piece sacrifice on g5 to open lines against the king is a standard reply.
Where to practise
The pin page in the tactics section lists the signs that a pin is on the board. Your own games are the other source: the pins you missed there are the ones you are likely to miss again.
Frequently asked questions
Rule questions that come up about pins.
What is a pin in chess?
A pin is an attack by a bishop, rook or queen on a piece that can't leave the line without exposing a more valuable piece behind it. When the piece behind is the king, leaving the line is illegal.
Can a pinned piece give check?
Yes. Even a piece pinned to its own king still attacks the squares it normally attacks, so it gives check, and the enemy king can't step onto any of those squares. What it can't do is leave the line of the pin, so it can't capture or block a check anywhere off that line.
Can you castle when one of your pieces is pinned?
Yes. A pin is not a check, so castling is legal as long as the normal castling rules are met. Castling is also one of the simplest ways to end a pin against the king.
What is the difference between a pin and a skewer?
Both are attacks along a line. In a pin the more valuable piece is behind, so the front piece stays where it is. In a skewer the more valuable piece is in front, it has to move, and the piece behind it is lost.
Find the pins in your own games
Import your games from Chess.com or Lichess by username, and chess.rodeo marks your mistakes with Stockfish, move by move. Count how many were pins you missed or walked into. Free, no account needed.