Right Triangle Calculator

Solve a right triangle: find the hypotenuse from two legs, or the missing leg from a leg and the hypotenuse, plus both acute angles, the area and the perimeter.

  • 100% free
  • No signup
  • Runs in your browser

Hypotenuse from two legs

Angle α (opposite leg a)—
Angle β (opposite leg b)—
Area—
Perimeter—

Other leg from leg and hypotenuse

Enter one leg and the hypotenuse (hypotenuse must be longer than the leg).

Angle α (opposite leg a)—
Angle β (opposite leg b)—
Area—
Perimeter—

How to use

  1. If you know both legs, use the first calculator to get the hypotenuse.
  2. If you know one leg and the hypotenuse, use the second calculator to get the other leg. The hypotenuse must be longer than the leg.
  3. Below each result you see both acute angles in degrees, the area and the perimeter.

Right triangle formulas

Value Formula
Hypotenuse c = √(a² + b²)
Other leg b = √(c² − a²)
Angle α (opposite leg a) α = arctan(a / b)
Angle β (opposite leg b) β = 90° − α
Area A = a × b / 2
Perimeter P = a + b + c

The two acute angles of a right triangle always add up to 90°, and its area is half the area of the rectangle formed by the two legs.

Special right triangles

In a 45-45-90 triangle both legs are equal and the hypotenuse is the leg × √2 ≈ 1.414 × leg.

In a 30-60-90 triangle the sides are in the ratio 1 : √3 : 2, so the shortest leg is half the hypotenuse.

Examples

Example Result
Legs 3 and 4 Hypotenuse 5, angles 36.87° and 53.13°, area 6, perimeter 12
Leg 5 and hypotenuse 13 Other leg 12, area 30, perimeter 30
Legs 1 and 1 Hypotenuse √2 ≈ 1.414, angles 45° and 45°
Tips: Use consistent units. The hypotenuse must always be longer than each leg.

FAQ

Using the Pythagorean theorem: c = √(a² + b²), where a and b are the legs forming the right angle.

If you know leg a and hypotenuse c, the other leg is b = √(c² − a²), provided c > a.

Use trigonometry: α = arctan(a / b) and β = 90° − α. The calculator shows both angles below the result.

Multiply the two legs and divide by 2. A right triangle with legs 3 and 4 has an area of 6.

Yes. This tool focuses on right triangles only (Pythagorean relationships). The general triangle calculator uses other formulas such as Heron’s area for three sides.

Need another tool?

Explore all 61 free tools: calculators, converters, date and time tools, random generators and text utilities.

Browse all tools