At a Glance
- Category
- Geometry
- Best For
- Students, builders, DIYers and anyone who needs the diagonal or hypotenuse of a right angle
- Privacy
- 100% in your browser: nothing you enter is uploaded
- Time Required
- A few seconds
- Cost
- Free
- Updated
- November 2026
Quick Overview
Takes the two shorter sides (legs) of a right triangle and solves for the hypotenuse, the side opposite the right angle. It also reports the triangle's area and perimeter.
Geometry students, carpenters and tilers checking a square corner, designers working out screen or frame diagonals, and anyone solving a right-triangle problem.
When you know two perpendicular lengths and need the straight-line distance between their ends: a ladder against a wall, the diagonal of a rectangle, a ramp, a TV screen.
It applies the theorem without manual squaring and square roots, and the area and perimeter come with the same entry.
Key Features & Capabilities
Hypotenuse from the legs
Solves c = √(a² + b²) instantly for any two positive leg lengths.
Area and perimeter included
Triangle area (½ × a × b) and perimeter (a + b + c) are shown together.
Works in any unit
Enter centimeters, inches, feet or meters; the results use the same unit.
Private
Calculated in your browser.
How to Use This Tool
Identify the legs
The legs are the two sides that meet at the right angle. The hypotenuse is the longest side, opposite it. Tip: If your triangle does not contain a right angle, use the law of cosines instead.
Enter both legs
Type the length of leg a and leg b, in the same unit. Tip: The order does not matter: a and b can be swapped.
Read the solution
The solved side c is the hypotenuse. The area and perimeter appear alongside it. Tip: The hypotenuse is always longer than either leg. If it is not, recheck your entries.
Apply it
Use c as the diagonal, slope length or straight-line distance in your project. Tip: For building work, add allowance for material thickness and cuts.
Worked Real-World Example
The 3-4-5 triangle
A carpenter marks 3 feet along one wall and 4 feet along the other from the corner and wants the diagonal that confirms the corner is square.
How It Works (Math & Calculation Logic)
The hypotenuse is c = √(a² + b²). The area of a right triangle is half the product of the legs: ½ × a × b. The perimeter is a + b + c. Inputs must be positive numbers in the same unit.
How to Interpret Your Results
The result is a length in the same unit as your inputs. A set of whole numbers that satisfies a² + b² = c² is called a Pythagorean triple, for example 3-4-5, 5-12-13 and 8-15-17.
A hypotenuse that equals or is shorter than one of the legs means an input is wrong. In construction, a diagonal that differs from the calculated value shows that the corner is not square.
Measure carefully in a single unit, enter both legs, and compare the calculated diagonal with the one you measure. For long distances, small measuring errors grow, so measure to the same point each time.
Frequently Asked Questions
What is the Pythagorean theorem?
How do I find the hypotenuse?
Does the theorem work for any triangle?
What is a Pythagorean triple?
How do I use it to check a square corner?
Complementary QuickForma Utilities
Distance & Midpoint Calculator
Calculate Euclidean distance, midpoint coordinates, and line slope between two 2D points.
Triangle Area & Solver
Calculate triangle area from base and height using Area = 0.5 * b * h.
Circle & Geometry Calculator
Calculate diameter, circumference, and area of a circle from radius.
2D & 3D Geometry Calculator
Calculate 3D volume and total surface area for spheres, cylinders, cubes, and cones.
Trigonometry Calculator
Calculate sine (sin), cosine (cos), and tangent (tan) in degrees or radians.
Law of Sines & Cosines Calculator
Solve non-right oblique triangles using Law of Cosines (c^2 = a^2 + b^2 - 2ab cos C) and Law of Sines.
Derivative & Limit Calculator
Calculate polynomial power-rule derivatives d/dx[ax^n] = a * n * x^(n-1) and tangent slopes.