puzzles
Magic Squares for Beginners: Fill the 3x3 Grid So Every Line Sums to 15
Learn why 15 is the target, why 5 must sit in the centre, and how to build a 3x3 magic square. Then try a challenge grid of your own.

You have a three by three grid and nine empty boxes. The goal sounds simple: make every line add up to 15. Before you write a digit, it helps to know why 15 is the target. That knowledge does most of the checking for you.
What a magic square requires
A magic square is a grid of distinct integers where every row, every column, and the main diagonals add up to the same total. That shared total is the magic constant, or magic sum, according to GeeksforGeeks. The word that trips up beginners is distinct. You cannot repeat a number. A grid full of 5s makes every line equal, but it is not a magic square.
The 3x3 grid is the smallest non-trivial magic square, with nine cells. The familiar version uses the numbers 1 through 9, and every line adds to 15. Check your puzzle's wording first. If it names a different set of numbers, the target changes. Subtract 1 from every cell of the basic square, for example, and the magic sum drops to 12, as the Baidu Baike entry on the Lo Shu Square notes.

Where 15 comes from, and why 5 sits in the middle
You do not have to take 15 on faith. For numbers 1 to n², the magic constant is n(n² + 1) / 2. For a 3x3 square, n is 3. So you get 3 times 10, divided by 2. That is 15.
Here is a second way to see it. The numbers 1 through 9 add up to 45. Three rows cover the whole grid, and each row must hit the same total. Split 45 three ways and you get 15. Same answer, no formula needed.
The same sum gives you the best first move. ThePuzzleLabs states that the centre cell of a 3x3 magic square must hold the middle number, 5. You can check it yourself. Four lines pass through the centre: the middle row, the middle column, and both diagonals. Together they total 4 times 15, which is 60. They cover every cell once, plus the centre three extra times. So 45 plus three times the centre equals 60. The centre is 5.
This is a handy habit for any partly filled grid. Work out what each line still needs. If a row cannot reach 15 with the numbers left, a placement is wrong. You find out early, not after the grid is full.
Build one with the Siamese method
If you would rather construct a square than hunt for one, the Siamese method works for any odd size, per ThePuzzleLabs. Here it is on the 3x3 grid:
- Put 1 in the middle cell of the top row.
- Move up one row and right one column for each next number.
- If you step off the top, wrap to the bottom of that column. If you step off the right edge, wrap to the left of that row.
- If the target cell is already filled, drop straight down one cell from the last number instead.
- Continue until the grid is full.
Try it. The 1 goes top middle. Up and right wraps the 2 to the bottom right. The 3 lands middle left. The next cell is taken by the 1, so the 4 drops below the 3. The 5 lands dead centre, as promised. The 6 goes top right. The 7 would hit the filled 4, so it drops below the 6. The 8 goes top left and the 9 goes bottom middle. You get 8 1 6 / 3 5 7 / 4 9 2, and every line makes 15.
That grid may look different from one in a book. It should. The 3x3 arrangement is unique up to rotations and reflections, according to GeeksforGeeks. Every valid grid of 1 through 9 is a turned or mirrored copy of one basic pattern. If your solution differs from a friend's, check whether one is a flipped version of the other.
A little history
The best-known 3x3 square is the Lo Shu Square, also called the Nine Palace Grid. The Baidu Baike entry links it to a legend of a divine turtle that emerged from the Luo River during King Yu's flood control. Whether or not you buy the turtle, people have played with this grid for a very long time. Larger squares, 4x4 and up, follow the same idea but are harder to construct. The 3x3 is the right place to start.
Your challenge
Fill in the four blanks so that every row, column, and diagonal adds up to 15. Use each of 1 through 9 once. Work out what each line needs before you place anything.
Challenge grid
2 | ? | 6
? | 5 | ?
4 | ? | 8
Hint: start with the top row. It already holds 2 and 6.
Answer
The top row needs 15 minus 8, so the top middle is 7. The left column holds 2 and 4, so the middle left must be 9. The right column holds 6 and 8, so the middle right is 1. The bottom row holds 4 and 8, so the bottom middle is 3.
2 | 7 | 6
9 | 5 | 1
4 | 3 | 8
Check the diagonals: 2 + 5 + 8 is 15, and 6 + 5 + 4 is 15. This is the classic Lo Shu arrangement, as shown by ThePuzzleLabs.