What is the hypotenuse?
The hypotenuse is the longest side of a right triangle, and it sits opposite the right angle. A right triangle has one angle of exactly 90 degrees, and the two sides that form that angle are called the legs. The side across from the right angle — the one that never touches it — is the hypotenuse, and it is always longer than either leg.
If you know both legs, you know the hypotenuse. That is the whole job of this calculator: type the two legs and it returns the hypotenuse, the area of the triangle, and the angle opposite the first leg. The classic case is legs 3 and 4, which give a hypotenuse of exactly 5 — the 3-4-5 triangle that builders have used for thousands of years.
The hypotenuse matters because it is the straight-line distance across a corner. A ladder leaning on a wall, a diagonal brace across a frame, the shortest path across a rectangular field — all of these are hypotenuses. Everything on this page runs in your browser, so nothing is uploaded or stored.
The Pythagorean theorem behind the hypotenuse
The formula is c² = a² + b², where c is the hypotenuse and a and b are the legs. Take the square root of both sides and you get c = √(a² + b²). For legs 3 and 4, that is the square root of 9 + 16, which is the square root of 25, which is 5. The numbers come out whole because 3, 4 and 5 are a Pythagorean triple — a set of whole numbers that fits the theorem exactly.
The theorem works for any right triangle, not just the neat ones. Legs 5 and 12 give a hypotenuse of 13, another triple. Legs 2 and 3 give the square root of 13, which is about 3.61 — not a whole number, but just as correct. The calculator handles both kinds without fuss, because it works with the squares, not with memorised triples.
The area of the triangle comes from the same two legs: area = a × b ÷ 2. For legs 3 and 4, the area is 6. The angle opposite leg a is found with the inverse tangent: angle A = tan⁻¹(a ÷ b), which for 3 and 4 is tan⁻¹(0.75), or 36.9 degrees. A triangle calculator solves the full triangle — all sides and angles — when you need more than the hypotenuse.
The two legs: what to measure
The legs are the two sides that meet at the right angle. That is the only thing that defines them: if the angle between two sides is 90 degrees, those two sides are the legs, and the third side is the hypotenuse. It does not matter which leg you call a and which you call b — the hypotenuse comes out the same either way, because a² + b² is symmetric.
What does change with the labels is the angle. Angle A is the angle opposite leg a, so swapping the legs swaps the two acute angles. With legs 3 and 4, angle A is 36.9 degrees when a is 3; make a 4 instead and angle A becomes 53.1 degrees. The hypotenuse stays 5 and the area stays 6 in both cases.
When measuring a real corner, check the right angle first. A builder's 3-4-5 check does exactly this: mark 3 units along one edge and 4 along the other, and if the distance between the marks is 5, the corner is square. If it is not 5, the corner is not 90 degrees, and the legs you measured are not legs at all. A square root calculator can check the square-root step by hand if you want to see the arithmetic.
A worked example: legs 3 and 4
Run the default values through the formula. Leg a is 3 and leg b is 4. Square them: 9 and 16. Add them: 25. Take the square root: 5. The hypotenuse is exactly 5 units long. The area is 3 × 4 ÷ 2, which is 6 square units. The angle opposite leg a is tan⁻¹(3 ÷ 4), which is 36.9 degrees.
Now try legs 5 and 12. Square them: 25 and 144. Add them: 169. The square root of 169 is 13, so the hypotenuse is 13. The area is 5 × 12 ÷ 2, which is 30 square units, and angle A is tan⁻¹(5 ÷ 12), which is 22.6 degrees. Another triple, another clean answer — 5, 12 and 13 is the second most famous triple after 3, 4 and 5.
For a case with no clean answer, take legs 2 and 3. The squares are 4 and 9, the sum is 13, and the square root of 13 is 3.61. The area is 3 square units and angle A is tan⁻¹(2 ÷ 3), which is 33.7 degrees. The calculator gives 3.61 without rounding games, and the 3-4-5 habit of expecting whole numbers is the only thing that could make that answer feel wrong.
Where the hypotenuse shows up
Builders use it to square corners. The 3-4-5 rule is the standard site check: a triangle with sides 3, 4 and 5 must contain a right angle, so marking those distances on two walls and checking the diagonal proves the corner is square. The same trick works at any scale — 6, 8 and 10, or 30, 40 and 50 — because scaling a triple keeps it a triple.
In navigation and mapping, the hypotenuse is the straight-line distance between two points when you know how far east and how far north they are. Walk 3 km east and 4 km north, and you are 5 km from where you started in a straight line. Surveyors and delivery planners use this constantly, and a slope calculator covers the related question of how steep the line between two points is.
In screens and displays, the size quoted in inches is the hypotenuse: the diagonal of the rectangle. A screen 3 units wide and 4 units tall is a 5-unit screen by that measure. Ladders, ramps, and roof slopes are hypotenuses too — the length of the slope is the hypotenuse of the height and the horizontal run.
Hypotenuse calculator vs a full triangle solver
This calculator answers one question: given two legs, what is the hypotenuse? It also gives the area and one angle as a bonus, but it assumes the triangle is right-angled and that you know both legs. If you know a leg and the hypotenuse instead, or you know an angle, you need a different tool.
A full triangle solver takes any three known values — sides or angles — and finds the other three. That is more powerful, but it asks more of you: you have to say which values you know and which are missing. This calculator asks for two numbers and gives the answer, which is the right trade when the triangle is right-angled and the legs are what you measured.
For the area alone, the legs are all you need: half their product. A triangle area calculator handles triangles that are not right-angled as well, using base and height or three sides. Use this page when the right angle is certain and the legs are known; use the triangle solver when the triangle is general or the known values are mixed.
Common hypotenuse mistakes
The first mistake is adding the legs instead of squaring them: 3 + 4 is 7, not 5, and 7 is not the hypotenuse of anything. The formula squares first, adds second, and takes the root last. Skipping the squares is the most common error in school maths, and it always gives an answer that is too big.
The second mistake is using the formula on a triangle that is not right-angled. The Pythagorean theorem only holds when one angle is exactly 90 degrees. For any other triangle, c² = a² + b² is simply false, and the answer it gives is meaningless. Check the right angle before you calculate.
The third mistake is forgetting the square root. The squares add to 25, and the hypotenuse is 5, not 25 — the square root is the last step, and leaving it out gives an answer in square units for a length question. The fourth mistake is mixing units: legs in centimetres and metres give a hypotenuse in no unit at all. Convert first.
How to use this hypotenuse calculator
Enter leg a and leg b — the two sides that meet at the right angle, in the same unit. It does not matter which leg is a and which is b for the hypotenuse, but angle A is measured opposite leg a, so keep the labels straight if the angle matters to you.
The hypotenuse appears as the headline result, with the triangle area and angle A underneath. For the default legs of 3 and 4, the hypotenuse is 5, the area is 6, and angle A is 36.9 degrees.
Everything runs in your browser. No account, no sign-up, no data sent anywhere. If you are checking a corner on site, measure the two legs, type them in, and compare the answer with the diagonal you measured — if they match, the corner is square.