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 doubly-even method
Because is a multiple of (doubly even), write to along the rows, then replace every number on the diagonals of each block by minus itself.
Checking the sums
Adding along each of the rows gives every time, and the columns and both diagonals agree.
Result
The 4 by 4 magic square has constant .