Pythagorean Theorem Calculator: Find the Third Side


Pythagorean Theorem Calculator

An essential tool for calculating the third side of a right triangle. Easily find the hypotenuse or a missing leg with our powerful and accurate calculator.



The first of the two shorter sides of the triangle.
Please enter a valid positive number.


The second of the two shorter sides of the triangle.
Please enter a valid positive number.


Select the unit of measurement for the sides.

Dynamic visualization of the calculated right triangle.

What is the Pythagorean Theorem?

The Pythagorean theorem is a fundamental principle in Euclidean geometry that describes the relationship between the three sides of a right-angled triangle. It states that the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides (legs). This is crucial for anyone involved in construction, architecture, navigation, or geometry. Our tool simplifies the process of calculating 3rd side using pythagorus theorem, making it accessible for both students and professionals.

Anyone needing to find the length of a missing side of a right triangle can use this theorem. A common misunderstanding is that it applies to any triangle, but it is exclusively for right triangles. Another point of confusion is unit consistency; you must use the same units for all sides for the calculation to be accurate, a feature this right triangle calculator handles automatically.

The Pythagorean Theorem Formula

The famous formula is expressed as:

a² + b² = c²

To find the hypotenuse (c), we rearrange the formula to: c = √(a² + b²). This is the core logic our calculator uses for calculating 3rd side using pythagorus theorem. It involves squaring the lengths of the two known legs, adding them together, and then finding the square root of the sum.

Variables in the Pythagorean Theorem
Variable Meaning Unit (Auto-Inferred) Typical Range
a Length of one leg cm, m, in, ft, etc. Any positive number
b Length of the other leg cm, m, in, ft, etc. Any positive number
c Length of the hypotenuse cm, m, in, ft, etc. Greater than a or b

Practical Examples

Understanding through examples makes the concept clearer.

Example 1: Finding the Hypotenuse

  • Inputs: Side a = 3 cm, Side b = 4 cm
  • Calculation: c = √(3² + 4²) = √(9 + 16) = √25
  • Result: The hypotenuse (c) is 5 cm.

Example 2: A Construction Scenario

Imagine a ladder leaning against a wall. The ladder forms the hypotenuse. The base of the ladder is 5 feet away from the wall (a = 5 ft), and the ladder reaches 12 feet up the wall (b = 12 ft).

  • Inputs: Side a = 5 ft, Side b = 12 ft
  • Calculation: c = √(5² + 12²) = √(25 + 144) = √169
  • Result: The required ladder length (c) is 13 ft. Understanding the hypotenuse formula is key in such real-world cases.

How to Use This Pythagorean Theorem Calculator

  1. Enter Side a: Input the length of the first leg into the “Side a” field.
  2. Enter Side b: Input the length of the second leg into the “Side b” field.
  3. Select Units: Choose the correct unit of measurement from the dropdown menu. Ensure it’s the same for both sides.
  4. Interpret Results: The calculator instantly shows the hypotenuse ‘c’, along with the squared values of ‘a’ and ‘b’. The triangle chart also updates to provide a visual representation.

Key Factors That Affect the Calculation

  • Right Angle: The theorem is only valid for triangles with a 90-degree angle.
  • Input Accuracy: Small errors in measuring the leg lengths can lead to significant inaccuracies in the calculated hypotenuse.
  • Unit Consistency: Mixing units (e.g., inches and centimeters) without conversion will produce an incorrect result. This calculator standardizes the units for you.
  • Leg vs. Hypotenuse: Correctly identifying the legs versus the hypotenuse is crucial. The hypotenuse is always the longest side, opposite the right angle. This concept is vital for the calculating 3rd side using pythagorus theorem process.
  • Rounding: The precision of the result depends on how you round the final square root. Our tool provides a precise calculation.
  • Physical Constraints: In real-world applications, factors like material thickness can slightly alter the effective lengths. For more complex problems, an advanced geometry solver might be needed.

Frequently Asked Questions (FAQ)

Can I use this calculator for any triangle?
No, this calculator and the Pythagorean theorem are designed specifically for right-angled triangles.
What if I know the hypotenuse and one leg?
Our calculator is set up to find the hypotenuse, but you can rearrange the formula to find a missing leg: a = √(c² – b²). We plan to add this feature soon.
Why are units important?
Units ensure the scale of the sides is consistent. Calculating with 3 meters and 4 inches directly is meaningless. Our tool’s unit selector prevents this error.
What does ‘NaN’ in the result mean?
NaN (Not a Number) appears if you enter non-numeric text or leave a field empty. Please provide valid numbers for both legs.
How accurate is the result?
The calculation is as accurate as the input values. The JavaScript logic uses floating-point math for high precision.
Can I calculate the angles of the triangle?
This calculator focuses on calculating 3rd side using pythagorus theorem. Finding angles requires trigonometry (e.g., sine, cosine, tangent), which can be done with our trigonometry calculator.
What is a Pythagorean triple?
It’s a set of three positive integers (a, b, c) that perfectly satisfy the theorem, like (3, 4, 5) or (5, 12, 13).
Does the orientation of the triangle matter?
No, as long as you correctly identify the two legs, their orientation (which one is ‘a’ vs ‘b’) doesn’t change the final hypotenuse length.

© 2026 Your Website. All Rights Reserved. For educational purposes.


Leave a Reply

Your email address will not be published. Required fields are marked *