Home ↓
CalculatorsVerified

Math & Geometry

Right Triangle & Pythagorean Calculator

Find the missing side, angles and area of a right triangle from two sides.

The Pythagorean theorem

In every right triangle, the square of the hypotenuse — the longest side, opposite the right angle — equals the sum of the squares of the other two sides: a² + b² = c². Knowing any two sides is therefore enough to find the third. The calculator also uses trigonometry to give both acute angles, the area (½ × a × b) and the perimeter, so you get a complete solution of the triangle.

Leave the hypotenuse empty to compute it from the two legs, or enter one leg and the hypotenuse to find the other leg.

Uses in building and everyday life

Builders use the 3-4-5 rule to set out a square corner: mark 3 units along one wall and 4 along the other, and the diagonal must be exactly 5. The same theorem gives the length of a ladder needed to reach a window, the diagonal of a screen or a room, the length of a roof rafter, the straight-line distance on a map grid, and the distance between two points in the distance and slope calculator.

Formula & method

a² + b² = c²Angle A = atan(a ÷ b)

Worked example

Legs of 3 and 4

  1. c² = 3² + 4² = 9 + 16 = 25
  2. c = √25 = 5
  3. Angle A = atan(3 ÷ 4) ≈ 36.87°, angle B ≈ 53.13°
  4. Area = ½ × 3 × 4 = 6

Answer: Hypotenuse 5, area 6 and angles of 36.87° and 53.13°.

Frequently asked questions

Which two sides do I need?

Any two: both legs, or one leg and the hypotenuse.

How long must a ladder be to reach 4 m high, 1 m from the wall?

√(4² + 1²) ≈ 4.12 m.

What is a Pythagorean triple?

Three whole numbers that satisfy the theorem, such as 3-4-5, 5-12-13 and 8-15-17.

Does it work for triangles without a right angle?

No. Use the law of cosines for other triangles.

How do I find a TV's screen size?

Screen size is the diagonal: √(width² + height²).

Why must the hypotenuse be the longest side?

Because c² is the sum of two positive squares, it is always larger than either one.

Are the angles in degrees?

Yes, and the two acute angles always add up to 90°.