X-Wing Strategy

When a candidate appears in exactly two positions in two rows, aligned in the same two columns, it can be eliminated from all other cells in those columns.

Difficulty (First fish pattern)
Advanced
Pattern (Rectangular alignment)
2×2
Cover lines (2 rows + 2 columns)
4
Required for (Most hard puzzles)
Hard

What Is an X-Wing?

An X-Wing pattern forms when you focus on a single candidate number and find that it appears in exactly two cells in each of two different rows, and those cells line up in the same two columns. The four cells create a rectangle on the grid. The name "X-Wing" comes from the X shape formed by drawing lines between diagonal corners of this rectangle.

The logic behind the X-Wing is based on constraint satisfaction. In each of the two defining rows, the candidate must be placed in one of the two available cells. Because the cells are aligned in columns, the candidate will occupy one cell in each column. This means no other cell in those two columns can contain that candidate. You can safely eliminate it from all other cells in the two covering columns.

The X-Wing works symmetrically: you can also define it using two columns as the base, with the covering lines being two rows. The elimination logic is identical - just swap "row" and "column" throughout. Understanding this duality makes the pattern easier to spot. For foundational concepts, review our Sudoku glossary.

How to Apply the X-Wing: Step-by-Step

  1. Complete your pencil marks - Ensure all cells have accurate candidate lists. The X-Wing pattern is invisible without thorough notation. Apply all basic techniques first - Naked Singles, Hidden Singles, and Pointing Pairs - before searching for X-Wings.
  2. Choose a candidate number to examine - Pick a number (1-9) and look at where it appears as a candidate across the grid. Focus on one number at a time. Numbers that appear frequently as candidates are more likely to form fish patterns.
  3. Find rows with exactly two positions - Scan each row for your chosen number. Identify rows where the candidate appears in exactly two cells. These rows are your potential base rows for the X-Wing.
  4. Check column alignment - Compare pairs of qualifying rows. If two rows have the candidate in exactly the same two columns, you have found an X-Wing. The four cells (two in each row, sharing two columns) form the rectangle.
  5. Eliminate from covering columns - Remove the candidate from every other cell in the two columns that the X-Wing spans. Do not remove it from the four X-Wing cells themselves. Then check for new singles or further eliminations.

When to Use the X-Wing

The X-Wing technique becomes relevant when intermediate strategies - Naked Pairs, Hidden Pairs, Pointing Pairs, and Box-Line Reduction - have been exhausted without solving the puzzle. It is a hallmark technique for hard Sudoku puzzles.

X-Wings are not needed in easy or most medium puzzles. They appear most frequently in hard and expert-level grids. If you are new to advanced solving, the X-Wing is the best starting point because it is the simplest of the "fish" family. Mastering it prepares you for Swordfish and Jellyfish. For a full overview, visit our strategy guide or learn how to play Sudoku.

Difficulty Level & Puzzle Types

The X-Wing is classified as an advanced-level technique. It sits at the boundary between intermediate and expert solving, making it a critical skill for progressing to harder puzzles.

Easy

Not needed - basic singles are sufficient

Medium

Very rarely needed - intermediate techniques usually suffice

Hard

Frequently needed - a key technique at this level

Expert

Part of the toolkit - used alongside other advanced methods

Tips for Mastering the X-Wing

  1. Focus on one candidate number at a time. Trying to spot X-Wings for all numbers simultaneously is overwhelming. Systematically check each number.
  2. Start by counting how many times a candidate appears in each row. Rows with exactly two occurrences are your targets.
  3. Remember the symmetry - if you cannot find an X-Wing in rows, try looking at columns as the defining lines instead.
  4. After eliminating candidates, always re-scan for Naked Singles and Hidden Singles. X-Wing eliminations frequently create new singles.

Frequently Asked Questions

What is an X-Wing pattern in Sudoku?

An X-Wing occurs when a candidate number appears in exactly two cells in each of two different rows, and those four cells are aligned in the same two columns (or vice versa - two columns aligned in the same two rows). The four cells form a rectangle. The candidate can then be eliminated from all other cells in the two columns (or rows) that the rectangle spans.

How do I spot an X-Wing in a Sudoku puzzle?

Focus on a single candidate number. Scan each row to find rows where that candidate appears in exactly two cells. If you find two such rows where the candidate positions share the same two columns, you have an X-Wing. Pencil marks are essential for spotting this pattern.

What eliminations does an X-Wing allow?

If the X-Wing is formed across two rows (the defining rows), you can eliminate the candidate from all other cells in the two columns that the X-Wing occupies. Conversely, if formed across two columns, you eliminate from the other cells in the two rows.

How does X-Wing relate to Swordfish and Jellyfish?

X-Wing is the simplest member of a family of techniques called 'fish' patterns. Swordfish extends the concept to three rows and three columns, and Jellyfish extends it to four. The elimination logic is the same - candidates are removed from the covering lines.

When should I look for X-Wing patterns?

Look for X-Wings when intermediate techniques like Naked Pairs, Hidden Pairs, and Pointing Pairs have stalled your progress. X-Wings are typically needed in hard and expert-level puzzles where simpler eliminations are insufficient.

Related Techniques

Related Glossary Terms

View full glossary

Practice by Difficulty

See it in action: an X-Wing on the digit 5

5
5
5
5
5
5
5
5
5
5
5

We're tracking where the digit 5 can go. Each marked cell shows 5 as a possible candidate.

Step 1 of 4 — full interactive demo available with JavaScript enabled

Ready to put your skills to the test?

Try Final Sudoku - an ad-free Sudoku experience with smart tools

Get Our App