Explore traditional and modern Chinese magic squares with intuitive controls and guidance. Input custom numbers, generate valid matrices, and confirm constant sums for analysis. Download outputs as CSV or PDF and document every transformation clearly. Master symmetry patterns quickly using this comprehensive interactive calculator.
| Order n | Magic Constant M = n(n² + 1)/2 | Example Pattern / Notes |
|---|---|---|
| 3 | 15 | Lo Shu: classic 3×3 using 1 to 9 once. |
| 4 | 34 | Doubly even square with symmetric swaps of high and low values. |
| 5 | 65 | Odd-order Siamese construction, moving up-right and wrapping around edges. |
Use these as references to compare generated or custom grids when exploring properties.
The calculator supports Lo Shu 3×3, general odd-order squares, doubly even squares of order 4k, and singly even squares of order 4k+2 using well-established construction algorithms.
Use generation mode to instantly create structured magic squares, or validation mode to test custom grids by checking all row, column, and diagonal sums against a computed magic constant.
After generating or validating a grid, export the displayed table to CSV for spreadsheets or to PDF for clean documentation, research notes, assignments, and technical presentations.
Designed for mathematics students, educators, historians, puzzle creators, and enthusiasts studying numeric symmetry, combinatorial patterns, and traditional Chinese representations of harmony and balance.
A normal magic square of order n uses distinct integers from 1 to n². Every row, column, and main diagonal shares the same sum.
The magic constant for such a square is:
M = n(n² + 1) / 2
Total sum from 1 to n² is n²(n² + 1)/2. Dividing by n rows gives n(n² + 1)/2 for each line.
Ideal for teaching, research notes, puzzle design, and exploring classical numeric patterns.
A Chinese magic square is a square grid where every row, column, and main diagonal adds to the same constant, often linked historically with the Lo Shu legend.
It supports the classic 3×3 Lo Shu, general odd orders, doubly even orders divisible by four, and singly even cases like 6×6 using structured construction algorithms.
Yes. Enter the order, paste your numbers row-wise, and the tool calculates row, column, and diagonal sums, reporting whether they share a single magic constant.
The generator uses consecutive integers for normal squares. The validator accepts any integers, reporting if sums match; non-consecutive sets can still form semi-magic or custom pattern grids.
For a normal n×n square with values 1 to n², total sum is n²(n² + 1)/2, so each line sums to n(n² + 1)/2.
Yes. Use the CSV button for spreadsheet-friendly data or the PDF button to capture a formatted table snapshot suitable for sharing, printing, or attaching to reports.
Students, teachers, puzzle designers, historians, and researchers exploring numeric symmetry can use it to generate examples, validate constructions, and illustrate classical Chinese patterns clearly.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.