Magic square generator
Generate a magic square of any order from 3 to 20 — a grid of the numbers 1…N² where every row, column and diagonal adds to the same magic constant. It picks the right construction automatically: the Siamese method for odd orders, diagonal complements for multiples of four, and the Strachey method otherwise.
Related tools
All Geometry tools →Open Magic square generator and you get an answer straight away, with no account to create. Its place is under Geometry; Square diagonal calculator and Square calculator answer the questions closest to this one.
How to use it
- Open the tool — no signup or install needed.
- Enter your input or adjust the available options.
- Get your result instantly, then copy or download it.
Frequently asked questions
What does Magic square generator do?
Generate a magic square of any order from 3 to 20 — a grid of the numbers 1…N² where every row, column and diagonal adds to the same magic constant. It picks the right construction automatically: the Siamese method for odd orders, diagonal complements for multiples of four, and the Strachey method otherwise.
What does a concrete case look like?
3 × 3 → Σ = 15 — the tool shows every step in between, not just the final figure.
When would I actually use this?
Homework and site work alike: how much paint a wall takes, how much water a tank holds, whether a corner is square — and, on the coordinate side, the slope between two points, the distance across a plan, the midpoint of a span.
What is the most common mistake?
Mixing units inside one shape. Entering a length in centimetres and a width in metres gives an area wrong by a factor of a hundred, and the result looks perfectly plausible.
How is Magic square generator different from Square diagonal calculator?
They sit next to each other but answer different questions. Square diagonal calculator: compute the diagonal and area of a square from its side length. Pick whichever matches what you're starting from — both are free.
Is there a tool for the next step?
Square calculator is the closest one after this: All four measures of a square from any one. Give the side, the area, the perimeter or the diagonal and it returns the rest — side s, area s², perimeter 4s and diagonal s√2 — instantly.
What else is worth having open alongside it?
Chi-Square Test Calculator and Completing the Square Calculator — they come up in the same task often enough to be worth a second tab.
Where do the figures come from?
The formulas are the classical ones and the results are exact to the precision shown — geometry does not change with the year or the country, so nothing here needs updating.