Home / Math Calculators / Right Triangle Calculator

Right Triangle Calculator

Solve a right triangle from two side lengths or one side and an acute angle. Find all three sides, both acute angles, area, perimeter, and the altitude to the hypotenuse.

Enter the measurements you know

Angle A is opposite leg a. The hypotenuse c is opposite the 90° angle.
Enter a positive side length.
Enter a positive side length.

Enter two independent measurements. Side lengths must be positive, and acute angles must be between 0° and 90°. Use the same unit for every side length.

Your right triangle results

Hypotenuse (c)
5 units
For legs a = 3 and b = 4, the hypotenuse is 5 units.
c = √(a² + b²) = √(3² + 4²) = 5
Leg a (opposite A)3 units
Leg b (adjacent A)4 units
Angle A36.8699°
Angle B53.1301°
Area6 square units
Perimeter12 units
Altitude to hypotenuse2.4 units
Triangle typeScalene

Triangle diagram

a = 3b = 4c = 5AB90°

Diagram is illustrative and may not be drawn to exact scale.

Check: a² + b² = c² → 9 + 16 = 25.

Step-by-step solution

  1. Use the Pythagorean theorem to find the hypotenuse.
  2. Calculate the acute angles using inverse tangent.

How to use the Right Triangle Calculator

  1. Choose the two measurements you already know from the dropdown.
  2. Enter both values and select your length unit and preferred precision.
  3. Click Calculate triangle to find the missing measurements.
  4. Review the sides, angles, area, perimeter, altitude, diagram, and calculation steps.

Right triangle formulas

A right triangle has one 90° angle. Side c is the hypotenuse and is always the longest side. Sides a and b are the legs.

Pythagorean theorem: a² + b² = c²
  • Hypotenuse: c = √(a² + b²)
  • Missing leg: a = √(c² − b²) or b = √(c² − a²)
  • Angles: A = tan⁻¹(a/b), B = 90° − A
  • Area: Area = (a × b) / 2
  • Perimeter: P = a + b + c
  • Altitude to hypotenuse: h = (a × b) / c

Example: a 3–4–5 triangle

If the two legs are 3 units and 4 units, the hypotenuse is √(3² + 4²) = √25 = 5 units. The area is 6 square units, the perimeter is 12 units, and the two acute angles are approximately 36.87° and 53.13°.

Frequently asked questions

What values do I need to solve a right triangle?

Enter any two independent measurements, such as two sides or one side and one acute angle. Two angles alone do not determine the size of a triangle.

Which side is the hypotenuse?

The hypotenuse is the side opposite the right angle. It is always the longest side and is labeled c in this calculator.

Can I calculate a triangle from one side and an angle?

Yes. Select a supported side-and-angle option, enter a positive side length and an acute angle between 0° and 90°, and the calculator uses trigonometric ratios to find the other values.

Why must the hypotenuse be longer than either leg?

The hypotenuse is the longest side of a right triangle. A value for c that is equal to or shorter than a leg cannot form a valid right triangle.

How are area and perimeter calculated?

Area is half the product of the two legs, (a × b) / 2. Perimeter is the sum of all three side lengths, a + b + c.

Can I use inches, feet, centimeters, or meters?

Yes. Select a unit and enter both known side lengths in that same unit. The area is displayed in the corresponding square unit.

This calculator is intended for learning and general measurement checks. Verify measurements independently for safety-critical construction or engineering work.