Download App

Sandwich Sudoku Rules Explained

Sandwich Sudoku adds a single clever twist to classic Sudoku: clues outside the grid tell you the sum of every digit squeezed between the 1 and the 9 in a given row or column. The result is a deeply satisfying logic puzzle that rewards careful deduction.

What is Sandwich Sudoku?

Sandwich Sudoku is a variant of the standard 9x9 Sudoku puzzle. It was popularized in competitive puzzle circles and has since become one of the most widely enjoyed Sudoku variants worldwide. The name comes from the core mechanic: the digits 1 and 9 act as the "bread" of a sandwich, and the clue refers to the "filling" between them.

A Sandwich Sudoku grid looks like a normal Sudoku grid, but with numbers printed along the top and left edges. Each of these external numbers is a sandwich clue. The puzzle may provide clues for every row and column, or only for some of them, depending on the difficulty.

All standard Sudoku rules still apply. Every row, every column, and every 3x3 box must contain the digits 1 through 9 exactly once. The sandwich clues are an additional constraint layered on top of these familiar rules.

Sandwich Sudoku Rules

There are only two rules you need to know:

  1. Standard Sudoku rules apply. Fill each row, column, and 3x3 box with the digits 1 through 9 so that no digit repeats.
  2. Sandwich clue constraint. Each number outside the grid equals the sum of the digits that appear between the 1 and the 9 in that row or column. The clue along the top of a column refers to that column; the clue along the left of a row refers to that row.

The order of 1 and 9 does not matter. Whether the 1 comes before the 9 or the 9 comes before the 1, the clue always refers to the digits sitting between them.

Key insight: The digits 1 and 9 are never included in the sandwich sum. Only the digits strictly between them count toward the clue.

Understanding Sandwich Clues

Every sandwich clue encodes two pieces of information at once: which digits are between the 1 and 9, and how far apart the 1 and 9 are in that row or column. Learning to decode both is essential.

How the sum constrains the filling

Because the digits between 1 and 9 must be drawn from {2, 3, 4, 5, 6, 7, 8} and each can appear at most once, only certain sums are possible for a given gap size:

When a clue has only one valid combination of digits, you can immediately determine the filling. When multiple combinations are possible, you narrow them down using standard Sudoku logic.

How the sum constrains positions

A small sum means the 1 and 9 are close together, which limits where they can sit. A large sum means they are far apart. For example, a clue of 3 means there is exactly one digit between the 1 and 9, and that digit must be 3. This tells you the 1 and 9 are exactly two cells apart.

Worked Example

Suppose a row has a sandwich clue of 5. Here is how to reason through it:

  1. Find valid combinations. Which subsets of {2, 3, 4, 5, 6, 7, 8} sum to 5? The options are: {5}, {2, 3}.
  2. Determine gap sizes. If the filling is {5}, the gap is 1 cell, so 1 and 9 are two cells apart. If the filling is {2, 3}, the gap is 2 cells, so 1 and 9 are three cells apart.
  3. Check feasibility. Both placements need to fit within the 9-cell row. A gap of 1 allows the 1-9 pair in positions (1,3), (2,4), ..., (7,9). A gap of 2 allows positions (1,4), (2,5), ..., (6,9). Both are feasible.
  4. Cross-reference with other clues. Use column clues, box constraints, and any digits already placed to eliminate impossible configurations. As the puzzle progresses, one option will emerge as the only valid placement.
Practical tip: Start with the most extreme clues first. Clues of 0 and 35 have unique solutions. Low clues like 2 or 3 and high clues like 33 or 34 have very few valid configurations, making them the easiest entry points.

Solving Strategies

1. Start with extreme clues

A clue of 0 means the 1 and 9 are adjacent. A clue of 35 means they occupy the first and last positions in the row or column. These are the most constrained clues and should be addressed first.

2. Enumerate small and large sums

Clues of 2, 3, or 4 each have only one valid filling (the single digit itself). Similarly, clues of 33 (= 35 - 2) and 34 (= 35 - 3) each require all digits except one in the filling. These near-extreme values are nearly as powerful as 0 and 35.

3. Use position logic

If a sandwich clue forces the 1 and 9 to be far apart, the cells outside the sandwich (before the first bread digit and after the second) are restricted to a small set of digits. For instance, if the 1 and 9 must occupy cells 2 and 8 of a row, only cell 1 and cell 9 are outside the sandwich, and those two cells must hold two of the remaining non-filling digits.

4. Cross-reference rows and columns

Every cell belongs to one row and one column, each with its own sandwich clue. A cell that is inside the sandwich in its row but outside the sandwich in its column (or vice versa) creates powerful constraints. Look for intersections where the row clue and column clue together eliminate most candidates.

5. Track the bread digits

Because 1 and 9 are the bread, placing either digit in a cell immediately defines the sandwich boundary for that row and column. Whenever you place a 1 or 9, revisit all affected sandwich clues to see what new deductions follow.

Advanced technique: If two rows in the same set of columns both have a sandwich clue of 0, the two pairs of adjacent 1-9 bread digits interact with the column clues. This can chain deductions across the grid rapidly.

6. Apply standard Sudoku techniques

Naked singles, hidden singles, pointing pairs, and box-line reduction all remain valid. Sandwich constraints reduce candidates, and standard techniques finish the job. Alternate between sandwich reasoning and classic elimination for the most efficient solve path.

Special Cases

Sandwich clue of 0

When the clue is 0, the 1 and 9 are directly next to each other with nothing in between. This is the most restrictive single clue in Sandwich Sudoku. In a 9-cell row, the 1-9 pair can sit in positions (1,2), (2,3), (3,4), ..., (8,9), giving eight possible placements. However, since either digit can come first, there are actually 16 ordered arrangements. Box boundaries and existing digits quickly narrow this down.

Sandwich clue of 35

A clue of 35 means every digit from 2 through 8 is sandwiched between the 1 and 9. The only way this works is if the 1 and 9 occupy the very first and very last cells of the row or column. You immediately know two cell values, and you know the remaining seven cells hold 2, 3, 4, 5, 6, 7, and 8 in some order. The only remaining question is whether 1 or 9 comes first.

Clues near the extremes

Clues of 2 and 34 are nearly as powerful. A clue of 2 means the only filling is the single digit 2 (gap of 1), while a clue of 34 means all digits except 3 appear in the filling (gap of 6). Similarly, a clue of 3 pins the filling to {3} and a clue of 33 pins it to {2, 4, 5, 6, 7, 8}. Prioritize these clues early in your solve.

Impossible sums

Not every number between 0 and 35 is a valid sandwich clue for every gap size. For example, a sum of 1 is impossible because the smallest available digit between 1 and 9 is 2. If during solving you find a configuration that would require an impossible sum, you know that configuration is wrong. This is a useful contradiction technique for advanced puzzles.

Remember: The minimum non-zero sandwich sum is 2 (the digit 2 alone), and the maximum is 35 (all seven middle digits). A clue of 1 cannot exist in a valid Sandwich Sudoku puzzle.

Play Sandwich Sudoku

Try Sandwich Sudoku and 7 other variants in Sudoku - Brain Puzzles. Free to download.

Download on the App Store