Magic Square

Generate and validate magic squares

Whole number from 1 to 12. Order 2 has no magic square.

M = n(n² + 1) / 2 = 15 (n = 3)
Order (n)
3 × 3
Magic constant
15
Construction method
Siamese method (odd order)

Every row, column and both diagonals sum to 15.

Magic SquareAn order-3 magic square. Each number from 1 to n² appears once, and every row, column and both diagonals sum to the magic constant 15. Row sums are shown to the right and column sums below the grid.816357492151515151515

关于这个计算器

The Magic Square Calculator generates a magic square of any order from 1 to 12, where every row, column and both diagonals share the same magic constant M = n(n² + 1) / 2. It uses the Siamese method for odd orders, the doubly-even method for orders divisible by four, and Conway's LUX method for singly-even orders, and confirms the result is genuinely magic.