free tool, no sign-up

Magic Square Generator

Generate magic square puzzles where rows, columns, and diagonals all sum to the same number. A classic math puzzle that builds addition skills and logical thinking.

What is a Magic Square?

A magic square is a grid of numbers where every row, column, and diagonal adds up to the same "magic sum". Use each number from 1 to 9 exactly once.

Select your options and click
"Generate Magic Square" to create a puzzle

About This Tool

The Magic Square Generator creates number grid puzzles where every row, column, and diagonal adds up to the same 'magic sum.' Use numbers 1 through n² exactly once to complete the grid. For a 3×3 square, use 1-9 and each line sums to 15. For 4×4, use 1-16 summing to 34. Magic squares have fascinated mathematicians for thousands of years and provide excellent practice combining addition skills with logical deduction.

Related Tools