Pythagorean Theorem Calculator
Calculate the hypotenuse, area, perimeter, and acute angles based on two perpendicular side lengths. Pythagorean Theorem Calculator helps students, educators, engineers, and builders analyze right triangles accurately.
Highlights
- Calculate the hypotenuse of any right triangle using two perpendicular side lengths.
- Find triangle area, perimeter, and both acute angles instantly.
- Compute the altitude to the hypotenuse, circumradius, and inradius.
- Supports metric and imperial units, including mm, cm, m, km, in, ft, yd, and mi.
- Useful for students, educators, engineers, builders, and geometry applications.
Table of Contents
How Pythagorean Theorem Calculator Works?
This calculator analyzes a right triangle from the lengths of its two perpendicular sides, called Leg A (a) and Leg B (b). Enter positive values for both legs and select the length unit used for the inputs and linear results. The calculator then determines the hypotenuse, area, perimeter, two acute angles, altitude to the hypotenuse, circumradius, and inradius.
The hypotenuse is the side opposite the right angle and is calculated with the Pythagorean theorem:
The area uses one-half of the product of the perpendicular legs. Its result is expressed in the corresponding squared length unit:
The perimeter is the sum of all three sides:
The acute angle opposite Leg A is found from the ratio of Leg A to the hypotenuse, while the acute angle opposite Leg B is found from the ratio of Leg B to the hypotenuse. The inverse sine function returns the results in degrees:
The remaining geometric measurements use standard right-triangle relationships:
Here, hc is the altitude from the right angle to the hypotenuse, R is the circumradius, and r is the inradius.
| Measurement | Formula | Example when a = 3 and b = 4 |
|---|---|---|
| Hypotenuse | √(a² + b²) | 5 |
| Area | ab ÷ 2 | 6 square units |
| Perimeter | a + b + c | 12 units |
| Angle opposite Leg A | sin⁻¹(a ÷ c) | 36.87° |
| Angle opposite Leg B | sin⁻¹(b ÷ c) | 53.13° |
| Altitude to hypotenuse | ab ÷ c | 2.4 units |
| Circumradius | c ÷ 2 | 2.5 units |
| Inradius | (a + b − c) ÷ 2 | 1 unit |
Practical Use Cases
Students can use the calculator to check homework involving right triangles, verify a manually calculated hypotenuse, and compare trigonometric angle results with the known 3-4-5 triangle.
Educators can demonstrate how the Pythagorean theorem, triangle area, perimeter, trigonometric ratios, and circle-radius relationships connect within one right triangle.
Engineers and designers can estimate diagonal lengths, right-triangle areas, clearances, and related geometric dimensions when two perpendicular measurements are known.
Builders and contractors can check whether two measured sides form the expected diagonal and use the resulting hypotenuse, angles, and perimeter for layout and framing calculations.
Surveyors and field technicians can use perpendicular side measurements to estimate a diagonal distance, calculate the altitude to the hypotenuse, and determine the acute orientation angles of a right-triangle layout.
Accuracy and Limitations
The calculator uses standard double-precision arithmetic and exact right-triangle formulas, with displayed results rounded for readability. It accepts positive Leg A and Leg B values from 0.000001 through 1,000,000,000 and assumes the two inputs are perpendicular, so it is not suitable for oblique triangles or cases where the included angle is not 90°. Very large or extremely unequal inputs may show small last-digit rounding effects, and the accuracy of the final results cannot exceed the precision of the entered side lengths.
Quick Examples
Example #1: Classic 3-4-5 Triangle
Demonstrates a standard right triangle with integer side lengths and a 5-unit hypotenuse.
Example #2: Small Engineering Triangle
Calculates right-triangle measurements for small dimensions expressed in centimeters.
Example #3: Large Construction Triangle
Analyzes a large right triangle using imperial measurements for construction planning.