Shapes & spaces

Tetrahedron volume calculator from six edge lengths

Calculate a general tetrahedron’s volume from six named edges, with face checks and a Cayley–Menger determinant result.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Six edge lengths determine the size of a nondegenerate tetrahedron when their assignments to the four vertices are specified and geometrically consistent. No perpendicular height needs to be entered. The calculator uses inner products recovered from the squared edges to build a Gram matrix, which is equivalent to the Cayley–Menger determinant construction. Its positive-definiteness check also tests whether the proposed edges can form a stable three-dimensional simplex.

THE FORMULA288V² = det(Cayley–Menger matrix); equivalently V = √det(G)/6 for the three edge vectors from A.

A worked example

Set AB, AC, AD, BC, BD and CD all to one. This is a regular unit-edge tetrahedron, but the general algorithm does not assume regularity. Its Gram matrix has diagonal entries 1 and off-diagonal entries 1/2, giving determinant 1/2. The volume is √(1/2)/6 = √2/12, approximately 0.117851 cubic coordinate units.

Good to know

Edges must be positive finite lengths from 10⁻⁹ through 1,000,000 in one common unit. Face triangle inequalities are necessary but not sufficient, so a Gram-matrix check is also applied. Degenerate and poorly conditioned tetrahedra are rejected. Swapping two arbitrary edge values can change vertex adjacency and the volume; the named edge assignments matter.

Recover the angles through edge inner products

Let the three vectors leaving A point toward B, C and D. Their squared lengths occupy the Gram matrix diagonal. The cosine-law identity gives AB·AC = (AB² + AC² − BC²)/2; the other two dot products follow from BD and CD. Thus all nine entries come from the six supplied lengths, without choosing a coordinate orientation or solving explicitly for the vertices.

The determinant of that matrix is the square of the scalar triple product. A tetrahedron occupies one sixth of the corresponding parallelepiped, so its volume is the square root of the Gram determinant divided by six. The Cayley–Menger determinant is eight times the same Gram determinant, giving the equivalent identity det(CM) = 288V². Both determinants appear in the result for cross-checking.

Six labeled unit edges produce the regular tetrahedron as one general-input exampleABCDAll edges = 1det(G) = 1/2V = √2/12
The six assignments are AB, AC, AD, BC, BD and CD. Setting every edge to one gives Gram determinant 1/2 and volume √2/12; the solver also accepts unequal valid edges.

The matrix determinant calculator can independently check a reconstructed Gram matrix before its square root is divided by six.

Four valid triangular faces may still be impossible together

For example, set AB = AC = AD = 1 and BC = BD = CD = 1.9. Every listed face satisfies its triangle inequalities, yet these faces cannot close into a Euclidean tetrahedron. The derived Gram matrix fails positive definiteness. Treating the face checks alone as sufficient would allow an impossible solid or an imaginary square root.

Lengths are normalized before the numerical factorization to reduce scale problems. A very flat or highly unequal configuration may still be too poorly conditioned for this browser calculation and is rejected explicitly. For a coordinate-based check, take B = (2,0,0), C = (0,3,0) and D = (0,0,4) with A at the origin; its volume is 2 × 3 × 4 / 6 = 4. The regular tetrahedron volume calculator covers the equal-edge special case, while this page permits a genuinely general edge pattern.

A few questions, answered

Can I enter the lengths in any order?

No. AB, AC and AD meet at A, while BC, BD and CD close their opposite faces. Preserving those adjacency assignments is essential.

Does the result depend on the chosen length unit?

Its numeric value scales with the cube of the length conversion. If all edges are in centimeters, the volume is in cubic centimeters.

Find your calculator

Start typing to explore the library.