Enter any two sides and leave the third blank. Legs are a and b; the hypotenuse is c.
Hypotenuse (c)
5
100% Private
Runs locally. Nothing uploaded.
Pythagorean Theorem Calculator finds the missing side of a right triangle online for free. Enter any two sides to compute the third instantly.
Written & reviewed by Helperzy Editorial Team · Updated July 2026
Enter any two sides and leave the third blank. Legs are a and b; the hypotenuse is c.
Hypotenuse (c)
5
100% Private
Runs locally. Nothing uploaded.
Enter any two side lengths of your right triangle into the matching fields. Label them correctly: the hypotenuse is always the longest side, opposite the right angle. Decimals work just as well as whole numbers.
Leave the field for the side you want to find empty or set to zero. The calculator detects which value is missing and applies the correct rearrangement of the theorem automatically. You do not need to choose a formula yourself.
The missing side length appears instantly, rounded for readability while keeping internal precision. If the inputs cannot form a valid right triangle, for example a leg longer than the hypotenuse, the tool shows a clear message instead of an impossible number.
The Helperzy Pythagorean Theorem Calculator finds the missing side of a right triangle when you know the other two. A right triangle is any triangle that contains exactly one 90-degree angle, and the side opposite that angle — the longest one — is called the hypotenuse. The two shorter sides are called legs. The Pythagorean theorem states that the square of the hypotenuse equals the sum of the squares of the two legs, usually written a² + b² = c². You enter any two of the three sides and the calculator works out the third instantly, whether that is the long hypotenuse or either of the shorter legs, without you needing to choose which version of the formula to apply. When you supply the two legs a and b, the tool squares each one, adds the results, and takes the square root of that sum to produce the hypotenuse: c = √(a² + b²). When you supply the hypotenuse c and one leg a, it rearranges the formula: b = √(c² − a²), subtracting the known leg's square from the hypotenuse's square and taking the square root. Because the tool detects which field you left empty, you never need to select the correct rearrangement yourself — just leave the unknown field blank and the calculator picks the right form of the equation automatically. Internally it uses your browser's precise math functions, giving accuracy to full 64-bit floating-point precision with no rounding shortcuts. A classic example: a triangle with legs of 3 and 4 produces a hypotenuse of exactly 5, because 9 + 16 = 25 and √25 = 5. This 3-4-5 relationship is one of the best-known Pythagorean triples. For a less obvious case, enter a hypotenuse of 13 and one leg of 5: the calculator computes √(169 − 25) = √144 = 12, so the missing leg is 12. These whole-number triples — called Pythagorean triples — are convenient for quick verification, but the tool handles decimals equally well. A triangle with legs 2.5 and 6 gives a hypotenuse of √(6.25 + 36) = √42.25 = 6.5, and you can confirm by squaring 6.5 to get 42.25. Another common triple is 5-12-13: enter legs 5 and 12 to see the hypotenuse come out to exactly 13. The theorem is one of the most practically useful results in all of geometry, applied thousands of times a day worldwide. Builders and carpenters use the 3-4-5 ratio or its multiples like 6-8-10 to verify that a corner is perfectly square without expensive or specialized equipment. Interior designers use it to calculate the diagonal of a rectangular room or television screen. It underpins the coordinate-geometry distance formula that finds the straight-line gap between two points: distance = √((x₂−x₁)² + (y₂−y₁)²). It extends into three dimensions for the spatial diagonal of a box, and into higher dimensions in data science for computing Euclidean distances between feature vectors. Surveyors, architects, navigation systems, and game developers all rely on it in their daily work. The calculator includes sensible guards. The hypotenuse must always be the longest side of a right triangle, so if you enter a leg value that equals or exceeds the hypotenuse, the subtraction under the square root would be zero or negative, meaning no valid triangle exists. The tool shows a clear message in that case instead of returning an imaginary or zero-length result. Blank or non-numeric entries produce a neutral placeholder rather than an error or a crash. Remember that the theorem applies only to right triangles — for other triangle shapes you would need the law of cosines instead. Everything runs in your browser with no server involved, so the measurements you type are never uploaded or stored, keeping the tool fast and completely private on any device.
a² + b² = c² · hypotenuse c = √(a² + b²) · leg a = √(c² − b²)
Input
a = 3, b = 4
Result
c = 5
3² + 4² = 9 + 16 = 25, √25 = 5.
Input
c = 13, a = 5
Result
b = 12
13² − 5² = 169 − 25 = 144, √144 = 12.
Enter any two of the three sides into the Helperzy Pythagorean Theorem Calculator and it computes the third instantly. It works whether you know the two legs or the hypotenuse and one leg. All math runs in your browser, so your measurements stay private.
Solve any triangle from SSS, SAS, ASA, AAS or SSA and get sides, angles, area, altitudes, medians, inradius and circumradius. The SSA ambiguous case shows both valid triangles.
Paste any list of numbers to get the mean, median, every mode, range, quartiles, IQR, outliers and both sample and population standard deviation, clearly labelled.
Square Root Calculator finds the square root of any number online for free. Also shows cube root and fourth root instantly.
Exponent Calculator raises any base to any power online for free. Compute powers, squares, cubes, and negative or decimal exponents instantly.
Image Resizer changes image dimensions online — set exact pixels, use percentage scaling, or pick from 12 presets (Instagram, Passport, YouTube, etc.). Target specific file sizes like 50KB or 100KB. Batch resize multiple images. 100% free, browser-based.
Image Converter changes images between any format online free — JPG, PNG, WebP, AVIF, PDF, ICO, BMP, HEIC, GIF, SVG. Batch conversion, resize, rotate, flip, AI format recommendation. 100% browser-based, no upload.
Convert JPG to WebP format online free — reduce image file size by 25-35% with identical visual quality. Batch conversion, adjustable quality, lossless mode available. Boost website speed and Core Web Vitals scores. 100% browser-based, no upload needed.
Convert PNG to WebP format online free — reduce file size by 26-34% while preserving full transparency. Batch conversion, lossless and lossy modes, adjustable quality. Boost website performance and Core Web Vitals. 100% browser-based, no upload needed.