Sudoku variants7 min read

X-Sums Sudoku: Rules and Solving Strategy

X-Sums Sudoku places clues outside the grid. The first digit from that edge tells you how many cells must add up to the clue.

Understand the self-defining clue length

X-Sums Sudoku keeps the standard rule that every row, column, and 3x3 box contains 1 through 9 exactly once. A clue outside a row or column gives a target sum. The first digit seen from that clue determines X, the number of cells from that edge whose digits must add to the target. If the first cell is 3, then the first three cells from that side must sum to the clue. If the first cell is 1, only that first cell is included, so the clue itself must be 1. This self-defining length is what makes X-Sums different from ordinary outside sums. The first cell participates both as a digit and as the instruction for how many cells to total. A clue is read only from its own side of the grid. If both ends of a row have clues, they create two independent sums that may overlap. Shapedoku uses symbols rather than numerical values, so X-Sums is naturally a numbered variant rather than a standard Shapedoku feature.

Use minimum and maximum sums to restrict X

Before calculating exact combinations, ask which values of X could possibly reach the clue. Because a standard row contains distinct digits, the smallest sum of X cells is built from the smallest available digits, while the largest uses the largest available digits that fit the row. Suppose an outside clue is 10. X cannot be 1 unless the first digit is 10, which is impossible. If X is 2, the first cell itself is 2 and the second cell must be 8, giving one possible structure. If X is 3, the first cell is 3 and the next two cells must sum to 7. Larger X values may already exceed 10 because they require several positive, distinct digits. These bounds can remove first-cell candidates before any interior value is known. Crossing box restrictions make them stronger. If the second and third cells cannot contain the combinations needed for X equals 3, then 3 disappears from the first cell and another run length must be used.

Work both forward and backward through the sum

Once X is known, the clue becomes an ordinary fixed-length sum across the first X cells. Use placed digits and candidate combinations to solve it. If a clue is 18 and X is 3, the first cell is 3, so the next two cells must total 15. In a shared row or box, the possible pair may be 6 and 9 or 7 and 8, with ordinary Sudoku deciding the order. The logic also runs backward. If the first few cells have already been narrowed, compare their possible totals with each candidate for the first cell. A candidate for X is invalid if the corresponding run cannot reach the clue. When opposite-side clues overlap, subtracting shared cells can create elegant relationships between the nonshared ends. Keep the arithmetic small and local rather than expanding every possible combination at once. On paper, note the remaining total beside the clue. On a digital grid, keep candidate lists accurate and update them after each sum deduction. The best X-Sums solves alternate arithmetic with familiar Sudoku singles, pairs, and box interactions.

  1. Read the first cell from the clue side as the value of X.
  2. For each possible X, test whether the first X cells can reach the clue total.
  3. Use minimum and maximum possible sums to remove impossible run lengths quickly.
  4. Once X is fixed, subtract known digits and solve the remaining fixed-length sum.
  5. Compare clues from opposite sides when their runs overlap.
  6. Return to standard row, column, and box logic after every sum-based elimination.

Ready to put it into practice?

Play Shapedoku free in your browser. No download, no login, just colorful shape Sudoku.

Play the Web App

Keep reading