On this page
You can measure the six edges of a wooden tetrahedron with a ruler, but not easily its height. The Cayley–Menger determinant gives area or volume from distances alone.
What is the Cayley–Menger determinant?
The Cayley–Menger determinant, named after Arthur Cayley and Karl Menger, gives the volume of an n-dimensional simplex from the squares of the distances between its vertices (Wikipedia: Cayley–Menger determinant). A simplex is a triangle when n = 2 and a tetrahedron when n = 3.
The recipe: put the squared distance dᵢⱼ² in row i, column j, with zeros on the diagonal, then border the matrix with a row and column of 1s and a 0 where they meet.
For a tetrahedron with corners 1 to 4, the bordered matrix is 5×5, with rows:
(0, 1, 1, 1, 1)
(1, 0, d₁₂², d₁₃², d₁₄²)
(1, d₁₂², 0, d₂₃², d₂₄²)
(1, d₁₃², d₂₃², 0, d₃₄²)
(1, d₁₄², d₂₄², d₃₄², 0)
Its determinant equals 288V², where V is the volume, as the same Wikipedia article states. In general the determinant equals (−1)ⁿ⁺¹ 2ⁿ (n!)² times the squared volume; that constant is 288 for n = 3 and −16 for n = 2.
How does the 4×4 determinant give Heron's formula?
For a triangle with sides a, b and c, the bordered matrix is 4×4, with rows (0, 1, 1, 1), (1, 0, c², b²), (1, c², 0, a²) and (1, b², a², 0). Its determinant equals −16A², where A is the area (Wikipedia). Expanding it gives:
16A² = 2a²b² + 2b²c² + 2c²a² − a⁴ − b⁴ − c⁴ = (a + b + c)(−a + b + c)(a − b + c)(a + b − c).
Write s = (a + b + c)/2 and divide by 16: A² = s(s − a)(s − b)(s − c). That is Heron's formula. Leo Liberti and Carlile Lavor's history of distance geometry describes Cayley's result as the generalisation of Heron's formula to higher dimensions (Liberti and Lavor, arXiv:1502.02816).
Check it on a 3-4-5 triangle. With a² = 9, b² = 16 and c² = 25: 2(144 + 400 + 225) − (81 + 256 + 625) = 1538 − 962 = 576 = 16 × 36. So A = 6, the same as ½ × 3 × 4. For more whole-number areas, see which triangles have integer sides and integer area.
Worked example: what is the volume of a regular tetrahedron with edge 1?
Every squared distance is 1, so the 5×5 matrix has 0 on the diagonal and 1 everywhere else. That matrix is J − I, where J is the all-ones matrix. J has eigenvalues 5, 0, 0, 0, 0, so J − I has 4, −1, −1, −1, −1, and its determinant is 4 × (−1)⁴ = 4.
288V² = 4
V² = 4/288 = 1/72
V = 1/(6√2) = √2/12 ≈ 0.1179
Cross-check with one-third base times height. The base is an equilateral triangle of area √3/4, and the apex sits √(2/3) above it, so V = ⅓ × √3/4 × √(2/3) = √2/12. The methods agree. For the regular tetrahedron's place among its relatives, see why there are only five Platonic solids.
Can six distances form a tetrahedron?
Not every set of six lengths fits together in space. Menger's characterisation says a set of distances comes from points in ordinary space exactly when its Cayley–Menger determinants have the right signs; four points are coplanar when the 5×5 determinant is zero (Wikipedia; Liberti and Lavor). The check:
Each of the four faces passes the strict triangle inequality.
The 5×5 determinant is positive. Zero means the points are flat; negative means no such tetrahedron exists.
Step 2 matters. Put an apex at distance 1 from each corner of an equilateral base with side s. The determinant works out to 288V² = 6s⁴ − 2s⁶.
s = 1.5: 288V² ≈ 7.59, so V ≈ 0.162. A real tetrahedron.
s = √3: 288V² = 54 − 54 = 0. The apex lies flat at the centre of the base.
s = 1.8: 288V² ≈ −5.04. No tetrahedron, though every face (1, 1, 1.8 and 1.8, 1.8, 1.8) is a valid triangle.
The base's circumradius is s/√3, about 1.04 when s = 1.8, so three rods of length 1 cannot reach its corners.
How does this connect to JEE vectors and determinants?
In school you find a tetrahedron's volume from coordinates, as one-sixth of a scalar triple product. Cayley–Menger is the version for when you know only distances. For the determinant side, see how to prepare matrices and determinants for JEE Main.
To revise simplices, determinants and the scalar triple product together, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing. If you set up the 5×5 matrix and get a negative volume, the Fermi Problem Library has a step-by-step solver that explains the reasoning, so you can see which step went wrong.
Try it yourself: take a tetrahedron with three mutually perpendicular edges of length 1 at one corner, and confirm that the determinant gives V = 1/6.



