—
—
—
6
—
—
—
6
The Pythagorean Theorem Calculator solves for any missing side of a right triangle given the other two sides. The Pythagorean theorem is arguably the most famous theorem in all of mathematics, establishing that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: $$a^2 + b^2 = c^2$$. This elegant relationship has been known for over 4,000 years and remains indispensable in modern science, engineering, and technology.
This calculator offers three solving modes. When finding the hypotenuse (c), you enter the two legs and the calculator computes $$c = \sqrt{a^2 + b^2}$$. When finding a leg, you enter the hypotenuse and the other leg, and the calculator computes the missing leg as $$a = \sqrt{c^2 - b^2}$$. In leg-solving mode, the first input (Known Side 1) should be the hypotenuse (the largest side) and the second input should be the known leg.
The theorem appears everywhere in practical applications. Builders use it to verify right angles by checking 3-4-5 proportions. Navigation systems calculate straight-line distances using the theorem applied to coordinate differences. Computer screens specify their size as the diagonal, which is the hypotenuse of the width-height rectangle. Physicists decompose vectors into perpendicular components and use the theorem to find magnitudes.
Beyond two dimensions, the theorem generalizes to three-dimensional space as the distance formula: $$d = \sqrt{x^2 + y^2 + z^2}$$. It also extends to higher dimensions and forms the foundation of Euclidean distance in machine learning, data science, and cluster analysis. The concept of orthogonality in linear algebra and functional analysis is a direct generalization of the right-angle condition in the Pythagorean theorem.
The calculator also computes the perimeter and area of the right triangle. The area of a right triangle is simply $$A = \frac{1}{2} \cdot a \cdot b$$ since the two legs serve as base and height. These bonus outputs save you from performing additional calculations when working on geometry problems or real-world projects.
Historically, the theorem is attributed to Pythagoras of Samos (c. 570-495 BCE), though evidence suggests Babylonian mathematicians knew the relationship at least 1,000 years earlier. Today, over 400 distinct proofs exist, including geometric, algebraic, and even visual proofs, making it one of the most proven theorems in mathematical history.
The Pythagorean theorem states:
$$a^2 + b^2 = c^2$$
where $$c$$ is the hypotenuse (longest side, opposite the right angle) and $$a$$, $$b$$ are the legs.
Solving for the hypotenuse:
$$c = \sqrt{a^2 + b^2}$$
Solving for a leg:
$$a = \sqrt{c^2 - b^2} \quad \text{or} \quad b = \sqrt{c^2 - a^2}$$
When solving for a leg, enter the hypotenuse as Known Side 1 and the other known leg as Known Side 2. The calculator uses $$\sqrt{|\text{side1}^2 - \text{side2}^2|}$$ to handle both cases.
The missing side is the computed length of the unknown side. The hypotenuse output always shows the longest side of the right triangle. The perimeter is the sum of all three sides. The area is calculated as half the product of the two legs. When solving for a leg, ensure Known Side 1 (the hypotenuse) is larger than Known Side 2; otherwise, the result represents the absolute difference, which may not be geometrically meaningful.
Inputs
Results
The most famous Pythagorean triple: 3² + 4² = 9 + 16 = 25 = 5².
Inputs
Results
Given hypotenuse 13 and leg 5: a = sqrt(169 - 25) = sqrt(144) = 12. This is the 5-12-13 triple.
The Pythagorean theorem states that in a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c². It only applies to right triangles in Euclidean geometry.
When solving for a missing leg, enter the hypotenuse (the longest side) as Known Side 1 and the other known leg as Known Side 2. The calculator computes sqrt(side1² - side2²).
Pythagorean triples are sets of three positive integers (a, b, c) that satisfy a² + b² = c². Common examples include (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25). Any multiple of a triple is also a triple.
No. It only applies to right triangles. For non-right triangles, use the Law of Cosines: c² = a² + b² - 2ab·cos(C). When C = 90°, cos(C) = 0 and the Law of Cosines reduces to the Pythagorean theorem.
It is used to calculate distances, verify right angles in construction (the 3-4-5 rule), determine screen diagonals, compute vector magnitudes in physics, find shortest paths in navigation, and measure distances in coordinate systems.
Yes. The 3D distance formula is a direct extension: d = sqrt(x² + y² + z²). This is derived by applying the theorem twice — first in the xy-plane, then from that result to the z-axis.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!