What is a wedge-cuboid?
A wedge-cuboid is a cuboid with a matching ramp on top: a right prism of width b whose cross-section is a right trapezoid with the base a and the two vertical sides h1 (short) and h2 (long). In textbook terms it is a right trapezoidal prism lying on its rectangular side. Faces: four rectangles (the base, the two ends h1 × b and h2 × b, and the sloped top) and two right trapezoids; 6 faces, 12 edges, 8 vertices. It is mirror-symmetric about the plane halfway between the trapezoids. With h1 = h2 it is a cuboid.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the slant length, the angle between the slant and the long height, the two diagonals of the trapezoid face and the two space diagonals.
How to use it
Enter the length a, the width b, the short height h1 and the long height h2 (h2 not shorter than h1). 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
The trapezoid face has the parallel sides h1 and h2 at the distance a, so its area is \(a(h_1 + h_2)/2\) and its slanted side is
$$s = \sqrt{a^2 + (h_2 - h_1)^2}$$The solid is a prism of length b on that trapezoid:
$$V = \frac{ab(h_1 + h_2)}{2}, \qquad A = a(h_1 + h_2) + b(a + h_1 + h_2 + s)$$The angle between the slant and the long height is \(\alpha = \arctan\frac{a}{h_2 - h_1}\) (90° for a cuboid). The trapezoid diagonals are \(\sqrt{a^2 + h_1^2}\) and \(\sqrt{a^2 + h_2^2}\); the space diagonals run from a bottom corner to the opposite top corner:
$$d_1 = \sqrt{a^2 + b^2 + h_1^2}, \qquad d_2 = \sqrt{a^2 + b^2 + h_2^2}$$Euler's formula holds: 8 vertices minus 12 edges plus 6 faces is 2.
Worked example
The default wedge-cuboid has a = 5, b = 3, h1 = 2 and h2 = 4. The slant is about 5.385165 units, the volume 45 cubic units, the surface about 79.155494 square units and the longer space diagonal about 7.071068 units.
FAQ
Which diagonals are shown?
Both kinds: the two diagonals of the trapezoid face, and the two space diagonals through the solid, each named by the height whose top it reaches.
Can the top slope the other way?
Yes, by naming the heights the other way round: h1 is always the shorter one.
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)