Right triangle calculator
From the two legs it derives the hypotenuse, angles, area and perimeter.
Calculator inputs
Results
Enter your values and press “Calculate” to see the result.
In short
- What it calculates
- From the two legs it derives the hypotenuse, angles, area and perimeter.
- Formula used
c = √(a² + b²)- Example
- Legs 3 and 4:
Right triangle calculator
The two legs fully determine a right triangle: the third side comes from Pythagoras and the angles from the tangent.
Angles are returned in degrees.
How it works
The tangent of an acute angle is the opposite leg divided by the adjacent one. Applying the arctangent recovers the angle, and the third one is always 90°.
Formula
c = √(a² + b²)
α = arctan(a / b)
β = arctan(b / a)
Area = a × b / 2
Worked example
Legs 3 and 4:
Hypotenuse = 5
α = arctan(3/4) = 36.87°
β = 53.13°
Area = 6
Explanation
The two acute angles always add to ninety
Since the three angles of any triangle add to a hundred and eighty and one of them is a right angle, the other two share the remaining ninety. That is why knowing one gives you the other, and why they are called complementary. It is the quickest check that a result is coherent.
The hypotenuse is always the longest side
It lies opposite the right angle, the largest of the three, and in any triangle the longest side always faces the largest angle. If a calculation gives a hypotenuse shorter than a leg, there is an error somewhere earlier in the setup.
Two triangles worth memorising
The 45-45-90 has equal legs and a hypotenuse equal to a leg times root two. The 30-60-90 has a hypotenuse twice the shorter leg. They appear constantly in geometry, construction and physics, and knowing them saves calculation.
Where it is used daily
Working out the length of a leaning ladder, the height of a building from its shadow, the pitch of a roof or the diagonal of a screen. Any problem with a right angle ends up resolved with these relationships.
Frequently asked questions
Do the two acute angles always add to 90°?
Yes. The right angle already takes 90° of the 180° total, so the other two share the remaining 90°.
Can I enter the hypotenuse instead?
Not in this tool. Use the Pythagorean theorem calculator, which handles that case.
Do the two acute angles always add to ninety degrees?
Yes. The three angles add to a hundred and eighty and one is a right angle, so the other two share the remaining ninety.
Can the hypotenuse be shorter than a leg?
No. The hypotenuse faces the largest angle and is therefore always the longest side. If it comes out shorter, there is an error in the setup.
Need to calculate something else?
These tools are often used alongside this calculator.
Pythagoras
Find the hypotenuse or a leg of a right triangle, with area and perimeter.
Areas
Calculate the area and perimeter of squares, circles, triangles, trapezoids and ellipses.
Scientific
Trigonometry, logarithms, exponentials and factorials, with a degrees/radians switch.
Volume
Volume and surface area of cubes, spheres, cylinders, cones, prisms and pyramids.
Calculator
Type the whole expression and get the result instantly, brackets and functions included.
Percentage
The four most common percentage calculations in a single tool.