Pythagorean theorem calculator

Scientific Calculators

Instantly find the hypotenuse, a missing leg, or verify a perfect square corner with exact radicals and step-by-step proofs.

Mode

abc

How to Use the Pythagorean Theorem Calculator (Step-by-Step)

Solve right triangles, calculate hypotenuse or missing legs, simplify radicals, and verify 90° construction corners.

01

Select Math Student or Construction Framing Mode

Choose 'Math Student' for classic geometric notation (leg a, leg b, hypotenuse c) or 'Construction Framing' for carpentry and building layout (Wall 1, Wall 2, Diagonal).

02

Input Any Two Known Side Lengths

Type known measurements into any two fields (both legs, or one leg and the hypotenuse). The smart solver automatically locks and solves for the third side.

03

Instant Bidirectional Auto-Calculation

The engine solves c = √(a² + b²) for the hypotenuse, or a = √(c² - b²) for a missing leg immediately as you type, enforcing the geometric condition that c > a and c > b.

04

Inspect Exact Radical Form & Decimals

Review both high-precision decimal values and simplified exact radical notation (e.g., √20 simplifies automatically to 2√5) without manual factoring.

05

Verify Pythagorean Triples & Right Angles

Check the automatic badge confirming whether your sides form an integer Pythagorean Triple (e.g., 3-4-5, 5-12-13) and verify perfect 90° perpendicular alignment.

06

Copy Step-by-Step Homework Proof

Click 'Copy Homework' to copy formatted step-by-step algebraic substitutions, square root derivations, and exact values directly to your clipboard for school or reports.

Frequently Asked Questions (FAQ)

Right triangle geometry, formulas, integer triples, construction square checks, and radical simplification.

QWhat is the Pythagorean Theorem and what is its algebraic formula?

The Pythagorean Theorem states that in any right-angled triangle, the square of the length of the hypotenuse (the side opposite the 90° right angle) equals the sum of the squares of the lengths of the two legs: a² + b² = c². Consequently, c = √(a² + b²).

QDoes the Pythagorean Theorem work for acute or obtuse triangles?

No. The theorem applies strictly to right triangles containing an exact 90° angle. For non-right (oblique) triangles, you must use the Law of Cosines: c² = a² + b² - 2ab·cos(C), which reduces to the Pythagorean Theorem when angle C = 90° because cos(90°) = 0.

QHow do you calculate a missing leg when given the hypotenuse and one leg?

Rearrange the Pythagorean equation: a² = c² - b², which yields a = √(c² - b²), or b = √(c² - a²). Note that the hypotenuse c must always be strictly greater than either leg (c > a and c > b); otherwise, no real triangle can be formed.

QWhat is a Pythagorean Triple and what are the most common examples?

A Pythagorean Triple consists of three positive integers (a, b, c) that satisfy a² + b² = c². The most famous primitive triple is (3, 4, 5) because 3² + 4² = 9 + 16 = 25 = 5². Other common triples include (5, 12, 13), (8, 15, 17), (7, 24, 25), and (9, 40, 41), as well as any scalar multiples such as (6, 8, 10).

QHow is the 3-4-5 rule used in construction and carpentry to square a corner?

Builders verify 90° corners using the 3-4-5 ratio. Measure 3 units along one wall/string and 4 units along the adjacent wall from the corner. If the diagonal distance between the two marks measures exactly 5 units (or 6-8-10, 9-12-15), the corner is confirmed to be a perfect 90° right angle.

QWhat is the difference between an exact radical and a decimal approximation?

An exact radical expresses roots in simplest mathematical terms without rounding errors (for example, c = √50 simplifies to 5√2). A decimal approximation rounds this value (e.g., 7.0711). Exact radicals are preferred in pure mathematics, while decimals are standard in engineering and trade.

QHow is the Pythagorean Theorem related to the Euclidean Distance Formula?

The Cartesian distance formula between two points (x₁, y₁) and (x₂, y₂) is d = √[(x₂ - x₁)² + (y₂ - y₁)²]. This formula is a direct application of the Pythagorean Theorem, where the horizontal change Δx and vertical change Δy serve as legs, and distance d is the hypotenuse.

QCan the hypotenuse ever be shorter than or equal to a leg in a real triangle?

No. In Euclidean geometry, the hypotenuse is opposite the largest angle (90°) in a right triangle, so it must always be the longest side. If c ≤ a or c ≤ b, the radical √(c² - a²) results in zero or an imaginary number, meaning no valid geometric triangle exists.

a2 + b2 = c2
Solving for Hypotenuse: c = √ a2 + b2
  • c (Hypotenuse): The longest side (opposite the right angle).
  • a, b (Legs): The two shorter sides (a and b).

What is Pythagorean theorem calculator?

Instantly find the hypotenuse, a missing leg, or verify a perfect square corner with exact radicals and step-by-step proofs. The Advanced Pythagorean Theorem Calculator is a dual-purpose geometry engine. Using the fundamental equation a2 + b2 = c2, it dynamically solves right-angled triangles. By switching the Mode toggle on the interface, the tool adapts to your needs: the Math Student profile delivers rigorous, printable academic breakdowns, while the Construction / DIY profile focuses on fast, practical measurements in decimal formats.
Practical Calculation Example (Roofing & Carpentry)
Consider a carpenter in Ohio framing a roof truss. They know the horizontal run (Leg A) is 12 feet and the vertical rise (Leg B) is 9 feet, but they need the exact length of the sloping rafter. By entering these values, the engine instantly calculates Hypotenuse C as exactly 15 feet. To ensure the corner is perfectly square (90 degrees), the carpenter relies on this strict 3-4-5 ratio. The student or apprentice can also review the Step-by-Step Proof section to see how 144 + 81 = 225, and click Copy Homework to paste the mathematical breakdown into their digital notes.
Calculator Features
The interface aligns geometric theory with manual practice:
Interface ElementMathematical FunctionPractical Application
Leg A / Leg BThe two sides forming the 90° angleDefines the horizontal run and vertical rise of your project.
Hypotenuse CThe longest diagonal line (√(a2 + b2))The rafter, bracing, or shortest distance between two points.
ClearVariable resetInstantly clears the form to measure a new corner.
Step-by-step proofAlgebraic expansionDisplays the flawless logic behind the calculation.

History and Origin

While attributed to the Greek philosopher Pythagoras, this geometric relationship was actually known to the Babylonians over a thousand years earlier, as evidenced by the famous Plimpton 322 clay tablet. In American history, geometry and the Pythagorean theorem were an absolute obsession for Founding Father Thomas Jefferson. As a self-taught architect, Jefferson relied heavily on Pythagorean calculations to design the iconic octagonal dome of Monticello and the mathematically precise classical layouts of the University of Virginia, proving the theorem's timeless utility in structural design.