BTT Mathematics / Primary Mathematics Learning Hub / Magic Squares and Number Grids
A balanced number grid is controlled by relationships between several lines at once. A number that makes one row correct may still fail a column or diagonal. The solution must satisfy the complete grid, not merely the first equation encountered.
A 3×3 magic square has the same sum along each of its three rows, three columns and two main diagonals. The classic arrangement using the digits one through nine has magic sum fifteen:
8 1 6
3 5 7
4 9 2
Every row, column and main diagonal totals fifteen. Its total cell sum is forty-five, so three equal row sums must each be 45÷3=15. This total-first argument is more powerful than checking a single line and hoping the rest works.
This guide is Primary Mathematics enrichment. It connects place value, addition, averages, systematic checking and symmetry. It is not a claim that magic squares form a required syllabus strand. Use the MOE Primary curriculum page and the learner’s school programme for required scope.
Line sums · Use the total · Normal 3×3 square · Transformations · Other balanced grids · 24 questions · Worked answers · Teaching and transfer
1. A missing entry is constrained by every line it belongs to
Worked example A: One row
A row must total fifteen and contains 8, 1 and x. Then x=15−9=6. This is a complete answer only if no other grid condition involving x contradicts it.
Worked example B: Row and column agree
Suppose x sits below 8 and 3 in a column that must also total fifteen. Then x=15−8−3=4. If the row containing x also forces four, the two constraints agree. If they force different values, the printed grid is inconsistent.
Use two directions as a check
In a 3×3 grid, a corner belongs to one row, one column and one diagonal. An edge-centre cell belongs to one row and one column. The centre belongs to four required lines in a magic square. The more lines a cell belongs to, the more opportunities there are to detect an error.
Do not count a line twice
When finding the total of all nine cells from three row sums, every cell appears once. Adding the three rows is therefore valid. Adding rows and columns together would count each cell twice.
2. The total grid sum fixes the common line sum
If a 3×3 grid has equal row sums and the nine entries total seventy-two, each row must total 72÷3=24. The same conclusion does not require the columns to be balanced.
Worked example C: Digits one through nine
The total of 1+2+…+9 is forty-five. Three equal rows therefore require fifteen each. Any proposed normal 3×3 magic square using those digits exactly once must have magic sum fifteen before the arrangement is even considered.
Worked example D: Even numbers two through eighteen
The entries 2,4,6,…,18 total ninety. A 3×3 magic square using them once must have line sum 30.
Worked example E: A 4×4 normal magic square
The integers one through sixteen total 136. Four equal row sums therefore give common sum 34. Again, this is a necessary condition; a random arrangement with row sum thirty-four need not have balanced columns and diagonals.
Average-cell viewpoint
A 3×3 magic square with line sum thirty has average entry ten because each row has three cells and total thirty. Across all nine cells, the total is ninety and the mean is ten. The mean does not identify every entry, but it provides a strong centre and scale check.
3. The normal 3×3 square has useful structural relationships
In the classic 1–9 magic square, the centre is five. Opposite cells across the centre add to ten: 8+2, 1+9, 6+4 and 3+7.
Why opposite pairs total ten
Any line through the centre totals fifteen. Remove the centre five and the two opposite cells on that line must total ten. The argument uses the line sum and centre value, not a memorised picture.
Worked example F: Missing opposite
If one cell opposite eight is unknown in a normal 1–9 magic square, it must be two because the pair total is ten. This is faster than reconstructing the whole square but remains justified by the centre-line relationship.
Worked example G: Complete a partial square
Suppose the grid is:
8 1 _
3 5 _
_ 9 2
The first row needs six; the second row needs seven; the third row needs four. The completed square is the classic arrangement, and all columns and diagonals can then be checked.
The centre is not “always the average” in every balanced grid
The centre-five property belongs to the normal 3×3 square using one through nine once. A different multiset of numbers can have another centre. Do not generalise a property beyond the stated construction.
4. Rotations, reflections and linear changes can preserve balance
Rotate or reflect the whole square
Rotating a magic square by 90°, 180° or 270° permutes its rows, columns and diagonals. Their sums remain equal. Reflecting the entire square also preserves the magic property.
Add the same constant to every cell
If every entry of a 3×3 magic square is increased by two, each three-cell line increases by six. The classic sum fifteen becomes 21.
Multiply every cell by the same number
Doubling every entry doubles every line sum. A sum of fifteen becomes 30. Multiplying by three and then adding one to every cell makes each line 3×15+3=48.
Changing only one cell generally breaks balance
If the centre five is increased to six while all other entries remain fixed, every line through the centre rises by one while rows and columns not through the centre may not. The square is no longer magic.
This is an invariance question: whole-grid transformations preserve the equality because they act consistently on every line; a local change need not.
5. Balanced grids need not be magic squares
A row-column puzzle may require every row and column to total ten without diagonal conditions. A cross may require opposite arms to balance. A number wall may require a cell to equal the sum of two below it. Read the stated relationship rather than importing the rules of a magic square.
Worked example H: A 2×2 balanced grid
The grid 4,6 / 6,4 has every row and column equal to ten. Its diagonals are eight and twelve, so it is not a magic square under the diagonal definition. It is still a valid row-column balanced grid.
Worked example I: Equal rows from a known total
Nine cells total 126 and the three row sums are equal. Each row sums to 42. Nothing further about columns follows without another condition.
Worked example J: A target row
A row must total thirty and contains 7, 11 and x. Then x=12. The calculation is ordinary addition control inside a grid context.
6. Practice: 24 original questions
Unless stated otherwise, “magic square” means equal row, column and two main diagonal sums.
Questions 1–8: Missing cells and common sums
1. A row in a 3×3 magic square must total 15 and contains 8, 1, x. Find x.
2. A column must total 15 and contains 8, 3, x. Find x.
3. Complete the missing entries in: 8 1 _ / 3 5 _ / _ 9 2, with every row totalling 15.
4. What is the total of the digits 1 through 9?
5. A 3×3 grid uses 1 through 9 once and has equal row sums. What must each row sum be?
6. A 3×3 magic square has line sum 15. Add 2 to every cell. What is the new line sum?
7. Double every cell of a 3×3 magic square with line sum 15. What is the new line sum?
8. In the normal 1–9 square, what do two cells opposite each other across the centre sum to?
Questions 9–16: Structure and transformations
9. What is the centre value of the normal 1–9 magic square?
10. A normal 4×4 magic square uses 1 through 16 once. What must its common row sum be?
11. Nine cells total 126 and are split into three equal row sums. Find the row sum.
12. A row totals 30 and contains 7, 11 and x. Find x.
13. In the normal 1–9 square, a cell opposite 8 is missing. Find it.
14. Does rotating a magic square 90° preserve the magic property? Explain.
15. Does reflecting a magic square preserve the magic property? Explain.
16. Subtract 1 from every cell of the normal 1–9 magic square. What is the new line sum?
Questions 17–24: General balanced-grid reasoning
17. Multiply every cell of the normal 1–9 magic square by 3 and then add 1 to every cell. Find the new line sum.
18. A 3×3 grid has equal row sums and total cell sum 72. Find each row sum.
19. A 3×3 magic square uses the numbers 2,4,6,…,18 exactly once. Find its magic sum.
20. The 2×2 grid 4 6 / 6 4 has equal rows and columns. Is it a magic square if diagonals must also match? Explain.
21. A 3×3 magic square has line sum 30. What is the average value of its nine cells?
22. A 3×3 magic square has line sum 24. What is the total of all nine cells?
23. In the normal 1–9 square, why must the centre be 5 if opposite pairs sum to 10 and every centre line totals 15?
24. A learner finds one row summing to 15 and declares a 3×3 grid magic. What still has to be checked?
7. Worked answers
Answers 1–8
1. x=6. 15−8−1=6.
2. x=4. 15−8−3=4.
3. 6, 7 and 4. The rows become 8+1+6, 3+5+7 and 4+9+2, all equal to fifteen.
4. 45. Add 1+2+…+9.
5. 15. Three equal row sums partition the total forty-five.
6. 21. Each row contains three cells, so adding two to each cell adds six to the row.
7. 30. Multiplying every entry by two doubles every line sum.
8. 10. Each centre line totals fifteen and the centre is five, leaving ten for the opposite pair.
Answers 9–16
9. 5. It is the centre of the normal 1–9 magic square.
10. 34. The numbers 1–16 total 136; divide by four rows.
11. 42. 126÷3=42.
12. 12. 30−7−11=12.
13. 2. Opposite cells across the centre sum to ten.
14. Yes. Rotation permutes the required rows, columns and diagonals without changing their cell sums.
15. Yes. Reflection also permutes the required lines while preserving the entries on each corresponding line.
16. 12. Three cells each fall by one, so the line sum drops by three from fifteen.
Answers 17–24
17. 48. Tripling gives line sum forty-five; adding one to each of three cells adds three more.
18. 24. 72÷3=24.
19. 30. The even numbers two through eighteen total ninety; divide by three rows.
20. No. The diagonals total 8 and 12, so the diagonal condition fails.
21. 10. The total of all cells is three rows times thirty, or ninety; 90÷9=10.
22. 72. Three rows each total twenty-four.
23. 5. A centre line consists of one opposite pair totalling ten plus the centre. To reach fifteen, the centre must be five.
24. The other two rows, all three columns and both main diagonals must also have the same required sum. One successful row is not enough.
8. Teaching and transfer
If a learner fills one blank and stops, ask which other lines contain that cell. A balanced-grid problem is useful because it makes cross-checking visible: one entry participates in several constraints.
Start with totals before placement
For a normal magic square, find the total of all entries and the required row sum before arranging anything. This separates a necessary numerical condition from the spatial placement problem.
Use transformations to distinguish structure from appearance
Rotate a completed square. If the learner believes the new orientation is different mathematically, trace one original row into its new column or diagonal position. The relationship survives even when the visual layout changes.
Do not overgeneralise the centre-five rule
Change every entry by adding two. The new centre becomes seven and the line sum twenty-one. The square remains magic. This shows that centre five belongs to the normal 1–9 version, while balanced-line structure is more general.
Create a balanced grid forwards
Begin with a known magic square and apply a whole-grid transformation such as doubling every entry. Another learner can discover the new line sum and explain why the square remains balanced. Then alter just one cell and ask which lines break.
Continue through the puzzle-enrichment collection
For hidden digits and place-value constraints, use Cryptarithms, Alphametics and Digit Puzzles. For geometric fitting and coverage, use Tessellations, Tiling and Spatial Construction Puzzles. For best-possible constructions, use Optimisation, Minimum Moves and Efficient Constructions.
Return to the BTT Primary Mathematics Learning Hub.
Original enrichment guide with 24 original practice questions and separate worked answers. Balanced-grid rules are stated locally; a row-column puzzle is not assumed to include magic-square diagonal rules unless stated.
