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 quantity | Example result |
|---|---|
| Hypotenuse c | 5 units |
| Triangle area | 6 |
| Perimeter | 12 |
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.
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.