The Pythagorean theorem is one of the oldest and most used mathematical relationships: for any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. The Pythagorean Theorem Calculator does the arithmetic for you — give it the two short sides (the legs) of a right triangle and it returns the hypotenuse, the perimeter, the area and the angles instantly. It is the tool for ladders, roof slopes, screen sizes, foundation checks and thousands of everyday right-angle problems.
Understanding the Theorem
A right triangle is any triangle containing a 90-degree corner. Its longest side, always facing the right angle from the opposite corner, is the hypotenuse; the two sides meeting at the right angle are the legs. The theorem states a simple, exact relationship between them: the area of the square built on the hypotenuse equals the sum of the areas of the squares built on the legs. In numbers, a² + b² = c², where a and b are the legs and c is the hypotenuse. A square built on a leg of 3 covers 9 area units, a square on a leg of 4 covers 16, and the square on the hypotenuse covers 25 — exactly 9 + 16. This is not an approximation; it holds exactly for every right triangle ever drawn.
How to Use the Calculator
Two sliders control everything: leg a and leg b, each from 1 to 1000. Move them and every result updates live. The headlining result is the hypotenuse, computed as the square root of the sum of the two squares. Below it sit the perimeter, the sum of all three sides, and the area, half the product of the legs. The calculator also reports the angle opposite leg a, found from the arctangent of the ratio of the legs, so the two acute angles of the triangle come almost for free. With legs of 3 and 4 you get the classic results: hypotenuse 5, perimeter 12, area 6, and angles of 36.87 and 53.13 degrees.
Where the Formula Comes From
The theorem is named for the Greek mathematician Pythagoras, but it was known long before him: Babylonian clay tablets and Indian and Chinese writings record the same relationship by more than a thousand years earlier. The most illuminating proof is visual. Draw a square whose side is a + b long. Inside it, place four copies of the same right triangle. Two different arrangements of the leftover spaces show that one arrangement leaves a single square of side c, while the other leaves two squares of side a and b — and since both arrangements tile exactly the same outer square, the area c² must equal a² plus b². No measurement, no lookup tables — the result follows from geometry alone.
Special Right Triangles
Some right triangles are worth knowing by name because all three sides come out as neat whole numbers. The 3-4-5 triangle is the simplest Pythagorean triple, followed by 5-12-13 and 8-15-17. Multiply any triple by a scale factor and you get another one: 6-8-10 comes from 3-4-5, and 10-24-26 from 5-12-13. Two other families matter heavily in construction: the 45-45-90 triangle, whose equal legs give a hypotenuse of leg times the square root of 2, and the 30-60-90 triangle, whose hypotenuse is exactly twice its shortest leg. Both appear endlessly in trusses, ramps and stair stringers, and both are reproduced by the sliders here the moment you set the right leg values.
The Perimeter of the Right Triangle
The perimeter is the fence around the triangle: a plus b plus c. Since the hypotenuse is always the largest side, the perimeter always falls below twice a plus twice b, a handy rule-of-thumb bound for estimators. Because the third side is derived, not guessed, the sum of the three lengths is always exact for the entered legs. A triangle with legs 6 and 8 has hypotenuse 10 and perimeter 24; scaling the whole triangle by any factor scales the perimeter by that same factor. Perimeter problems appear whenever material runs along the triangle's edge — concrete forms, wire fences, borders of triangular plots — and this calculator removes the square-root step and the addition from that job.
The Area of the Right Triangle
Every triangle's area is half the base times the height, and a right triangle makes that formula trivial: the base and height are simply the two legs. The area is a × b / 2. A triangle with legs 3 and 4 covers 6 square units. For a fixed hypotenuse, the largest area occurs when the legs are equal — the 45-45-90 case — which is why squares and half-squares keep surrounding everyday folding problems. Half the product of the legs is one of the fastest arithmetic checks in geometry, and it is correct for every right triangle no matter how the legs are oriented on the page.
Angles of the Right Triangle
The two acute angles of a right triangle always add to 90 degrees, because the three corners of any triangle add to 180 and the right angle already owns 90 of them. The calculator finds each angle from the sides: the angle opposite leg a is the arctangent of a divided by b. For the 3-4-5 triangle, the angle opposite side 3 is about 36.87 degrees and the angle opposite side 4 is about 53.13. A scaled copy of the same triangle — 6-8-10, or 300-400-500 — has the identical angles, because angles come from the proportions of the sides, not from their size. That is how engineers can lay out a repeating angle on a job site using sides alone.
The Theorem as the Distance Formula
Put two points on a coordinate grid. The horizontal gap between them is the run, the vertical gap is the rise, and the two form the legs of a right triangle whose hypotenuse is the straight line between the points. Replacing the legs with their coordinate differences gives the famous distance formula: distance equals the square root of (x₂−x₁)² + (y₂−y₁)². Every measured diagonal — a field corner, a brace on a door, a cable run between floors — is this theorem being applied in real life. The Distance Calculator and the Slope Calculator are sibling tools built on the same square-scaling idea; the theorem turns any angled measurement into two right-angle dimensions you already know.
Checking a Square Corner on Site
A square corner is exactly a right angle, and the theorem gives a cheap field test for one. Measure 3 units along one side of the corner and 4 units along the other, and snap a mark. If the distance between the two marks is exactly 5, the corner is square. This 3-4-5 check is the standard trick of setting out, framing and plumbing, in meters, feet or any consistent unit — and it is precisely the output of this calculator: enter 3 and 4, confirm the hypotenuse is 5, then measure across. For larger work, builders scale the check up to 6-8-10 or 9-12-15 with a bigger triangle that catches smaller misalignments.
Real-World Applications
The theorem appears in every trade that deals with right angles and diagonals. A ladder against a wall is a right triangle: the wall is one leg, the ground distance from the wall is the other, and the ladder itself is the hypotenuse — which is why ladder safety rules quote a one-in-four slope, and why the exact length needed for a given height is a theorem problem. A roof rafter is the hypotenuse of the triangle formed by the rise of the roof and its run, so truss tables are full of square roots. Surveyors split irregular land into right triangles to compute areas and distances they cannot walk across. Even home entertainment hangs on it: a screen's advertised diagonal is the hypotenuse of its width and height, so the actual screen area of two televisions with the same diagonal can differ. Whenever a job needs a diagonal from two sides, the theorem is the shortest route to the answer.
Common Mistakes
- Adding the legs without squaring when finding the hypotenuse — the quick sum is wrong; you must square first, add, then take the root.
- Calling the longest side a leg — the hypotenuse belongs in the c position, always opposite the right angle.
- Mixing units within one triangle — all three sides must be in the same unit for the theorem to hold at all.
- Expecting a whole-number hypotenuse — only triples like 3-4-5 land on integers; most hypotenuses are irrational numbers with long decimals.
- Applying the formula to a non-right triangle — outside a right angle, the relationship becomes the cosine rule and a² + b² alone no longer computes.
Key Assumptions
- a and b are the two legs of a right triangle, the sides that meet at the 90-degree angle, and both are positive.
- The hypotenuse is always computed — never entered — as √(a² + b²), exact arithmetically and rounded only for display.
- The perimeter is the sum of the three sides and the area is half the product of the legs.
- The first acute angle is the arctangent of a/b in degrees; the second is automatically its complement to 90 degrees.
- Inputs are unit-agnostic; keep a, b and the results in the same unit of length.
From ladder heights to screen diagonals, from millennia-old surveys to a modern construction site, the Pythagorean theorem is the one relationship nobody argues with. This calculator guarantees that the hypotenuse, perimeter, area and angles come back correct every time — legs in, everything else follows.