Sudoku

X-Wing Sudoku Technique Explained (with Examples)

How the X-Wing technique works in Sudoku, how to spot one in rows or columns, why it’s valid, and related patterns like the Swordfish.

By The PlayNook team · 21 November 2026 · 3 min read

Sooner or later every Sudoku solver hits a wall: no singles, no pairs, nothing obvious. That's where the X-Wing comes in. It's the first "advanced" technique most players learn, and once you've seen it, you'll start spotting it in hard puzzles. This guide explains what an X-Wing is, why it works and how to find one.

You'll need pencil marks (candidates) for this technique. If you're new to them, start with our guide to Sudoku strategies, then come back.

The idea in one sentence

If a digit can only go in two cells in each of two rows, and those cells line up in the same two columns, then that digit must occupy two opposite corners of that rectangle, and you can remove it from every other cell in those two columns.

A worked example

Imagine you're looking at the digit 7. In row 2, after pencil-marking, 7 can only go in column 3 or column 8. In row 6, 7 can also only go in column 3 or column 8. The four possible spots form the corners of a rectangle:

(The top line represents row 2 and the bottom line row 6, with the rows in between left out.) Row 2 needs a 7 somewhere, and it has only two choices. So does row 6. There are just two ways to satisfy both rows:

  • 7 goes in row 2, column 3 and row 6, column 8, or
  • 7 goes in row 2, column 8 and row 6, column 3.

It can't be in the same column twice, so these are the only options. In both cases, column 3 gets a 7 from one of those two rows, and so does column 8. That means no other cell in column 3 or column 8 can be a 7. Erase 7 from all the other candidates in those two columns.

The two diagonals of the rectangle look like an X, which is where the name comes from.

Rows or columns: both work

The technique works the same way with the roles swapped. If in two columns a digit can only appear in the same two rows, then you can eliminate that digit from the rest of those two rows.

A quick way to remember it: find the X-Wing in one direction (two lines with exactly two spots each), then eliminate in the other direction.

How to spot an X-Wing

  1. Pick one digit at a time. X-Wings are about a single digit, so scan for one number, for example all the 4s.
  2. Find rows where that digit has exactly two candidates. Write down which columns they're in.
  3. Look for two rows with the same pair of columns. That's your X-Wing.
  4. Check that eliminations exist. An X-Wing only helps if the digit also appears as a candidate elsewhere in those columns.
  5. Repeat with columns instead of rows.

Using the digit highlighting in our Sudoku makes this much faster: select a cell containing the digit and every matching cell lights up.

Common mistakes

  • Three candidates in a row. Each of the two rows must have the digit in exactly two places. If one row has three possible spots, it isn't an X-Wing.
  • Eliminating in the wrong direction. If the pattern is based on rows, you eliminate from the columns, never from the rows themselves.
  • Out-of-date pencil marks. An X-Wing is only as reliable as your candidates. Make sure you've removed digits that are already placed.

Bigger relatives: Swordfish and Jellyfish

The same logic extends to more lines. A Swordfish uses three rows where a digit appears in two or three cells each, all confined to the same three columns. The three rows must place that digit in three different columns, so it can be removed from the rest of those columns. A Jellyfish does the same with four rows and four columns. These are rarer and harder to spot, but they follow exactly the same reasoning as the X-Wing.

When you'll need it

Easy and medium puzzles almost never require an X-Wing. On harder puzzles, it's often the move that breaks a stalemate. Try a Hard puzzle in our Sudoku, fill in all the candidates, and when singles and pairs run out, go hunting for X-Wings one digit at a time.

Play it now

More guides

Minesweeper How to Play Minesweeper: Rules, Numbers and a Beginner Strategy A complete beginner’s guide to Minesweeper: what the numbers mean, how flags and chording work, how to start a board, and a simple strategy to win without guessing. 4 min read Reaction time How to Improve Your Reaction Time: 9 Practical Tips Practical, realistic ways to get faster and more consistent reaction times for games and sports: practice, sleep, focus, warm-ups, equipment and anticipation. 3 min read Game ideas 15 Fun Games to Play When You’re Bored (Free, No Download) Bored? Here are 15 free games you can play right now in your browser, from quick 30-second challenges to puzzles that last a whole coffee break, plus tips for picking one. 3 min read