Compute rectangle diagonal (2D) or cuboid space diagonal (3D) instantly. Visualize the diagonal line, get area/perimeter or surface area/volume, and explore the Pythagorean theorem in Euclidean space.
The diagonal of a rectangle is the line segment connecting opposite vertices. In three dimensions, the space diagonal of a rectangular prism (cuboid) connects opposite corners through the interior. Both are direct applications of the Pythagorean theorem: in 2D, d = √(l² + w²); in 3D, d = √(l² + w² + h²). This elegant extension demonstrates how Euclidean distance generalizes to higher dimensions.
d = √(length² + width²) | d₃D = √(l² + w² + h²)
The Pythagorean theorem (c. 500 BCE) established the foundation for Euclidean distance. Extending to three dimensions follows from applying the theorem twice: first compute the floor diagonal √(l² + w²), then the space diagonal √( (√(l²+w²))² + h² ) = √(l²+w²+h²). This concept was formalized by early analytical geometers like Descartes and Fermat. The space diagonal is crucial in crystallography, computer graphics (bounding box diagonal), and relativity (Minkowski spacetime interval).
| Shape | Dimensions | Diagonal (approx) | Area / Volume |
|---|---|---|---|
| Square | l=4, w=4 | 5.657 | Area=16 |
| Golden Rectangle | l=1.618, w=1 | 1.902 | Area=1.618 |
| A4 paper (mm) | 297×210 | 363.74 mm | Area=62370 mm² |
| 3D Box (prism) | l=8, w=6, h=5 | 11.180 | Vol=240, SA=236 |
| Unit Cube | 1,1,1 | 1.732 | Vol=1, SA=6 |
A 55-inch TV indicates its screen diagonal. If the aspect ratio is 16:9, we can compute width and height using the diagonal. Conversely, when designing packaging for a cuboid product (e.g., a 40×30×15 cm printer), the space diagonal determines whether the item fits diagonally into a shipping container. Our calculator instantly gives that diagonal (√(40²+30²+15²) = 52.2 cm), ensuring clearance.
In n-dimensional Euclidean space, the distance between opposite vertices of an n‑orthotope (hyperrectangle) is √(∑ dᵢ²). This formula appears in machine learning (Euclidean distance), physics (generalized Pythagorean theorem), and statistics (Mahalanobis distance). The diagonal calculator provides an intuitive entry point to these advanced concepts.