Established 2026  ·  Free Educational Resources for All

🔢 Magic Square Workshop

Rearrange the numbers so every row, column and diagonal adds up to the same magic total — with live sums that turn green the moment a line is correct.

🔢 A magic square uses every number from 1 to n² exactly once, arranged so every row, column and diagonal adds up to the same total. Your numbers are already there — your job is to put them in the right places.

How This Works
  1. Pick a size below — 3×3, 4×4 or 5×5. The numbers get shuffled into the grid.
  2. Tap any two cells to swap them. Tap the first number (it highlights gold), then tap a second number — they swap places.
  3. Watch the sum badges. Every row, column and the two diagonals have their own live total. A badge turns green the moment that line matches the magic total.
  4. Get all lines green to win. Keep swapping until every row, column and diagonal glows green at once.
Stuck? Tap "Reveal a Solution" to see one correct arrangement, then tap "Back to My Puzzle" to keep trying yourself.

Choose a size:

Magic Total
15
0 of 8 lines correct
Tap two cells to swap them and start building your magic square.