Right Triangle and Pythagorean Theorem Calculator
Find the hypotenuse, area, perimeter and acute angles of a right triangle from its two perpendicular legs.
Both entered legs must use the same unit. Results use that unit for lengths and its square for area. This calculator is only for triangles containing a 90° angle.
How to use this calculator
Enter the two sides that meet at the right angle. The calculator applies the Pythagorean theorem and trigonometric ratios to find the remaining measurements.
Formula
Hypotenuse c = √(a² + b²). Area = ab ÷ 2. Perimeter = a + b + c. Angle A = arctan(a ÷ b).
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewIfrahMSc Mathematics
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
Which side is the hypotenuse?
It is the side opposite the right angle and is the longest side of a right triangle.
Can I enter different units for each leg?
No. Convert both legs to the same unit before calculating.
Do the two acute angles add to 90°?
Yes. Together with the 90° angle, all three interior angles total 180°.
What is a Pythagorean triple?
It is a set of three whole numbers that fit a² + b² = c², such as 3, 4, 5 or 5, 12, 13. Builders use the 3-4-5 triangle to check square corners.
What are sine, cosine and tangent?
In a right triangle, sine is opposite ÷ hypotenuse, cosine is adjacent ÷ hypotenuse and tangent is opposite ÷ adjacent, measured from a chosen acute angle.
How do I find a missing side of a right triangle?
Use the Pythagorean theorem a² + b² = c². If the legs are 3 and 4, the hypotenuse is √(9 + 16) = 5. If you know the hypotenuse and one leg, the other leg is √(c² − a²).
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Abramson, J. (2021). Precalculus 2e. OpenStax. View source
- Abramson, J. (2021). College algebra 2e. OpenStax. View source
- Olver, F. W. J., Lozier, D. W., Boisvert, R. F., & Clark, C. W. (Eds.). (2024). NIST Digital Library of Mathematical Functions. National Institute of Standards and Technology. View source
- International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source
- Stewart, J., Clegg, D. K., & Watson, S. (2021). Calculus: Early transcendentals (9th ed.). Cengage. View source