Right Triangle Solver
Enter the base and height (the two legs) in the same unit.
How to use this tool
Enter the two perpendicular side lengths in the same unit.
How it works
Hypotenuse = √(a² + b²), area = ab ÷ 2, and the acute angles follow from the arctangent of the side ratio.
Example
Legs 3 and 4 give a hypotenuse of 5, area of 6 square units and angles about 36.87° and 53.13°.
Limits and assumptions
This tool requires a right angle between the two supplied sides. It does not solve a general triangle from two arbitrary lengths.
Common questions
Can I find a missing leg if I know the hypotenuse?
Not with this tool, which needs both legs. Use b = √(c² − a²) for the missing leg, then enter both legs here to get the angles and area.
Are 3-4-5 and 5-12-13 special?
They are Pythagorean triples: whole-number sides that satisfy a² + b² = c². Multiples such as 6-8-10 also work.
Why are the angles not whole numbers?
Most right triangles have irrational angles. Only special cases such as two equal legs (45°) give tidy values.
Common mistakes
- Entering the hypotenuse as one of the two legs. Both inputs must be the sides that meet at the right angle.
- Mixing units, such as one side in centimetres and the other in metres. Convert first; the hypotenuse comes out in the same unit as the legs and the area in square units.
- Reading the angles as radians. The results are in degrees, and the two acute angles always add up to 90°.
- Using the tool for a triangle that only looks right-angled. If the corner is not exactly 90°, use the sine or cosine rule instead.
More questions
How do I check that a triangle really has a right angle?
Square the longest side and compare it with the sum of the squares of the other two. If c² = a² + b², the angle opposite c is 90°.
Which angle is opposite which side?
The smaller acute angle is always opposite the shorter leg. In a 3-4-5 triangle, the 36.87° angle faces the side of length 3.
Can I use decimals?
Yes. Lengths such as 2.5 and 6.75 work the same way, and the results keep several decimal places so you can round them to the precision your question asks for.