Magic Square Generator

A magic square is a grid of numbers where each row, column and diagonal add up to the same total.

Enter numbers into the cells below; as you go, the remaining cells will start to fill in, until the magic square is complete.

You can also manually set the total in the bottom circle.