Sudoku AI Coach

Home › Learn › XY-Chain

Step 24 · ★★★★★★Master

What is XY-Chain? How to Solve Sudoku

In short

A longer cousin of the XY-Wing, built only from cells with exactly two candidates.

What it is

A longer cousin of the XY-Wing, built only from cells with exactly two candidates.

Neighboring cells share a digit: 3/7 – 7/2 – 2/5 – 5/3. If the first cell isn't 3, it's 7, so the next is 2, the next is 5, and the last is 3.

So one end is always 3, and any cell that sees both ends can't be 3.

How to spot it

Start from a two-candidate cell and hop to two-candidate cells it sees that share a digit. Stop when the last cell's other digit matches the first cell's.

Example

2693581246146784261297316557136492846734674725189147286149454573915457147813413824576382452445679112625912897128583414715457914891345138568562

Yellow cells are where to look, orange cells are the reason, red digits are candidates you can remove, and the blue digit is the answer.

Each cell in this chain has just two candidates, and neighbors share one digit: R7C5(5/4) – R7C4(4/2) – R2C4(2/1) – R2C8(1/6) – R9C8(6/5). If R7C5 isn't 5, it's its other digit. That pushes the next cell to its other digit, and so on down the chain, until R9C8 has to be 5. So R7C5 or R9C8 is always 5. Any cell that sees both (R9C5) can't be 5.

Practice this technique in your browser

Frequently asked questions

What is XY-Chain in sudoku?

A longer cousin of the XY-Wing, built only from cells with exactly two candidates.

Which sudoku difficulty needs XY-Chain?

XY-Chain is first needed in Master puzzles. Easier puzzles can be solved without it, and harder ones may need it along with other techniques.

What should I learn before XY-Chain?

Learn Simple Coloring first. The course goes from easy to hard, and XY-Chain comes right after Simple Coloring.

How can I practice XY-Chain?

Use the practice button on this page to solve puzzles in your browser where XY-Chain is the next step. The hint shows where to look, why, and the answer, one step at a time.