BOOTING HANPANN...

Magic Square

A magic square asks you to place each number once so that every line has the same sum. Hanpann starts with a five-cell cross and a six-cell triangle, then moves on to the 3×3 square, a big cross, a big triangle and the 4×4 square across 12 levels. There is no timer, so younger players can take their time.

Rules

Each shape uses every number from 1 up to its cell count exactly once: 1–5 for the small cross, 1–9 for 3×3 and 1–16 for 4×4.

The puzzle is solved when every line matches the target shown at the top. On a square the rows, columns and both diagonals are lines; on a cross the row and the column; on a triangle its three sides.

Pale purple cells are given numbers and cannot be moved. The 3×3 levels give 4, then 1, then 0 numbers; the 4×4 levels give 8, then 5.

Some puzzles have several answers. Any arrangement where every line matches the target counts as solved.

Controls

Tap a number below and then an empty cell, or drag the number onto the cell. Dragging a placed number onto another cell swaps the two.

Tap a filled cell twice, or drag its number off the board, to send it back to the tray. You can also pick a cell and type its number on the keyboard; Backspace clears it.

The circle at the end of each line shows its current sum. It turns red when the line goes over the target and green when the line is full and matches.

Scoring and game end

Solving without hints earns 3 stars, one hint 2 stars and two or more hints 1 star. The best result for each level is saved on this device.

A hint places the correct number in one cell and locks it. If that number was in another cell, that cell is emptied.

Clearing a level opens the next one. Replaying a level deals a fresh puzzle built by rotating and flipping the answer.

Magic Square strategy guide

What this guide covers

Read the full guide →

Frequently asked questions

How do you solve a 3×3 magic square?

The numbers 1 to 9 add up to 45, and there are three rows, so each line is 15. The centre must be 5, and the even numbers 2, 4, 6 and 8 go in the corners. Then fill each pair of opposite cells so that it adds up to 10.

Are there 5×5 or star-shaped magic squares?

The 12 current levels use the cross, the triangle, 3×3 and 4×4. A hexagram star, 5×5, 7×7, 9×9 and the magic hexagon are coming and are already listed on the level screen.

Is it free?

Yes. You can play without an account or a download. Ads may appear on the page.

Where is my progress saved?

Progress, play counts and play time are saved immediately in this browser and synchronized to an automatically issued guest profile when online. You can keep playing offline and changes merge on the next connection. Global rankings are not available yet.

Related games

See all Free Online Puzzle Games

Last updated 2026-11-20. The rules on this page follow the game code on Hanpann. Progress is saved immediately in this browser and synchronized to an automatically issued guest profile when online. Ads may appear on this page.

About · Contact · Privacy Policy · Game guides