Advanced · technique

X-Wing Sudoku Strategy

X-Wing is an advanced Sudoku solving technique used to eliminate candidates. It appears when the same candidate is limited to two matching positions in two different rows or columns, forming a rectangle. Once found, X-Wing lets you remove that candidate from other cells in the matching columns or rows.

Summary

X-Wing is an advanced candidate-elimination technique that uses a rectangle pattern across two rows and two columns.

Diagram

Digit 7 is locked to the same two columns in two rows — an X-Wing clears 7 elsewhere in those columns.
  • Target
  • Blocked
  • Focus unit

Table of Contents

What this technique is

An X-Wing is a pattern where one candidate appears in exactly two cells in each of two rows, and those cells line up in the same two columns. The same idea also works in reverse with columns and rows.

When to use it

Use X-Wing in hard Sudoku puzzles when Singles and Pairs are no longer enough and you need to eliminate candidates logically.

How it works

If a candidate must occupy one of two positions in each of two rows, and those positions share the same columns, then that candidate is locked into the rectangle. You can remove it from other cells in those columns.

Step-by-step

  1. Choose one candidate number to inspect.
  2. Look for two rows where that candidate appears in exactly two cells.
  3. Check whether those cells are in the same two columns.
  4. If they are, you have a row-based X-Wing.
  5. Remove that candidate from other cells in those two columns.
  6. Repeat the same logic in reverse for column-based X-Wings.

Example

Suppose candidate 5 appears only in columns 2 and 8 in row 3, and also only in columns 2 and 8 in row 7. This creates an X-Wing. The 5s must occupy opposite corners of the rectangle, so candidate 5 can be removed from other cells in columns 2 and 8.

What Is X-Wing in Sudoku?

X-Wing is a Sudoku pattern involving one candidate, two rows, and two columns. The candidate appears in exactly two possible cells in each of two rows, and those cells line up in the same columns. This creates a rectangle.

Why X-Wing Works

In an X-Wing, the candidate must appear once in each of the two selected rows. Because the possible positions are locked into the same two columns, the candidate must occupy two opposite corners of the rectangle. That means it cannot appear elsewhere in those columns.

Row-Based X-Wing

A row-based X-Wing starts with two rows. If the same candidate appears exactly twice in each row, and those positions are in the same two columns, you can remove that candidate from the other cells in those columns.

Column-Based X-Wing

A column-based X-Wing works the opposite way. If a candidate appears exactly twice in each of two columns, and those positions line up in the same two rows, you can remove that candidate from the other cells in those rows.

How to Spot X-Wing Faster

Search one candidate at a time. Do not scan all numbers at once. Pick a number, look across the rows, and mark rows where that candidate appears exactly twice. Then check whether two rows share the same column positions.

X-Wing vs Naked Pairs

Naked Pairs happen inside one row, column, or box. X-Wing works across two rows and two columns. Both techniques eliminate candidates, but X-Wing uses a larger grid pattern.

What to Do After Using X-Wing

After removing candidates with X-Wing, look again for Singles, Hidden Singles, and Pairs. The purpose of X-Wing is often to unlock a simpler move later.

Common Mistakes

  • Using rows where the candidate appears more than twice.
  • Forgetting that the two rows must share the same two columns.
  • Removing the candidate from the wrong direction.
  • Trying to use X-Wing before notes are accurate.
  • Looking for X-Wing across different candidates instead of one candidate at a time.

FAQ

Everything you need to enjoy Sudoku with calm, focused play.

What is X-Wing in Sudoku?+

X-Wing is an advanced Sudoku strategy where one candidate forms a rectangle across two rows and two columns, allowing candidate elimination.

Is X-Wing hard to learn?+

X-Wing is more advanced than Singles and Pairs, but it becomes easier when you search one candidate at a time.

Does X-Wing place a number immediately?+

Usually no. X-Wing removes candidates from other cells, which may later reveal a confirmed number.

When should I use X-Wing?+

Use X-Wing when easier techniques no longer work and your notes show a candidate appearing in matching two-cell patterns across rows or columns.

X-Wing Sudoku Technique | freesudoku.io