Magic Square Generator

Generate a magic square of any order where every row, column and diagonal sums to the same constant. Handles odd, doubly-even and singly-even sizes. Runs entirely in your browser.

Browse all tools