X-Ray Attacks in Chess
An x-ray attack happens when a piece's line of attack passes straight through another piece to a more valuable target beyond it — a pattern that quietly wins material in games at every level once you learn to spot it.

Most tactical training focuses on patterns you can see directly on the board: a knight forking two pieces, a pin along a file, a discovered check. X-ray attacks are different because the real target isn't the piece your attacking piece appears to be aimed at — it's something further down the same line, hidden behind the first piece in the way. Learning to notice these hidden lines of force is one of the more subtle but genuinely valuable tactical skills a club player can develop, because x-ray patterns tend to be missed by players who only evaluate what's immediately attacked rather than everything lying along the same rank, file, or diagonal.
What "X-Ray" Actually Means on a Chessboard
An x-ray attack occurs when a piece that moves along a straight line — a rook or queen on a rank or file, a bishop or queen on a diagonal — has its line of attack partially blocked by another piece, but still exerts real influence on whatever lies beyond that blocking piece. The name comes from medical imaging for a good reason: just as an x-ray image reveals what's hidden beneath the surface, an x-ray attack reveals a threat that isn't obvious just from looking at what's on top.
This differs subtly from a simple pin, although the two ideas are closely related and often appear together. A pin restricts the blocking piece's movement because moving it would expose something more valuable behind it. An x-ray attack is the broader concept: the attacking piece is influencing the square or piece beyond the blocker, whether or not the blocking piece is currently able to move at all. In practical terms, recognizing an x-ray means recognizing that trades along that line won't simply end the tension — there's another piece waiting to capture once the blocker is gone.
A Concrete Example
Consider the following position, where White has a rook on the d-file, a knight sits on d5 in front of it, and Black's queen is further back on the same file.
At first glance, it looks like White's rook simply attacks the knight on d5, which is defended once by the queen on d8. A player who only counts the immediate attacker and defender might conclude the knight is adequately protected and move on. But White also has a bishop eyeing d5 along the long diagonal from g2. That's two attackers against one defender — and because the rook's attack passes straight through the knight to the queen beyond it, the point isn't really about winning the knight at all. It's about what happens to the queen once the knight is gone.
After 1.Bxd5, Black's most natural move is to recapture with 1...Qxd5, since the knight was defended and simply losing it for nothing would be far worse. But that recapture walks the queen directly into the path of White's rook, which was x-raying through the knight the entire time. White plays 2.Rxd5, winning the queen for a bishop and a knight — a huge material gain that only becomes visible once you notice the rook's hidden influence on d8 from the very first move.
Why This Pattern Gets Missed
The reason x-ray attacks are so commonly overlooked, even by experienced club players, is that the natural instinct when scanning a position is to ask, "what does this piece attack right now?" rather than, "what does this piece's line of movement pass through, and what's on the other side?" A rook blocked by another piece on its file often gets mentally filed away as "not doing much yet," when in reality it's exerting real pressure on the whole line, ready to activate the instant the blocker moves or is captured.
This is especially dangerous in exchanges. Many players calculate a trade sequence by counting attackers and defenders on a single square, without checking whether a piece further back on the same line changes the outcome of that exchange once the first pieces come off. As the example above shows, a defender that looks adequate on the surface — one attacker, one defender — can turn out to be completely inadequate once you account for the piece lurking behind.
X-Ray Defense: The Same Idea, Used Protectively
X-ray patterns aren't only offensive weapons. The same geometric idea can work defensively, where a piece indirectly supports a square or piece through an enemy piece standing in the way. If your queen is attacking an enemy piece and your rook sits behind your queen on the same file, your rook doesn't just support your queen in the ordinary sense — it also means that if the enemy piece being attacked is somehow defended in a way that seems to neutralize your queen's threat, the rook's presence further back can change that calculation once trades occur.
More broadly, being aware of x-ray relationships helps you evaluate whether a piece is truly "safe" to leave on a square, or whether an opponent's apparently blocked piece is actually exerting hidden pressure that will matter the moment something moves. Strong players habitually scan entire ranks, files, and diagonals for this kind of hidden influence, not just the squares immediately next to each piece.
How to Train Yourself to Spot X-Rays
Like most tactical patterns, recognizing x-rays becomes automatic with deliberate practice. A few habits will speed up that process considerably:
- When evaluating any exchange sequence on a particular square, mentally trace the full rank, file, and diagonal through that square in both directions — not just the squares immediately next to it.
- Pay special attention to positions where major pieces (queens and rooks) are stacked on the same file or rank with an enemy piece in between — this is the classic setup for an x-ray attack.
- Before assuming a piece is "adequately defended" because the attacker-to-defender count looks even, check whether any piece further back on the same line changes that count once the front pieces are traded off.
- Practice with puzzle sets specifically themed around x-ray attacks and defenses, since deliberately repeated exposure to the pattern is what builds the instinct to notice it during a live game.
- Review your own games for missed opportunities — x-ray tactics are commonly missed rather than deliberately avoided, so a post-game review with an engine will often reveal chances you didn't even consider.
X-Rays in Combination With Other Tactics
In real games, x-ray attacks rarely appear in isolation. They frequently combine with pins, discovered attacks, and deflection tactics to create winning combinations that are much harder to calculate than any single motif on its own. A piece might be pinned against a king while simultaneously sitting in front of a queen that's x-raying a rook further down the same file — meaning that even a move which seems to only address the pin can walk directly into losing material on the other tactic entirely.
This is part of why strong tactical players are taught to evaluate positions broadly rather than motif by motif. Rather than asking "is there a pin here" and then separately asking "is there a fork here," experienced players scan the full geometry of the position — every line every piece controls — and let the tactics reveal themselves from that complete picture. X-ray attacks are a perfect example of why this broader habit matters: the tactic is invisible if you only look at what's directly attacked, and obvious once you get in the habit of tracing every line all the way through.
Putting It Into Practice
The next time you're evaluating a trade in your own games, get in the habit of asking one extra question before committing to the sequence: is there anything else standing on this same line, behind the pieces I'm about to trade? That single habit — checking behind the immediate action rather than just on top of it — is often the difference between a routine, equal exchange and a combination that wins material outright. X-ray attacks reward players who look a little further down the board than their opponent does, which makes them one of the more satisfying tactical patterns to add to your calculation toolkit.
X-Rays Along Diagonals, Not Just Files and Ranks
Most introductory examples of x-ray attacks, including the one worked through above, use a file, simply because rook-and-queen batteries on open or semi-open files are easy to visualize and common in real games. It's worth remembering that the same idea applies with equal force to diagonals, wherever a bishop or queen's line of movement is temporarily blocked by another piece. A bishop sitting behind an enemy knight on a long diagonal, with the enemy king or queen further along that same diagonal, is exerting exactly the same kind of hidden pressure as the rook-and-knight-and-queen example on the d-file — the geometry is identical, only the piece and the direction have changed.
This matters practically because players tend to scan files and ranks for tactics more readily than diagonals, particularly long diagonals that stretch across the whole board from corner to corner. A fianchettoed bishop, in particular, is a frequent source of overlooked x-ray attacks, since its influence along the full diagonal is easy to underestimate once a piece or two temporarily blocks the direct line of sight. Whenever you're calculating exchanges near a long diagonal with a bishop or queen anchored at one end of it, apply the same habit described earlier: trace the full diagonal, not just the first piece or two you notice sitting on it.
Why Strong Players Treat This as a Default Scanning Habit
One of the clearer differences between club-level and expert-level pattern recognition is how systematically a player scans a position before settling on a move. Weaker players tend to evaluate threats piece by piece, checking what each of their pieces attacks and what each of the opponent's pieces attacks, in relative isolation from one another. Stronger players are far more likely to scan entire lines — every rank, file, and diagonal with more than one piece on it — as a matter of habit, specifically because patterns like x-ray attacks, pins, and skewers are invisible to a piece-by-piece scan and only become visible when you consider full lines at once.
Building this habit doesn't require special talent, just repeated, deliberate practice. A useful exercise is to take any moderately complex middlegame position, from your own games or from a database, and before making any move, explicitly list every rank, file, and diagonal that currently has two or more pieces of either color on it. Doing this consistently, even for a few minutes a day, trains your eyes to notice these lines automatically during real games, at which point spotting x-ray attacks — and the pins, skewers, and discovered attacks that so often accompany them — stops feeling like a special skill and starts feeling like simply seeing the board correctly.
Keep reading

Zwischenzug: The Power of In-Between Moves
The in-between move is one of the most underused weapons in club-level chess: instead of playing the 'obvious' recapture, you insert a bigger threat first and collect the point twice. Here's how to spot the pattern before your opponent does.
Hardik Ranpariya · October 10, 2026

The Windmill: A Devastating Tactical Combination
How a bishop and rook working together can repeatedly check and capture in a single devastating sequence — one of chess's most visually spectacular combinations.
Hardik Ranpariya · October 6, 2026

Removing the Defender: A Key Tactical Motif
How eliminating the piece guarding a key square or another piece opens the door to tactics that weren't previously available — one of chess's most versatile combinational building blocks.
Hardik Ranpariya · October 1, 2026
