Skip to main content
Skip to calculator
Advertisement

Last updated: July 31, 2026

Hypotenuse Calculator

Helpful
Not helpful
Save as image
Share
Embed
Cite
Write feedback

Formula

hypotenuse = √(a²+b²), area = ½ab, perimeter = a+b+√(a²+b²), angles = arctan(a/b) and arctan(b/a)

Where:

  • a=First leg of the right triangle(length)
  • b=Second leg of the right triangle(length)
  • c=Hypotenuse(length)
abc = √(a²+b²)αβPythagorean Theoremc = √(a² + b²)Area = ½ · a · bP = a + b + cα + β = 90°

Worked Examples

Classic 3-4-5 triangle

A standard right-triangle example.

  1. 1Compute hypotenuse = √(3²+4²) = √25 = 5.
  2. 2Area = ½ × 3 × 4 = 6.
  3. 3Perimeter = 3 + 4 + 5 = 12.
  4. 4Angles are arctan(3/4) ≈ 36.869898° and arctan(4/3) ≈ 53.130102°.
Final Answer: hypotenuse = 5, area = 6, perimeter = 12, angleA = 36.869898, angleB = 53.130102 length units

Isosceles right triangle

Equal legs create equal acute angles.

  1. 1Compute hypotenuse = √2 ≈ 1.414214.
  2. 2Area = ½ × 1 × 1 = 0.5.
  3. 3Perimeter = 1 + 1 + √2 ≈ 3.414214.
  4. 4Both acute angles equal 45°.
Final Answer: hypotenuse = 1.414214, area = 0.5, perimeter = 3.414214, angleA = 45, angleB = 45 length units

5-12-13 triangle

A larger Pythagorean triple.

  1. 1Compute c = √(25 + 144) = 13.
  2. 2Area = ½ × 5 × 12 = 30.
  3. 3Perimeter = 5 + 12 + 13 = 30.
  4. 4Angles are arctan(5/12) and arctan(12/5).
Final Answer: hypotenuse = 13, area = 30, perimeter = 30, angleA = 22.619865, angleB = 67.380135 length units

Introduction

The hypotenuse is the defining side of a right triangle. This calculator applies the Pythagorean theorem to two known legs and adds extra geometric outputs like area, perimeter, and the two acute angles.

Pythagorean Theorem Core

Every right triangle with legs a and b and hypotenuse c satisfies c² = a² + b².

  • Square each leg.

  • Add the squares.

  • Take the square root.

  • The result is always the longest side.

  • This works only for right triangles.

Area and Perimeter

Once the two legs are known, area and perimeter follow immediately.

  • Area = ½ab.

  • Perimeter = a + b + c.

  • Area uses the perpendicular legs.

  • Perimeter includes the hypotenuse.

  • Both outputs use the same input unit system.

Acute Angle Formulas

The remaining two angles are found with inverse tangent ratios.

  • angleA = arctan(a/b).

  • angleB = arctan(b/a).

  • Both angles are acute.

  • The two angles add to 90°.

  • Angle output is in degrees.

Input Validation

The calculator requires two positive leg lengths.

  • legA must be positive.

  • legB must be positive.

  • Zero is rejected.

  • Negative values are rejected.

  • Invalid inputs return safe zero defaults.

How to Use the Tool

Enter the two legs, calculate, and read the hypotenuse first.

  • Measure leg a.

  • Measure leg b.

  • Enter both positive values.

  • Review the hypotenuse.

  • Use area, perimeter, and angles for extra interpretation.

Useful Triangle Triples

Integer triples offer easy manual verification.

  • 3-4-5

  • 5-12-13

  • 8-15-17

  • 7-24-25

  • 9-40-41

Practical Uses

Right-triangle calculations show up in daily geometry and engineering.

  • Ladder placement

  • Roof pitch estimates

  • Coordinate distance checks

  • Construction layout

  • Vector magnitude calculations

FAQs

What is a hypotenuse?

It is the side opposite the right angle and always the longest side in a right triangle.

What formula does the calculator use?

It uses c = √(a² + b²) along with derived formulas for area, perimeter, and angles.

Can I enter decimals?

Yes. Any positive finite leg lengths are allowed.

Why do the angles add to 90°?

The three triangle angles sum to 180°, and one angle is already 90°, so the other two must total 90°.

Does the calculator work for non-right triangles?

No. The formulas are specifically for right triangles.

How is angleA defined here?

angleA is computed as arctan(a/b), and angleB as arctan(b/a), matching the implementation used in calculation.ts.

How can I verify a 3-4-5 triangle?

Check that 3² + 4² = 9 + 16 = 25, then take √25 = 5.

What happens with invalid inputs?

The wrapper returns zero-ish outputs plus an error string instead of throwing an exception.