Hypotenuse Calculator
Find the hypotenuse of a right triangle from its two legs, with the exact sum of squares, both acute angles, the area and the perimeter.
Hypotenuse Calculator
Find the hypotenuse of a right triangle from its two legs, with the exact sum of squares, both acute angles, the area and the perimeter.
How this page computes
The hypotenuse is the square root of a² + b², and the sum of squares is printed exactly beside it. The difference between c² and that sum is the check.
The acute angles come from the arctangent of the legs, and the area and perimeter are the usual triangle formulas on those three sides.
The calculation runs entirely in this browser tab; nothing is uploaded.
A right triangle with legs 3 and 4 has a hypotenuse of 5, and the page prints 25 as the exact square beside it, so the rounded root is never mistaken for the exact value.
The two acute angles follow from the legs: 36.869898 and 53.130102 degrees. The page also prints the area and the perimeter, which is what most people want next.
How to use Hypotenuse Calculator
Enter both legs and press Run. Both must be above zero, because a leg of zero collapses the triangle to a segment.
The output gives the hypotenuse, the squared form, both acute angles, the area, the perimeter, and the difference between c² and a² + b² as the check.
Why the square is printed beside the root
The hypotenuse is the square root of a² + b², and that root is irrational whenever the squares do not add to a perfect square. Printing six decimals would hide the exact value, so the page prints the sum of squares as well, which is exact.
The angles come from the arctangent of the legs, and they must add to 90 degrees. The page prints both so the complementarity is visible rather than assumed.
What to Expect
Best for
- The hypotenuse from two legs
- The acute angles of a right triangle
- Checking whether a triple is Pythagorean
Not ideal for
- A missing leg rather than the hypotenuse, which the Pythagorean page solves
- A non-right triangle, which needs the law of cosines
- A leg of zero or below, which is refused
What this tool keeps
- Both legs exactly as typed
What may need cleanup
- Nothing: the hypotenuse and the squared form are final
Common errors
- A leg at or below zero is refused
- A non-numeric leg is refused by name
Example use cases
- Find the hypotenuse of a 3-4-5 triangle
- Get both acute angles from the legs
- Check whether 5, 12, 13 is a right triangle
Sample input
legs 3 and 4
Sample output
hypotenuse 5, c^2 = 25, angles 36.869898 and 53.130102 degrees
Who this is for
- Students meeting Pythagoras
- Readers checking a measurement
Frequently asked questions
Why print the square as well as the root?
Because the root is usually irrational. 25 is exact and 5 is exact only because 3 and 4 happen to make a perfect square; for legs 1 and 1 the root is 1.414214 and 2 is the exact value.
Do the angles always add to 90?
Yes, because the third angle is the right angle. The page prints both acute angles so the complementarity can be checked at a glance.
Is 5, 12, 13 a right triangle?
Yes, because 25 + 144 = 169. Enter 5 and 12 as the legs and the printed hypotenuse is 13 with a zero difference in the check line.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.