Skip to content
ToolPaxaAll Tools for Everyone, in One Place.All calculators

Pythagorean Theorem Calculator

Find the missing side of a right triangle, or check what kind of triangle three sides make.

Formula reference

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

All formulas
  • a²+b²=c²; c=√(a²+b²); a=√(c²−b²); b=√(c²−a²)
  • x≤y≤z; Δ=z²−x²−y²; Δ=0 ⇒ 90°
  • x+y>z; x≤y≤z
  • Δ<0 ⇒ acute; Δ>0 ⇒ obtuse, if x+y>z
  • A=ab/2; P=a+b+c
Find a missing sidea and b meet at 90°. c is opposite that angle.abc
a and b meet at 90°. c is opposite that angle.
² +
² =
²
Digits to show, starting at the first nonzero digit.

Your result

Your answer and calculation steps appear here.

Inputs and calculations stay in this browser tab. Copy or export your report before closing.

How to use the Pythagorean theorem

To solve, enter two positive sides and leave the unknown blank. c is the hypotenuse, opposite the right angle. To check three sides, enter them in any order. Use one unit throughout.

Find the hypotenuse

The two legs meet at 90°. The longest side, c, is across from that angle. For a = 3 and b = 4, c = √(9+16) = 5. The labelled squares show why the relation uses squared lengths rather than adding side lengths.

Sides and square areasa and b meet at 90°. c is opposite that angle.a²b²c²
a and b meet at 90°. c is opposite that angle.

Find a missing leg

When c and one leg are known, subtract that leg’s square from c² and take the square root. With c = 13 and b = 12, a = √(169−144) = 5. If the known leg is as long as c, there is no nonzero missing side.

Enter fractions and radicals

Use 3/7 for a fraction, 1.2e-3 for scientific notation, or √2 and 3*sqrt(2) for square roots. For a = 3√2 and b = 4, the squared terms are 18 and 16, and c = √34. The exact form stays available beside its decimal.

Check three sides with the converse

Sort the sides as x ≤ y ≤ z. First confirm x+y > z; equality gives a line and a shorter sum cannot form a triangle. Then compare z² with x²+y². Equality means right, a smaller value means acute, and a larger value means obtuse.

Understand units and real measurements

Use the same unit for every side. For example, convert 30 cm to 0.30 m before combining it with lengths in metres. Areas and squared side lengths use square units. The check uses the values exactly as entered, so rounded measurements may be near 90° without satisfying equality.

Read the result and reuse the steps

The result includes the missing side, exact square and area or perimeter in solve mode. In check mode, the difference Δ = z²−x²−y² shows the comparison. Copy or export the working with units. Do not use the missing-side equation for a triangle unless you know one angle is 90°.

Use the Distance Calculator for a straight segment from coordinates, or the Slope Calculator to check its rise and run. Use the Triangle Calculator for non-right triangles and the Area Calculator for a plane figure. The Root Calculator can evaluate a radical and the Exponent Calculator can check a square. Use the Right Triangle Calculator when you know an angle, altitude, area or perimeter and need the rest of the triangle.

OpenStax — The Pythagorean Theorem introduces the theorem and its applications. OpenStax — Law of Cosines gives the general law of cosines, which reduces to the Pythagorean equation at 90°. BIPM SI Brochure and ISO 80000-2:2019 cover unit and notation conventions.

Common questions

Which side is c?

In solve mode, c is the hypotenuse, opposite the right angle.

Can I enter all three sides?

Yes, switch to Check three sides. The calculator sorts them before comparing.

How do I enter a square root?

Use √2, 3√2 or 3*sqrt(2). The square root must be positive.

Why did my almost-right triangle come back as acute?

The entered values are compared exactly. Measurements rounded to a few digits can change the comparison.

What are significant digits?

They count from the first nonzero digit. At 3, 123.456 rounds to 123.

Does the theorem work for every triangle?

The equation a² + b² = c² holds for a right triangle with c as the hypotenuse. General triangles use other relations.

Explore related tools