All you do is put numbers into a small grid of 3 squares down and 3 across, yet once you start thinking, you can’t stop. That’s the 9-square math puzzle. Puzzles known as “9-square math puzzles” or “3×3 number puzzles” include the magic square handed down since ancient times, puzzles where you fill in 1 to 9 to complete row and column equations, and the 9-square calculation drill kids use for practice. This article introduces how to play and solve each one, and how to make them on paper, with sample problems and answers.

Three Kinds of 9-Square Math Puzzles

PuzzleWhat you fill inMain calculations
Magic square1 to 9, once each+
Row-and-column equation puzzle1 to 9, once each+ − ×
9-square calculationThe answers+ − ×

You can play all of them with just paper and a pencil. Other math puzzles, like Komachi-zan and cryptarithms, are covered in What Are Calculation Puzzles?, and how number puzzles as a whole are grouped is in Types of Number Puzzles. Here, we take a close look at just the 9-square puzzles.

Magic Squares: Making the Rows, Columns, and Diagonals Add Up the Same

Rules

Put 1 to 9 into a 3×3 grid, once each, so that all 8 lines, the 3 rows, the 3 columns, and the 2 diagonals, have the same sum of three numbers. Here’s one finished example:

2 9 4
7 5 3
6 1 8

The rows are 2 + 9 + 4, 7 + 5 + 3, and 6 + 1 + 8; the columns are 2 + 7 + 6, 9 + 5 + 1, and 4 + 3 + 8; and the diagonals are 2 + 5 + 8 and 4 + 5 + 6. Every one is 15.

According to an old Chinese legend, a turtle that came out of a river had a pattern showing this arrangement on its shell, and it’s called the “Lo Shu.” In Japan, too, it was studied under the name “hōjin” (magic square) in wasan, the traditional Japanese mathematics of the Edo period (17th to 19th centuries).

Why each line adds up to 15

Adding all the numbers from 1 to 9 gives 45. The 3 rows contain each of the 9 numbers once, so the sums of the 3 rows add up to 45. Every row has the same sum, so one row’s sum must be 45 ÷ 3 = 15.

Why the center is 5

There are 4 lines that pass through the center square in all: the middle row, the middle column, and the 2 diagonals. The sums of these 4 lines add up to 15 × 4 = 60.

In these 4 lines, the 8 squares other than the center are each counted once, but the center alone is counted 4 times. Adding each of the 9 squares once gives 45, so 60 is “45 + 3 more of the center number.” 60 − 45 = 15, divided by 3, makes the center 5.

There’s another way to see it. There are only these 8 sets of 3 different numbers from 1 to 9 that add up to 15:

  • 1 + 5 + 9, 1 + 6 + 8, 2 + 4 + 9, 2 + 5 + 8
  • 2 + 6 + 7, 3 + 4 + 8, 3 + 5 + 7, 4 + 5 + 6

A magic square also has exactly 8 lines, so these 8 sets become the 8 lines. The center square is in 4 lines, and the only number that appears in 4 of the 8 sets is 5.

Even numbers in the corners, odd numbers on the edges

The same idea decides the other squares. A corner square is in 3 lines (a row, a column, and a diagonal), and the middle square of an edge is in 2 lines (a row and a column). Among the 8 sets, the numbers that appear 3 times are 2, 4, 6, and 8, and the numbers that appear twice are 1, 3, 7, and 9. That’s why the corners get even numbers and the middles of the edges get odd numbers.

There’s really only one answer

There are 8 magic squares in all made from 1 to 9 on a 3×3 grid. But all 8 are the shape above rotated or flipped. If you count rotations and flips as the same, there’s only one answer.

In Japan, the shape above is easy to remember by reading the rows from the top as “nikushi (ni-ku-shi = 2, 9, 4; it sounds like the word for ‘hateful’), shichi-go-san (7, 5, 3; also the name of a festival for children aged 7, 5, and 3), roku-ichi-hachi (6, 1, 8).”

How to fill in empty squares

For a magic square with some numbers already written in, you can solve it by filling it in this order:

  1. Put 5 in the center
  2. Two squares facing each other across the center add up to 10 (because adding 5 to both makes 15)
  3. Once you know 2 numbers in a line, subtract them from 15 to find the last one

How to make one: the diagonal method

You can also make a magic square yourself, starting from an empty grid. This is a long-known method that works for grids with an odd number of squares on each side, like 3×3 or 5×5.

  1. Write 1 in the middle of the top row
  2. Write the next number in the square diagonally up and to the right
  3. If you go off the top of the grid, go to the bottom of that column. If you go off the right side, go to the far left of that row
  4. If the square you want is already taken (and also when you’d move up and to the right from the top-right corner), write the number directly below the previous one

Going from 1 to 9, you get this:

8 1 6
3 5 7
4 9 2

It’s the first shape we saw, turned exactly halfway around.

Magic squares with different numbers

If you add the same number to all 9 numbers of a finished magic square, or multiply them all by the same number, it’s still a magic square. Add 1 to every number of the 1-to-9 magic square, and you get a magic square of 2 to 10, where each line adds up to 15 + 3 = 18 and the center is 6. Double everything, and you get a magic square of the even numbers 2, 4, 6, … 18, where each line adds up to 30 and the center is 10.

Magic square practice

The answers are below.

  1. Here’s a 1-to-9 magic square. Fill in the ? squares.
6 ? ?
? ? 9
? ? ?
  1. If you make a magic square from the 9 numbers 3 to 11, what are each line’s sum and the center number?

Puzzles Where You Fill In 1 to 9 to Complete Row and Column Equations

Rules

Put 1 to 9 into a 3×3 grid, once each, so that the 3 rows and 3 columns all become the given equations. Signs (+ − ×) are written between the squares, and the answer is written at the end of each row and column. × comes before + and −.

In a magic square, all 8 sums were the same, but in this puzzle, each line has a different equation and answer. Because of that, you can look for clues in the shape of the equations, like “this column has a big answer, so a big number probably goes next to the ×.”

Equation puzzle practice

Name the squares A to I.

A B C
D E F
G H I
  • Row 1: A − B + C = 8
  • Row 2: D + E + F = 20
  • Row 3: G + H + I = 13
  • Column 1: A × D + G = 28
  • Column 2: B × E − H = 6
  • Column 3: C + F − I = 5

This problem has exactly one answer (we checked every way of placing 1 to 9 with a program). Here’s a hint: from the sums of rows 2 and 3, you can find the sum of the three numbers in row 1. The answer is below.

Tips for solving

  • Use the total of 45: 1 to 9 adds up to 45. If two rows are made only of additions, you can find the sum of the remaining row.
  • Estimate sizes from equations with ×: For A × D + G = 28, A × D is a little less than 28. List the candidates from the times tables.
  • Write down candidates and cross them out: Write the numbers that might fit in small print next to each square, and cross out the ones that don’t match the other equations.

How to make one

  1. First, decide on an answer grid with 1 to 9 placed in it.
  2. Write + − × between the squares, and calculate the answers for the rows and columns. Making sure nothing goes below zero along the way or in the answer makes it easier to solve.
  3. Erase the numbers, leaving only the signs and answers.

A problem you make yourself won’t necessarily have exactly one answer. Solve each other’s problems as a family, and if someone finds a different answer, writing numbers into a few squares from the start can narrow it down.

The “9-Square Calculation” Drill for Kids

9-square calculation is a calculation drill that shrinks hyakumasu keisan (the 100-square drill) down to 3×3. Write 3 numbers each in the top row and the left column, and write the answers in the squares where they meet. With only 9 problems, it’s over quickly, which makes it good for kids who’ve just learned a calculation, or when you want to practice for a short time. For multiplication, for example, it looks like this (left number × top number):

×687
4243228
9547263
3182421

Once kids are used to it, hiding some of the outside numbers to make a “fill-in-the-gaps” version turns it into more of a puzzle. You work backward from the answers you know, with subtraction or division, to find the outside numbers. Practice in working backward is also in How to Work Backward.

9-square calculation practice

Here’s a fill-in-the-gaps 9-square addition grid (left number + top number). Fill in the ? numbers and the empty squares. The answers are below.

+5?8
310
?9
6

When playing with kids, praise them for filling it in all the way or for working backward to find the ? numbers, rather than for how long it took.

Answers to the practice problems

Magic square practice

  1. Here’s the answer:
6 7 2
1 5 9
8 3 4

The center is 5. Across from 9 is 10 − 9 = 1, and across from 6 (bottom right) is 10 − 6 = 4. The right column gives 15 − 9 − 4 = 2, so the top right is 2, and the top row gives 15 − 6 − 2 = 7. The bottom left comes from the diagonal: 15 − 2 − 5 = 8, and the bottom middle is 15 − 8 − 4 = 3.

  1. 3 to 11 adds up to 63, so each line adds up to 63 ÷ 3 = 21. It’s the 1-to-9 magic square with 2 added to every number, so the center is 5 + 2 = 7.

Equation puzzle practice

Here’s the answer:

3 2 7
9 5 6
1 4 8
  1. Rows 2 and 3 add up to 20 + 13 = 33, so the three numbers in row 1 add up to 45 − 33 = 12. From the difference between A + B + C = 12 and A − B + C = 8, two Bs make 4, so B = 2 and A + C = 10.
  2. Column 2 is 2 × E − H = 6, so E and H are either “5 and 4” or “7 and 8.”
  3. If they were “7 and 8,” row 3 would be G + I = 5, so G and I would be 1 and 4. Then the remaining numbers can’t make a pair with A + C = 10, so it doesn’t work.
  4. That settles E = 5 and H = 4, so D + F = 15 and G + I = 9. Splitting the remaining 1, 3, 6, 7, 8, 9 into three pairs that add up to 10, 15, and 9 gives two options: “1 and 9, 7 and 8, 3 and 6” or “3 and 7, 6 and 9, 1 and 8.”
  5. The only fit for column 1, A × D + G = 28, is A = 3, D = 9, G = 1 (3 × 9 + 1 = 28). The rest falls into place as C = 7, F = 6, I = 8, and column 3 checks out too: 7 + 6 − 8 = 5.

9-square calculation practice

The ? on top is 7 (10 − 3), and the ? on the left is 4 (9 − 5).

+578
381011
491112
6111314

After 9-Square Puzzles, Try the Math Puzzle Tsumezan

In the row-and-column equation puzzle, the signs were written in from the start, and you filled in only numbers. In the math puzzle Tsumezan, you’re handed not only numbers but also signs as tiles, and you work out where to place them yourself. The thinking you used in the 9-square puzzle, estimating “an equation with a big answer has a big number next to the ×,” helps directly.

Tsumezan asks you to make the number written on the card at the top (the goal) with an equation that uses every number and sign tile (+ − × ÷) exactly once. There are no parentheses, and × and ÷ come before + and −. ÷ only works when it divides evenly, and nothing may go below zero, along the way or at the end. Every puzzle has exactly one answer, so like a magic square, you get the fun of confirming “this is the only way.”

  • Difficulty ranges from ★1 Easy (1–2 goals, 3–4 numbers) to ★5 Grandmaster (2–4 goals, 8 numbers).
  • If you get stuck, “Hint” places one tile that leads to the answer. You can try again with “Undo” and “Restart.”
  • If you stop partway, you can pick up where you left off next time.

The Tsumezan app for smartphones is free to play (it shows ads). On the official site, tsumezan.com, you can solve “Today’s Tsumezan,” one puzzle a day, in your browser. If you’d rather take your time with a book, TSUMEZAN: 100 Puzzles of Insight is also available on Kindle.

Here’s a sample puzzle with 4 number tiles and 3 sign tiles.

The goal is 1, a small number. First decide which two tiles to join with ×, then use the remaining + and − to get 1. The answer is at the end of this section.

The rules are summarized in How to Play Tsumezan.

Answer to the Tsumezan puzzle

3 + 8 − 2 × 5 = 1 (arranging it as 8 + 3 − 2 × 5 and so on counts as the same equation). × comes first, so 3 + 8 = 11, minus 2 × 5 = 10, makes 1. Unless the two tiles joined with × are 2 and 5, no arrangement makes 1. For example, multiplying 2 and 3 gives things like 2 × 3 + 5 − 8 = 3. Also, 3 − 2 × 5 + 8 goes below zero at 3 − 10, so it can’t be used.