PLAY SUDOKU
Gemini
Technique August 26, 2026 · Updated August 28, 2026

How to Master the X-Wing Technique in Sudoku

NS

NetSudoku Editorial Team

Reading time: 6 min · Interactive Logic Guide

Prefer hands-on practice?

Try our real-time interactive board simulator with step-by-step candidate conflict animations.

Open Interactive X-Wing Simulator →

You’ve scanned the grid, filled in the obvious numbers, carefully noted down candidate digits in pencil marks, and hit a complete brick wall. If you are playing on a Hard or Expert level grid, this is a common experience.

At this stage, basic scanning techniques like Naked Singles or Hidden Pairs are no longer sufficient. Unlike apps that offer reveal cheats, true solver mastery comes from candidate-reduction strategies. The X-Wing technique is one of the most reliable and fundamental of these advanced patterns, unlocking grids that otherwise seem completely stuck.

The Advanced Puzzle Barrier: When basic scan logic fails, candidate-based pattern recognition becomes your primary tool to systematically narrow down empty spaces and reveal hidden paths.

1. What Is the X-Wing Technique?

The core idea behind the X-Wing is locked conditional relationships. Instead of showing you where a number *must* go, it tells you where a number *cannot* go, allowing you to clean up your pencil notes and eliminate candidates.

An X-Wing occurs when a single candidate digit appears exactly twice in two different parallel lines (either two rows or two columns), and those four occurrences line up vertically and horizontally to form a perfect rectangle.

  • The Corner Locked Loop: Because the candidate only appears twice in both rows (or columns), those four corners form two mutually exclusive diagonal pairs.
  • The Logical Consequence: If the digit is placed in the top-left corner, it forces the same digit into the bottom-right corner. If it is placed in the top-right corner, it forces it into the bottom-left corner.
  • Elimination Vector: In either configuration, the columns (or rows) linking these corners will have the digit in one of these two positions. Therefore, no other cells in those columns (or rows) can hold that digit.

2. How to Find and Use an X-Wing Step-by-Step

Spotting an X-Wing takes practice, but following a structured approach makes it straightforward:

Step 1: Scan for Rows with Exactly Two Candidate Placements

Select a candidate number (for example, 4). Scan horizontal rows and look for any rows where candidate 4 can only be placed in exactly two cells.

Step 2: Check for Vertical Alignment (Columns)

Find a second, parallel row where the candidate 4 also appears exactly twice. Check if these two candidate cells line up in the exact same vertical columns as the two cells from Step 1.

Step 3: Eliminate Intersecting Candidates

Because the corners line up perfectly, you can safely delete the candidate 4 from the pencil notes of all other cells in those two vertical columns.

Step 4: Solve the Resulting Singles

Check the grid again. Removing these candidates often leaves a Naked Single (only one candidate left in a cell) or a Hidden Single, triggering a chain of solved cells.

3. Visual Example and Worked Walkthrough

Let's look at an actual grid state where an X-Wing pattern is active. Below is a 9x9 board layout containing pencil notes for candidate 4.

X-Wing Diagram: Candidate 4
5
3
7
6
4
1
9
5
4
8
9
8
6
8
4
6
3
4
8
3
4
1
7
2
6
6
2
8
4
7
3
4
8
7
9
X-Wing Corners Eliminated Notes

Why This Works:

Notice Row 2 and Row 8. In both rows, candidate 4 is locked into Column 3 and Column 8.

  • Scenario A: In Row 2, the 4 is in Column 3. This forces the 4 in Row 8 to be in Column 8.
  • Scenario B: In Row 2, the 4 is in Column 8. This forces the 4 in Row 8 to be in Column 3.

In both scenarios, Columns 3 and 8 *must* have their 4s in Row 2 and Row 8. Therefore, no other cell in Column 3 or Column 8 can possibly contain a 4. We can safely eliminate the candidate 4 in Row 4 (Column 3) and Row 5 (Column 8).

4. Row-Based vs. Column-Based X-Wings

The example above shows a Row-Based X-Wing (the two base lines are rows, and candidates are eliminated from the columns). The logic works symmetrically in reverse:

Row-Based X-Wing

The base lines are two rows. You find exactly two instances of a candidate in both rows, and they align vertically.

Action: Eliminate candidates from the matching columns.

Column-Based X-Wing

The base lines are two columns. You find exactly two instances of a candidate in both columns, and they align horizontally.

Action: Eliminate candidates from the matching rows.

Pro Tip: When checking candidate grids, pick one number at a time and scan it globally. It is much easier to spot these rectangular alignment patterns when focusing entirely on a single digit.

5. Common Mistakes to Avoid

Advanced strategies can backfire if misapplied. Keep these common pitfalls in mind:

  • Ignoring Third Candidates: If one of your base rows contains a *third* cell that could also hold that candidate digit, the X-Wing is invalid. The relationship is no longer a strict either-or lock.
  • Incorrect Elimination Orientation: If your base lines are rows, you must eliminate from columns (and vice versa). Eliminating candidates from the base lines themselves is an instant error.
  • Incomplete Pencil Marks: You cannot confidently apply the X-Wing technique unless you have filled out candidate notes for the entire grid. If you miss listing a candidate, you might create a false X-Wing pattern.

6. Put It Into Practice

The best way to master candidate elimination patterns is through active practice. X-Wings are common in Hard and Expert grids, making them an excellent first advanced step.

✨ 100% Free · Unlimited Mistakes · No Ads

Solve an Expert Sudoku Board Now

Apply the X-Wing technique in real-time. Turn on Smart Auto-Notes and experience true distraction-free solving.