What is a skewed cuboid?
A skewed cuboid is a solid with two parallel rectangles: the bottom c × d and the top a × b, at the height h above it. One top corner lies straight above one bottom corner, so the edge h between them is vertical; the top side a runs parallel to the bottom side c and b runs parallel to d, and straight edges join the corresponding corners. It is a hexahedron with 6 faces, 12 edges and 8 vertices, and a special prismatoid. The two faces that meet at the vertical edge are right trapezoids with the height h; the two other side faces are right trapezoids as well; as they rise they lean inward when the bottom rectangle is larger than the top, and outward (they overhang) when the top rectangle is larger. When a equals c and b equals d it is an ordinary cuboid.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the three slanted edges r, s and t, the four space diagonals and the area of each of the six faces.
How to use it
Enter the top sides a and b, the bottom sides c and d and the height h. The usual drawing has the bottom at least as large as the top (c not less than a, d not less than b), but the solid exists for any positive sizes, so a larger top is accepted too. The values you enter are shown back unchanged 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 very large and very small values out in full.
Derivation of the formulas
Put the foot of the vertical edge at the origin, the bottom rectangle in the plane z = 0 with the corners (0, 0, 0), (c, 0, 0), (c, d, 0), (0, d, 0), and the top rectangle in the plane z = h with the corners (0, 0, h), (a, 0, h), (a, b, h), (0, b, h).
The face in the plane y = 0 has the parallel sides c and a and the vertical leg h; the face in the plane x = 0 has the parallel sides d and b and the leg h. Both are right trapezoids. The face through (c, 0, 0), (c, d, 0), (a, b, h) and (a, 0, h) is flat: its two parallel sides d and b both run along the y direction, and its leg r from (c, 0, 0) to (a, 0, h) is at right angles to that direction, so it is a right trapezoid with the height r. The same holds for the fourth side face with the parallel sides c and a and the height s:
$$r = \sqrt{(c - a)^2 + h^2}, \qquad s = \sqrt{(d - b)^2 + h^2}, \qquad t = \sqrt{(c - a)^2 + (d - b)^2 + h^2}$$Each side of a horizontal cross-section changes linearly with the height, so its area is a quadratic in z and the prismatoid formula (Simpson's rule) is exact. The middle cross-section is the rectangle (a + c)/2 × (b + d)/2:
$$V = \frac{h}{6}\left(ab + cd + (a + c)(b + d)\right)$$The surface is the sum of the six faces:
$$A = ab + cd + \frac{(a + c)h}{2} + \frac{(b + d)h}{2} + \frac{(b + d)r}{2} + \frac{(a + c)s}{2}$$The four space diagonals join opposite corners: \(\sqrt{a^2 + b^2 + h^2}\) from the foot of h, \(\sqrt{c^2 + d^2 + h^2}\) from the top of h, \(\sqrt{c^2 + b^2 + h^2}\) and \(\sqrt{d^2 + a^2 + h^2}\) between the free ends of the sides. Euler's formula holds: 8 vertices minus 12 edges plus 6 faces is 2.
Worked example
The default skewed cuboid has the top 3 × 2, the bottom 5 × 4 and the height 6. Its volume is 74 cubic units and its surface area about 112.271887 square units. The slanted edge t is about 6.63325 units and the longest space diagonal about 8.774964 units.
FAQ
Are any of the side faces rectangles?
Only in special cases. The face with the sides a, c and h is a rectangle when a equals c, and then so is the face with a, c and s; likewise for b and d. With a equal to c and b equal to d the solid is a cuboid.
Which space diagonal is the longest?
When the bottom is at least as large as the top (c not less than a and d not less than b), the diagonal from the top of the vertical edge, √(c² + d² + h²), is the longest and the one from its foot, √(a² + b² + h²), is the shortest. With a larger top the order changes.
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?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000. 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 (solids and polyhedra)
H. Eves, Two surprising theorems on Cavalieri congruence, College Mathematics Journal 22 (1991) 118-124 (prismatoid formula); D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., ch. 4