Chess tactic · Intermediate

The x-ray: attacking and defending through a piece

By CastleEarlyUpdated November 16, 20263 min read
Rxd8+: the queen x-rays through the rook

Rooks, bishops and queens keep their influence on a line even when a piece stands in the way. When that piece moves or is captured, the one behind takes over at once. Seeing these hidden attackers and defenders is what the x-ray is about.

Quick answer

An x-ray is the indirect influence of a rook, bishop or queen through another piece on the same line. In an x-ray attack your piece attacks a target through an enemy piece. In an x-ray defense it protects one of your own pieces through an enemy piece. When you count attackers and defenders, x-raying pieces count.

Pieces
Rook, bishop and queen
X-ray attack
A target behind another piece on the line
X-ray defense
Protecting a piece through an enemy piece
Level
Intermediate

What is an x-ray in chess?

Two rooks on the same file are the clearest example. The back rook doesn't touch the target yet, but the moment the front rook captures, the back rook is attacking the same square. That is why doubled rooks count as two attackers.

The same thing happens through enemy pieces. If your rook and the enemy queen stand on one file with an enemy rook between them, your rook is already looking at the queen. And if your queen and your rook are on the same line with an enemy piece in between, they protect each other through it, which makes surprising captures possible.

How to spot an x-ray

  • Follow every line to the edge of the board. Don't stop at the first piece: look at what is behind it.
  • When you count attackers on a square, include the pieces lined up behind them.
  • Check what your pieces would attack if the piece in front moved or was traded.

Puzzle 1: rook and queen on the d-file

You play White. Drag or tap the pieces, and press Hint if you get stuck.

Puzzle 2: count the hidden attacker

A second position with the same idea. You play White again.

How to defend against x-rays

  • Count the pieces behind the attackers before you decide a piece is safely defended.
  • Break the line by placing a protected pawn or piece on it.
  • Don't leave your queen or king on a line behind your own piece when enemy rooks or bishops share that line.

Frequently asked questions

What is an x-ray in chess?

An x-ray is a long-range piece attacking or defending along a line through another piece that stands in the way.

What is the difference between an x-ray and a skewer?

A skewer is a direct attack that forces the front piece to move so the back piece can be taken. X-ray is the wider idea of a piece having influence through another piece, including for defense.

What is an x-ray defense?

It is when one of your long-range pieces protects another of your pieces through an enemy piece standing between them on the same line.

Keep learning