The Lo Shu square: a 3×3 magic square's determinant

Rows, columns and diagonals all sum to 15 — and the determinant of that same arrangement is −360, which the matrix calculator prints in one step.

Matrices and vectors · Level: Classic result · Updated on 2026-11-09

Place 1 to 9 in a 3×3 grid so every line sums to 15, with 5 in the middle. That is the Lo Shu, the oldest magic square on record, and the pattern is essentially unique up to rotation and reflection.

Put the same nine numbers into the matrix calculator: the trace is 15 (it has to be, it is one of the lines) and the determinant is −360. A non-zero determinant means the array is invertible — the inverse's entries are all multiples of 1/360, visible as decimals on the card.

Answer

-360

How to read it

The card also gives SIZE 3 × 3, TRANSPOSE and the INVERSE MATRIX; the trace is 15, the same as every line.

Source

Lo Shu 洛書, recorded in the Bei Wei period and described in the Dayan Jing (c. 1st century); the standard example of a magic square

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.