The X-Wing is one of those patterns that looks complicated on paper but becomes instantly obvious once you see it in a real puzzle. It removes candidates, not places numbers directly — which is why it matters in harder puzzles where basic scanning stops working.
Find a digit that appears as a candidate in exactly two cells in each of two different rows. If those two rows share the same two columns — you have an X-Wing.
In that situation, the digit can be eliminated from all other cells in those two columns.
There are only two possible placements for 5 in row 2: column 3 or column 7. The same is true for row 6. Because the rows share the same columns, one of these must happen:
Either way, columns 3 and 7 each contain exactly one 5 from these two rows. Any other 5 candidate in column 3 or 7 is impossible — eliminate it.
X-Wings don't jump out at you. You need to be actively looking for them. The practical approach:
Then do the same scan by column instead of row. An X-Wing can run in either direction.
The logic is identical, just rotated. Find a digit that appears in exactly two cells in each of two columns, and those two columns share the same two rows. Eliminate that digit from all other cells in those rows.
Mostly in hard and expert-rated puzzles. Easy and medium puzzles rarely need it — hidden singles and naked pairs get you through. If you're stuck on a hard puzzle and no simpler technique is working, scanning for X-Wings on the digits you've placed least is a reliable next step.
Swordfish is the three-row version of the same idea. Instead of two rows and two columns, it involves three rows and three columns. The elimination logic is the same — just more cells. If X-Wing isn't breaking through, Swordfish is the next thing to look for on the same digit.
Our Hard puzzles regularly require X-Wing and Swordfish. No login needed.
Play Hard Sudoku →