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.

Was this calculator helpful?

4.7/5 (24 votes)

Calculation Examples

Calculation Case Result
Legs 3 cm and 4 cm Hypotenuse = 5 cm (3-4-5 Pythagorean triple)
Leg 5 inches, angle 60° 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)

How to Find the Hypotenuse of a Right Triangle

Select the input method that matches your known values — the calculator supports 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 length and either acute angle (\(\alpha\) or \(\beta\)). The calculator selects the correct sine or cosine ratio automatically based on whether the known leg is opposite or adjacent to the given angle.
3. Area and one leg: The calculator derives the second leg from \(b = 2A/a\), then applies the Pythagorean theorem.

Enter values, verify that units are consistent (do not mix inches and centimeters), and click Calculate. The result shows the hypotenuse, any missing leg, both acute angles, and the area. A classic check: legs of 3 and 4 always give a hypotenuse of exactly 5 — if your result differs, verify your inputs. These formulas apply only to right triangles (one 90° angle). For oblique triangles, the Law of Cosines is required.

Geometric Formulas and Principles

All three calculation modes derive from two foundational principles of 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. This relationship was proven by Euclid in Elements (c. 300 BCE) and remains the standard for right-triangle geometry in engineering and construction worldwide.

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

A key property worth remembering for common construction scenarios: in a 30-60-90 triangle, the sides follow the exact ratio \(1 : \sqrt{3} : 2\), so the hypotenuse is always twice the shortest leg. In a 45-45-90 triangle (isosceles right triangle), both legs are equal and the hypotenuse is \(a\sqrt{2}\). These special cases allow exact results without a calculator when the angle is known.

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 your calculated hypotenuse is shorter than either leg, a unit mismatch or incorrect field entry is the almost certain cause.
  • For the 30-60-90 special triangle, the hypotenuse equals twice the shortest leg exactly. No calculator is needed if you know this ratio.
  • When measuring a physical object to find its diagonal, measure the two perpendicular sides (width and height) rather than trying to measure the diagonal directly — perpendicular measurements are easier to take accurately.

📋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 non-right triangles: the formula c = square root of (a squared plus b squared) holds only when one angle is exactly 90 degrees. For oblique triangles, the Law of Cosines is required.
  2. Forgetting to take the square root: adding the squares of the legs gives c squared, not c. A common manual error is reporting the squared value — for example, writing 25 instead of 5 for legs of 3 and 4.
  3. Confusing opposite and adjacent sides when using trigonometric ratios: the opposite side is across from the reference angle; the adjacent side is next to it. Swapping them switches sine and cosine, giving an incorrect hypotenuse.
  4. Entering the hypotenuse into a leg field when working backwards: to find a missing leg from the hypotenuse and the other leg, subtract the squares, not add them.

Practical Applications in Construction and Design📊

  1. Construction and framing: Calculate rafter lengths, stair stringer lengths, and diagonal bracing dimensions directly from rise and run measurements.

  2. Architecture and surveying: Verify that building foundations and room corners are square using the 3-4-5 rule — a corner is exactly 90° when the diagonal across 3 and 4 unit legs measures exactly 5 units.

  3. Display technology: Find the diagonal screen size of a monitor or TV from its width and height. A 16:9 screen with a width of 48 inches and height of 27 inches has a diagonal (hypotenuse) of exactly 55 inches.

  4. Ladder safety: Determine the minimum ladder length to reach a given height at a safe working angle, per OSHA 29 CFR 1926.1053 guidelines requiring a 4:1 height-to-base ratio.

Questions and Answers

What is the hypotenuse in a right triangle?

The hypotenuse is the side of a right triangle that lies directly opposite the 90° angle. It is always the longest side: by the Pythagorean theorem, \(c^2 = a^2 + b^2\), so \(c\) must exceed both \(a\) and \(b\) individually. The word comes from the Greek hypo (under) and teinein (to stretch) — it was originally described as the side "stretched under" the right angle. In practical terms, it is the diagonal measurement across a rectangular or triangular structure.

How do you find the hypotenuse without the Pythagorean theorem?

Use trigonometric ratios when one acute angle and one leg are known. If you know the leg opposite the angle \(\alpha\): \(c = a / \sin\alpha\). If you know the leg adjacent to \(\alpha\): \(c = b / \cos\alpha\). For example, a rafter rising at 30° from a horizontal run of 6 m has a length (hypotenuse) of \(6 / \cos(30°) = 6 / 0.866 \approx 6.928\) m. This approach is standard in construction where angles are measured with an inclinometer and only one linear dimension is accessible.

What is the formula for the hypotenuse?

The primary formula is the Pythagorean theorem: \(c = \sqrt{a^2 + b^2}\). The two trigonometric alternatives are \(c = a / \sin\alpha\) (opposite leg known) and \(c = b / \cos\alpha\) (adjacent leg known). All three give the same result for any given right triangle — the appropriate one to use depends solely on which measurements are available. The calculator selects the correct formula automatically based on your inputs.

Can a hypotenuse be shorter than a leg?

No, never in Euclidean geometry. The Pythagorean theorem guarantees \(c^2 = a^2 + b^2 > a^2\) and \(> b^2\), so \(c > a\) and \(c > b\) always. If a calculation or measurement produces a "hypotenuse" shorter than a leg, one of three things has gone wrong: the triangle is not actually a right triangle, the leg and hypotenuse inputs have been swapped, or the measurements are in inconsistent units.

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

A 3-4-5 triangle is the simplest Pythagorean triple: integer sides that satisfy \(a^2 + b^2 = c^2\) exactly (\(9 + 16 = 25\)). Builders use the "3-4-5 rule" to verify that corners are exactly square (90°): measure 3 units along one wall, 4 units along the adjacent wall, and confirm the diagonal is 5 units. Any multiple works: 6-8-10, 9-12-15, 30-40-50. This method requires only a tape measure and has been used in construction since ancient Egypt — it is documented in Mesopotamian clay tablets dating to 1800 BCE.

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

In a 30-60-90 triangle, the three sides follow the exact ratio \(1 : \sqrt{3} : 2\). The hypotenuse is always exactly twice the shortest leg (the leg opposite the 30° angle). If the shortest leg is 7 cm, the hypotenuse is 14 cm and the longer leg is \(7\sqrt{3} \approx 12.12\) cm. This ratio is exact — not an approximation — and is derivable by bisecting an equilateral triangle, as shown in Euclid's Elements Book IV.

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

TV and monitor screen sizes are measured as the diagonal of the rectangular display panel, which is the hypotenuse of the right triangle formed by the screen width and height. For a standard 16:9 aspect ratio, if the width is \(W\), the height is \(9W/16\), and the diagonal is \(c = \sqrt{W^2 + (9W/16)^2} \approx 1.1547W\). A 55-inch diagonal 16:9 TV has a width of approximately 47.9 inches and a height of approximately 26.9 inches. Manufacturers use the diagonal because it is the largest linear dimension and makes the screen appear larger in marketing.

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

In a 45-45-90 triangle (isosceles right triangle), both legs are equal in length. The hypotenuse simplifies to \(c = a\sqrt{2}\), where \(a\) is either leg. For legs of 10 cm: \(c = 10\sqrt{2} \approx 14.142\) cm. This ratio appears wherever a square is cut diagonally: a square with side \(a\) has a diagonal of \(a\sqrt{2}\). The value \(\sqrt{2} \approx 1.41421\) is irrational, so the result is always a non-terminating decimal for integer leg lengths.
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.