Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Magic Squares in Mathematics Explained Clearly

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Magic Squares Definition Formula Properties and How to Construct with Examples

Magic Square is an interesting and very popular square that contains various different numbers arranged in such a way that the total sum of digits in each column, row and diagonal is the same.


And for this reason, this square puzzle is known as a magic square. Now you must be curious about how to make these magic squares and what is the formula of magic squares. So come let’s find the answers to all your questions in this article.


What is a Magic Square?

Magic squares are an excellent mathematical wonder for kids. It is a big square which is made up of the same number of rows with different numbers. And in this, each line of the square that may be horizontal/vertical or even diagonal makes up the same sum and this sum is known as the “magic number”.


For example, The magic square given below has numbers ranging from 1 to 9 and just look at how all the numbers in each column, row and diagonal add up to the magic number 15.


Magic Square


Magic Square


What is the Formula for Magic Squares?

The magic square puzzle of the order $\mathrm{n}$ is a group of “$n{ }^{2}$” digits in a big square. And the magic square consists of the numbers from 1 to $n 2$. And these numbers that are in the rows, columns and diagonals will add up to the same sum or the "magic number". And this magic number is denoted by the letter $\mathrm{M}$ whose value completely depends on the value of $n$.

So the formula to find the value of a magic number is:

$M=\dfrac{n\left(n^2+1\right)}{2}$


Tricks To Solve Magic Squares

As we got to know the formula for finding the magic number/sum is $\dfrac{n\left(n^2+1\right)}{2}$ so to find the magic square of order 3, the first step we'll substitute $n=3$ so that it'll be easy to form a magic square $3 \times 3$.

Now, $n=3$, the sum $=3(32+1)$

$\dfrac{3 \times 10}{2}=15 \text {. }$

So we will have to place the digits accordingly so that the numbers in all the rows, columns and diagonals will be equal to number 15.


Trick for Magic Square of Order 3

Let’s assume “x” as the order of our magic square.

Let's assume "$x$" as the order of our magic square.

So here, $x=3$

Let's consider the second number "$y$" so that the product of $x$ and $y$ will be equal to the magic number/sum, i.e., 15.

So, $y=5\{x y=(3)(5)=15\}$

Now put the value of $y$ at the centre of the magic square and $x$ on its left. And the cell above $x$ should be $y-1$ as you can see below:


Formula for Building Magic Square


Formula for Building Magic Square


Now according to this trick, magic squares of order 3 can be easily built.


Magic Square of Order


Magic Square of Order 3


Magic Square 3 x 3

Let’s learn to make multiple magic squares of the same order by changing the numbers in different places from the magic square that we obtained above.

By taking the magic square $3 \times 3$ sum 15 that is shown below:


Magic Square


Magic Square 3 x 3


Let us make another magic square of the above square:

$\left(n^2+1\right)=32+1=9+1=10$

Next step is to subtract each number from $(n^2+1)$, that is 10 .

So first row numbers will be:

$10-4=6$

$10-3=7$

$10-8=2$

Second row numbers will be:

$10-9=1$

$10-5=5$

$10-1=9$

Third row numbers will be:

$10-2=8$

$10-7=3$

$10-6=4$

Finally the new magic square that is formed is will be:


The Newly Formed Magic Square


The Newly Formed Magic Square


Magic Squares Worksheet

1. Worksheet 1: Magic Squares for Beginners


Magic Squares Worksheet for Beginners


Magic Squares Worksheet for Beginners


Ans:


Magic Squares Worksheet for Beginners


Magic Squares Worksheet for Beginners


2. Worksheet 2: Magic Square Puzzles:


Magic Square Puzzle Worksheet


Magic Square Puzzle Worksheet


Ans:

Magic Square Puzzle Worksheet


Magic Square Puzzle Worksheet


Practice Questions

Q 1. Fill the missing integrals in each of the magic squares and the magic number/sum is given.

  1. The magic number is 21.


Practice Question 1


Practice Question 1


  1. The magic number is 36.


Practice Question 2


Practice Question 2


  1. The magic number is 27.


Practice Question 3


Practice Question 3


Answers.



Practice Question 1


Practice Question 1




Practice Question 2


Practice Question 2




Practice Question 3


Practice Question 3


Summary

In this article we got to know about the magic squares. These magic square puzzles are a great way to learn mathematics calculations in an easy way for kids. They also help in developing the addition and subtraction skills and strategies for solving the magic square questions and make it more engaging and interesting. And after solving the given worksheets and practice questions it will be easier for you to find the missing numbers in a magic square and even build a new magic square.

FAQs on Magic Squares in Mathematics Explained Clearly

1. What is a magic square in maths?

A magic square is a square grid of numbers in which the sum of every row, every column, and both main diagonals is the same constant number. This constant is called the magic constant or magic sum.

  • It usually contains consecutive integers starting from 1.
  • All rows, columns, and diagonals add up to the same total.
  • The most common example is the 3×3 magic square using numbers 1 to 9.
Magic squares are popular in number theory and recreational mathematics.

2. What is the formula for the magic constant?

The formula for the magic constant of an n × n magic square is M = n(n² + 1) / 2.

  • Here, n is the order (size) of the square.
  • The formula works when the square contains numbers from 1 to n².
For example, for a 3×3 magic square:
  • M = 3(3² + 1)/2 = 3(10)/2 = 15.
So every row, column, and diagonal must add up to 15.

3. How do you solve a 3×3 magic square?

To solve a 3×3 magic square, arrange the numbers 1 to 9 so each row, column, and diagonal adds to 15. One standard method is:

  • Place 1 in the middle of the top row.
  • Move diagonally up-right for each next number.
  • If you go outside the grid, wrap around to the opposite side.
  • If a cell is already filled, move one step down instead.
A correct solution is:
  • 8 1 6
  • 3 5 7
  • 4 9 2
Each row, column, and diagonal sums to 15.

4. Why is the number 5 always in the center of a 3×3 magic square?

The number 5 is always in the center of a normal 3×3 magic square because it is the average of the numbers 1 to 9.

  • The total sum of numbers 1 to 9 is 45.
  • The magic constant is 15.
  • The center number must balance opposite pairs that add to 10 (like 1 and 9, 2 and 8).
Since 5 is the middle value, it ensures symmetry and keeps all rows, columns, and diagonals equal to 15.

5. Can you give an example of a 3×3 magic square?

A classic example of a 3×3 magic square using numbers 1 to 9 is:

  • 8 1 6
  • 3 5 7
  • 4 9 2
In this square:
  • Each row sums to 15.
  • Each column sums to 15.
  • Both diagonals sum to 15.
This is the most well-known example in elementary mathematics.

6. What are the different types of magic squares?

The main types of magic squares are odd-order, even-order, and special magic squares.

  • Odd-order magic square: Size is odd (3×3, 5×5); solved using the Siamese method.
  • Even-order magic square: Size is even (4×4, 6×6); divided into double-even and single-even types.
  • Double-even: Order divisible by 4 (4×4, 8×8).
  • Single-even: Order divisible by 2 but not 4 (6×6, 10×10).
Each type requires a different construction method.

7. How do you find the magic constant of a 4×4 magic square?

The magic constant of a 4×4 magic square is found using the formula M = n(n² + 1) / 2.

  • Here, n = 4.
  • M = 4(4² + 1)/2 = 4(17)/2 = 68/2 × 2? Wait compute properly.
Correct calculation:
  • 4(16 + 1)/2 = 4(17)/2 = 68/2? Actually 4×17=68, 68/2= 34.
So every row, column, and diagonal must add up to 34.

8. What is the difference between a magic square and a normal square?

The difference is that a magic square has equal sums in all rows, columns, and diagonals, while a normal number square does not require equal sums.

  • In a magic square, all lines total the same magic constant.
  • In a regular square grid, numbers can be arranged in any order.
  • A magic square follows strict mathematical rules.
This special property makes magic squares important in recreational maths and number puzzles.

9. Are there magic squares larger than 3×3?

Yes, magic squares exist for all orders n ≥ 3.

  • Examples include 4×4, 5×5, 6×6, and larger.
  • The magic constant changes depending on n.
  • Different construction methods are used for odd and even orders.
For example, a 5×5 magic square using numbers 1 to 25 has magic constant M = 5(25 + 1)/2 = 65.

10. What are magic squares used for?

Magic squares are mainly used in recreational mathematics, number theory, puzzles, and mathematical thinking exercises.

  • They help develop logical reasoning and pattern recognition.
  • They appear in historical art and architecture.
  • They are used in mathematical research and combinatorics.
Today, magic squares are popular in maths education and brain-teaser problems.