How Do You Find the Diagonal of a Triangle? A Step‑by‑Step Guide
Introduction
When students hear the word diagonal they usually think of shapes like rectangles or polygons with more than three sides. That said, in a triangle, however, the term “diagonal” is often used informally to refer to the length of a side—especially when that side is opposite a right angle or when you need to calculate the distance between two non‑adjacent vertices in a coordinate plane. In real terms, knowing how to determine this length is a fundamental skill in geometry, trigonometry, and even physics. This article walks you through the most reliable methods for finding the diagonal (or side length) of a triangle, complete with clear formulas, practical examples, and tips to avoid common pitfalls That's the part that actually makes a difference..
What Is a “Diagonal” in a Triangle?
A triangle has only three vertices, so it technically has no diagonals in the same sense as quadrilaterals. Even so, many textbooks and problem‑sets refer to the distance between any two vertices as a “diagonal” when the focus is on measuring that line segment rather than its role as a side. In a right‑angled triangle, the side opposite the right angle is often called the hypotenuse—the most frequently needed “diagonal.” In an acute or obtuse triangle, any side can be calculated using the same geometric tools Still holds up..
Method 1: Pythagorean Theorem (Right Triangles)
The Pythagorean theorem is the fastest way to find the diagonal when you already know the two shorter sides (the legs) of a right triangle Practical, not theoretical..
Formula
[
c^{2}=a^{2}+b^{2}
]
- c = diagonal (hypotenuse)
- a and b = the other two sides
Steps
- Identify the right angle.
- Measure or calculate the lengths of the two sides that meet at that angle.
- Square each side, add the results.
- Take the square root of the sum to obtain c.
Example
If a = 3 units and b = 4 units:
[ c^{2}=3^{2}+4^{2}=9+16=25 \quad\Rightarrow\quad c=\sqrt{25}=5 ]
The diagonal (hypotenuse) is 5 units.
Tip: The theorem only works for right triangles. If the triangle is not right‑angled, move on to the next method.
Method 2: Law of Cosines (Any Triangle)
When the triangle is not right‑angled, the law of cosines lets you compute any side when you know the other two sides and the included angle.
Formula
[
c^{2}=a^{2}+b^{2}-2ab\cos(C)
]
- C = angle between sides a and b
- c = diagonal (the side opposite angle C)
Steps
- Write down the known sides a and b and the angle C (in degrees or radians).
- Compute (\cos(C)).
- Plug the numbers into the formula.
- Solve for c by taking the square root.
Example
Given a = 7, b = 9, and the included angle C = 60°:
[ c^{2}=7^{2}+9^{2}-2(7)(9)\cos 60° = 49+81-126\left(\tfrac{1}{2}\right)=130-63=67 ]
[ c=\sqrt{67}\approx 8.19 ]
So the diagonal (side c) is about 8.19 units Simple, but easy to overlook..
Note: If the angle is 90°, (\cos 90° = 0) and the law of cosines reduces to the Pythagorean theorem, showing the two methods are consistent.
Method 3: Law of Sines (When You Have an Angle and Its Opposite Side)
The law of sines is useful when you know one side, its opposite angle, and another angle (or side). It relates the ratio of side length to the sine of its opposite angle.
Formula
[
\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}
]
Steps
- Identify the known side a and its opposite angle A.
- Identify another known angle B (or side b).
- Rearrange the formula to solve for the unknown side:
[ c = \frac{a \sin C}{\sin A} ]
(or (b = \frac{a \sin B}{\sin A})). - Compute the sines (ensure your calculator is in the correct mode) and solve.
Example
In triangle ABC, side a = 10 opposite angle A = 30°, and angle B = 45°. Find side b.
[ b = \frac{a \sin B}{\sin A}= \frac{10 \sin 45°}{\sin 30°}= \frac{10 \times \frac{\sqrt{2}}{2}}{\frac{1}{2}} = 10\sqrt{2}\approx 14.14 ]
Thus the diagonal (side b) is roughly 14.14 units No workaround needed..
Caution: The law of sines can give two possible solutions (the ambiguous case) when you have SSA (side‑side‑angle). Always check whether the second angle is acute or obtuse based on the given data.
Method 4: Coordinate Geometry (Distance Formula)
If the triangle is plotted on a Cartesian plane, you can treat the diagonal as the distance between two points. The distance formula is derived directly from the Pythagorean theorem That's the part that actually makes a difference..
Formula
[
d = \sqrt{(x_2-x_1)^{2} + (y_2-y_1)^{2}}
]
- ((x_1, y_1)) and ((x_2, y_2)) are the coordinates of the two vertices.
**
Steps
- Identify the coordinates of the two endpoints of the diagonal, ((x_1, y_1)) and ((x_2, y_2)).
- Calculate the horizontal difference: (\Delta x = x_2 - x_1).
- Calculate the vertical difference: (\Delta y = y_2 - y_1).
- Substitute into the formula and simplify.
Example
A triangle has vertices at (A(2, 3)), (B(8, 7)), and (C(5, 12)). Find the length of diagonal (AB) Not complicated — just consistent. Worth knowing..
[ \Delta x = 8 - 2 = 6, \quad \Delta y = 7 - 3 = 4 ]
[ AB = \sqrt{6^{2} + 4^{2}} = \sqrt{36 + 16} = \sqrt{52} = 2\sqrt{13} \approx 7.21 ]
The diagonal (AB) measures approximately 7.21 units.
Extension to 3D: For triangles in three-dimensional space with vertices ((x_1, y_1, z_1)) and ((x_2, y_2, z_2)), the formula expands to
[ d = \sqrt{(x_2-x_1)^{2} + (y_2-y_1)^{2} + (z_2-z_1)^{2}} ]
Method 5: Vector Magnitude (Physics & Engineering Approach)
When sides are represented as vectors, the diagonal corresponds to the magnitude of the resultant vector (for addition) or the difference vector (for the third side of a triangle) Worth keeping that in mind. That's the whole idea..
Formula
If sides (\vec{a}) and (\vec{b}) meet at a vertex, the diagonal (\vec{c}) completing the triangle is (\vec{c} = \vec{b} - \vec{a}) (or (\vec{a} - \vec{b})). Its length is:
[ |\vec{c}| = \sqrt{|\vec{a}|^{2} + |\vec{b}|^{2} - 2|\vec{a}||\vec{b}|\cos\theta} ]
This is the vector form of the Law of Cosines. In component form (\vec{a} = \langle a_x, a_y \rangle), (\vec{b} = \langle b_x, b_y \rangle):
[ |\vec{c}| = \sqrt{(b_x - a_x)^{2} + (b_y - a_y)^{2}} ]
Example
Vector (\vec{a} = \langle 3, 1 \rangle) and (\vec{b} = \langle -2, 5 \rangle) represent two sides from the same origin. Find the third side (\vec{c} = \vec{b} - \vec{a}).
[ \vec{c} = \langle -2-3, 5-1 \rangle = \langle -5, 4 \rangle ]
[ |\vec{c}| = \sqrt{(-5)^{2} + 4^{2}} = \sqrt{25 + 16} = \sqrt{41} \approx 6.40 ]
Choosing the Right Method: A Quick Decision Guide
| Given Information | Best Method |
|---|---|
| Right triangle, two legs known | Pythagorean Theorem (Method 1) |
| Any triangle, two sides + included angle (SAS) | Law of Cosines (Method 2) |
| Any triangle, one side + two angles (AAS/ASA) or two sides + non-included angle (SSA) | Law of Sines (Method 3) |
| Vertices given as coordinates | Distance Formula (Method 4) |
| Sides given as vectors/components | Vector Magnitude (Method 5) |
Not obvious, but once you see it — you'll see it everywhere.
Conclusion
Finding the length of a triangle’s diagonal—or more precisely, its third side—is a fundamental skill with multiple pathways. Even so, the Pythagorean theorem offers elegant simplicity for right triangles, while the Law of Cosines generalizes that power to any triangle given SAS data. The Law of Sines excels when angles dominate the known information, and coordinate geometry or vector analysis translates geometric problems into algebraic computation, bridging the gap between pure mathematics and applied fields like physics, computer graphics, and surveying.
Mastering these five methods ensures you are never stuck, regardless of how the triangle is presented—whether as a sketch with measurements, a set of coordinates, a vector diagram, or a word problem. By recognizing the "givens" in your specific scenario and matching them to the appropriate tool, you can solve for any missing side efficiently and accurately.
People argue about this. Here's where I land on it.