What is an oblique prism?
An oblique prism is a prism whose lateral edges are not perpendicular to its base. Its two bases are congruent and lie in parallel planes at the distance h (the height); every lateral edge has the same length e and makes the same angle α with the base plane. With α equal to 90° the prism is a right prism, such as a rectangular prism or a triangular prism. The base may have any shape: this page needs only its area As.
This calculator finds the volume, the height, the length of the lateral edges, the angle between a lateral edge and the base, and the offset of the top face (how far the top face is shifted sideways against the base).
How to use it
Choose what you know: the base area with the height and the angle, the base area with the lateral edge and the angle, or the base area with the height and the lateral edge. The angle is in degrees, above 0 and at most 90. The lateral edge must not be shorter than the height. The values you enter are shown back rounded like the results, to at most 6 decimal places (their full digits are used in the calculation), and every other measure is solved from them. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.
Derivation of the formulas
Cut the prism by a plane parallel to the base at any height: the section is a copy of the base, with the area As. A right prism with the same base and height has the same section at every height, so by Cavalieri's principle both have the same volume:
$$V = A_s \, h$$A lateral edge, its projection on the base plane and the height form a right triangle with the angle α at the base, so
$$h = e \sin\alpha, \qquad s = e \cos\alpha = \frac{h}{\tan\alpha}, \qquad e^2 = h^2 + s^2$$where s is the offset of the top face. From the height and the edge the angle is α = arcsin(h/e), which the page works out as an arctangent of h/s or of s/h, whichever is at most 1.
These formulas were checked when the page was built against the solid built from its corner points (with a triangle of area As as the base): its volume by the divergence theorem and its surface as the sum of its face areas.
Worked example
With the default base area 12, height 5 and angle 70° the volume is 60 cubic units, the lateral edge is 5.320889 and the top face is shifted by 1.819851.
FAQ
Which inputs are refused?
A lateral edge shorter than the height, an angle of 0 or above 90 degrees, a base area, height or edge that is 0 or negative, text that is not a number and values outside the range.
Why does the page not give the surface area?
The lateral faces of an oblique prism are parallelograms whose areas depend on the lengths of the base's sides and on the direction of the tilt against each side. The base area and the angle do not fix them, so no surface area follows from these inputs.
Does tilting a prism change its volume?
No. As long as the base area and the height stay the same, the volume As × h stays the same; tilting only lengthens the lateral edges, to h / sin α.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Each value is rounded once to the digits shown, a value exactly halfway being rounded up, from a calculation carried well beyond those digits: 80 significant digits (π to 90 digits, sine, cosine and arctangent as series, square roots to that precision); the volume is exact whenever the height is known, and the rows that come out rational for the angles 30, 45, 60 and 90 degrees are exact. When a value lies very close to the halfway point between two shown values, the page recalculates with 160 and then 320 digits, and the offset, whenever √(e² − h²) is a terminating decimal, is decided exactly if 320 digits still cannot tell its side. A value typed with hundreds of digits can still lie closer to a halfway point than that, and its last shown digit may then be off by one.
Accuracy and input range
Each value is rounded once to the digits shown, a value exactly halfway being rounded up, from a calculation carried well beyond those digits: 80 significant digits (π to 90 digits, sine, cosine and arctangent as series, square roots to that precision); the volume is exact whenever the height is known, and the rows that come out rational for the angles 30, 45, 60 and 90 degrees are exact. When a value lies very close to the halfway point between two shown values, the page recalculates with 160 and then 320 digits, and the offset, whenever √(e² − h²) is a terminating decimal, is decided exactly if 320 digits still cannot tell its side. A value typed with hundreds of digits can still lie closer to a halfway point than that, and its last shown digit may then be off by one.
Enter each length from 0.000001 to 1,000,000,000 and an area from 0.000000000001 to 1,000,000,000,000,000,000 and the angle from 0.000001 to 90 degrees. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (polyhedra, prisms, pyramids and frusta)
H. Eves, An Introduction to the History of Mathematics, 6th ed., Saunders, 1990 (Cavalieri's principle)