Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

Magic Square Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser โ€” no data is sent to any server.

Formula: Magic Constant M = n(n-squared + 1) / 2

Your Result

Worked example โ€” Magic constant = 15, all rows/columns/diagonals sum to 15

Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy