Shapes & spaces

Maximum volume tetrahedron calculator from spatial points

Select four supplied integer-coordinate points maximizing tetrahedral volume, using complete subset enumeration and exact determinants.

Your numbers

One coordinate or index row per line; comma-separated entries.

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

Select four supplied integer-coordinate points maximizing tetrahedral volume, using complete subset enumeration and exact determinants.

THE FORMULA6V=|det(p1−p0, p2−p0, p3−p0)|.

A worked example

Among the five default points, the tetrahedron using indices 1, 2, 3 and 4 has exact six-volume 5 and volume 5/6.

Good to know

4–30 spatial points; integer coordinates within ±10000. Complete four-subset search with BigInt determinant arithmetic. Returns one maximizing witness; coplanar input has zero maximum volume. Vertices must be selected from the input, not moved continuously.

A selection problem inside a point cloud

The largest tetrahedron formed by four supplied points can occupy less space than their full convex hull. This calculator chooses the four-point subset with greatest volume. It does not report the hull volume and does not allow an optimizing vertex to move to an unsupplied location.

That distinction is useful when selecting a spatial frame or an extreme simplex from a small dataset. The objective is geometric volume alone; it does not maximize minimum edge length, minimize conditioning or guarantee that the selected four points are the best choice for every downstream numerical calculation.

Selecting a larger tetrahedronSelected: 1, 2, 3, 4Exact 6V = 5Maximum V = 5/6
Scroll across to see the full diagram.
The origin is excluded in the default optimum; indices 1,2,3,4 give six-volume 5.

Compare this with the Three dimensional convex hull calculator from point coordinates. Select four input points maximizing tetrahedral volume; the convex-hull volume generally uses more than four points.

Integer coordinates and exact comparisons

Every coordinate must be an integer within the stated range. Differences and three-by-three determinants are then evaluated with arbitrary-size integers. This lets the implementation compare competing six-volumes exactly instead of relying on a floating tolerance to choose between almost equal candidates.

The final volume divides the winning absolute determinant by six. Its decimal representation can be rounded for display, while the exact six-times-volume remains available as a certificate. If your measurements contain decimals, choose and document a scale that converts them to integers before interpreting the resulting units.

The five-point worked example

The default points include the origin, the three coordinate unit points and the point two-two-two. There are five ways to choose four of them. The maximizing subset excludes the origin and uses the three unit points together with two-two-two.

Its absolute determinant equals five, so the maximum volume is five-sixths, approximately zero-point-eight-three-three-three-three-three-three. The returned zero-based indices are one, two, three and four. Checking their determinant independently verifies both the numerical value and the selected witness without relying on the enumeration order.

Why subtracting one vertex works

A tetrahedron's volume depends only on three edge vectors issuing from one of its vertices. Subtracting that reference vertex removes global translation, leaving a parallelepiped determinant. The tetrahedron occupies one-sixth of that parallelepiped's absolute volume, regardless of which corner was chosen as the reference.

Reversing two edge vectors changes the determinant sign but not its magnitude. The search consequently compares absolute values. This avoids mistaking orientation for size and makes a reflected point cloud produce the same maximizing volume as the original coordinates.

Complete enumeration and its bound

For n observations, the number of candidate tetrahedra is n choose four. The bounded implementation checks every such subset, so a completed result is the global maximum over that finite input set. It returns one maximizing subset rather than promising to list every tied optimum.

The point-count limit prevents a browser interaction from becoming an unbounded combinatorial task. There is no random sampling or heuristic early stop hidden behind the maximum label. Extending the limit would require considering both runtime and the size of any additional witness information exposed to the user.

Degenerate and repeated data

If all observations lie in one plane or line, every determinant is zero and no positive-volume tetrahedron exists. The result marks that failure of full dimensionality explicitly. Duplicate coordinates can create more zero-volume subsets, but they cannot increase the true maximum.

A tiny physical volume relative to measurement uncertainty may still have a nonzero exact determinant for the entered integers. Exact arithmetic certifies the discrete numbers, not the precision of an instrument that produced them. Do not use integer conversion to imply a measurement accuracy that the original data did not have.

Interpreting scaling and usefulness

Translating every coordinate leaves the maximum unchanged. Uniformly multiplying coordinates by an integer factor multiplies volume by its cube. Orthogonal rotations preserve geometric volume, but an arbitrary rotation may produce noninteger coordinates outside this page's direct input format; its exact comparison model remains integer-coordinate selection.

Before using the chosen frame, also inspect its edge lengths and conditioning for the intended application. A volume optimum is one useful criterion, not a universal quality measure. For the mathematical task here, the selected indices and exact determinant are the primary evidence of a completed finite optimum.

A few questions, answered

Is this the convex hull volume?

No. It is the greatest volume of a tetrahedron whose four vertices are selected from the supplied observations.

Are all subsets checked?

Yes. Within the input bound, the implementation evaluates every four-point subset.

What if several tetrahedra tie?

One maximizing witness is returned; the interface does not promise all tied subsets.

Why require integer coordinates?

They permit exact BigInt determinant comparisons and an exact six-times-volume certificate.

Find your calculator

Start typing to explore the library.