Skip to content
GeoCalcLab emblem
GeoCalcLab.com

Pythagorean Theorem Calculator: Solve Any Right Triangle

Choose the side you need and enter the other two. The calculator applies a² + b² = c² and shows the square, the root and the full triangle.

FreeNo sign-upMetric + imperialStep-by-step formula
Unit
a² + b² = c²
Leg a (ft)
Leg b (ft)
Hypotenuse c (ft)
5solved
Solve for:
Presets:

Same answer, other units: area = 0.5574 m² · perimeter = 3.6576 m

Side c
5 ft
Area
6 ft²

How a² + b² = c² solves right triangles

In a right triangle, the two shorter sides (the legs) and the longest side (the hypotenuse) always satisfy a² + b² = c². The right angle sits between the legs, and the hypotenuse is opposite it.

If you know any two sides, you can solve for the third. Rearranged, the missing leg is a = √(c² − b²) or b = √(c² − a²). The theorem only applies to right triangles — for other triangles you need the law of cosines.

Beyond the missing side, this page reports area, perimeter, both acute angles, the altitude to the hypotenuse, and the inradius and circumradius of the triangle.

Right triangle formulas used on this page

← Swipe →
QuantityFormulaNotes
Hypotenusec = √(a² + b²)Use when both legs are known.
Missing leg aa = √(c² − b²)The hypotenuse must be longer than the known leg.
Missing leg bb = √(c² − a²)Same restriction: c > a.
AreaA = ½ × a × bThe legs are perpendicular, so they are base and height.
PerimeterP = a + b + cSum of all three sides.
Angle AA = arcsin(a ÷ c)A + B = 90°, because C is the right angle.
Altitude to hypotenuseh = (a × b) ÷ cHeight measured from the right angle to side c.
Inradiusr = (a + b − c) ÷ 2Radius of the circle tangent to all three sides.
CircumradiusR = c ÷ 2The hypotenuse is the diameter of the circumcircle.

Pythagorean triples worth memorizing

← Swipe →
TripleLegs a, bHypotenuse cCommon multiples
3-4-53, 456-8-10, 9-12-15, 12-16-20
5-12-135, 121310-24-26, 15-36-39
8-15-178, 151716-30-34, 24-45-51
7-24-257, 242514-48-50, 21-72-75
20-21-2920, 212940-42-58
9-40-419, 404118-80-82

Worked calculation examples

Screen diagonal

A display panel measures 48 in wide and 27 in tall.

  1. 1.c² = 48² + 27² = 2,304 + 729 = 3,033
  2. 2.c = √3,033 = 55.0727 in
  3. 3.area = ½ × 48 × 27 = 648 in²
  4. 4.perimeter = 48 + 27 + 55.0727 = 130.0727 in
Takeaway: Screen sizes are quoted as the diagonal, so a 48 × 27 panel is sold as roughly 55 inches. The same calculation checks whether a replacement screen will fit.

Squaring up a deck corner

A deck is 8 ft by 15 ft and you want to confirm the corner is square.

  1. 1.c² = 8² + 15² = 64 + 225 = 289
  2. 2.c = √289 = 17 ft
  3. 3.area = ½ × 8 × 15 = 60 ft²
  4. 4.angles: A = arcsin(8 ÷ 17) = 28.0725°, B = 61.9275°
Takeaway: If the diagonal measures 17 ft, the corner is square. Any multiple of a 3-4-5 triangle works the same way on site: 3-4-5, 6-8-10, 9-12-15.

Right triangle tips

The hypotenuse is always the longest side

If your computed c is not longer than both legs, check which side you typed in. A common slip is entering the hypotenuse in a leg field.

Keep units consistent

Square the numbers only after converting both sides to the same unit. Mixing inches and feet is the most common source of a wrong diagonal.

Watch the c > b condition

When solving for a leg, the hypotenuse must be strictly longer than the known leg. If it is not, no real right triangle exists.

Use a triple to avoid a calculator

On a job site, 3-4-5 (and its multiples) lets you square a corner with a tape measure and no arithmetic.

Not for every triangle

For a triangle without a 90° angle, use the law of cosines: c² = a² + b² − 2ab·cos(C).

Frequently asked questions

What is the Pythagorean theorem?+

For a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c². The hypotenuse c is the side opposite the right angle.

Can I use the theorem on any triangle?+

No. It only holds when one angle is exactly 90°. For oblique triangles use the law of cosines or the law of sines instead.

How do I find the hypotenuse?+

Square both legs, add the results, then take the square root: c = √(a² + b²). For legs 3 and 4, that is √25 = 5.

How do I find a missing leg?+

Rearrange the theorem: a = √(c² − b²). The hypotenuse must be longer than the known leg, otherwise the result is not a real length.

What is a Pythagorean triple?+

A set of three whole numbers that satisfy the theorem, such as 3-4-5 or 5-12-13. Any multiple of a triple is also a triple.

Why is the hypotenuse always the longest side?+

It is opposite the largest angle (90°). In any triangle, the longest side is opposite the largest angle, so the hypotenuse must exceed both legs.