Generate Perfect Magic Squares
Create magic squares where all rows, columns, and diagonals sum to the same value. Enter the size of your desired square and discover the mathematical beauty of these numerical patterns.
Minimum size is 3. Larger squares may take longer to generate.
Explore different magic squares and their unique properties
The most famous magic square with magic constant 15
Size: 3×3
Method: Siam Method (for odd numbers)
Famous magic square from Albrecht Dürer's engraving
Size: 4×4
Method: LUX Method (for doubly even numbers)
Larger odd magic square with magic constant 65
Size: 5×5
Method: Siam Method (for odd numbers)
Singly even magic square with complex structure
Size: 6×6
Method: Strachey Method (for singly even numbers)