Pins in chess
By Chessvia · Updated Nov 5, 2026
A pin is an attack by a bishop, rook or queen that restricts a piece because moving it off the line would expose a more valuable piece behind it.
When the piece behind is the king, the pin is absolute and moving the pinned piece off the line is illegal. When it is the queen or another piece, the pin is relative: the move is legal, but it loses the piece behind.
Absolute pin: the knight cannot move
1 of 5 · White to move
Nimzo-Indian Defence after 1.d4 Nf6 2.c4 e6 3.Nc3 Bb4. Black's bishop on b4 lines up with White's king on e1 through c3 and d2.
Select a piece, then the square to move it to. Here: Nc3-d5, the knight from c3 to d5.
Try a pinned piece in five positions
In the first two the move is refused, because the piece is pinned to its king. The next two show what a pinned piece can still do. The last is a relative pin you are allowed to break, at a cost.
1. Absolute pin: the knight cannot move
Nimzo-Indian Defence after 1.d4 Nf6 2.c4 e6 3.Nc3 Bb4. Black's bishop on b4 lines up with White's king on e1 through c3 and d2.
Nc3-d5: not legal, the piece is pinned. Your knight on c3 is pinned: moving it would expose your king to the black bishop on b4.
A pinned knight can never move, because every knight jump leaves the line. White usually answers with a3, e3 or Qc2 instead.
Try it on the board2. Absolute pin: even a pawn is stuck
After 1.e4 e5 2.Nf3 Bb4, Black's bishop on b4 sits on the diagonal to White's king, with only the pawn on d2 in the way.
d2-d4: not legal, the piece is pinned. Your pawn on d2 is pinned: moving it would expose your king to the black bishop on b4.
d3 is refused as well, since both squares are off the diagonal. c3, which attacks the bishop, is legal.
Try it on the board3. A pinned rook may take the pinner
White to move. Black's rook on e8 pins White's rook on e2 to the king on e1.
Rxe8#: legal.
A pinned piece may move along the line of the pin, here all the way to e8. Rxe8 is even checkmate, because Black's pawns on f7, g7 and h7 box in the king. Re2-d2 would be refused.
Try it on the board4. A pinned knight still guards squares
Black to move. Black's rook on e8 pins White's knight on e2 to the king on e1.
Kg4-g3: not legal, the king would be in check. Your king cannot move into check: the white knight on e2 attacks g3.
The knight on e2 cannot move, yet it still attacks g3 and f4. A pin stops a piece moving, never attacking, so the black king may not step onto either square.
Try it on the board5. Relative pin: legal, but it costs the queen
Queen's Gambit Declined after 1.d4 d5 2.c4 e6 3.Nc3 Nf6 4.Bg5. White's bishop on g5 pins Black's knight on f6 to the queen on d8.
Ne4: legal.
The king is not behind the knight, so nothing forbids the move. But White answers Bxd8 and wins the queen for a bishop. That is why Black usually plays 4...Be7 here.
Try it on the board
How many types of pins are there?
Two main types: absolute and relative. A partial pin describes a piece that can still move along the line.
| Pin | Piece behind | Can the pinned piece move? |
|---|---|---|
| Absolute pin | The king | Only along the line of the pin. Any move off it is illegal. Positions 1 and 2. |
| Relative pin | The queen, a rook, or another piece worth more than the pinned one | Yes, but the piece behind is then taken. Position 5. |
| Partial pin | The king or another piece | A rook pinned on a rank or file, a bishop on a diagonal, or a queen on either can slide along the line and may take the pinner. Position 3. |
Only bishops, rooks and queens can pin, because a pin needs a line. A knight jumps and a pawn or king reaches only one square, so none of them can pin. Any piece except the king can be pinned, including a pawn.
A skewer is a pin in reverse. The more valuable piece stands in front, it has to move, and the piece behind it is taken.
How to win a pinned piece
A piece pinned to its king cannot run, so the attacker has time.
- Attack it with a pawn. A pawn is worth less than any piece. If a pawn attacks a pinned knight or bishop that cannot leave the line, the defender must give up the piece or defend it and lose time.
- Attack it a second time. Bring another piece onto the pinned one. It stays frozen, so the defender can only add defenders, one for each new attacker.
- Keep the pinning piece safe. The pin lasts only while the bishop, rook or queen stays on the line. Before you go after the pinned piece, check that nothing can attack or take the pinner.
How to break a pin
Four ways out, from the cheapest to the most drastic.
- Take the pinning piece. A pinned piece may still move along the line, so it can capture the pinner itself, as the rook does with Rxe8 in position 3.
- Attack the pinner. Hit it with a pawn. Against the bishop on b4 in positions 1 and 2, a3 or c3 makes it take or retreat.
- Put a piece between. After 4.Bg5 in position 5, Black's main move is 4...Be7, which stands between the knight and the queen. The knight is free again.
- Move the piece behind. Step the king or the queen off the line. The front piece is then no longer pinned and may move freely.
Rules and positions
Rules: FIDE Laws of Chess, Article 3.9 (check and moves that expose the king).
Credits
Legal moves: chess.js (BSD-2-Clause). The cost of the relative pin in position 5 was confirmed with native Stockfish at depth 18: after Ne4, Bxd8 is its best move.
Piece set: MIT.
