Magic Square Calculator

Your details

The order is the number of rows (and columns). A 3x3 square has 9 cells using the numbers 1 to 9.
Magic constant (M)
15

The sum every row, column, and diagonal equals

Sum of all numbers45
Number of cells9
Largest number9
Center cell value5
Magic constant15
Cell count9
Largest number9

3x3 magic square with magic constant 15

  • Every row, every column, and both main diagonals sum to 15.
  • The grid uses each integer from 1 to 9 exactly once.
  • Construction uses the Siamese (De La Loubere) method, chosen automatically for order 3.
  • For odd orders, the center cell always holds the median value: 5.
  • The 3x3 magic square is unique up to rotation and reflection: there is only one fundamental solution.

Next stepTo check your own square by hand, add the entries in each row, each column, and both long diagonals. All 2n+2 sums must equal M.

= Powered by OnlyCalculators