XY-Chains in Sudoku: From XY-Wing to Full Chains
An XY-Chain is a chain of bivalue cells connected by shared candidates that starts and ends on the same digit, allowing you to eliminate that digit from any cell that sees both ends. This powerful technique is a logical extension of simpler patterns like the [Y-Wing](/techniques/y-wing) and is a core strategy for solving harder puzzles. It functions by creating a network of forced choices, ultimately proving that one of two key cells must contain a specific digit. Mastering XY-Chains is a major step up in a solver's skill, turning complex puzzles from frustrating to solvable.
Level 1: The XY-Wing – The Shortest Possible Chain
Think of the XY-Wing as the most basic XY-Chain, consisting of exactly three bivalue cells. The pattern involves a pivot cell with candidates X and Y, and two 'pincer' cells. One pincer shares candidate X with the pivot, the other shares candidate Y. The key is that the two pincer cells share a third candidate, Z. The logic forces that any cell seen by both pincers cannot be Z. It’s a concise, powerful pattern, and understanding it is the perfect foundation for longer chains. You can learn more about its specific logic in our guide on the Y-Wing strategy.
Level 2: Extending to 4+ Cell Chains and Chain Notation
An XY-Chain extends this linking principle beyond three cells. It is a sequence of bivalue cells where each consecutive cell shares one candidate with the previous one. The chain starts and ends with the same digit, creating a powerful 'either-or' relationship. For example, consider a four-cell chain: Cell A (X,Y), B (Y,Z), C (Z,W), D (W,X). If D is NOT X, then the chain activates: D must be W, forcing C to be Z, forcing B to be Y, forcing A to be X. Therefore, at least one of the two ends (A or D) MUST be X. Consequently, any cell that can see both Cell A and Cell D cannot contain X, as it would conflict with one of them.
To document these chains, solvers use a specific notation. Each bivalue cell is written with its two candidates (e.g., XY). The link *within* a cell between its two candidates is a strong link (one must be true). The link *between* two cells that share a candidate in the same row, column, or box is a weak link (they cannot both be true for that digit). The chain alternates strong and weak links. Understanding this notation helps you trace the logic and verify the elimination is valid.
Level 3: Closed XY-Chains (Rings) and Double Eliminations
When an XY-Chain forms a perfect loop where the last cell links back to the first, it becomes a closed chain or ring. This is an even more powerful configuration. Because the chain is continuous and has no true start or end, the logic applies in both directions, often leading to multiple, simultaneous eliminations. Not only can you eliminate the chain digit from cells seen by the two traditional 'ends', but the interconnected nature of the ring can also prove that certain digits are impossible within the chain cells themselves. This can sometimes directly place numbers. Finding a ring is a satisfying and efficient way to crack a tough puzzle spot.
Level 4: Detection Habits and Practical Application
Spotting XY-Chains is a skill built on habit. Start by scanning the grid for all bivalue cells. Look for networks where these cells share candidate pairs. Mentally 'walk' from one bivalue cell to another via a shared digit. Ask yourself: if this cell is not 'A', what is it forced to be, and which cell does that force next? With practice, you'll start to see these connections more quickly. Our hint engine finds that XY-Chains are a true workhorse for mid-to-advanced puzzles, appearing far more frequently than complex Fish patterns. In fact, SudokuWiki refined its comprehensive XY-Chain detection strategy documentation in August 2025 to help solvers master this technique. It sits logically between simpler wings like the W-Wing and more complex multi-digit patterns like the WXYZ-Wing. While powerful, remember it is a specific type of logical deduction; for a broader look at similar exhaustive methods, you can examine forcing chains.
- Focus your search on clusters of bivalue cells. They are the essential building blocks.
- Use pencil marks accurately. A single missing candidate can hide a chain.
- Practice on puzzles rated 'Hard' or 'Expert'. XY-Chains are often the key breakthrough.
Key Facts
- ▪An XY-Chain is a sequence of bivalue cells connected by shared candidates, starting and ending on the same digit.
- ▪The shortest XY-Chain is the three-cell XY-Wing (or Y-Wing) pattern.
- ▪The chain's logic proves that at least one of the two end cells must contain the starting/ending digit.
- ▪You can eliminate that digit from any cell that sees both ends of the chain.
- ▪Chain notation uses strong links (within a cell) and weak links (between cells for a shared digit).
- ▪A closed XY-Chain, or ring, loops back to the start and can produce multiple eliminations.
- ▪XY-Chains are more common in hard puzzles than advanced Fish patterns like Swordfish.
- ▪Effective detection involves scanning for networks of bivalue cells that share candidate pairs.
Frequently Asked Questions
What is the difference between an XY-Wing and an XY-Chain?
An XY-Wing is a specific, three-cell XY-Chain. An XY-Chain is the general technique that can extend to four, five, or more bivalue cells in a sequence. All XY-Wings are XY-Chains, but not all XY-Chains are XY-Wings.
How do I know if my XY-Chain elimination is correct?
Trace the chain logic step-by-step. If the start cell is not digit X, the chain of forced choices must end with the final cell being X. Therefore, at least one end is X. Any cell that shares a row, column, or box with both ends cannot be X.
Are XY-Chains harder to find than X-Wings or Swordfish?
For many solvers, yes, because they require tracking a chain of logic rather than a static pattern. However, with practice scanning bivalue cells, they become easier to spot and are often more frequently useful in very hard puzzles.
Can an XY-Chain have more than one elimination?
Yes. A single chain can eliminate its key digit from all cells that see both ends. A closed XY-Chain (ring) can often produce multiple eliminations, sometimes both inside and outside the chain.
What is the most common mistake when looking for XY-Chains?
The most common error is using a cell that is not strictly bivalue (only two candidates). Including a cell with three or more candidates breaks the forced 'if-not-this-then-that' logic that makes the chain work.