Pythagorean Theorem
Calculator
Find any side of a right triangle — with full step-by-step proof, angles, area, and perimeter. Part of the Geometry AI Solver suite.
Step-by-Step Solution
| # | Step | Justification |
|---|
Includes theorem derivation, KaTeX formulas and diagram.
Deterministic math engine
Arithmetic, not AI guessing. Every number is verified against a2 + b2 = c2 before display.
More than a single number
Area, perimeter, angles alpha and beta, triple detection — all derived from two inputs in one click.
Proof you can learn from
Structured step-by-step reasoning, not a bare output. Students retain the method, not just the answer.
Why not just use a regular calculator?
Most tools give you one number with no context. The Geometry AI Solver returns a complete picture of the triangle.
What the calculator covers
From the simplest 3-4-5 triple to real-world diagonal measurements, the Geometry AI Solver handles the full range.
Hypotenuse solver
Enter legs a and b. Get c = sqrt(a2 + b2) plus every derived property in one step.
a=6, b=8 to c=10
Missing leg finder
Know c and one leg? Rearranges to a = sqrt(c2 – b2) automatically — no manual algebra needed.
b=12, c=13 to a=5
Angle calculation
Computes alpha = arctan(a/b) and beta = arctan(b/a) once all sides are known. All three angles sum to 180 degrees.
3-4-5 to alpha=36.87, beta=53.13
Area and perimeter
Right-triangle area = (a x b) / 2. Perimeter = a + b + c. Both shown in your chosen unit automatically.
5-12-13 to Area=30, P=30
Pythagorean triple detector
Checks whether all three sides are integers. Flags classic triples like 3-4-5, 5-12-13, 8-15-17, and 7-24-25.
7, 24 to c=25 triple
Unit-flexible
Switch between cm, m, mm, inches, feet, yards, or km. Area is auto-converted to squared units — no manual conversion.
3 ft, 4 ft to c=5 ft
Who uses the Pythagorean theorem calculator?
Homework and exam prep
Verify answers before submission. Use the step-by-step proof to learn the method, not just copy a number.
Demonstration and marking
Generate worked examples on-the-fly for any pair of values. The structured output mirrors expected proof format.
Engineering and construction
Check diagonal spans, screen sizes, ramp gradients, and cable lengths fast — with exact decimal precision.
How to use the calculator
Enter two sides
Type any two known side lengths. Leave the unknown field empty. Works for any combination: two legs, or one leg + hypotenuse.
Pick your unit
Select cm, m, in, ft, or km from the dropdown. The Geometry AI Solver converts area output automatically.
Click Calculate
Instant results: missing side, angles alpha and beta, area, perimeter, and triple status — all from a single click.
Read the proof
Review the step-by-step solution table. Unlock the full proof with theorem citations via the results link.
Pythagorean Theorem Calculator: Find Any Side of a Right Triangle
The Pythagorean theorem is one of the oldest and most widely applied results in mathematics. First formalized by Pythagoras of Samos around 570-495 BCE — though known to Babylonian and Indian mathematicians centuries earlier — the theorem defines a fixed relationship between the three sides of every right triangle. A dedicated Pythagorean theorem calculator applies this relationship instantly, removing the manual arithmetic and letting students, teachers, and professionals focus on understanding the geometry.
What the Pythagorean Theorem Actually States
In any right triangle — a triangle with exactly one 90 degree interior angle — the area of the square formed on the hypotenuse equals the combined areas of the squares on the two shorter sides. Algebraically, this is written as:
This single equation has three useful rearrangements. To find the hypotenuse: c = sqrt(a2 + b2). To find a missing leg when the hypotenuse is known: a = sqrt(c2 – b2) or b = sqrt(c2 – a2). The calculator handles all three cases — you simply enter any two values and leave the target blank.
How to Solve for the Hypotenuse Step by Step
Suppose the two legs of a right triangle are 9 cm and 40 cm. Here is the calculation the step-by-step geometry calculator performs behind the scenes:
- Step 1: Identify the given values — a = 9, b = 40.
- Step 2: Square each leg — a2 = 81, b2 = 1600.
- Step 3: Add the squares — 81 + 1600 = 1681.
- Step 4: Take the square root — c = sqrt(1681) = 41.
- Step 5: Verify — 92 + 402 = 81 + 1600 = 1681 = 412.
Notice that 9, 40, and 41 are all whole numbers, making this a Pythagorean triple — a special class of right triangle where every side has an integer length. The calculator flags these automatically.
Finding a Missing Leg from the Hypotenuse
If you know the hypotenuse and one leg, rearrange the theorem. With c = 25 and b = 24: a = sqrt(252 – 242) = sqrt(625 – 576) = sqrt(49) = 7. The triple 7-24-25 is one of the most common in engineering applications and standardized tests.
What Are Pythagorean Triples?
A Pythagorean triple is a set of three positive integers (a, b, c) satisfying a2 + b2 = c2. The smallest and most famous is (3, 4, 5) — the 3-4-5 triangle used by carpenters to confirm a perfect right angle. Every multiple of a Pythagorean triple is also a triple: (6, 8, 10), (9, 12, 15), and so on. The calculator recognizes primitive triples — those with no common factor — as well as their multiples.
Common primitive Pythagorean triples include (3,4,5), (5,12,13), (8,15,17), (7,24,25), (20,21,29), and (9,40,41). Memorizing a few of these lets you solve many geometry problems without any computation at all.
Beyond the Hypotenuse: Angles, Area, and Perimeter
Once all three sides are known, the Pythagorean theorem calculator derives additional properties automatically:
- Angle alpha (at vertex C, opposite side a): alpha = arctan(a / b)
- Angle beta (at vertex B, opposite side b): beta = arctan(b / a)
- Area: A = (a x b) / 2 — the base-times-height formula for right triangles, where the two legs serve as base and height.
- Perimeter: P = a + b + c — the sum of all three sides.
Real-World Applications of the Pythagorean Theorem
The theorem is not a classroom abstraction — it appears constantly in practical work:
- Construction: Builders use the 3-4-5 rule to verify square corners on foundations and room layouts. A 3 m, 4 m, 5 m measurement confirms a 90 degree angle without a level.
- Screen diagonals: A 27-inch display with a 16:9 aspect ratio has width approx 23.5 in and height approx 13.2 in. Verify: sqrt(23.52 + 13.22) approx 27 in.
- Navigation: If a ship travels 30 km east then 40 km north, the straight-line distance back to port is sqrt(302 + 402) = 50 km.
- Ladder safety: A 10 ft ladder leaning against a wall with the base 3 ft from the wall reaches sqrt(102 – 32) approx 9.54 ft up the wall.
- Game development: Collision detection and sprite movement rely on Euclidean distance — the same formula, applied pixel by pixel.
Special Right Triangles: 45-45-90 and 30-60-90
Two families of right triangles appear so often in trigonometry and architecture that their side ratios are worth memorizing. The 45-45-90 triangle has legs in ratio 1:1 and hypotenuse 1:sqrt(2) approx 1:1.414. So if each leg is 5 cm, the hypotenuse is 5*sqrt(2) approx 7.07 cm. The 30-60-90 triangle has sides in ratio 1:sqrt(3):2. If the shortest leg (opposite 30 degrees) is 4 cm, the longer leg is 4*sqrt(3) approx 6.93 cm and the hypotenuse is 8 cm.
These ratios are derivable directly from the Pythagorean theorem, and the calculator confirms them exactly when you enter the appropriate inputs.
How Is This Calculator Different from ChatGPT or Wolfram Alpha?
General-purpose AI tools generate text by predicting probable word sequences. For simple cases they often produce correct numbers, but they can and do hallucinate intermediate steps, fabricate theorem names, or silently drop a square root. Wolfram Alpha is highly accurate but returns a bare numeric answer in a proprietary format, with no structured step breakdown that a student can learn from.
This Pythagorean theorem calculator uses deterministic arithmetic — not probabilistic text generation. Every step is computed, verified against a2 + b2 = c2, and structured in a proof format that matches what teachers expect. The output is a learning tool, not just a lookup table.
Frequently Asked Questions
Need the full geometry toolkit?
Triangle proofs, circle theorems, 3D volumes, and coordinate geometry — all with step-by-step AI explanations.