Pythagorean Theorem Calculator

Hypotenuse c

5 units

Triangle area

6

All results
Calculator inputs
?

Only right triangles satisfy a² + b² = c² with c as the hypotenuse.

?

All lengths use this one unit; areas use its square. Changing this label reinterprets the numbers, rather than converting their values.

?

Squared mode interprets a value of 9 as side √9 = 3. All entered known values use the selected representation.

?

Leg a, or a² in squared-input mode. It is perpendicular to leg b.

?

Leg b, or b² in squared-input mode. It is not the hypotenuse.

Shape and dimensions

Compare a² + b² with c²

The first two square areas add to the third bar. The final bar is the square on the supplied or solved hypotenuse; check mode preserves any mismatch.

a²9 units²
b²16 units²
a² + b²25 units²
c²25 units²

Lengths and their squared areas

Lengths and their squared areas
SideLengthSquare area
a3 units9 units²
b4 units16 units²
c5 units25 units²

Pythagorean calculation details

Square-root displays are exact algebraic forms only under the stated integer conditions. Decimal results and residuals use floating-point arithmetic.

Pythagorean calculation details
QuantityValue
Representation of entered numberslengths
Formulac = √(a² + b²)
Integer-radicand form5
Relative squared residual0

Solved triangle measurements

Sides a, b, c are opposite angles A, B, C. Distinct SSA solutions have different third sides and areas. CSV retains stored precision; displayed digits are rounded.

Solved triangle measurements
SolutionSide aSide bSide cAngle AAngle BAngle CAreaPerimeter
13 units4 units5 units36.86989765 °53.13010235 °90 °6 units²12 units

Altitudes, medians and circle radii

Altitudes are perpendicular to the selected side or its extension. Medians end at a side midpoint. Inradius and circumradius describe different circles.

Altitudes, medians and circle radii
SolutionMeasurementLength
1Altitude to a4 units
1Altitude to b3 units
1Altitude to c2.4 units
1Median to a4.27200187 units
1Median to b3.60555128 units
1Median to c2.5 units
1Inradius1 units
1Circumradius2.5 units

Triangle classification and consistency checks

Side equality uses a relative 10^−10 tolerance on the longest side; right-angle classification uses 10^−10 radians. Classification at those boundaries is approximate.

Triangle classification and consistency checks
SolutionSide classificationAngle classificationAngle sum2 × area / side c
1ScaleneRight (within numeric tolerance)180 °2.4 units

Vertices and triangle centers in one coordinate frame

A is at the origin, B lies on the positive x-axis, and C lies above it. Translation, rotation and reflection give equivalent placements. An obtuse triangle’s circumcenter can lie outside its area.

Vertices and triangle centers in one coordinate frame
SolutionPointxy
1Vertex A0 units0 units
1Vertex B5 units0 units
1Vertex C3.2 units2.4 units
1Centroid2.7333333333 units0.8 units
1Incenter3 units1 units
1Circumcenter2.5 units-7.40148683e-16 units

Follow the solved geometry step by step

These are relationships among the completed triangle’s measurements. They supplement the selected-input solver, and are not additional amounts to sum.

Follow the solved geometry step by step
SolutionQuantityRelationshipValue
1PerimeterP = a + b + c12
1Semiperimeters = P / 26
1AreaK = sqrt[s(s-a)(s-b)(s-c)] (evaluated in a scaled stable form)6
1Altitude to ch_c = 2K / c2.4
1Inradiusr = K / s1
1CircumradiusR = abc / (4K)2.5
1Median to cm_c = sqrt(2a² + 2b² - c²) / 22.5

How to use the Pythagorean Theorem Calculator

Find a missing leg or hypotenuse, accept lengths or squared lengths, and check a proposed right triangle. Explore the three side-squares in an original area diagram.

  1. 1. Enter your inputs

    Start with Pythagorean calculation, Length unit, Entered values represent, Known a input. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Hypotenuse c, Triangle area, Perimeter. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

    See the worked example and method

Understanding the Pythagorean Theorem Calculator: uses, inputs and results

The Pythagorean Theorem Calculator connects the perpendicular legs of a right triangle with its hypotenuse and other geometric results.

Am I entering side lengths or the square areas built on them?

The Pythagorean Theorem Calculator connects a missing side with an area identity. Its squared-input mode and attached-square visual make a², b² and c² distinct from a, b and c.

The square root returns a length

Leg-square areas 9 and 16 total 25, so the hypotenuse is √25 = 5 length units.

A numerical check retains disagreement

The residual and tolerance are shown explicitly. Incorrect supplied sides are not replaced with an automatically corrected right triangle.

Further reading: OpenStax: the law of sines and ambiguous SSA cases · OpenStax: law of cosines and triangle area

What do the Pythagorean Theorem Calculator inputs mean?

Pythagorean calculation
Only right triangles satisfy a² + b² = c² with c as the hypotenuse.
Length unit
All lengths use this one unit; areas use its square. Changing this label reinterprets the numbers, rather than converting their values.
Entered values represent
Squared mode interprets a value of 9 as side √9 = 3. All entered known values use the selected representation.
Known a input
Leg a, or a² in squared-input mode. It is perpendicular to leg b. This field applies when Pythagorean calculation is set to Find hypotenuse c from legs a, b or Find leg b from a and c or Check all three supplied sides.
Known b input
Leg b, or b² in squared-input mode. It is not the hypotenuse. This field applies when Pythagorean calculation is set to Find hypotenuse c from legs a, b or Find leg a from b and c or Check all three supplied sides.
Known c input
Hypotenuse c, or c² in squared-input mode. It must be longer than either leg. This field applies when Pythagorean calculation is set to Find leg a from b and c or Find leg b from a and c or Check all three supplied sides.
Relative squared-identity tolerance
Accept when |a²+b²−c²| / max(a²+b²,c²) is at most this value. A numerical check is not proof of exact equality for measured sides. This field applies when Pythagorean calculation is set to Check all three supplied sides.

When is the Pythagorean Theorem Calculator useful?

Verify a² + b² = c²

Enter the two perpendicular legs to check the resulting hypotenuse.

Model a rectangular diagonal

Use the width and height of a rectangle as the legs when calculating its diagonal.

Pythagorean Theorem Calculator: a practical reference

The fixed “3-4-5” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Pythagorean calculation
Find hypotenuse c from legs a, b
Length unit
length units
Entered values represent
Side lengths
Hypotenuse c
5 units
Triangle area
6
Review the example inputs and calculation

Use the result in context

Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

Try the Pythagorean Theorem Calculator·Read the subject guide·Explore a related calculator

Worked example: Pythagorean Theorem Calculator

3-4-5. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Pythagorean calculation
Find hypotenuse c from legs a, b
Length unit
length units
Entered values represent
Side lengths
Known a input
3
Known b input
4
Calculated results for the fixed example
Calculated quantityExample result
Hypotenuse c5 units
Triangle area6
Perimeter12

Pythagorean Theorem Calculator: understand the lengths through their squared areas

How do I find a missing side using the Pythagorean theorem?

Identify the hypotenuse first. When legs a and b are perpendicular, c = √(a² + b²). If c and one leg are known, subtract that leg’s square from c² and take the positive square root to find the other leg.

For a = 3 and b = 4, the side-square areas are 9 and 16, totaling 25; c is therefore 5. Entering a = 3 and c = 5 in a missing-leg mode gives b = 4. The calculator does not subtract lengths directly because the theorem relates their squares.

OpenStax: law of cosines and triangle area

Why does the diagram draw a square on each side?

A square constructed on a side has area equal to that side length squared. The geometric identity is that the two leg-square areas sum to the hypotenuse-square area. The original visual places those squares outside the solved triangle, preserving proportional areas.

A 3-unit leg’s square has 9 square units, not 3 square units. The side-length and square-area table separates those quantities. Doubling the triangle’s lengths doubles each side but multiplies every attached square area by four.

Can I use squared lengths or square-root inputs?

Squared-input mode interprets each supplied number as a radicand. Entering 9 and 16 for the legs represents lengths √9 and √16, or 3 and 4. This keeps a side’s square distinct from the side itself.

When safe integer inputs produce a safe integer radicand, a radical form is retained. Legs 1 and 1 give √2; legs 2 and 2 give 2 × √2. Larger remaining factors can be left unsimplified under the documented factor-search bound. Decimal approximations are not mislabeled as exact symbolic expressions.

How do I check whether three measurements form a right triangle?

Use check mode with the proposed hypotenuse assigned to c. The relative squared residual is (a² + b² − c²) divided by the larger squared total. The chosen tolerance controls whether the result counts as a numerical match.

A 3–4–6 set does not satisfy the identity. Its diagram and comparison bars retain that mismatch rather than modifying the supplied c to 5. Some supplied side sets cannot form any triangle; those show separate square symbols without a fabricated triangle.

Does the Pythagorean theorem work for every triangle?

No. It applies to the relationship at a right angle. The cosine law adds an angle-dependent term for a general triangle; that term vanishes at 90°. If the legs are not perpendicular, adding their squares does not generally produce the third side’s square.

Likewise, a matching rounded measurement does not prove a perfect right angle. The tolerance is a calculation convention, not an estimate of survey or instrument error. Use the general Triangle Calculator when the included angle is known and is not a right angle.

How can I calculate the diagonal of a rectangle?

The diagonal and the two perpendicular edge lengths form a right triangle. A rectangle 5 units by 12 units has diagonal √(25 + 144) = 13 units. Both edge lengths must use the same unit before they are squared.

This is useful for checking idealized rectangular layouts and two-dimensional distances. For an actual floor quantity, use the Square Footage Calculator; for a fully solved right triangle with angles or altitude, use the Right Triangle Calculator. These tools answer related questions without confusing a diagonal length with the enclosed area.

Formula and calculation method

The hypotenuse is opposite the right angle. c = hypot(a,b); a missing leg is √[(c − knownLeg)(c + knownLeg)], avoiding direct subtraction of nearly equal squares.

Squared-input mode takes the square root of each supplied value before interpreting its side. The result table distinguishes side lengths from side-square areas.

Exact radical strings are supplied only when the known entered values and resulting radicand are safe integers. Factors are extracted through 10,000; larger remaining radicals can be unsimplified.

Check mode compares the relative squared residual with the entered tolerance. It retains an explicit mismatch rather than forcing arbitrary sides into a right triangle.

Scope and Limitations

  • Euclidean plane triangles only. No geodesic, spherical, surveying-error or measurement-uncertainty model. Derived values are floating-point approximations, not arbitrary-precision symbolic proofs.

Reference Sources

Frequently asked questions

Which side is c in a² + b² = c²?

c is the hypotenuse opposite the right angle. a and b are perpendicular legs.

What does entering 9 in squared-input mode mean?

It represents side length √9 = 3. All supplied known inputs use the selected lengths-or-squares convention.

Can the answer be an exact radical?

An integer-radicand form is provided when the inputs meet the documented safe-integer conditions. Larger factors can remain unsimplified.

Why is a three-side check only a numerical match?

It compares a floating-point squared residual with your chosen tolerance. It does not prove exact equality of measured lengths.

Can I use this for a non-right triangle?

Use the Triangle Calculator and the appropriate included-angle or other known-measurement case instead.