Magic Square · Strategy Guide
How to Solve a 3×3 Magic Square
The 1,000-year-old number puzzle, demystified.
What is a magic square?
A 3×3 magic square is a grid where you place the digits 1 through 9 — using each digit exactly once — so that every row, every column, and both diagonals add up to the same number. For a 3×3, that number is always 15.
It looks deceptively simple. There are nine cells and nine numbers, so how hard can it be? But the constraints overlap: every cell belongs to a row, a column, and possibly one or two diagonals. A single wrong placement cascades into contradictions everywhere else.
The 3×3 magic square has been studied for over a thousand years, originally appearing in Chinese manuscripts as the Lo Shu Square. Despite its age, the puzzle still rewards anyone who learns the underlying pattern — once you see it, you can solve any clue configuration in under a minute.
Why every line sums to 15
The numbers 1 through 9 add up to 45. A 3×3 grid has three rows, and the three rows together cover every cell exactly once — so the three row sums must total 45. That means each row sums to 45 ÷ 3 = 15.
The same logic works for columns. Each diagonal isn't guaranteed by this argument, but the standard magic square arrangement satisfies the diagonals too.
Once you internalise that "15" is the magic number, every cell becomes a constraint problem: which two numbers, added to this one, give 15?
The corner / edge / center pattern
There's exactly one valid 3×3 magic square arrangement (up to rotation and reflection). It has a beautiful structure that, once seen, makes every puzzle trivial:
- The center cell is always 5. The center belongs to four lines (one row, one column, both diagonals), and 5 is the median — the only digit that balances pairs around it.
- The corners are always even (2, 4, 6, 8). Each corner belongs to three lines (a row, a column, and a diagonal). Even numbers fit this triple-constraint pattern.
- The edges are always odd (1, 3, 7, 9). Each edge belongs to only two lines. Odd numbers handle the simpler constraint.
Opposite cells (across the center) always sum to 10. So if a corner shows 2, the diagonally-opposite corner is 8. If an edge shows 3, the opposite edge is 7. This is the single fastest deduction tool you have.
A step-by-step worked example
Suppose your puzzle gives you 4 in the top-left corner and 9 on the right edge. Here's how to fill the rest:
- The center is 5 (always). Write it in.
- 4 is in a corner, so the opposite corner (bottom-right) is 6 (since 4 + 6 = 10).
- 9 is on an edge, so the opposite edge (left) is 1.
- The top row needs to sum to 15. You have 4 + ? + ? = 15. The middle cell of that row is an edge, so it's odd. The right cell is a corner, so it's even. The remaining odd numbers are 3 and 7; the remaining even numbers are 2 and 8. Try 4 + 3 + 8 = 15 ✓. So top-middle is 3, top-right is 8.
- The right column: 8 + 9 + 6 = 23. That's wrong! Backtrack and try 4 + 7 + ? — but 4 + 7 = 11 needs a 4 to complete, and 4 is already used. So return to the previous step and try the other split: top-middle = 7, top-right = ?. 4 + 7 + 4 doesn't work either. The only valid arrangement places 2 in the top-right and 9 in the top-middle... but wait, 9 is already on the right edge.
- Step back further: the 4-in-top-left + 9-on-right-edge pair only works if the top-right corner is one of {2, 8}. Test each. With top-right = 8: right column is 8 + 9 + 6 = 23, fail. With top-right = 2: right column is 2 + 9 + ? = 15, so bottom-right = 4 — but 4 is already in the top-left.
This contradiction means the original clue setup is impossible to extend, so the bottom-right must be different. The takeaway: always check the opposite-cell rule first. It tells you which cells are forced before you start trying combinations. In Minute Arcade's Magic Square, every puzzle is guaranteed solvable, so if you hit a contradiction you've made an arithmetic mistake — back up and recompute.
Common mistakes
Most players lose time by treating each cell as an independent guess instead of using the structural rules.
- Filling in numbers without checking the diagonal sums. It's easy to satisfy three rows and three columns and still break a diagonal. Glance at both diagonals after every two or three placements.
- Forgetting that the center is 5. If the puzzle hides the center as a clue cell, you'll discover this naturally. If the puzzle leaves the center blank, plug in 5 immediately.
- Trying to brute-force with the largest numbers. Place the constrained cells first (corners and edges adjacent to known clues), not the loose ones. Constrained cells reduce the search space; loose ones expand it.
Practice in your browser
The fastest way to internalise the corner/edge/center pattern is to solve a few puzzles in a row. Minute Arcade's Magic Square gives you a fresh layout each time with a small number of pre-placed clues — solve in as few moves as possible, and the score tracks how cleanly you're using the structure.