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.
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.
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.
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:
- Go down the rows and note each row where the digit has exactly two places, as a pair of columns: row 1 → 4, 9.
- 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.
- 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.
- Then the next digit. 59 of those 85 were on a digit already placed three or four times, a reasonable place to start.
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.
| Technique | First 500 Evil puzzles | All 5,000 |
|---|---|---|
| Almost Locked Set | 318 | 2,761 |
| Hidden Pair | 216 | 1,863 |
| XY-Wing | 157 | 1,743 |
| W-Wing | 145 | 1,769 |
| Skyscraper | 114 | 908 |
| Simple Colouring | 88 | 710 |
| XYZ-Wing | 79 | 753 |
| X-Wing | 74 | 644 |
| Naked Triple | 55 | 558 |
| Hidden Triple | 21 | 160 |
| Unique Rectangle | 17 | 195 |
| Swordfish | 11 | 122 |
| Jellyfish | 0 | 7 |
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.
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.
| Fish | Cells | Needed | Present |
|---|---|---|---|
| X-Wing | 4 | 74 | 19.7% |
| Swordfish | 6 to 9 | 11 | 10.3% |
| Jellyfish | 8 to 16 | 0 | 7.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.
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
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