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. It covers the Siamese method for odd orders, diagonal complements for multiples of four, and the Strachey method otherwise — adjust any of them and the result follows immediately.
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.
What does it take into account?
It factors in the Siamese method for odd orders, diagonal complements for multiples of four, and the Strachey method otherwise. Change any of them and the output follows immediately.
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 is the one to open when you need it to 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.