Magic Square Calculator
Choose build or check, then enter a size or a square.
A whole number from 3 to 15.
Try
Result
You entered
Magic constant
Method
Show the work
Magic constant
The numbers to add up to , and shared out over rows that gives the sum every row, column and diagonal must have.
Construction by the Siamese method
Put in the middle of the top row. Then keep moving one cell up and one to the right, wrapping round the edges, to place the next number; if that cell is already filled, drop one cell straight down instead.
Checking the sums
Adding along each of the rows gives every time, and the columns and both diagonals agree.
Result
The 3 by 3 magic square has constant .