Pythagorean Theorem Calculator
The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². It’s one of the oldest and most widely used results in mathematics, known and applied by multiple ancient civilizations well before Pythagoras, yet it remains the fastest way to find a missing side of a right triangle from the other two — which is exactly what this calculator does, along with computing the triangle’s area, perimeter, and angles at the same time.
How the Pythagorean Theorem Calculator Works
Choose which side you’re solving for — the hypotenuse (c) or one of the two legs (a or b) — enter the two values you already know, and the calculator applies the theorem directly. Solving for the hypotenuse is a straightforward addition and square root: c = √(a² + b²). Solving for a leg requires rearranging the formula first: a = √(c² − b²), which only works when c is genuinely the longest side, since the hypotenuse must always be greater than either leg individually.
The Converse: Using the Theorem to Test for a Right Angle
The theorem also works in reverse, in a way this calculator doesn’t perform directly but that’s worth understanding: if you have three side lengths and want to confirm whether they actually form a right triangle at all, you check whether a² + b² equals c² exactly. If it does, the triangle is right-angled; if the sum is greater, the triangle is acute; if smaller, it’s obtuse. This reverse check — called the converse of the Pythagorean theorem — is how the 3-4-5 rule works in construction to verify a square corner. If you want a calculator that performs this check automatically from three known sides and tells you whether the triangle is right, acute, or obtuse, the general Triangle Calculator does exactly that, computing all three angles and explicitly labeling the triangle’s type.
Pythagorean Triples: When All Three Sides Are Whole Numbers
A Pythagorean triple is a set of three positive integers that satisfy a² + b² = c² exactly, with no rounding involved. The most famous is 3-4-5 (9 + 16 = 25), but there are infinitely many others: 5-12-13, 8-15-17, 7-24-25, and 20-21-29 are all valid triples, along with every multiple of them (6-8-10, 9-12-15, and so on, scaled from 3-4-5). These integer solutions are useful in practice precisely because they avoid irrational, hard-to-measure decimal results — which is why 3-4-5 specifically became the standard method for squaring corners in construction long before calculators existed.
Special Right Triangles: Fixed Angle Ratios Worth Memorizing
Two right triangle shapes appear so often in geometry and trigonometry that their side ratios are worth knowing directly, without recalculating them each time:
- 45-45-90 triangle — an isosceles right triangle where both legs are equal and the hypotenuse is always leg × √2. This shape appears naturally whenever a square is cut along its diagonal.
- 30-60-90 triangle — the sides always follow the ratio 1 : √3 : 2, appearing naturally when an equilateral triangle is split exactly in half.
Both of these are special cases the Pythagorean theorem confirms directly — a² + b² = c² still holds for each, it’s just that their specific angle proportions produce these clean, memorable ratios rather than requiring a fresh calculation every time.
The Distance Formula Is the Pythagorean Theorem in Disguise
One of the theorem’s most common hidden applications is finding the straight-line distance between two points on a coordinate plane. The horizontal and vertical differences between the two points form the two legs of a right triangle, and the direct distance between them is the hypotenuse — meaning the distance formula, √((x₂−x₁)² + (y₂−y₁)²), is simply the Pythagorean theorem with coordinate differences substituted for a and b. The Distance Calculator applies this exact relationship directly from a pair of coordinates, without requiring you to compute the legs by hand first.
Where This Connects to Trigonometry
Once you know all three sides of a right triangle — whether from this calculator or from measurement — you can find the two non-right angles using inverse trigonometric functions: the sine, cosine, and tangent ratios that make up the foundation of trigonometry are all defined in terms of a right triangle’s sides. The theorem itself doesn’t calculate angles directly, but every angle calculation on a right triangle ultimately depends on the side lengths the theorem relates. For direct trigonometric calculations — sine, cosine, tangent, and their inverses — the Scientific Calculator includes all of these functions built in.
Extending the Theorem: The General Triangle Case
The Pythagorean theorem is technically a special case of a more general rule called the law of cosines, which works for any triangle, not just right triangles. The law of cosines includes an extra term that accounts for the angle between two sides — and when that angle happens to be exactly 90°, the cosine term becomes zero, and the law of cosines collapses back down into a² + b² = c². This is why the Pythagorean theorem only works for right triangles: it’s the law of cosines with the angle-dependent term removed entirely. The Triangle Calculator uses the full law of cosines internally, which is why it can solve any triangle shape, not just right-angled ones.
Squares, Roots, and the Arithmetic Behind the Theorem
Every Pythagorean calculation ultimately depends on two basic operations: squaring a number and taking a square root. If you want to explore either operation independently — checking an exponent calculation or finding a root of a different degree than square root — the Exponent Calculator and Root Calculator handle those operations directly, and are the same underlying arithmetic this calculator performs automatically each time it solves for a side.
Frequently Asked Questions
What is the Pythagorean theorem in simple terms?
It states that in a right triangle, squaring the two shorter sides (the legs) and adding them together always equals the square of the longest side (the hypotenuse): a² + b² = c². It only applies to triangles with exactly one 90° angle.
What is a Pythagorean triple?
A Pythagorean triple is a set of three whole numbers that satisfy a² + b² = c² exactly, with no decimals involved. The most well-known example is 3-4-5, along with 5-12-13, 8-15-17, and any whole-number multiple of these sets.
How do you know if three side lengths form a right triangle?
Check whether the square of the longest side equals the sum of the squares of the other two. If it matches exactly, the triangle is right-angled. If the sum is larger, the triangle is acute; if smaller, it’s obtuse. This is called the converse of the Pythagorean theorem.
Does the Pythagorean theorem work on any triangle?
No — it only applies to right triangles, meaning one angle must be exactly 90°. For any other triangle shape, you need the law of cosines instead, which is a more general formula that the Pythagorean theorem is actually a special case of.
What are the side ratios of a 45-45-90 triangle?
The two legs are equal in length, and the hypotenuse always equals one leg multiplied by √2. This ratio comes directly from applying the Pythagorean theorem to an isosceles right triangle, and it appears naturally whenever a square is split along its diagonal.