Home › Math › Right Triangle Calculator

Right Triangle Calculator

Find the missing side, the angles, the area and the perimeter of a right triangle.

Enter any two sides of a right triangle and leave the third one empty.

Sides a / b / c
–
Angles α / β / γ
–
Area
–
Perimeter
–

The Pythagorean theorem

In a right triangle, the two shorter sides (legs a and b) and the longest side (hypotenuse c) are linked by a² + b² = c². If you know any two sides, the third one follows.

  • Hypotenuse: c = √(a² + b²)
  • Leg: a = √(c² − b²)
  • Angles: α = arctan(a ÷ b), β = 90° − α
  • Area: a × b ÷ 2

Everyday uses

Check whether a corner is really square (3-4-5 rule), work out the length of a ladder, a ramp or a roof slope, or find the diagonal of a screen or room. Units don't matter as long as all sides use the same one.

How to use the right triangle calculator

  1. Enter any two sides: Side a (leg), Side b (leg) or Side c (hypotenuse).
  2. Leave the third side empty.
  3. Click Calculate. You get all three sides, the angles α, β and γ, the area and the perimeter.

Example: the 3-4-5 triangle

With a = 3 and b = 4, Pythagoras gives c = √(9 + 16) = 5. The angles are about 36.87° and 53.13°, plus the right angle of 90°. The area is 3 × 4 ÷ 2 = 6 and the perimeter 12.

Practical uses

  • DIY: the 3-4-5 trick checks whether a corner is truly square, for example when laying tiles or building a deck.
  • Ladders and ramps: how long does a ladder need to be to reach a certain height?
  • Roof pitch: work out the angle and rafter length from height and width.
  • Screens: find the diagonal from width and height.

Frequently asked questions

Which side is the hypotenuse?

The side opposite the right angle. It is always the longest side.

What are sin, cos and tan in a right triangle?

The sine of an angle is the opposite side divided by the hypotenuse, the cosine is the adjacent side divided by the hypotenuse, and the tangent is opposite divided by adjacent. The tool uses these ratios to find the angles.

Is my data private?

Yes. Everything is calculated in your browser, nothing is stored or sent.