Veena Games
Browse

Popular

Casino

More

Sudoku

The X-Wing, Explained So It Sticks

A repeatable way to find X-Wings, verify them, and know when they are worth using in harder Sudoku puzzles.

Manit Kaushal Founder · Veena Games 7 min read

To spot an X-Wing, pick one candidate, find two rows that contain it in exactly the same two columns, then delete that candidate from the rest of those columns. The column version is identical: two columns, same two rows.

The sudoku x wing technique is useful because it turns a visual pattern into a yes-or-no test. You are not asking whether the grid looks promising. You are asking whether, for one digit, two units force the same pair of positions. If they do, one of those two positions must hold the digit in each unit, so every other matching line can lose that candidate.

This is where many players lose time. They scan the whole grid, see a rectangle, and hope it is an X-Wing. Work the other way round. Choose a digit, count its candidate positions inside each row or column, and only then look for matching pairs. In x wing sudoku, the pattern is found by counting first and seeing second.

How do I spot an X-Wing without staring at the whole grid?

  1. Pick one digit and ignore the other 8. Reason: an X-Wing is always about one candidate, never about a mixture of digits. The wrong move is circling a pretty rectangle made from different candidates; it proves nothing.
  2. Scan rows first and count candidate positions for that digit. Reason: a useful row has exactly two possible cells for the digit. The wrong move is using a row with 3 or more candidates; the digit is not forced into a pair.
  3. Write down the column numbers for every two-candidate row. Reason: matching pairs are easier to compare as, for example, columns 2 and 7. The wrong move is trusting your eyes across the grid; box lines and givens make false rectangles look convincing.
  4. Match two rows with the same two columns. Reason: each of those rows must place the digit in one of the same two columns, so the digit is locked into the corners. The wrong move is matching only one column; that is not an X-Wing.
  5. Remove the candidate from other cells in those two columns, not from the four corners. Reason: one corner in each row must remain possible. The wrong move is deleting a corner because it looks duplicated; that breaks the logic.
  6. Repeat the whole check by columns. Reason: column-based X-Wings eliminate along rows. The wrong move is assuming a failed row scan means no X-Wing exists.

What do I check before I mark anything?

Before any deletion, prove the pattern from candidates, not from empty cells. Empty cells are only spaces. Candidates are claims about what can still go there.

Then do one final symmetry check. In a row X-Wing, the matching things are columns; in a column X-Wing, the matching things are rows. If you cannot say that sentence aloud for the actual digit, do not mark anything.

Use light pencil discipline. After deleting, look at the affected rows or columns immediately. Reason: the payoff is often a new single or locked candidate. The wrong move is deleting across the grid and then losing the thread of why it was allowed.

When does an X-Wing actually beat simpler moves?

An X-Wing beats simpler moves when the simpler moves are truly exhausted for the candidate involved. The practical test is this: no naked single, hidden single, pointing pair, claiming pair, or obvious locked candidate changes the same area, and one digit has repeated two-position rows or columns. Then the X-Wing is not decoration. It is the shortest legal cut.

Use the sudoku x wing technique when a candidate is scattered enough to block progress, but organised enough to form matching pairs. Reason: singles solve cells; X-Wings clean lines. The wrong move is using it on a digit that already has a direct placement in a row, column, or box. Solve the placement first, because it may destroy or replace the pattern.

It also beats guessing when the puzzle is graded beyond basic tactics. Expert Sudoku puzzles often require X-Wings and harder, so a stall after ordinary scanning is expected. Reason: the puzzle is asking you to remove candidates, not immediately fill a square. The wrong move is treating every stall as permission to search for an X-Wing; some stalls are caused by poor candidate upkeep.

One more rule helps: prefer the X-Wing that removes candidates from a crowded line. Reason: one deletion in a tight column may create a single; three deletions in loose rows may do little. The wrong move is choosing the pattern with the most impressive shape rather than the one with the clearest consequence.

Why does the same pattern sometimes fail to pay off?

How do I use X-Wings with the other advanced Sudoku techniques?

Treat the X-Wing as a middle step: after routine clean-up, before wider searches that are harder to audit. The table gives a working order, not a law. If a test is decidable and the reason applies, use it; if the wrong-move condition is present, stop.

TechniqueUse with X-WingDecidable testReasonWrong move
Locked candidatesCheck before an X-Wing.One candidate in a box lies only on 1 row or 1 column.It gives local eliminations with less risk.Skipping it and building an X-Wing from candidates it would remove.
X-WingUse when two lines share the same two positions for one digit.Exactly 2 base lines, exactly the same 2 crossing lines, same candidate.It deletes that candidate from the rest of the crossing lines.Using a base line with a third possible cell.
SwordfishCheck after failed X-Wings.One digit in 3 rows is confined to the same 3 columns, or reversed.It extends the fish idea when 2 lines are not enough.Calling it an X-Wing and deleting from only part of the structure.
XY-WingUse when fish patterns give no deletions.One bivalue pivot sees 2 bivalue wings that share a removable candidate.It attacks cells by visibility rather than by parallel lines.Using it when the pivot or wings have more than 2 candidates.
Simple colouringUse after line-based checks are exhausted.A single candidate forms a chain of alternating strong links.It can remove contradictions that no rectangle shows.Mixing digits in the chain or treating weak links as strong links.

Frequently asked questions

Final thoughts

If you are learning X-Wings, do fewer searches and make each one cleaner. Pick a digit. Count. Record the pairs. Compare. Delete only where the logic points. That rhythm matters more than speed, because speed built on spotting rectangle shapes becomes guessing under pressure.

The useful habit is to name the base lines and target lines before touching a candidate. Say, “7 in rows 3 and 8 is confined to columns 1 and 6, so other 7s leave columns 1 and 6.” If that sentence feels clumsy, the pattern is probably not ready. Leave it alone and look for a simpler move.

Also accept the boring result. Many real X-Wings delete one candidate. Some delete none. That is not failure; it is information about the grid. The mistake is trying to make every found pattern dramatic. Expert solving is often a chain of small, lawful reductions, with an occasional square falling out as payment.

Keep your pencil marks honest. On the next hard grid, test one digit this way before you look for Swordfish, and stop as soon as the count fails.

Keep reading

More on Sudoku