Hypotenuse Calculator

Find the hypotenuse of any right triangle from two legs, one leg and an angle, or area and one leg. Uses the Pythagorean theorem and trigonometric ratios with full step-by-step solutions.

Last updated:

Was this calculator helpful?

★ ★ ★ ★ ★
5.0/5 (1 votes)
Embed this calculator

Calculation Examples

Calculation Case Result
Legs 3 cm and 4 cm Hypotenuse = 5 cm (3-4-5 Pythagorean triple)
Leg 5 inches opposite a 60° angle Hypotenuse = 5 / sin(60°) ≈ 5.774 inches
Area = 6, leg a = 3 Leg b = 4, Hypotenuse = 5
Legs 5 ft and 12 ft Hypotenuse = 13 ft (5-12-13 Pythagorean triple)
Mihail Doncenco
Mihail Doncenco Site Creator & Calculator Expert

Founder and developer of CalcMate. Builds and maintains every calculator on this site, focusing on formula accuracy and clear, practical results.

How to Find the Hypotenuse of a Right Triangle

Pick the input method that matches what you know. The calculator has three modes:
1. Two legs (a and b): The most common case. Enter both perpendicular sides and the calculator applies the Pythagorean theorem directly.
2. One leg and one acute angle: Enter one side and either acute angle (\(\alpha\) or \(\beta\)). The calculator picks sine or cosine depending on whether the known leg is opposite or adjacent to that angle.
3. Area and one leg: The calculator finds the second leg from \(b = 2A/a\), then applies the Pythagorean theorem.

Keep all units the same (do not mix inches and centimeters) and click Calculate. The result shows the hypotenuse, any missing leg, both acute angles, and the area. A quick check: legs of 3 and 4 always give a hypotenuse of exactly 5. These formulas work only for right triangles (one 90° angle). For other triangles, use the Law of Cosines.

Geometric Formulas and Principles

All three modes rest on two ideas from Euclidean geometry:

1. Pythagorean theorem (both legs known): \[c = \sqrt{a^2 + b^2}\] where \(a\) and \(b\) are the legs (the two sides that form the right angle) and \(c\) is the hypotenuse. Euclid gives a proof in Elements (Book I, Proposition 47, c. 300 BCE), and the theorem remains the standard tool for right-triangle work in engineering and construction.

2. Trigonometric ratios (one leg and one acute angle known): \[c = \frac{a}{\sin\alpha}\] when \(a\) is the leg opposite \(\alpha\), and \[c = \frac{b}{\cos\alpha}\] when \(b\) is the leg adjacent to \(\alpha\).
3. Area method (area and one leg known): recover the second leg with \(b = 2A/a\), then apply the Pythagorean theorem.

Two special triangles give exact answers without a calculator. In a 30-60-90 triangle, the sides follow the ratio \(1 : \sqrt{3} : 2\), so the hypotenuse is twice the shortest leg. In a 45-45-90 triangle (isosceles right triangle), both legs are equal and the hypotenuse is \(a\sqrt{2}\).

Right triangle diagram labeling legs a and b, hypotenuse c, and the 90-degree angle, with the Pythagorean theorem formula c equals square root of a squared plus b squared

Useful Tips 💡

  • The hypotenuse is always the longest side of a right triangle. If you measure a "right" corner and the diagonal comes out too long or too short for the 3-4-5 check, the corner is not square or a measurement is off.
  • For a 30-60-90 triangle, the hypotenuse is exactly twice the shortest leg. A 7 cm short leg gives a 14 cm hypotenuse with no calculator needed.
  • To find the diagonal of a physical object, measure the two perpendicular sides (width and height) and calculate. Perpendicular measurements are easier to take accurately than a diagonal across the object.
  • Memorize a few integer triples for quick checks: 3-4-5, 5-12-13, 8-15-17, and 7-24-25.

📋Steps to Calculate

  1. Select the input mode: two legs, one leg and one angle, or area and one leg.

  2. Enter the values and confirm all inputs use the same unit (cm, m, inches, or feet).

  3. Click Calculate to see the hypotenuse, missing leg, both acute angles, and the triangle area.

Mistakes to Avoid ⚠️

  1. Applying the Pythagorean theorem to a triangle without a 90° angle: the formula c = square root of (a squared plus b squared) holds only for right triangles. For other triangles, use the Law of Cosines.
  2. Forgetting the square root: adding the squares of the legs gives c squared, not c. For legs of 3 and 4, the sum is 25, but the hypotenuse is 5.
  3. Confusing opposite and adjacent sides in trigonometry: the opposite side faces the reference angle and the adjacent side touches it. Swapping them swaps sine and cosine and gives the wrong hypotenuse.
  4. Adding when you should subtract: to find a missing leg from the hypotenuse and the other leg, subtract the square of the known leg from the square of the hypotenuse, then take the square root.

Practical Applications in Construction and Design📊

  1. Construction and framing: Get rafter, stair stringer, and brace lengths from rise and run. A roof with 7 ft of rise over a 14 ft run needs a rafter of about 15.65 ft (15 ft 7.8 in), before overhang and cuts.

  2. Architecture and surveying: Check that a foundation or room corner is square with the 3-4-5 rule. Larger multiples such as 6-8-10 or 9-12-15 are more accurate: a 108 in by 144 in layout must have a diagonal of exactly 180 in.

  3. Display technology: Find the diagonal screen size from width and height. A 16:9 panel 48 inches wide and 27 inches tall has a diagonal of about 55.1 inches, sold as a 55 inch TV.

  4. Ladder safety: Find how high a ladder reaches. OSHA (29 CFR 1926.1053) sets the base one quarter of the working length from the wall, so a 20 ft ladder with a 5 ft base reaches \(\sqrt{20^2 - 5^2} \approx 19.4\) ft, at about 75.5° from the ground.

Questions and Answers

Can a hypotenuse be shorter than a leg?

No, the hypotenuse is always longer than either leg. The theorem gives \(c^2 = a^2 + b^2\), which is larger than \(a^2\) and larger than \(b^2\), so \(c > a\) and \(c > b\). If a measurement suggests otherwise, the triangle is not a right triangle, the hypotenuse and a leg were swapped, or the units are inconsistent.

How do I calculate the hypotenuse of a 30-60-90 triangle?

The hypotenuse is exactly twice the shortest leg, the one opposite the 30° angle, because the sides follow the ratio \(1 : \sqrt{3} : 2\). If the shortest leg is 7 cm, the hypotenuse is 14 cm and the longer leg is \(7\sqrt{3} \approx 12.12\) cm. The ratio is exact, not an approximation. You can see it by cutting an equilateral triangle in half along its height.

How do you find the hypotenuse of a 45-45-90 triangle?

Multiply a leg by \(\sqrt{2}\): \(c = a\sqrt{2}\), because both legs are equal. For legs of 10 cm, \(c = 10\sqrt{2} \approx 14.142\) cm. The same rule gives the diagonal of any square with side \(a\). Since \(\sqrt{2} \approx 1.41421\) is irrational, the result is a non-terminating decimal for any whole-number leg.

How do you find the hypotenuse without the Pythagorean theorem?

Use trigonometric ratios when you know one acute angle and one leg. If you know the leg opposite the angle \(\alpha\), then \(c = a / \sin\alpha\). If you know the leg adjacent to \(\alpha\), then \(c = b / \cos\alpha\). A rafter at 30° over a horizontal run of 6 m has length \(6 / \cos(30°) = 6 / 0.866 \approx 6.928\) m. This route is common on site, where an inclinometer gives the angle and only one length is easy to measure.

How does the hypotenuse relate to TV and monitor screen sizes?

A screen size is the diagonal of the panel, which is the hypotenuse of the right triangle formed by its width and height. For a 16:9 screen with width \(W\), the height is \(9W/16\) and the diagonal is \(c = \sqrt{W^2 + (9W/16)^2} \approx 1.1473\,W\). A 55 inch 16:9 TV is therefore about 47.9 inches wide and 27.0 inches tall. Brands quote the diagonal because it is the largest of the three numbers.

What is a 3-4-5 triangle and why is it used in construction?

A 3-4-5 triangle is the smallest Pythagorean triple, with whole-number sides that satisfy \(a^2 + b^2 = c^2\) exactly (\(9 + 16 = 25\)). Builders use it to check that a corner is square: mark 3 units along one wall, 4 units along the other, and confirm the diagonal between the marks is 5 units. Any multiple works, such as 6-8-10, 9-12-15, or 30-40-50, and bigger multiples reduce reading error. The tool needs only a tape measure. Pythagorean triples appear on the Mesopotamian tablet Plimpton 322 (c. 1800 BCE), but the popular claim that Egyptian builders used 3-4-5 ropes has little direct evidence.

What is the formula for the hypotenuse?

The main formula is the Pythagorean theorem: \(c = \sqrt{a^2 + b^2}\). The trigonometric versions are \(c = a / \sin\alpha\) (opposite leg known) and \(c = b / \cos\alpha\) (adjacent leg known). All three give the same answer for a given right triangle, so use whichever matches your measurements. The calculator picks the right one from your inputs.

What is the hypotenuse in a right triangle?

The hypotenuse is the side directly opposite the 90° angle, and it is always the longest side. By the Pythagorean theorem, \(c^2 = a^2 + b^2\), so \(c\) must be greater than both \(a\) and \(b\). The word comes from the Greek hypo (under) and teinein (to stretch), meaning the side stretched under the right angle. In practice, it is the diagonal across a rectangle or the sloped side of a ramp, roof, or stair.
Disclaimer: This calculator is designed to provide helpful estimates for informational purposes. While we strive for accuracy, financial (or medical) results can vary based on local laws and individual circumstances. We recommend consulting with a professional advisor for critical decisions.