The Pythagorean theorem in 3D
The longest diagonal inside a box.
The diagonal across a box from one corner to the opposite corner can be found with two right triangles: first the diagonal of the floor, √(l² + w²), then the space diagonal, √(floor diagonal² + h²). Together that is d = √(l² + w² + h²).
Example: A box 2 by 3 by 6
- √(4 + 9 + 36) — l² + w² + h²
- √49
- 7 — The space diagonal
Why it works: The floor diagonal and the height make a right triangle standing up inside the box, so the Pythagorean theorem works twice.
Tip: This tells you the longest pole or umbrella that fits in a box.