KeithSchwarz.comBack | Forward

Magic Square Generator

A Magic Square is a grid of numbers (N by N) in which the rows, columns, and diagonals add up to the same number. They have a long history, appearing in both ancient Chinese scriptures and Dark Ages Christian sculptures.

Recently an algorithm was developed that allowed the automatic generation of any magic square of odd-numbered dimensions. The algorithm is simple, powerful, and at your fingertips.

In the box below, enter an odd number and click the "create" button to see a magic square of the chosen dimensions.