What is a parallelepiped?
A parallelepiped is a three-dimensional solid with six faces, all of which are parallelograms, like a box that has been pushed sideways. A cube is a special parallelepiped where all the faces are squares, and a cuboid is one where all the faces are rectangles. A general parallelepiped is defined by three edge vectors meeting at one corner, and its volume is the absolute value of the scalar triple product of those three vectors.
This calculator finds the volume from the three edge vectors, and it also shows the scalar triple product itself and the area of the base parallelogram. For the straight-line distance between two points, a distance calculator covers the same three-dimensional geometry in a simpler form.
No data leaves your device: the maths runs entirely in your browser, with no sign-up and no server round-trip. You can change a number, see the answer move, and change it back, all instantly. It is a private way to check a figure before you talk to a professional about it. The page has no tracking of the numbers you enter, and closing the tab leaves nothing behind.
How the volume of a parallelepiped is calculated
The volume is the absolute value of the scalar triple product, which is the dot product of the first vector with the cross product of the other two. In steps: first find the cross product of vectors b and c, which is a vector perpendicular to both, with a length equal to the area of the parallelogram they form. Then take the dot product of vector a with that cross product, which multiplies the base area by the height of the solid. The absolute value removes the sign, because volume is always positive.
The three vectors are the three edges meeting at one corner of the parallelepiped, each given by its x, y and z components. The order of the vectors does not change the volume, although it can change the sign of the triple product: swapping two vectors flips the sign, which is why the volume takes the absolute value. The vectors must not lie in the same plane, or the volume is zero.
The volume is the headline number, in cubic units, and it is the amount the solid holds. The scalar triple product is the same number with its sign, and the sign tells you whether the three vectors form a right-handed or left-handed set. The base area is the area of the parallelogram formed by vectors b and c, which is the length of their cross product.
A dash in a result row means the value does not apply to the inputs you entered, not that the calculation failed. Some rows only make sense for certain methods or certain inputs, and the calculator leaves them blank rather than inventing a number. If every row shows a dash, check the inputs: a missing or zero value in a required field is the usual cause, and the field labels say which values are needed.
The scalar triple product, explained
The scalar triple product is the key to the whole calculation, and it is worth understanding rather than treating as a black box. Geometrically, it is the volume of the parallelepiped, with a sign that records the handedness of the three vectors. Algebraically, it is the determinant of the matrix whose rows or columns are the three vectors, which is why it changes sign when two vectors are swapped.
The triple product is zero exactly when the three vectors lie in the same plane, which means the parallelepiped is flat and has no volume. That is a useful test: if the calculator shows a volume of zero, check whether your three vectors are coplanar, because that is the usual cause. It is also zero if any vector is zero, which means one edge has no length.
The magnitude of the triple product grows with the lengths of the vectors and with how perpendicular they are to each other. Three vectors of length 1 that are mutually perpendicular give a triple product of 1, which is the unit cube. The same three vectors squashed nearly flat give a triple product close to zero, because the height of the solid collapses even though the edges stay long.
A worked example: three axis-aligned vectors
Take three vectors along the axes: a is (1, 0, 0), b is (0, 2, 0) and c is (0, 0, 3). These are the edges of a rectangular box with side lengths 1, 2 and 3, so the answer should be the familiar box volume.
The cross product of b and c is (6, 0, 0), because b cross c is (2 times 3 minus 0, 0, 0). The dot product of a with that is 1 times 6, which is 6, so the scalar triple product is 6.00. The volume is the absolute value, which is 6.00. The base area, the length of b cross c, is 6.00.
A volume of 6.00 matches the box volume of 1 times 2 times 3, which confirms the method. The base area of 6.00 is the area of the 2 by 3 rectangle formed by b and c, and the height in the a direction is 1, so the volume is base times height. For a slanted parallelepiped, the same steps work, but the height is the perpendicular distance, not the length of a.
Who uses the scalar triple product
Linear algebra students use it as the standard example of a determinant with a geometric meaning. The triple product is the determinant of the three vectors, and its absolute value is the volume, which makes the abstract idea of a determinant concrete and visual.
Physics and engineering use it for volumes in crystallography, where the unit cell of a crystal is a parallelepiped defined by three lattice vectors. The volume of the unit cell decides the density of the crystal and the number of atoms per unit volume, which are basic properties of the material.
Computer graphics uses it for collision detection and for testing whether a point is inside a volume. The sign of the triple product tells which side of a plane a point lies on, and the magnitude gives the volume. A Pythagorean theorem calculator is the tool for the lengths of the individual vectors.
No calculator replaces professional advice where money, safety or a legal obligation is involved. The figures here are computed correctly from the inputs and the formula shown, but the choice of formula, the choice of inputs and the decision that follows are yours. When the stakes are high, take the calculated figure to someone qualified and ask them to confirm it before you commit. For a related calculation, the triangle area calculator covers the next number most people need after this one.
Parallelepiped vs cuboid
A cuboid is a parallelepiped where all the faces are rectangles, which means the three edge vectors are mutually perpendicular. Its volume is simply the product of the three side lengths, which is the triple product in the special case where the cross product is aligned with the third vector. A general parallelepiped has slanted faces, and its volume is less than the product of the edge lengths, because the height is shorter than the edge.
The difference is the angle between the vectors. When the vectors are perpendicular, the volume is maximal for the given edge lengths. When they are nearly parallel, the volume collapses towards zero, even though the edges stay long. The triple product captures that angle dependence exactly, which is why it is the right tool for the general case.
Keep both tools in mind. The right choice is the one whose inputs match the numbers you actually have, not the one with the fancier name. When in doubt, run both and compare: the pair of answers is usually more useful than either one alone.
Common mistakes with the triple product
The first is forgetting the absolute value, which gives a negative volume when the vectors are left-handed. The second is using the product of the three lengths instead of the triple product, which overstates the volume whenever the vectors are not perpendicular.
The third is entering the vectors in the wrong order and then worrying about the sign, when the sign is irrelevant to the volume. The fourth is using vectors that do not meet at a single corner, which does not define a parallelepiped at all.
Check your answer against the box with the same edge lengths: the parallelepiped volume must be less than or equal to the product of the three lengths, with equality only when the vectors are mutually perpendicular. If your answer is larger than that product, the calculation is wrong.
How to use this parallelepiped volume calculator
To use it, enter vector a: x; enter vector a: y; enter vector a: z; enter vector b: x, then read the results box at the top. The main result is highlighted, and the other rows give the supporting figures. If an answer looks wrong, check the inputs first: a misplaced decimal or a wrong unit is the usual cause, not the formula.
Enter the x, y and z components of the three edge vectors that meet at one corner, and read the volume. The order of the vectors does not matter for the volume. If the volume comes out as zero, check whether the three vectors lie in the same plane.
Everything on this page runs in your browser, so the numbers you type never leave your device. There is no sign-up, no upload and no waiting for a server. Change any input and the results update straight away, which makes it easy to test a few values side by side before you decide anything. You can also use it offline once the page has loaded, because the calculation needs no connection at all.