X-Wing Sudoku Technique: How to Spot It and When You Need It

Two rows, one digit, four corners: how an X-Wing removes candidates, shown on real puzzles from our Evil bank, and how often you will actually need one.

Home › Blog › X-Wing Technique

Written by Brian Hamilton and Karan Hamilton.

Brian and Karan are the puzzle lovers and game makers behind Sudoku Online Puzzles. You can learn more on the About page.

Guides are reviewed for clarity, accuracy, and usefulness for solvers. See our editorial standards, puzzle testing process, or send a correction.

Puzzle 294 in the bank behind our Evil sudoku page starts with 27 digits. After 24 hidden singles, nine naked singles and one pointing pair, 21 squares are empty and nothing simple is left: no single, no pair, no triple. Now look at the 7s alone. Row 1 has two places for a 7, row 9 has two, and they are in the same two columns. That is an X-Wing, and it takes three 7s off the board.

The X-Wing is often sold as the essential advanced technique, so we counted how often our own puzzles need one. Our Easy to Expert levels never do; Evil puzzles, about one time in eight. It is still a good first advanced pattern: one digit, four cells, quick to check, and the same reasoning runs through its bigger and bent relatives.

Ten X-Wings to find in the Sudoku Trainer

Choose X-Wing in the Sudoku Trainer for ten positions from our generator, every pencil mark showing. Click the four corners and press Check; Hint gives away one corner, then the digit. Eight of the ten stand on rows and two on columns, so look both ways.

What is an X-Wing in sudoku?

An X-Wing is a pattern on one digit. Find two rows where the digit has exactly two possible cells left, in the same two columns. The four cells are the corners of a rectangle, and the digit can be removed from every other cell in those two columns. The corners keep it.

Turned on its side it works the same: two columns with the digit in exactly two cells each, in the same two rows, clear it from the rest of those rows. The two lines are always alike, two rows or two columns. Make one of them a box and the pattern adds nothing: whatever it would remove, locked candidates can remove already.

“Exactly two” is counted from the pencil marks, and a missing mark is the easy way to a false X-Wing: a row with three places looks like a row with two, and the pattern built on it strikes out the digit that belongs. Count only from complete, up-to-date marks.

Why does an X-Wing work?

On puzzle 294, row 1 can take its 7 only in R1C4 or R1C9, and row 9 only in R9C4 or R9C9. The rows cannot both use column 4, since a column holds one 7, nor both use column 9. So there are exactly two ways to fill the corners, R1C4 with R9C9 or R1C9 with R9C4: the two diagonals, the X of the name.

Either way, columns 4 and 9 each get their 7 from row 1 or row 9. You never need to know which diagonal is right; both leave no room for a 7 anywhere else in those columns. So the 7s in R2C9, R7C4 and R7C9 go.

X-Wing on 7, Evil puzzle 294 — before X-Wing on 7, Evil puzzle 294 — the X-Wing. pattern cells R1C4, R1C9, R9C4, R9C9. eliminations in R2C9, R7C4, R7C9. candidates removed: 7 in R2C9; 7 in R7C4; 7 in R7C9. Evil puzzle 294 after 34 moves, every candidate shown. Row 1 can hold 7 only in R1C4 and R1C9, and row 9 only in R9C4 and R9C9: the four green corners where those rows cross columns 4 and 9. One row puts its 7 in column 4 and the other in column 9, so each column gets its 7 from a corner, and the struck 7s in R2C9, R7C4 and R7C9 go. 1 2 3 7 8 5 8 6 4 9 5 7 8 4 7 8 5 6 1 9 4 7 2 3 7 8 4 7 8 7 8 9 2 4 5 8 3 6 5 7 1 6 3 4 5 1 9 7 8 2 2 1 7 6 3 8 9 4 5 4 5 5 9 8 4 7 2 1 6 3 7 8 6 1 7 8 9 2 5 3 4 7 4 7 9 9 7 8 2 3 4 8 4 7 5 1 6 3 4 5 7 9 6 1 8 2 7 9
Evil puzzle 294 after 34 moves, every candidate shown. Row 1 can hold 7 only in R1C4 and R1C9, and row 9 only in R9C4 and R9C9: the four green corners where those rows cross columns 4 and 9. One row puts its 7 in column 4 and the other in column 9, so each column gets its 7 from a corner, and the struck 7s in R2C9, R7C4 and R7C9 go.
X-Wing on 7, Evil puzzle 294 — after X-Wing on 7, Evil puzzle 294 — after the X-Wing. pattern cells R1C4, R1C9, R9C4, R9C9. pivot R2C9. After the X-Wing: three fewer 7s, and R2C9 is left with only 8, a naked single (blue). The puzzle never says which diagonal holds the 7s; in the solution it is R1C9 and R9C4. The helper takes that single, then needs a pointing pair and a W-Wing, and naked singles do the rest. 1 2 3 7 8 5 8 6 4 9 5 7 8 4 7 8 5 6 1 9 4 7 2 3 8 4 7 8 7 8 9 2 4 5 8 3 6 5 7 1 6 3 4 5 1 9 7 8 2 2 1 7 6 3 8 9 4 5 4 5 5 9 8 4 7 2 1 6 3 7 8 6 1 8 9 2 5 3 4 7 4 9 9 7 8 2 3 4 8 4 7 5 1 6 3 4 5 7 9 6 1 8 2 7 9
After the X-Wing: three fewer 7s, and R2C9 is left with only 8, a naked single (blue). The puzzle never says which diagonal holds the 7s; in the solution it is R1C9 and R9C4. The helper takes that single, then needs a pointing pair and a W-Wing, and naked singles do the rest.

Those are the marks you would write from the digits alone; no earlier move had removed anything they allow. Open the position in our Sudoku Helper and press Next Hint twice: the first press fills in the marks, the second names this X-Wing and reports six techniques available. The other five, a Jellyfish, a W-Wing, a Skyscraper, Simple Colouring and an Almost Locked Set, all come later on its simplest-first list.

Row or column X-Wing: which way do the eliminations go?

Call the two lines that hold the digit only twice the base and the two lines the corners share the cover. Candidates go from the cover lines, never the base. Getting that backwards is the classic X-Wing mistake.

Puzzle 25 from the same bank shows the upright kind, 43 moves in. Columns 3 and 6 hold their 8s only in rows 5 and 7, so the 8s go along those rows, from R5C5, R7C4 and R7C9. Column 9 is left with one 8, in R8C9: a hidden single.

X-Wing on 8 standing on columns, Evil puzzle 25 — before X-Wing on 8 standing on columns, Evil puzzle 25 — the X-Wing. pattern cells R5C3, R5C6, R7C3, R7C6. eliminations in R5C5, R7C4, R7C9. candidates removed: 8 in R5C5; 8 in R7C4; 8 in R7C9. Evil puzzle 25 after 43 moves, showing only the 8s. This X-Wing stands on columns: column 3 holds 8 only in R5C3 and R7C3, column 6 only in R5C6 and R7C6 (green, joined). So rows 5 and 7 each get their 8 from a corner, and the struck 8s go along the rows, from R5C5, R7C4 and R7C9. That leaves R8C9 as the only 8 in column 9. 1 2 3 4 9 6 8 5 7 4 5 6 8 8 7 1 3 9 7 8 9 3 1 5 4 6 2 2 9 1 7 3 8 4 3 4 8 9 8 8 7 1 8 6 7 8 4 1 9 2 3 9 1 8 8 7 8 3 4 8 8 7 2 1 3 4 9 8 8 3 4 8 8 9 2 7 1
Evil puzzle 25 after 43 moves, showing only the 8s. This X-Wing stands on columns: column 3 holds 8 only in R5C3 and R7C3, column 6 only in R5C6 and R7C6 (green, joined). So rows 5 and 7 each get their 8 from a corner, and the struck 8s go along the rows, from R5C5, R7C4 and R7C9. That leaves R8C9 as the only 8 in column 9.

Each base line must hold the digit in its two corners and nowhere else. A third 7 in row 1 of puzzle 294 would break the argument, since row 1 could put its 7 there instead, unless it sits in the same box as a corner. That is a Finned X-Wing, which still works but removes less.

How do you spot an X-Wing on a full board?

Not by looking for rectangles, which are hard to see among a full set of marks. Write the places down as numbers instead, one digit at a time:

  1. Go down the rows and note each row where the digit has exactly two places, as a pair of columns: row 1 → 4, 9.
  2. Look for a repeated pair. Two rows with the same two columns are an X-Wing. If those columns hold the digit nowhere else, it removes nothing; move on.
  3. Do the columns the same way. Of the 85 X-Wings our helper played on the first 500 Evil puzzles, 32 stood on columns, even though it looks at rows first.
  4. Then the next digit. 59 of those 85 were on a digit already placed three or four times, a reasonable place to start.
Is there an X-Wing here at all?

Enter the position’s digits into the Sudoku Helper and press Next Hint twice. Its Available Techniques menu then lists each of its eighteen techniques that applies to the pencil marks the digits give. If X-Wing is not on the menu, there is none yet; one can still appear once other moves have removed more candidates.

How often do you need an X-Wing?

We ran the Sudoku Helper’s eighteen techniques over puzzles from our own levels, always taking the simplest move, as its hints do, and counted the puzzles on which an X-Wing was ever that move.

  • Our classic game: never. Not once in 800 puzzles, 200 each from Easy, Medium, Hard and Expert. Those levels are dealt only if singles finish them, plus locked candidates on Hard and naked pairs on Expert. An X-Wing can still be on the board, at 138 of the 277 Expert positions with no single left, but something simpler always was too.
  • Evil: about one puzzle in eight. 74 of the first 500 needed one, and 644 of all 5,000. Where singles, locked candidates and naked pairs first run out, the next step is an X-Wing on 253 of the 5,000 and a hidden pair on 1,530.
TechniqueFirst 500 Evil puzzlesAll 5,000
Almost Locked Set3182,761
Hidden Pair2161,863
XY-Wing1571,743
W-Wing1451,769
Skyscraper114908
Simple Colouring88710
XYZ-Wing79753
X-Wing74644
Naked Triple55558
Hidden Triple21160
Unique Rectangle17195
Swordfish11122
Jellyfish07

Puzzles on which each technique was the simplest of the helper’s eighteen at least once, in the helper’s own order, which tries the X-Wing before any wing. Singles, pointing pairs, box/line reduction and naked pairs are left out. The bank is stored in score order, so its first 500 are harder than the whole. Measured October 2026.

An X-Wing is rarely the last hard step

Of the 74 puzzles that needed one, the helper finished 60, and only one of them needed nothing further down its list; 39 of the 60 needed an Almost Locked Set as well. Across all 5,000, the X-Wing was the hardest step on just 15 of the 644. If an Evil puzzle needs an X-Wing, expect it to need something harder too.

So the X-Wing is neither the most needed advanced technique nor, usually, the one that cracks a puzzle. It earns its place as the first to learn because it is cheap to check, and its logic is the template for its relatives.

X-Wing, Swordfish and Jellyfish: what’s the difference?

Size. They are the family called fish: a Swordfish uses three rows whose places for the digit fall in the same three columns, a Jellyfish four and four. Each base line needs at least two places, but need not touch every column.

FishCellsNeededPresent
X-Wing47419.7%
Swordfish6 to 91110.3%
Jellyfish8 to 1607.8%

The first 500 Evil puzzles. Needed: puzzles on which the fish was the simplest of the helper’s eighteen at least once. Present: share of the 4,618 positions with no single left where the fish would remove something.

The bigger fish are rarer for a reason the counts hide: every fish has a twin on the other lines. On puzzle 294 the 7 is still to be placed in six rows and six columns. The X-Wing’s rows 1 and 9 hold their 7s only in columns 4 and 9, so the other four columns can only put theirs in the other four rows. That is a Jellyfish, and it removes the same three 7s.

An X-Wing on 7 and its twin Jellyfish, Evil puzzle 294 — before An X-Wing on 7 and its twin Jellyfish, Evil puzzle 294 — the X-Wing and its twin. pattern cells R1C4, R1C9, R9C4, R9C9. pivot R2C1, R2C6, R3C1, R3C2, R3C8, R7C1, R7C8, R8C2, R8C6. eliminations in R2C9, R7C4, R7C9. candidates removed: 7 in R2C9; 7 in R7C4; 7 in R7C9. The same position, showing only the 7s. The 7 is still to be placed in six rows and six columns. The X-Wing takes rows 1 and 9 (green), whose 7s sit only in columns 4 and 9. That leaves the other four columns, 1, 2, 6 and 8, holding their 7s (blue) only in rows 2, 3, 7 and 8: a Jellyfish, which strikes the same 7s in R2C9, R7C4 and R7C9. 1 2 3 7 6 4 9 7 7 5 6 1 9 7 2 3 7 7 7 9 2 3 6 7 1 6 3 4 5 1 9 7 8 2 2 1 7 6 3 8 9 5 9 8 4 7 2 1 6 3 7 6 1 7 2 5 3 7 7 9 7 2 3 7 5 1 6 3 4 5 7 6 1 8 2 7
The same position, showing only the 7s. The 7 is still to be placed in six rows and six columns. The X-Wing takes rows 1 and 9 (green), whose 7s sit only in columns 4 and 9. That leaves the other four columns, 1, 2, 6 and 8, holding their 7s (blue) only in rows 2, 3, 7 and 8: a Jellyfish, which strikes the same 7s in R2C9, R7C4 and R7C9.

The helper plays the X-Wing, which comes first on its list. The same twinning is why a Jellyfish is almost never needed: while its digit is open in seven rows or fewer, its twin is smaller (a Swordfish, an X-Wing or a hidden single) and gets found first. None of the first 500 Evil puzzles needed one; of the other 4,500, seven did, each with its digit still open in eight or nine rows.

Is a Skyscraper an X-Wing? Finned X-Wings and X-cycles

Strong links

When a digit has exactly two places in a row, column or box, the two cells form a strong link (or conjugate pair): if one is not the digit, the other is. An X-Wing is two parallel strong links whose ends line up. Most single-digit techniques are strong links arranged some other way.

  • A Skyscraper moves one corner. Two rows or columns hold the digit exactly twice each, but only one pair of ends lines up. One of the two loose ends must hold the digit, so a cell that sees both loses it. On puzzle 294 the 7s make one on columns 2 and 6, lined up in row 8, and it clears the 7 from R2C1.
  • A Finned X-Wing adds a fin. One base line has one or two extra places for the digit in a corner’s box. Either the fin holds the digit or the plain X-Wing stands, so only cover-line cells inside the fin’s box lose it. It isn’t among the helper’s eighteen. Added to our solver ahead of the wings, it made 345 moves on 256 of the first 500 Evil puzzles, but only 12 where the eighteen had nothing; at the rest it stood in for another move, most often an almost locked set, an XY-Wing, a W-Wing or a Skyscraper.
  • An X-cycle reads it as a loop. Round the corners, R1C4, R1C9, R9C9, R9C4: strong along row 1, weak down column 9, strong along row 9, weak up column 4. That is the smallest continuous X-cycle, and the X-Wing’s eliminations are its loop rule.

Stuck after an X-Wing, or can’t find one?

Most X-Wings don’t open the board by themselves. Of the 85 in our measurement the typical one removed three candidates, and only 19 created a single straight away. Check the cells that lost a candidate first; on puzzle 294, one of them became the naked single.

If nothing opens, the next hard step is usually a wing. On 68 of the 74 puzzles that needed an X-Wing, the helper later needed something further down its list, most often a W-Wing (20), an Almost Locked Set (14), an XY-Wing (13) or an XYZ-Wing (10).

If there is no X-Wing, don’t keep hunting. At Evil positions with no single left, an X-Wing was there 19.7% of the time, a hidden pair 31.6%, Simple Colouring 43.2% and an Almost Locked Set 95.1%. Beyond the helper come X-chains, XY-chains, a BUG check near the end, and forcing chains as a last resort; our guide to sudoku techniques puts them in order. For practice on real boards, play Evil puzzles: our Hard and Expert levels never need an X-Wing.

Evil Sudoku

5,000 puzzles, each with exactly one solution. About one in eight needs an X-Wing somewhere along the way.

▶ Play Evil Sudoku