Right Triangle Solver

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.

Enter any two sides — leave the unknown blank
b a c alpha beta 90deg
Try an example:

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.

Standard calculator
X Returns hypotenuse only
X No step-by-step working shown
X No angle, area or perimeter
X No Pythagorean triple detection
X No visual diagram
Geometry AI Solver
V Solves for any side from any two inputs
V Numbered proof with theorem citations
V Angles alpha and beta via arctan, full area + perimeter
V Labels integer solutions as Pythagorean triples
V Live interactive triangle diagram

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?

Students

Homework and exam prep

Verify answers before submission. Use the step-by-step proof to learn the method, not just copy a number.

Teachers

Demonstration and marking

Generate worked examples on-the-fly for any pair of values. The structured output mirrors expected proof format.

Professionals

Engineering and construction

Check diagonal spans, screen sizes, ramp gradients, and cable lengths fast — with exact decimal precision.

How to use the calculator

01

Enter two sides

Type any two known side lengths. Leave the unknown field empty. Works for any combination: two legs, or one leg + hypotenuse.

02

Pick your unit

Select cm, m, in, ft, or km from the dropdown. The Geometry AI Solver converts area output automatically.

03

Click Calculate

Instant results: missing side, angles alpha and beta, area, perimeter, and triple status — all from a single click.

04

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:

a2 + b2 = c2, where c is the hypotenuse (the side opposite the right angle) and a, b are the two legs.

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.
Pro tip: Note that alpha + beta always equals 90 degrees. If your computed angles don’t sum to 90 degrees, something is wrong. This identity is a built-in self-check on any right-triangle calculation.

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

The Pythagorean theorem states that in any right triangle, a2 + b2 = c2, where c is the hypotenuse (the side opposite the 90 degree angle) and a and b are the two shorter legs. Rearranged: c = sqrt(a2 + b2), a = sqrt(c2 – b2), b = sqrt(c2 – a2).
Enter the lengths of legs a and b into the calculator, leaving the hypotenuse field (c) empty. Click Calculate — the tool applies c = sqrt(a2 + b2) and returns the hypotenuse along with full step-by-step working, area, and angles.
Yes. Enter any two of the three sides. If you know c and one leg, the calculator rearranges the theorem to a = sqrt(c2 – b2) or b = sqrt(c2 – a2) and solves for the unknown side automatically.
A Pythagorean triple is a set of three positive whole numbers (a, b, c) that satisfy a2 + b2 = c2. The most famous is 3-4-5. Others include 5-12-13, 8-15-17, and 7-24-25. The calculator automatically detects and labels Pythagorean triples in its output.
Yes. Once all three sides are known, the calculator computes angle alpha = arctan(a / b) and angle beta = arctan(b / a). Together with the fixed 90 degree right angle, all three interior angles are displayed and sum to 180 degrees.
The calculator works with centimeters, meters, millimeters, inches, feet, yards, and kilometers. Area output is automatically labeled in squared units (e.g., cm2 or ft2). Switch units from the dropdown before calculating.
Yes. The calculator uses 64-bit floating-point arithmetic and rounds display values to 6 significant figures. For engineering-scale dimensions (km) or sub-millimeter values, precision remains within standard tolerances.
A scientific calculator gives a number. This tool gives the number plus a structured step-by-step proof, angle calculations, area, perimeter, and a visual diagram — in a format you can read and learn from, not just copy into your homework.

Need the full geometry toolkit?

Triangle proofs, circle theorems, 3D volumes, and coordinate geometry — all with step-by-step AI explanations.