Calcumia

Pythagorean Theorem Calculator

This Pythagorean theorem calculator quickly solves for any unknown side of a right-angled triangle while computing its total perimeter and area. Whether you are a geometry student checking homework or a builder squaring a layout, simply select the missing dimension and input your known measurements to get immediate, precise results.

Your inputs

Result

Missing side
—
Area
—
Perimeter
—

Add this calculator to your site — free

Copy one of the snippets into your page. Please keep the attribution link visible.

How to use the Pythagorean Theorem Calculator

  1. Choose which dimension to solve for using the 'Find' dropdown.
  2. Enter the known measurements for 'Side a', 'Side b', or 'Hypotenuse c' as required.
  3. Click calculate to evaluate the equation and generate the 'Missing side'.
  4. Review the resulting 'Area' and 'Perimeter' values alongside the completed triangle dimensions.

How it works

The calculated missing side represents the exact Euclidean distance needed to close the right triangle according to planar geometry rules. The resulting area reflects the enclosed space calculated as half the base times height, while perimeter represents the complete boundary length. For instance, perpendicular sides measuring 3 and 4 produce a hypotenuse of 5, yielding an area of 6 and a perimeter of 12.

The calculation relies on the fundamental Pythagorean theorem, formulated as a² + b² = c², where c represents the hypotenuse opposite the 90-degree angle. Derived from classical Euclidean geometry as codified by Euclid and accepted in modern ISO standards for mathematical notation (ISO 80000-2), the formula rearranges to a = √(c² − b²) when calculating an unknown leg from known hypotenuse and leg lengths.

This theorem strictly applies to flat, two-dimensional right triangles with one 90-degree angle. It cannot be used on oblique, acute, or obtuse triangles without applying the Law of Cosines. In construction and woodworking, craftsmen widely employ the 3-4-5 rule derived from this theorem to verify square corners. Always ensure your input values use matching units of measurement before calculating to prevent scaling errors.

Formula

c = √(a² + b²)
a = √(c² − b²)

Worked example

Sides 3 and 4 give a hypotenuse of √(9 + 16) = 5.

Frequently asked questions

Does the Pythagorean theorem work for any triangle?+

No, the theorem strictly applies to right-angled triangles containing one 90-degree angle. For oblique triangles without a right angle, you must use the Law of Cosines or the Law of Sines to calculate unknown side lengths or interior angles.

What are Pythagorean triples?+

Pythagorean triples are sets of three positive integers that satisfy the equation a² + b² = c². Common examples include 3-4-5, 5-12-13, and 8-15-17. These integer combinations are often used in construction and carpentry to square corners quickly.

How do you find the hypotenuse of a right triangle?+

To find the hypotenuse, square both perpendicular legs (Side a and Side b), add the two squared numbers together, and then calculate the square root of that sum: c = √(a² + b²). For example, sides 3 and 4 give √(9 + 16) = 5.

How do you solve for a missing leg instead of the hypotenuse?+

To find a missing leg, square the hypotenuse (c) and subtract the square of the known leg (b), then take the square root of the remainder: a = √(c² − b²). The hypotenuse must always be longer than either individual leg.

Can the hypotenuse be shorter than a leg?+

No, the hypotenuse is always the longest side of a right triangle because it lies directly opposite the largest interior angle (90 degrees). If your calculated or measured hypotenuse is shorter than or equal to either leg, the triangle cannot exist.

✓ Written and reviewed by the Calcumia editorial team · Last updated: · How we build and check our calculators

Results are estimates for information only and are not financial, medical or legal advice.