Skip to content

Magic Square Puzzle

A number puzzle on 3×3 to 6×6 grids, about 4 minutes a round, free, no sign-up.

100% free · No sign-up · Progress saved on this device · Works offline

Clever Games Magic Square is a free online number puzzle that asks you to fill a grid with the numbers 1 to n² so every row, column, and both main diagonals reach the same total. Live sums beside the grid show how close each line is, and the Learn button shows how a magic square is built. Play free with no sign-up, then print magic square worksheets for paper practice.

How do you play a magic square puzzle?

Fill the empty cells with the numbers that are still unused so that every row, column, and both diagonals add up to the same target, the magic constant shown in the bottom-right corner of the board. The sums along the right and bottom edges of the grid update as you play, so you always see which lines are done.

  1. Choose a size and level. Pick 3×3, 4×4, 5×5, or 6×6, then Easy, Medium, or Hard. Easy opens about 60% of the cells, Medium about 40%, and Hard about 20%.
  2. Select an empty cell. Tap or click it, or move with the arrow keys. The first puzzle you open is a 3×3 Easy square with a short tutorial that you can skip.
  3. Place a number. Tap a button on the number pad, drag a tile into the cell, or type digits and press Enter for a two-digit number. Each number from 1 to n² is used once, and used numbers are dimmed on the pad.
  4. Compare every line with the target. A line with the right total turns green and shows a check mark (✓). A full line with the wrong total turns red and shows a cross (✗), so you never depend on color alone.
  5. Fix mistakes. Use Undo and Redo, clear a cell with Erase or Backspace, or press Hint to open one cell of the target square. There are no lost lives and no mistake counter.
  6. Finish the square. When every cell is filled and every line matches, the result panel shows your time, moves, and hints. If all cells are full but the sums do not match, the puzzle says “Not solved yet. Check the sums.” Its Undo button takes back your last number so you can keep going.
816 357 492 15 15
Step 4. Check the top row (8 + 1 + 6 = 15) and the descending diagonal (8 + 5 + 2 = 15). Every row, column, and main diagonal should reach 15.

What are the rules of a magic square?

A magic square of side n holds each whole number from 1 to n² exactly once. Every row, every column, and both main diagonals must add up to the same total, called the magic constant. The cells that are open at the start must stay as they are.

What is a magic square?

A magic square is a square grid of different whole numbers in which all rows, all columns, and both main diagonals have the same sum. In this puzzle you complete a partly filled grid, and the live sums show which lines still need work.

What is the magic constant?

The magic constant is the total every line must reach: M = n(n² + 1) / 2. It comes from adding all the numbers from 1 to n² and sharing that total equally among the n rows. The board shows it in its bottom-right corner, for example “M=15” on a 3×3 grid, next to the two diagonal sums.

Grid Numbers used Magic constant
3×3 1–9 15
4×4 1–16 34
5×5 1–25 65
6×6 1–36 111

Does only one answer count?

No. The puzzle accepts any valid magic square that matches the numbers already open, not only the one the generator started from. A different valid arrangement still solves the board, and unique answers are not promised. Correct row totals alone are not enough: a repeated number or a wrong diagonal breaks the rules, and there is no countdown.

Which magic square sizes and levels can you choose?

You can choose one of four grid sizes and one of three levels, and every combination is a different puzzle. The board is for solving, and the Learn button beside it switches to watching a square being built.

Choice What it means Good for
3×3, target 15 Nine cells and short lines Learning to read the sums
4×4, target 34 Sixteen cells and more crossing lines Your first step beyond the smallest square
5×5, target 65 An odd-sized grid Pairing with the Siamese method in Learn
6×6, target 111 Thirty-six cells and two-digit numbers Patient solving and careful bookkeeping
Easy About 60% of the cells open Finding the one missing number in a line
Medium About 40% of the cells open Comparing crossing lines
Hard About 20% of the cells open Working with little starting help

The level changes only how many cells are open at the start. Pressing New puzzle gives a fresh square of the same size and level, and Restart returns to the opening numbers of the current one. Your best time is kept for each size and level on this device, so a 4×4 Medium time is never compared with a 6×6 Hard time. There is no daily magic square puzzle; you always choose your own size.

Which tips help you solve magic squares?

Start with a line that has just one empty cell and subtract the numbers already in it from the target. That gives the missing number at once, as long as it is still unused.

How do you solve a 3×3 magic square?

Every 3×3 magic square has the target 15, and the number 5 always sits in the center. Put even numbers in the corners and odd numbers on the edges, then finish each line by subtracting its current sum from 15. Check both diagonals last.

More tips for bigger squares

How does Learn build a magic square step by step?

The Learn button shows how a magic square is constructed, one frame at a time, on the same board you play on. A line under the buttons names the method, counts the frames, and says what the current frame does. You move with Step and Back, run the animation with Play (it turns into Pause while it runs), start over with Reset, and set the pace with a speed slider from 0.5× to 4×. Your own puzzle waits untouched and comes back when you press Learn again.

Use Back to compare neighboring frames rather than memorizing the whole animation. Watching a wrap or a blocked move on its own makes the rule easy to repeat on paper.

How do you print magic square worksheets?

Press Worksheet, then choose a size, a level, and from one to six squares per sheet. New worksheet swaps in a fresh set, and Print worksheet opens your browser’s print dialog with US Letter pages and no site header. The Print button under the board prints the same worksheet. A separate answer key follows the puzzles on its own page, so you can keep it out of sight while you solve.

The worksheet holds fresh puzzles with their open cells, not your partly filled board. The answer key shows one valid completion, and any other square that keeps the open numbers and meets every rule is also correct.

Who are magic squares especially useful for?

Magic squares suit anyone who likes number puzzles that reward patience over speed.

What are the benefits of solving magic squares?

Solving magic squares gives steady practice with addition, subtraction, and keeping several conditions in mind at once. Each move changes up to four sums, so you see at once why a number works or does not.

Solving and construction train different habits. Solving starts from fixed numbers and asks what can fit around them, a local kind of reasoning. Construction in Learn starts from a procedure and asks why the finished grid balances, a view of the whole square. Switching between them builds focus and logic skills in a friendly way. These are activities the puzzle supports, not promises of better health or measured learning results.

What is the history of magic squares?

Magic squares are among the oldest number puzzles. A 3×3 square known as the Lo Shu is part of ancient Chinese tradition, and the 4×4 square in Albrecht Dürer’s 1514 engraving Melencolia I has the magic constant 34, the same as the 4×4 puzzles here.

Benjamin Franklin also wrote about the subject. In a letter to Peter Collinson he describes making large squares for amusement and studying patterns beyond equal line totals. His letter is a historical example of interest in both building magic squares and examining their properties. The Siamese, diagonal, and LUX methods in Learn are some of the standard procedures for the construction side of that old interest.

What are the most frequently asked questions about magic squares?

Why is my square unfinished when its rows are correct?

Columns and both main diagonals must also equal the target. Check that every number from 1 to n² appears exactly once and that the open starting numbers have not changed. Rows alone are not enough.

Can a magic square puzzle have more than one answer?

Yes. The puzzle accepts any valid magic square that matches the open cells. A puzzle is not promised to have only one solution, so your answer may differ from the stored one and still count.

How do I enter a two-digit number?

Select an empty cell, type both digits, and press Enter. You can also tap the number on the pad or drag its tile into the cell. A repeated number or one outside 1 to n² is refused with a message.

How does Hint work?

Hint opens one cell of the target square. If your numbers contradict every valid square, it first corrects one of your cells. Hints have no limit, can fill the last empty cell, are counted in your result, and can be undone with Undo.

Can I play magic squares with the keyboard?

Yes. Arrow keys move between cells, digits and Enter place a number, Backspace or Delete clears a cell, and Ctrl+Z and Ctrl+Y undo and redo. Tab moves from the grid to the other controls.

What does the result panel show?

It shows your time, moves, and hints, plus a short pace rating such as “Expert pace” for that size and level. Buttons offer Next puzzle, Harder level, Share result, and links to other puzzles under Try another puzzle.

Do I need an account to play magic squares online?

No. Magic squares here are free to play online with no sign-up. Your progress and best times are saved on this device when browser storage is available, and the puzzle also works offline once the page has loaded.

How do I know the magic constant of a square?

Use M = n(n² + 1) / 2. For 3×3 it is 15, for 4×4 it is 34, for 5×5 it is 65, and for 6×6 it is 111. The bottom-right corner of the board always shows it, as M=, for the current puzzle.

Updated:

Contact support