Most chess players think of tactics in very direct terms. A fork hits two pieces at once. A pin holds a piece in place. A discovered check arrives when you move one piece out of another’s way. These are all visible threats. But the x-ray attack in chess is different. It operates through an enemy piece, exerting pressure along a file, rank, or diagonal even while a blocker sits in between. The target is hidden, the pressure is latent, and the impact can be devastating when the blocking piece is finally forced to move.
Understanding the x-ray attack helps you see the board at a deeper level. It trains you to look beyond the pieces that occupy a square and consider what lies behind them. In competitive play, that extra layer of vision is often what separates a player who blunders into a losing position from one who stays a step ahead.
This guide covers everything: what the x-ray attack is, how it differs from similar tactics, the two main types, practical examples, and how to start spotting opportunities during your games. If you want structured coaching on chess tactics, explore our online chess classes for advanced players where our GM and IM coaches drill tactical patterns systematically.
What Is an X-Ray Attack in Chess?
An x-ray attack in chess is a tactic where a long-range piece exerts pressure on a square or target piece through an intervening enemy piece. The attacker does not directly control the target square at that moment. However, the moment the blocking piece moves, the attacking piece’s influence becomes direct and often decisive.
The name comes from radiography. Just as an x-ray beam passes through soft tissue to reveal what lies underneath, an x-ray attacking piece in chess “sees through” the intermediate piece on the same line. The concept is also sometimes called a “skewer through a piece” or a “long-range pin” in older literature, but x-ray attack has become the standard term in modern chess education.
Three elements must be present for an x-ray attack to exist:
- An attacker: A long-range piece — rook, bishop, or queen — positioned on an open line.
- An intervening piece: An opponent’s piece sitting between the attacker and the real target.
- A target: A piece or critical square that lies directly behind the intervening piece on the same line.
When the intervening piece is forced to move (because of a threat, exchange, or tactical sequence), the attacker’s energy is instantly unlocked. That is the “x-ray” in action.
X-Ray Attack vs Pin vs Skewer: What Is the Difference?
Players often confuse these three tactical motifs because they all involve pieces aligned on the same line. The differences are small but critical. Getting them wrong in analysis can lead to missed wins or miscalculated defenses.
| Tactic | Alignment | Blocking Piece | How It Wins |
|---|---|---|---|
| Pin | Attacker, blocker (yours or enemy), high-value piece behind | The pinned piece cannot move safely | The pinned piece is immobilised, restricting opponent options |
| Skewer | Attacker, high-value piece, lower-value piece behind | The front piece must move to escape | Capturing the lower-value piece behind after the front piece flees |
| X-Ray Attack | Attacker, enemy blocking piece, target behind | The blocking piece is threatened or forced to move | Pressure on the hidden target is unleashed the moment the blocker moves |
The simplest way to remember the distinction: in a pin the valuable piece is behind, so it cannot move. In a skewer the valuable piece is in front, so it must move. In an x-ray attack the critical target is behind and the pressure is hidden until the blocker moves or is exchanged away. You can read more about related tactical patterns in our guide to learning tactics with online chess courses.
Two Types of X-Ray Attack in Chess
Type 1: The X-Ray Attack (Offensive)
An offensive x-ray attack occurs when your long-range piece threatens a target behind an enemy piece. The idea is that when that enemy piece vacates the line (because it is attacked, captured, or forced to move), your attacker strikes the target behind it.
Here is a concrete model to hold in mind: imagine your rook is on e1, the enemy queen sits on e5, and behind it on e8 is the enemy rook. Your rook on e1 is attacking the queen on e5 directly. But it is also x-raying the e8 rook through the queen. When the enemy queen moves or is exchanged, your rook immediately captures on e8. The queen was the visible threat; the rook behind it was the hidden target.

This is one of the most common x-ray attack patterns at club level. Always scan past the first piece on any open file, rank, or diagonal. What you find behind it often determines whether the position is won or lost.
Type 2: The X-Ray Defense (Defensive)
An x-ray defense occurs when your piece protects a friendly piece or critical square indirectly, through an enemy piece on the same line. This is far less intuitive and, as a result, far less often seen in games. Players who study it gain a genuine edge in endgames and tense middlegame positions.
Think of this example: your rook is on g8, an enemy rook occupies g4, and your bishop sits on g2. On the surface, it looks like your bishop on g2 is exposed to the enemy rook on g4. But your g8 rook is x-raying through the enemy piece. If the enemy rook captures your bishop on g2, your g8 rook recaptures on g2 immediately. The enemy rook on g4 is therefore not winning anything. Your bishop is protected via the x-ray.

This type of indirect defense frequently creates calculation errors. Players assume a piece is undefended because no piece directly guards it, without realising a long-range piece is defending it through the opponent’s own piece.
Which Pieces Can Execute an X-Ray Attack in Chess?
Not every piece can generate an x-ray. The tactic depends entirely on long-range movement. Here is how each piece type participates:
- Rooks: The most common x-ray attackers. Rooks operate on files and ranks, and any open line with two pieces aligned becomes a candidate. Doubled rooks on an open file frequently create layered x-ray threats.
- Bishops: X-rays along diagonals. Bishops that appear blocked by a centrally placed enemy piece may still be x-raying a critical square or piece behind it. This is especially important in fianchetto positions where the bishop on g2 or b2 can x-ray through a central pawn or piece.
- Queens: The most versatile x-ray piece. Because queens move on ranks, files, and diagonals, they can create x-ray threats in six different directions simultaneously. A queen on g5 x-raying the h5 square through a blocking piece is a recurring motif in kingside attacks.
- Knights, Pawns, Kings: These pieces do not have long-range movement, so they cannot generate x-ray attacks. However, knights and pawns can act as intervening pieces in an x-ray setup.
How to Spot an X-Ray Attack Opportunity on the Board
Most missed x-ray attacks share the same cause: the player saw the blocking piece and stopped scanning. Here is a four-step routine to build the habit of looking further:
- Check every open file, rank, and diagonal. Before each move, identify lines that are fully or partially open. These are the highways for x-ray attacks. A half-open file with one piece on it is always a candidate.
- Look past the first piece. Train yourself to ask: “If this piece were not here, what would my rook (or bishop or queen) be hitting?” That invisible threat is your x-ray. It may already be exerting pressure you can activate.
- Identify pieces that can be forced to move. An x-ray attack becomes real the moment the blocking piece vacates the line. Ask: Can I attack the blocker with a lower-value piece? Can I create a different threat that forces the opponent to move the blocker themselves?
- Calculate what changes when the line opens. Before committing to a tactic built on an x-ray, calculate the full sequence after the blocking piece moves. Confirm the target is genuinely vulnerable and that no resource covers it once the blocker leaves.
How to Defend Against an X-Ray Attack in Chess
Knowing how to use x-ray attacks also means knowing how to avoid being the victim. Here is what experienced players watch for:
- Avoid lining up valuable pieces. Be cautious whenever your queen and rook (or rook and rook, or queen and king) share the same file, rank, or diagonal with an enemy long-range piece in front of them. That alignment is the foundation of an x-ray setup against you.
- Keep your blocking pieces active. If an enemy rook or bishop is x-raying through one of your pieces, make sure that blocking piece is doing real work on the board. A passive blocker that has no escape route and no other purpose is a liability in any tactical sequence.
- Disrupt the attacker’s line. If you identify that an opponent’s rook is x-raying your rook through a blocking piece, consider placing another piece on the file to break the alignment. Introducing a second blocker between the attacker and the original blocker destroys the x-ray geometry.
- Calculate before capturing. Before you take a piece that is being “protected” by an x-ray defender, verify the recapture sequence fully. Many x-ray defenses look like gifts until the recapture arrives.
Common Mistakes Players Make with X-Ray Tactics
Even when players have learned the concept, they fall into predictable errors. Being aware of these mistakes saves significant tournament points.
- Forgetting the x-ray after calculating one step. Players calculate the immediate exchange on the blocking piece and then recalculate the position as if it were brand new. They forget that the attacker was already x-raying something behind. Always carry the x-ray forward through your calculation.
- Missing defensive x-rays. A piece that looks undefended may actually be protected via x-ray through an enemy piece. Capturing it triggers a recapture. Always check if your opponent’s long-range pieces are x-raying through your own pieces before taking material.
- Treating pinned pieces as defenders. A piece that is pinned to its king cannot protect another piece, even if the geometry suggests it does. This combines pin logic with x-ray logic: if the “defender” is pinned, the x-ray behind it has even more practical value.
- Only checking files and ranks for rooks. Rooks work on files and ranks, but bishops work on diagonals and queens work everywhere. Players who practice x-ray recognition mainly with rooks miss a huge number of diagonal x-rays by bishops and queens in real games.
How X-Ray Attacks Connect to Broader Chess Strategy
The x-ray attack does not live in isolation. It connects to almost every other element of chess strategy:
- Open lines: X-rays require open or semi-open lines. This is why controlling files with rooks, maintaining active bishops on long diagonals, and centralising the queen are all strategically important. Better piece coordination produces more x-ray opportunities.
- Piece activity: A passive bishop on c1 behind its own pawns cannot generate any x-ray threats. An active bishop on b2 or g2 looking down a long diagonal is x-raying potential targets on every move. Piece activity is not just about direct threats; it is also about latent x-ray pressure.
- Pawn structure: Pawns that block diagonals for your own bishops also block x-ray lines. This is one of the hidden costs of locking in your bishop early. Conversely, an opponent’s strong central pawn may block your bishop’s diagonal and prevent an x-ray that would otherwise win material.
For a broader view of how tactics and strategy interact at the positional level, our guide on chess opening strategies and centre control shows how the principles you apply in the opening directly determine which tactical opportunities (including x-rays) arise in the middlegame.
Frequently Asked Questions
An x-ray attack in chess is a tactic where a long-range piece (rook, bishop, or queen) exerts pressure on a target piece or square through an intervening enemy piece. The attacker "sees through" the blocking piece. When the blocker is forced to move, the hidden pressure becomes a direct, often winning threat.
In a pin, the higher-value piece is behind the pinned piece and cannot safely move. In an x-ray attack, the blocking piece is the intermediate one and the critical target (piece or square) lies behind it. The blocker is under threat, not immobilised. The key distinction: pins restrict movement, x-ray attacks build latent pressure that activates when the blocking piece leaves.
X-ray attacks are exclusively executed by long-range pieces: rooks, bishops, and queens. These are the only pieces whose movement extends infinitely along a line, allowing them to "see through" a blocking piece to what lies beyond. Knights, pawns, and kings do not have this capability.
Yes. An x-ray defense occurs when your piece protects a friendly piece indirectly through an enemy piece on the same line. If the enemy piece on that line tries to capture your piece, your long-range piece recaptures through it. This defensive x-ray is far less commonly studied but extremely useful in endgames and complex middlegame positions.
The most effective method is repetition with varied positions. Practice scanning every open line and looking past the first piece on that line to identify potential x-ray targets. Drilling tactical puzzles specifically tagged as "x-ray" or "indirect attack" on any major chess platform builds pattern recognition over weeks of consistent practice.
Yes, x-ray attacks appear at all levels of chess, from club games to world championship matches. The x-ray defense especially appears in endgames where positions seem simplified but long-range coordination between rooks, bishops, and queens still creates subtle tactical resources that determine the result.
Conclusion
The x-ray attack in chess is a reminder that what you cannot immediately see on the board is often just as important as what you can. It requires a specific kind of vision: the habit of looking through pieces, not just at them. When that habit becomes instinctive, an entirely new layer of the board opens up.
Offensive x-rays create hidden pressure that activates the instant a blocking piece moves. Defensive x-rays protect pieces that appear unguarded, creating calculation traps for the opponent. Together, they form a tactical toolkit that rewards deeper thinking and punishes players who only calculate one step ahead.
Master this tactic and you will start spotting winning moves that most opponents at your level simply cannot see. For systematic, coach-led training on x-ray attacks and the full range of chess tactics, explore our online chess classes for kids and adult learners at Kingdom of Chess.
Also Read



