How To Find Length Of A Diagonal
monithon
Mar 17, 2026 · 5 min read
Table of Contents
Finding the length of a diagonal is a fundamental skill in geometry that appears in everything from basic math homework to engineering design and computer graphics. Whether you are measuring the stretch across a rectangular screen, determining the interior brace of a cube, or solving a problem on a coordinate plane, knowing how to find length of a diagonal relies on a few core principles—most notably the Pythagorean theorem and its extensions into higher dimensions. This guide walks you through the concept step by step, provides formulas for common two‑ and three‑dimensional shapes, shows worked examples, and highlights pitfalls to avoid so you can apply the method confidently in any situation.
Understanding What a Diagonal Is
A diagonal is a line segment that joins two non‑adjacent vertices of a polygon or polyhedron. In a rectangle, the diagonal runs from one corner to the opposite corner; in a cube, it stretches from one vertex to the vertex farthest away, passing through the interior of the solid. Because a diagonal creates a right‑angled triangle (or a set of right‑angled triangles) with the sides of the shape, its length can usually be derived from the lengths of those sides using the Pythagorean relationship.
The Pythagorean Theorem Refresher
For any right triangle with legs a and b and hypotenuse c, the theorem states:
[ c^{2}=a^{2}+b^{2} ]
When a diagonal serves as the hypotenuse, you simply square the lengths of the two perpendicular sides, add them, and take the square root of the sum. This same idea extends to three dimensions by treating the diagonal as the hypotenuse of a right triangle whose legs are themselves diagonals of faces or combinations of edge lengths.
Diagonals in Two‑Dimensional Shapes
Square
All sides of a square are equal; let the side length be s. The diagonal forms a right triangle with two sides of the square, so:
[ d_{\text{square}} = \sqrt{s^{2}+s^{2}} = \sqrt{2s^{2}} = s\sqrt{2} ]
Example: If a square has a side of 5 cm, its diagonal is (5\sqrt{2}\approx 7.07) cm.
Rectangle
A rectangle with width w and height h yields:
[ d_{\text{rectangle}} = \sqrt{w^{2}+h^{2}} ]
Example: A 3 in × 4 in rectangle has a diagonal of (\sqrt{3^{2}+4^{2}}=\sqrt{9+16}=5) in—a classic 3‑4‑5 triangle.
Rhombus and Parallelogram
For a rhombus (all sides equal, but angles not necessarily 90°), the diagonals are not equal in general. If you know the side length s and one interior angle θ, you can use the law of cosines:
[ d_{1}= \sqrt{2s^{2}-2s^{2}\cos\theta}= s\sqrt{2(1-\cos\theta)} ] [ d_{2}= \sqrt{2s^{2}+2s^{2}\cos\theta}= s\sqrt{2(1+\cos\theta)} ]
In a parallelogram with sides a and b and included angle θ, the longer diagonal is:
[ d_{\text{long}} = \sqrt{a^{2}+b^{2}+2ab\cos\theta} ] and the shorter diagonal:
[ d_{\text{short}} = \sqrt{a^{2}+b^{2}-2ab\cos\theta} ]
These formulas reduce to the rectangle case when (\theta = 90^{\circ}) (since (\cos 90^{\circ}=0)).
Diagonals in Three‑Dimensional Shapes
Cube
A cube with edge length e has a space diagonal that runs from one vertex to the opposite vertex. Consider the right triangle formed by an edge, a face diagonal, and the space diagonal. The face diagonal is (e\sqrt{2}). Applying the Pythagorean theorem again:
[ d_{\text{cube}} = \sqrt{e^{2}+(e\sqrt{2})^{2}} = \sqrt{e^{2}+2e^{2}} = \sqrt{3e^{2}} = e\sqrt{3} ]
Example: A cube of side 2 m has a space diagonal of (2\sqrt{3}\approx 3.46) m.
Rectangular Prism (Box)
For a box with dimensions l (length), w (width), and h (height), the space diagonal is:
[ d_{\text{box}} = \sqrt{l^{2}+w^{2}+h^{2}} ]
This is a direct extension of the 2‑D rectangle formula: you simply add the square of the third dimension.
Example: A box measuring 4 ft × 3 ft × 2 ft has a diagonal of (\sqrt{4^{2}+3^{2}+2^{2}}=\sqrt{16+9+4}=\sqrt{29}\approx5.39) ft.
Other Polyhedra
For more complex solids (e.g., a regular tetrahedron or an octahedron), you can often decompose the shape into known right triangles or use vector methods (see below). The key is to identify a right‑angled triangle where the diagonal is the hypotenuse.
Using Vectors to Find Diagonal Lengths
When coordinates are given, the diagonal becomes a vector difference between two points. If point (A=(x_1,y_1,z_1)) and point (B=(x_2,y_2,z_2)) are opposite vertices, the vector (\vec{AB} = \langle x_2-x_1,; y_2-y_1,; z_2-z_1\rangle). Its magnitude (length) is:
[ |\vec{AB}| = \sqrt{(x_2-x_1)^{2}+(y_2-y_1)^{2}+(z_2-z_1)^{2}} ]
This formula works in any number of dimensions and automatically incorporates the Pythagorean theorem.
Example: In a 3‑D coordinate system, find the diagonal from (1,2,3) to (4,6,9).
Differences: (Δx=3, Δy=4
(Δz=6).
Diagonal length = (\sqrt{3^{2}+4^{2}+6^{2}} = \sqrt{9+16+36} = \sqrt{61} \approx 7.81).
Practical Applications
Diagonals appear in everyday problems:
- Construction: Ensuring a rectangular frame is square by checking that both diagonals are equal.
- Screen sizing: TV and monitor sizes are quoted by diagonal length, not width or height.
- Navigation: The shortest path between two non-adjacent points on a grid is often a diagonal.
- Engineering: Diagonal bracing adds structural stability to frames and trusses.
Conclusion
Diagonals are more than just lines connecting corners—they are fundamental to geometry, providing shortcuts, symmetry, and structural strength. Whether you're calculating the diagonal of a simple rectangle, the space diagonal of a cube, or the longest diagonal in a parallelogram, the same core principle applies: use the Pythagorean theorem (or its vector extension) to relate perpendicular components to the overall length. Mastering these formulas equips you to solve a wide range of practical and theoretical problems, from designing buildings to optimizing routes and beyond.
Latest Posts
Latest Posts
-
Which Expression Gives The Value Of X
Mar 17, 2026
-
What Is The Percentage Of 3 Out Of 20
Mar 17, 2026
-
1 3 4 1 3 4
Mar 17, 2026
-
Which Point Is A Solution To The Inequality
Mar 17, 2026
-
How Do You Factor Out The Coefficient Of The Variable
Mar 17, 2026
Related Post
Thank you for visiting our website which covers about How To Find Length Of A Diagonal . We hope the information provided has been useful to you. Feel free to contact us if you have any questions or need further assistance. See you next time and don't miss to bookmark.