A 3×3 magic square puzzle is finished when all nine cells contain the digits 1 through 9 exactly once and all three rows, all three columns, and both diagonals total exactly 15.

These requirements must all be true simultaneously. A full board can still be unfinished if it repeats a digit, leaves a line at the wrong total, or has only some of its lines correct. The Magic Square Puzzle validates the board after every entry, but no individual row is the finish signal: completion occurs only when the entire grid passes the number and sum rules together.

how do i know when magic square puzzle is finished
How Do I Know When a Magic Square Puzzle Is Finished?

The Four Completion Requirements

The finish state has four parts. They describe the whole board rather than a preferred arrangement.

  • Full grid: All nine cells contain a value.
  • Correct digit set: The digits 1 through 9 appear exactly once each.
  • Three correct rows: Every horizontal line totals 15.
  • Three columns and two diagonals: Each of those five lines also totals 15.

Those eight lines are the winning lines: three horizontal, three vertical, and two corner-to-corner diagonals. This is why a grid with three good rows but one incorrect column is not finished. A balanced-looking pattern is not enough; each required line must pass its own check.

Part of the board Pass condition What it rules out
Nine cells Every cell contains a digit from 1 through 9. A blank cell
Digit set Each digit from 1 through 9 appears exactly once. A duplicate and therefore a missing digit
Three rows All three rows total 15. A grid that relies on one correct row
Three columns All three columns total 15. A grid checked only across
Two diagonals Both diagonals total 15. A grid with one broken diagonal

How to Know When the Magic Square Puzzle Is Finished

  1. Fill or repair all nine cells. Move the visible selection with the arrow keys, then press a number key from 1 through 9 to fill the selected square. Press Backspace or Delete to clear a mistaken entry. Mouse and touch users can click a square to cycle its value.
  2. Confirm the digit set. Check that the board contains nine values and that 1, 2, 3, 4, 5, 6, 7, 8, and 9 each appear once. Repeated numbers mean the board cannot yet be finished.
  3. Check every row. Add the three cells in the top row, middle row, and bottom row separately. Each row must equal 15.
  4. Check every column. Add the three cells in the left, middle, and right columns separately. Each column must also equal 15.
  5. Check both diagonals. Add the cells running from top left to bottom right, and then the cells running from top right to bottom left. Both totals must be 15.
  6. Resolve any contradiction feedback. Validation runs after every entry. If the game identifies a conflict, correct the offending value and verify the visible cell rather than assuming the invalid entry was automatically undone.
  7. Make the all-or-nothing check. Treat the puzzle as finished only when the nine digits are correct and all eight lines total 15 at once.

Each square announces its row, column, current value, and keyboard-selection state. That feedback makes it easier to confirm both where you are and what you entered before moving to the next line.

What the Contradiction Checks Mean

Contradiction checks are diagnostic guardrails. They point out conflicts early, but a warning should never be read as a completed state.

Repeated digit

Entering a nonzero digit that already appears elsewhere creates an immediate contradiction. Clear one of the repeated entries and place the missing digit in the empty square.

Incorrect completed line

When all three cells in a row, column, or diagonal are occupied and the line does not total 15, that completed line is contradictory. Adjust the entries until the line equals 15 while keeping every digit unique.

Impossible unfinished line

An unfinished line becomes contradictory when the values already placed in it total 15 or more. All remaining digits are positive, so adding another value cannot reduce that sum to 15. Change an existing entry instead of trying to fill around the problem.

Validation runs after every entry, but the game does not guarantee that a conflicting entry was rejected. Treat a contradiction message as an instruction to inspect and correct the board. The contradiction itself is never proof of completion.

Why the Required Total Is 15

The target total follows from the normal 3×3 rules rather than an arbitrary interface setting. The nine digits must all be used once, and the three rows must share one equal total. The calculation is: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45, and 45 ÷ 3 = 15. That same magic constant must also govern the columns and diagonals.

Wolfram MathWorld’s Magic Square reference explains the mathematical definition and the normal-square constant formula, while NRICH’s introduction to magic squares confirms that rows, columns, and diagonals share a common total. The game applies that classic result to its normal 3×3 board.

Which Arrangements Can Win

Do not require the board to match one particular orientation. All nine positions remain editable, and completion is determined from the rules, so valid rotations and reflections are accepted. A board can therefore win in its original, rotated, reflected, or rotated-and-reflected form as long as it uses 1 through 9 once each and every required line still totals 15.

The supported scope is specifically the classic normal 3×3 puzzle using 1 through 9. These completion checks should not be assumed to apply to larger magic squares or grids built from different values, because those variants fall outside this game’s verified rules.

Score and Restart Are Separate From Completion

The score is not a second finish test. It begins at 1,000 points and follows the formula max(0, 1,000 − 10 × edit actions). Consequently, corrections can reduce the final score even when the completed grid is valid. The board rules still determine whether the puzzle is finished.

Restarting clears all nine values and restores the starting score of 1,000 points. There is no timer to beat and no separate score requirement for completion. The interface has no accounts, and a completed best score is kept only in localStorage.

Because the score falls as edits accumulate, a lower result does not imply that the magic square is unfinished. Review the number and line rules rather than trying to infer completion from the score.

Run One Final Board Audit

After your last entry, run this final audit:

  • Confirm that all nine cells are occupied.
  • Confirm that 1 through 9 each appear exactly once.
  • Confirm that all three rows total 15.
  • Confirm that all three columns total 15.
  • Confirm that both diagonals total 15.
  • Resolve any remaining contradiction message and recheck the affected cells.

If any item fails, the square is not finished even when every cell contains a number. If every item passes, the puzzle is complete: the digits are unique and all eight winning lines have the required total.

If you're weighing options, How Do I Improve After a Failed Attempt in Masyu Puzzle? covers this in detail.

If you're weighing options, How Do I Choose My Next Step in Math Operator Puzzle? covers this in detail.