Magic Square Calculator

Generate a normal magic square of odd, singly even, or doubly even order. Check the common row, column, and diagonal sum.

Result
—

How to calculate

Use 1 through n² once each. For odd sizes, place consecutive numbers by stepping up and right with wraparound. Use a complement pattern for multiples of four and quadrant swaps for other even sizes.

Worked example

Use Square size 3. The result is Magic sum 15.

Input and result notes

Choose an order from 1 through 25. The 1 × 1 square is valid. The 2 × 2 case has no normal magic square with distinct entries.

Omni normal magic squares and tabulation

Wichita State construction for singly even orders

Related calculators