What is a bent cuboid?
A bent cuboid is a cuboid bent at a right angle: a right prism of the height h on an L-shaped cross-section, also called an L-shaped prism. Its two arms have the same width b, and a1 and a2 are their outer lengths, measured from the outer corner of the bend. Its faces are the two L-shaped hexagons and six rectangles: 8 faces, 18 edges and 12 vertices, and every angle between two edges is a right angle. For the flat L shape itself see the L-shaped area calculator.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the sum of the arm lengths, the length of a straight bar with the same cross-section and volume, the area of the L-shaped face and the diagonal between the outer corners of the two arm ends.
How to use it
Enter the outer arm lengths a1 and a2, the width b of the arms and the height h. Each arm length must be at least the width. 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 L-shaped face is a rectangle a1 × b plus a rectangle b × (a2 − b):
$$A_L = b\,(a_1 + a_2 - b), \qquad V = b\,h\,(a_1 + a_2 - b)$$So a straight bar of the cross-section b × h needs the length a1 + a2 − b for the same volume; this is also the length of the centre line of the bend, (a1 − b/2) + (a2 − b/2). The L has the sides a1, b, a1 − b, a2 − b, b and a2, so its perimeter is 2(a1 + a2), and
$$A = 2b\,(a_1 + a_2 - b) + 2h\,(a_1 + a_2)$$Put the outer corner of the bend at the origin with the arms along the axes. The outer corners of the arm ends are (a1, 0) and (0, a2), and the diagonal from one at the bottom to the other at the top has the length
$$d = \sqrt{a_1^2 + a_2^2 + h^2}$$Seen from above, it follows the line from (a1, 0) to (0, a2). That line passes beyond the inner corner (b, b) of the bend, outside the solid, exactly when \(b/a_1 + b/a_2 \lt 1\), that is when b(a1 + a2) is less than a1 a2; when the two are equal it touches the inner edge, otherwise it stays inside. Euler's formula holds: 12 vertices minus 18 edges plus 8 faces is 2.
Worked example
The default bent cuboid has the arms 8 and 5, the width 2 and the height 3. A straight bar of the same volume would be 11 units long; the volume is 66 cubic units and the surface area is 122 square units.
FAQ
Why is the straight length not a1 + a2?
The square b × b at the bend belongs to both arms, so adding the two outer lengths counts it twice. A straight bar of the same volume is a1 + a2 − b long.
What if one arm is exactly as long as the width?
Then that arm adds nothing beyond the bend and the cross-section is a rectangle: the solid is a cuboid.
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)