Pythagorean Theorem Tool
Calculate any missing side of a right triangle using two known sides. Explore a draggable triangle, view both acute angles, area, perimeter, squared lengths and step-by-step working, then export your results in several useful formats.
| Side | Length | Square |
|---|
Table of Contents
Highlights
- Solve for either leg or the hypotenuse.
- Explore a draggable, responsive right-triangle diagram.
- See area, perimeter and both acute angles.
- Review step-by-step solutions and side-length comparisons.
- Export results as SVG, CSV, JSON or TXT.
How Pythagorean Theorem Tool Works?
For a right triangle, the squares of the two perpendicular legs, a and b, add up to the square of the hypotenuse c, which is opposite the 90° angle.
Enter any two side lengths and select the missing side. The appropriate rearrangement determines the result:
| Unknown side | Formula |
|---|---|
| Hypotenuse c | |
| Leg a | |
| Leg b |
With the default legs of 3 and 4, the hypotenuse is 5. The area is half the product of the legs, the perimeter is the sum of all three sides, and the acute angles come from inverse tangent.
Angles can be displayed in degrees or radians. The interactive diagram, squared-side table, comparison bars and calculation steps update to reflect the selected measurements and decimal precision.
Practical Use Cases
Carpenters and builders: Estimate the diagonal of a rectangular frame or confirm the required length of a diagonal brace from its perpendicular rise and run.
Surveyors and landscapers: Calculate a straight-line diagonal across a right-angled plot from two perpendicular distances.
Students and teachers: Practise finding an unknown leg or hypotenuse, then compare step-by-step calculations with the side-squared table and triangle diagram.
Designers and engineers: Check right-triangle dimensions, perimeter and area while examining how changing either leg affects both acute angles.
DIY and home renovators: Work out a ladder's sloping length from its vertical reach and horizontal offset, assuming those distances form a right angle.
Accuracy and Limitations
Results use JavaScript floating-point arithmetic and are displayed to the selected 0–10 decimal places, so rounded values may differ slightly from exact results. Both known sides must be finite, positive numbers; when finding a leg, the hypotenuse must exceed the known leg. The formulas apply only to right triangles, and extremely large inputs can exceed the numeric range. The diagram is a scaled visual aid rather than a precision drawing.