Right Triangle Calculator
Calculate the missing side, hypotenuse, area, and angles of a right triangle using the Pythagorean theorem and basic trigonometry.
Calculate a right triangle
Enter any two known side lengths or select the calculation you need. The calculator will determine the missing measurements and show the calculation step by step.
Your result
—
| Calculation | — |
| Input 1 | — |
| Input 2 | — |
| Hypotenuse | — |
| Area | — |
| Angles | — |
Step-by-step calculation
What is a right triangle?
A right triangle is a triangle with one angle measuring exactly 90 degrees. The side opposite the right angle is called the hypotenuse, while the two sides that form the right angle are the legs. The hypotenuse is always the longest side.
Right triangles are widely used in geometry, construction, surveying, navigation, engineering, woodworking, and many everyday measurement problems. Because their sides and angles have predictable relationships, a right triangle can often be solved when only two suitable measurements are known.
How to use this Right Triangle Calculator
Choose the type of measurement you want to calculate, select the unit, and enter the two known positive values. The calculator then determines the requested result and also shows the hypotenuse, area, and acute angles where they can be calculated.
- Choose a calculation: hypotenuse, missing leg, area, or angles.
- Select a unit: meters, centimeters, feet, or inches.
- Enter the two known values for the selected calculation.
- Select Calculate to display the result and calculation steps.
Pythagorean theorem
The Pythagorean theorem relates the three sides of a right triangle. If a and b are the legs and c is the hypotenuse, the relationship is:
Hypotenuse: c = √(a² + b²)
Missing leg: a = √(c² − b²)
The theorem is especially useful when two side lengths are known. The calculator rearranges the relationship when the unknown measurement is a leg rather than the hypotenuse.
Right triangle area and angles
The area of a right triangle is found by multiplying the two perpendicular legs and dividing by two. The two acute angles always add up to 90 degrees.
Angle A: A = tan⁻¹(a ÷ b)
Angle B: B = 90° − A
These relationships make right triangles useful for calculating slopes, heights, distances, and angles when direct measurement is difficult.
Right Triangle Calculator example
Suppose the two legs of a right triangle are 3 m and 4 m. To find the hypotenuse:
c = √(a² + b²)
Step 2: Substitute the values
c = √(3² + 4²)
c = √(9 + 16)
c = √25
Step 3: Calculate
c = 5 m
The hypotenuse is therefore 5 meters. This is the familiar 3-4-5 right triangle.
Understanding the result
The result area summarizes the calculation you selected and shows the values used. Depending on the calculation type, it can also display the derived hypotenuse, area, and two acute angles.
The step-by-step section is designed to make the mathematics transparent rather than simply displaying a final number. You can use those steps to check the formula, substitution, and final result independently.
When is a right triangle calculator useful?
Right-triangle calculations appear in many practical and academic situations. Common examples include:
- Finding the diagonal distance between two perpendicular measurements.
- Calculating a roof slope, ramp length, or ladder position.
- Determining an unknown height or horizontal distance.
- Checking dimensions in construction and fabrication work.
- Solving geometry and trigonometry exercises.
- Estimating angles when two perpendicular side lengths are known.
Important points about right-triangle calculations
The Pythagorean theorem applies specifically to right triangles. For the missing-leg calculation, the entered hypotenuse must be longer than the known leg; otherwise a valid right triangle cannot be formed.
Keep the two side measurements in the same unit before calculating. The calculator preserves the selected unit for the displayed lengths, while area is expressed in squared units such as m² or ft². For important engineering, construction, or surveying decisions, independently verify measurements and rounding requirements.
Frequently asked questions
What is the formula for a right triangle?
The main side relationship is a² + b² = c², where a and b are the legs and c is the hypotenuse.
How do I find the hypotenuse?
Use c = √(a² + b²). Enter the two leg lengths and the calculator will determine the hypotenuse.
How do I find a missing leg?
If the hypotenuse c and one leg b are known, use a = √(c² − b²). The hypotenuse must be greater than the known leg.
How do you calculate the area of a right triangle?
Multiply the two perpendicular legs and divide by two: Area = ½ × a × b.
Do the two acute angles add to 90 degrees?
Yes. Because one angle is exactly 90 degrees and the angles of a triangle total 180 degrees, the two remaining angles together equal 90 degrees.
Can I use centimeters, feet, or inches?
Yes. Select meters, centimeters, feet, or inches from the unit selector before calculating.
Important: This calculator is provided for general informational and educational purposes only. The results are based on the values entered and standard mathematical formulas. Always verify important measurements and calculations independently when accuracy is critical.
