Printable magic square worksheets

Choose the size and the number of blanks, and the page makes a sheet of magic square puzzles with an answer page. Every puzzle has exactly one solution, and the sheet number lets you print the same sheet again.

Last updated · Method and sources below

Worksheet maker

A whole number from 1 to 7. More blanks make a harder puzzle.

A whole number from 1 to 6.

0 to 999999. Leave it empty for a random sheet. The number is printed on the sheet.

How this is calculated

Every sheet prints the magic constant, which for a normal square of order n is

M = n(n² + 1) / 2

That is 15 for 3 × 3 (3 × 10 / 2) and 34 for 4 × 4 (4 × 17 / 2). Clues per puzzle is n² minus the blanks you choose: for a 3 × 3 sheet with 4 blanks, 9 − 4 = 5 clues.

Each puzzle starts from a magic square, rotated or reflected at random. The blank cells are then chosen so that their rows and columns let you work out every missing number, and the page confirms with the solver that exactly one completion exists. Each puzzle on a sheet uses the sheet number plus its position as its seed, so entering the same sheet number gives the same sheet again.

Limits

Sources

  1. Weisstein, Eric W. “Magic Square.” MathWorld, A Wolfram Resource. mathworld.wolfram.com/MagicSquare.html (constant formula).

Using the sheets in class

Print one sheet per student or pair and keep the answer page for checking. Printing the answer page separately works too: choose its page in the print dialog. Because the sheet number is printed on every page, a teacher can regenerate the same sheet later.

A strategy handout can be as short as three lines: work out the constant, look for a line with exactly one blank and fill it, repeat. The 3 × 3 guide and the 4 × 4 guide explain the reasoning in more detail. To try puzzles on screen first, use the magic square puzzle. A stuck grid can go to the solver.

Back to the magic square generator.

Report an error