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 238 from our Evil sudoku bank gives you 26 digits to start from. After 26 moves, the last two of them naked pairs on 6 and 8, 38 squares are still empty and our Sudoku Helper has nothing simpler to offer. Look at the 6s alone. Rows 3, 4 and 7 have two places each for a 6, and all six places lie in columns 2, 4 and 8. That is a Swordfish. It takes two 6s off the board and leaves one cell with a single candidate.
A Swordfish is an X-Wing with a third row. Guides often file it under hard and expert puzzles, so we counted: our Easy to Expert levels never need one, and only 122 of our 5,000 Evil puzzles do, about one in 40. Why it is so rare also tells you when to stop looking: at about two in three of the positions where a Swordfish turns up, it is an X-Wing seen from the other side.
The Sudoku Trainer has ten Swordfish positions. Choose Swordfish, click every square in the three base lines that still holds the digit, six to eight of them, and press Check. None of the ten fills all nine crossings; every one leaves gaps, so don’t wait for a full grid of nine.
What is a Swordfish in sudoku?
A Swordfish works on a single digit. Look for three rows where the digit has only two or three places left, with all of those places in the same three columns. Every other cell in those three columns then loses the digit. The pattern cells keep it.
Swap rows and columns and nothing changes: three columns whose places for the digit lie in the same three rows remove it from everywhere else in those rows. No row has to hold the digit in all three columns; on puzzle 238 each row has two. A row with a single place is not part of a Swordfish at all, but a hidden single.
The three rows that hold the digit two or three times are the base; the three columns they use are the cover. Eliminations happen only in the cover lines; the base rows lose nothing. A line is open for a digit until the digit is placed in it: on puzzle 238 the 6 is already in rows 1, 5 and 9, so six rows are open. The X-Wing (two lines each way), the Swordfish (three) and the Jellyfish (four) share these rules, and together they are called fish.
Why does a Swordfish work?
On puzzle 238, row 3 can put its 6 only in R3C2 or R3C8, row 4 only in R4C2 or R4C4, and row 7 only in R7C4 or R7C8. Each row needs a 6, and no two of them can use the same column. If row 3 takes column 2, row 4 must take column 4 and row 7 column 8. If row 3 takes column 8, row 7 must take column 4 and row 4 column 2. There is no third way.
Either way the three rows give columns 2, 4 and 8 one 6 each, so no other cell in those columns can have one. Columns 2 and 8 hold no other 6s. Column 4 holds two, in R6C4 and R8C4, and they go.
The naked pair just before is what made this Swordfish: it took the 6 out of R3C7. With that mark still in place, row 3 had three places, in columns 2, 7 and 8, and the three rows spanned four columns. So work from pencil marks that are complete and current: a mark that should have gone can hide a Swordfish, and a mark never written can fake one.
Here the Swordfish is also the last hard step. R8C4 becomes a naked single, and singles finish the grid: 37 naked and one hidden.
Does each row need the digit in all three columns?
No, and in practice it seldom has. Each base row needs two or three places, all inside the three cover columns. Across all 5,000 Evil puzzles the helper played 123 Swordfish, and 79 had two places in every row, like puzzle 238. Another 36 had one row with three places, and 8 had two such rows. The full nine-cell block that textbook diagrams draw, three places in each row, never came up.
Puzzle 253 has a row with all three. Singles carry it for 20 moves; then the 2s look like this.
These are the marks the digits alone give, so our Sudoku Helper starts from the same picture: its first Next Hint writes them in, and the second points straight at this Swordfish. Seven eliminations is a good haul. The median among the 123 was three, and the most was eleven.
Why are Swordfish so rare? Every fish has a twin
Back on puzzle 238, the 6 is still open in six rows and six columns, and the Swordfish uses three of each. The other three columns, 3, 6 and 7, cannot put a 6 in rows 3, 4 or 7, whose 6s are confined to columns 2, 4 and 8, so they must use the other three open rows, 2, 6 and 8. That is a second Swordfish, standing on columns, and it strikes the same two 6s.
The lines a fish leaves unused always form a fish of their own that removes the same candidates, as the X-Wing guide shows for the X-Wing. A Swordfish’s twin has as many lines as its digit’s open rows, less three:
- Four open rows: the twin is a single line holding the digit once, a hidden single.
- Five: the twin is an X-Wing, which the helper tries first.
- Six: the twin is another Swordfish, the other way round, as here.
- Seven or more: the twin is a Jellyfish or bigger, and the Swordfish is the one to find.
So a Swordfish can only be needed while its digit is missing from six rows or more, which means placed three times or fewer, and by the time an Evil puzzle runs out of easier moves most digits are further along. All 123 the helper played fit: 74 had their digit open in six rows, 41 in seven, 7 in eight and 1 in nine. On the first 500 Evil puzzles a Swordfish was on the board at 476 of the 4,618 positions with no single left, and at 311 of those every Swordfish present was an X-Wing’s twin, with the X-Wing on the board too.
The twin also settles rows against columns. With six open rows, a Swordfish on rows always has one on columns beside it; only from seven open rows can a Swordfish on columns stand alone. The helper scans rows first, and just 17 of the 123 it played stood on columns, every one on a digit open in seven rows or more.
How do you find a Swordfish on a full board?
Not by looking at the grid. Pick a digit and write its places down as numbers:
- Choose a digit placed three times or fewer. On a digit placed more often, any Swordfish is a hidden single or an X-Wing in disguise.
- List each row where it has two or three places, as the columns it can use. Puzzle 238’s 6s: row 2 → 3, 7; row 3 → 2, 8; row 4 → 2, 4; row 6 → 3, 4, 6; row 7 → 4, 8; row 8 → 4, 6, 7.
- Look for three rows whose lists use only three columns between them. Here, rows 3, 4 and 7 use 2, 4 and 8. If two of the rows share one pair of columns, you have found an X-Wing instead, and that comes first.
- Check that those columns hold the digit anywhere else, or there is nothing to remove. Then do the same with the columns.
When every base row has exactly two places, the six cells form a closed loop. On puzzle 238: along row 3 from R3C2 to R3C8, down column 8 to R7C8, back along row 7 to R7C4, up column 4 to R4C4, along row 4 to R4C2, and up column 2 to the start. Tracing it can be quicker than comparing lists, and it makes this kind of Swordfish a continuous X-cycle of six links, with the same eliminations.
How often do you need a Swordfish?
How rare is it? We had the Sudoku Helper solve our puzzles with its eighteen techniques, picking the simplest move each time as a hint would, and flagged every puzzle where that move was ever a Swordfish.
- Easy to Expert: no Swordfish needed. We played 800 puzzles, 200 on each of Easy, Medium, Hard and Expert, and none called for one. The generator keeps a puzzle for those levels only when singles can solve it, with locked candidates allowed at Hard and naked pairs at Expert. At Expert the singles ran dry at 277 positions; 83 of them held a Swordfish, and every time a simpler move sat beside it.
- Evil: about one puzzle in 40. 11 of the first 500 needed one, and 122 of all 5,000. On 36 of those 122, the Swordfish was the first thing the helper needed once singles, locked candidates and naked pairs were used up.
| Fish | Lines each way | Fewest open rows when needed | Evil puzzles that needed one |
|---|---|---|---|
| X-Wing | 2 | 4 | 644 |
| Swordfish | 3 | 6 | 122 |
| Jellyfish | 4 | 8 | 7 |
All 5,000 Evil puzzles, played by the helper’s eighteen techniques, simplest first. Needed: the fish was the simplest move at some point in the puzzle. Open rows: rows still missing the fish’s digit when the helper played it; each size up needs two more, for the twin reason above. Measured October 2026.
Of the 122 Evil puzzles that needed one, the helper finished 105, and on only one of all 5,000 was the Swordfish the hardest step. After its first Swordfish, a puzzle most often went on to need an XY-Wing (40 puzzles), a W-Wing (20) or an Almost Locked Set (19). Just nine, puzzle 238 among them, needed nothing beyond singles, locked candidates and naked pairs afterwards.
Stuck after a Swordfish, or can’t find one?
Check the cells that just lost the digit, though the odds are against a quick single: only 19 of the 123 Swordfish made one straight away, as puzzle 238’s did. The typical one removes three candidates and leaves the next step to something else, most often a wing.
A Swordfish is worth a quick scan and no more. Across Evil positions with no single left, one was on the board 10.3% of the time, against 19.7% for an X-Wing, 23.9% for an XY-Wing and 95.1% for an Almost Locked Set. Two relatives are worth a look:
- A Finned Swordfish has a base row with one or two extra places in one box, and removes the digit only from cover-column cells in that box. The helper’s eighteen leave it out, so we gave it to our solver, ranked ahead of the wings: it was then needed on 104 of the first 500 Evil puzzles, to the plain Swordfish’s 13, but mostly in place of a wing: only 4 of its 115 moves came where the eighteen had nothing.
- A Jellyfish, the four-line fish, has it worse: its digit must be open in eight rows, and 7 of the 5,000 needed one.
Once fish and wings are spent, what remains is XY-chains, a BUG test when the board is nearly full and, failing all else, forcing chains; see where each sits in our guide to sudoku techniques.