Work out magic square checker instantly with clear inputs, formula shown and shareable results.
A magic square has every row, column and both main diagonals summing to the same constant. For a normal square using 1 to n² that constant must be n(n² + 1)/2.
Magic constant
M = n(n² + 1) / 2 for a normal magic square
Yes. Every line sums to 15, which matches 3 × 10 / 2 — this is the Lo Shu square.
Not a normal one. The constraints force all four entries equal, so distinct values 1 to 4 cannot work.