Pythagorean Theorem Calculators

Fourteen free tools for right triangles, distances, triples and everyday measuring jobs. Find the one that fits your question, then get the most from it with exact answers, sensible rounding and consistent units.

By the PythagoreanTheorem.net teamUpdated 6 min read

Pick a calculator by what you already know. For any two sides of a right triangle, use the Pythagorean theorem calculator. When an angle is involved, use the right triangle solver; to test three lengths, use the checker; for points on a graph or the diagonal of a box, use the distance or 3D calculators. Every tool shows its working.

Which calculator do I need?

If you know…use the…Both legs, a and bHypotenuse calculatorHypotenuse c and one legMissing side calculatorOne side and one angleRight triangle solver?All three sidesRight triangle checkerTwo points on a gridDistance calculator
Start from what you know. Solid colored sides are given, dashed sides are what the tool finds, and the arc marks a known angle.
Your questionCalculatorYou enter
I know two sides of a right triangle. What is the third?Pythagorean theorem calculatorAny two of a, b, c
I know both legs. How long is the hypotenuse?Hypotenuse calculatora and b, a leg and an angle, or the area and a leg
I know the hypotenuse and one leg. What is the other leg?Missing side calculatorc and a or b
I know a side and an angle, or I need the angles too.Right triangle solverAny two of a, b, c, A, B
Do these three lengths make a right triangle?Right triangle checkerThree sides
How far apart are two points?Distance formula calculatorTwo points in 2D or 3D
How long is the diagonal of a box or room?3D diagonal calculatorLength, width, height
What is the diagonal of a rectangle or square?Rectangle diagonal calculatorLength and width
Which whole numbers fit a2 + b2 = c2?Pythagorean triples generatorA limit, or a number to search for
How do I simplify a root like √72?Simplify square rootsThe number under the root
What are the sides of a 30-60-90 or 45-45-90 triangle?Special right triangle calculatorOne side
How wide and tall is a 65-inch TV?Screen size calculatorDiagonal and aspect ratio
How long a ladder do I need?Ladder calculatorAny two of ladder, height, base
How long are my roof rafters?Rafter and roof pitch calculatorRun and pitch, or run and rise

All calculators

Learning the method rather than checking an answer? Start with how to do the Pythagorean theorem, then use a calculator to check each step.

Exact answers or decimals?

When c2 is a perfect square, the answer is exact as it stands: legs 6 and 8 give 10. Most of the time it isn't. Legs of 5 and 5 give c = √50, which simplifies to 5√2. That radical is the exact answer; 7.07 is an approximation of it.

7.007.057.105√2 = 7.0710678…7.07, rounded to the nearest hundredth
Zoomed in to the hundredths, the exact value 5√2 and its rounded decimal 7.07 are close but not the same point. The radical is exact; the decimal is an approximation.
  • In math class, give the exact value in simplest radical form unless told to round. See square roots and radicals for the method.
  • In measuring jobs, round the decimal to a precision you can actually mark or cut.
  • In multi-step problems, carry the exact value forward. Our right-triangle calculators accept inputs such as 5√2 or sqrt(50) for this reason.

How to round

The nearest tenth is one decimal place, the nearest hundredth two, the nearest thousandth three. Here is √2 = 1.41421356… at each level:

Rounded toValue
the nearest whole number1
the nearest tenth1.4
the nearest hundredth1.41
the nearest thousandth1.414
four decimal places1.4142

Two rules prevent most rounding errors:

  1. Round once, at the end. Suppose a triangle with legs 1 and 1 has hypotenuse √2, and that hypotenuse becomes a leg of a second triangle whose other leg is 1. The exact answer is √2 + 1 = √3 ≈ 1.7321. Round √2 to 1.4 first and you get √1.96 + 1 = √2.96 ≈ 1.7205, off by more than a hundredth. (This chain of triangles starts the spiral of Theodorus.)
  2. Match the precision of the data. Lengths measured to the nearest tenth of a meter don't justify six decimal places. Round to the same precision and write ≈.

Units

The Pythagorean theorem needs every length in the same unit. Convert first, then calculate. For legs of 3 ft and 8 in, work in inches: 36 in and 8 in give c = √1,296 + 64 = √1,360 = 4√85 ≈ 36.88 in, a little over 3 ft. Areas come out in square units (in², ft², m²), and perimeters and diagonals in the original unit.

The exact conversions you need most are 1 ft = 12 in, 1 yd = 3 ft, 1 mi = 5,280 ft and 1 in = 2.54 cm. The units menu in our calculators only labels the answer; it never converts. Angles are always in degrees.

Frequently asked questions

Are these calculators free?

Yes, with no sign-up. They run entirely in your browser, so nothing you type is sent anywhere.

Should I give the exact answer or the decimal?

Follow the question: "simplest radical form" means 5√2, "to the nearest tenth" means 7.1. With no instruction, math teachers usually expect the exact form, and real-world problems a rounded decimal with units.

Can I share a calculation with someone?

On the Pythagorean theorem, hypotenuse, missing side, solver and checker pages, the page address updates as you type. Copy it, and the link opens with the same numbers filled in.

Do any of these work for triangles without a right angle?

The right triangle checker accepts any three sides and classifies the triangle as right, acute or obtuse, with all three angles. To find a missing side of a general triangle, use the law of cosines.

Keep exploring