Math / Geometry / Triangles

Pythagorean Theorem Calculator

Solve for the missing side of a right triangle using the Pythagorean theorem, with perimeter and area included.

Calculator

Enter your values and view the result instantly.

Change any field below to update the answer straight away.

Solve for

5.0000

Hypotenuse c

12.0000

Perimeter

6.0000

Area

Math Basics

Pythagorean theorem calculator: find any side of a right triangle

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. A Pythagorean theorem calculator lets you solve for any missing side when the other two are known, and also computes the perimeter and area of the resulting triangle.

The Pythagorean theorem

The theorem applies exclusively to right triangles, which have one 90-degree interior angle. The two shorter sides meeting at the right angle are called legs and are labelled a and b. The longest side, opposite the right angle, is the hypotenuse c. Knowing any two sides allows the third to be calculated exactly using the theorem.

To find a missing leg, rearrange the formula. If the hypotenuse c and leg b are known, leg a equals the square root of (c squared minus b squared). If the two legs are known, the hypotenuse is the square root of their sum of squares. Common integer solutions are called Pythagorean triples; the 3-4-5 right triangle is the simplest example, where 9 + 16 = 25.

c^2 = a^2 + b^2

The square of the hypotenuse equals the sum of the squares of the two legs.

a = sqrt(c^2 - b^2) or b = sqrt(c^2 - a^2)

Rearranged forms for finding a missing leg when the hypotenuse and the other leg are known.

Area = 0.5 x a x b

The area of a right triangle is half the product of its two legs.

Perimeter = a + b + c

The perimeter is the sum of all three sides.

Pythagorean triples and real-world uses

Pythagorean triples are sets of three positive integers that satisfy the theorem exactly: 3-4-5, 5-12-13, 8-15-17, and 7-24-25 are common examples. Builders and surveyors use the 3-4-5 rule to verify that corners are square: measuring 3 units along one wall and 4 units along the adjacent wall, the diagonal should be exactly 5 units if the corner is at 90 degrees.

In navigation, the theorem calculates straight-line distances. A ship that sails 30 km east and 40 km north ends up 50 km from its starting point. In screen technology, display diagonal size is found by applying the theorem to width and height. That is why a right triangle calculator or Pythagorean theorem calculator remains useful far beyond school maths: it solves practical distance, layout, and measurement problems quickly.

Further reading

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.

Triangle Calculator

Solve a triangle from three side lengths and calculate area, perimeter, angles, and triangle type.

Volume Calculator

Calculate the volume and surface area of common 3D shapes: boxes, cubes, spheres, cylinders, and cones.

Circle Calculator

Calculate circumference, area, diameter, or radius of a circle from any one known measurement.

Proportion Calculator

Solve missing values in a:b = c:d proportions with cross multiplication, then compare the completed ratios and matching products.

Privacy choices

Help us improve the site.

If you allow analytics, we may use Google Analytics and Microsoft Clarity to better understand how the site is used. Analytics remain off unless you accept.