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
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
Triangle diagram
Diagram is illustrative and may not be drawn to exact scale.
Step-by-step solution
- Use the Pythagorean theorem to find the hypotenuse.
- Calculate the acute angles using inverse tangent.
How to use the Right Triangle Calculator
- Choose the two measurements you already know from the dropdown.
- Enter both values and select your length unit and preferred precision.
- Click Calculate triangle to find the missing measurements.
- 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.
- 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.