Skip to main content

Right Triangle Calculator

  • Runs in your browser: what you type is not uploaded
  • Free, no sign-up
  • Formula and a worked example below

About Right Triangle Calculator

The Right Triangle Calculator takes the two legs of a right-angled triangle and computes everything else: the hypotenuse, the area, the perimeter and both acute angles.

It combines the Pythagorean theorem with basic trigonometry, making it useful for construction, ramps, roof pitches and any layout that relies on a right angle.

Formula

c = √(a²+b²) · Area = ½·a·b · A = atan(a⁄b) · B = 90° − A
  • a, b — the two legs (perpendicular sides)
  • c — hypotenuse
  • A — angle opposite leg a, in degrees
  • B — angle opposite leg b, in degrees

The two acute angles always add up to 90°, because the third angle is the right angle.

Right Triangle Calculator: worked example

Legs of 3 and 4

  1. Hypotenuse c = √(3² + 4²) = √25 = 5.
  2. Area = ½ × 3 × 4 = 6, and perimeter = 3 + 4 + 5 = 12.
  3. Angle opposite the 3 = atan(3 ÷ 4) = 36.87°, so the other is 90 − 36.87 = 53.13°.

Answer: c = 5, area 6, angles 36.87° and 53.13°.

How to use the Right Triangle Calculator

  1. Enter the length of each leg (the two sides that meet at the right angle).
  2. Read the hypotenuse, area and perimeter.
  3. Both acute angles are shown in degrees.
  4. The right angle is always 90°.

Good to know

  • The area of a right triangle is simply half the product of its two legs.
  • The two non-right angles are complementary — they sum to exactly 90°.
  • Angle A is opposite leg a; a longer leg a means a larger angle A.

Frequently asked questions about the Right Triangle Calculator

How is the area of a right triangle found?

Multiply the two legs and halve the result: Area = ½ × a × b, since the legs act as base and height.

How are the angles calculated?

Angle A = arctan(a ÷ b) in degrees, and angle B = 90° − A. Together the two acute angles make 90°.

What is the hypotenuse?

The side opposite the right angle — the longest side — found with c = √(a² + b²).

Why do the two acute angles add to 90°?

A triangle's angles total 180°. With one angle fixed at 90°, the remaining two must sum to 90°.