Pythagorean Theorem & Hypotenuse Calculator

Pythagorean Theorem & Hypotenuse Calculator

Pythagorean theorem calculator to find hypotenuse, leg a, or leg b instantly. Get exact radical simplified roots, step-by-step proofs, area, and angles.

Lbl quick presets
Lbl calculation mode

Hint fraction

Lbl quick multipliers
Lbl missing side result
Lbl exact radical
5 ft
Lbl radicand value: R = 25.00
Lbl decimal value
5.0000 ft
5' 0"
Lbl formula substitution
Lbl formula substitution: Proof step1 Proof step2: (3.00)² + (4.00)² = c² Proof step3: 9.00 + 16.00 = 25.00 Proof step4: c = √(25.00) Lbl exact radical: 5 Lbl decimal value: c = 5.0000 ft
Lbl area6.0000Unit square ft
Lbl perimeter12.0000ft
Lbl altitude to hypotenuse2.4000ft
Lbl inradius1.0000ft
Lbl circumradius2.5000ft
Lbl semi perimeter6.0000ft
Lbl triangle visualizer
a²=9.0b²=16.0c²=25.0a=3.0b=4.0c=5.0

Lbl interactive vertex note

Lbl disclaimer

Stat euclid verification
Stat valid euclidean
3.00² + 4.00² = 5.00²
Stat triple status
Stat primitive p p t
Divisor (gcd): 1
Stat aspect ratio altitude
r = 1.00 ft
h = 2.40 ft • A/P = 0.500
Technical Reference & Architecture Guide

Pythagorean Theorem & Hypotenuse Calculator Guide

Pythagorean theorem calculator to find hypotenuse, leg a, or leg b instantly. Get exact radical simplified roots, step-by-step proofs, area, and angles.

Pythagorean Theorem & Hypotenuse Calculator Guide — Client-Side In-Memory Architecture & Data Flow
Pythagorean Theorem & Hypotenuse Calculator Guide — Client-Side In-Memory Architecture & Data Flow

Key Parameters & Controls

Leg a (Base / Horizontal Run)Linear Distance (in, ft, yd, mm, cm, m)

The first flat side meeting the vertical upright at an exact 90-degree corner. In home renovations, deck framing, or shelving layout, this represents the level horizontal span (run) along the floor or ground.

Default: 3 ft
Leg b (Height / Vertical Rise)Linear Distance (in, ft, yd, mm, cm, m)

The vertical upright side perpendicular to Leg a. In staircase building, TV wall-mounting, or roof carpentry, this represents the plumb vertical rise perpendicular to the flat base.

Default: 4 ft
Hypotenuse c (Direct Diagonal Span)Linear Distance (in, ft, yd, mm, cm, m)

The longest straight-line distance spanning directly across from the 90-degree right angle. The hypotenuse must always measure longer than either individual leg (c > a and c > b), yet strictly less than their combined sum (c < a + b).

Default: 5 ft
Exact Simplified Radical RootExact Radical Surd (k√m)

The unrounded square root value expressed without decimals (such as 6√2 instead of 8.485). It factors out the largest perfect square divisor so students and precision woodworkers preserve absolute accuracy.

Default: 5 (Exact Integer)
Acute Pitch Angles (Alpha α & Beta β)Angular Measure (Degrees & Radians)

The two sharp interior angles that always add up to exactly 90 degrees (α + β = 90°). Crucial for setting miter saw bevel cuts, calculating roof rafter pitch, and verifying wheelchair ramp accessibility slopes.

Default: α = 36.87°, β = 53.13°
3D Space Diagonal (Box Clearance)Three-Dimensional Span (Length, Width, Height)

The direct corner-to-opposite-corner distance passing through an enclosed room, shipping box, or cargo trailer using d = √(x² + y² + z²). Dictates whether long rigid furniture, lumber, or display screens will fit inside.

Default: 46.86 in

Pro Tips & Best Practices

Scale the 3-4-5 Rule to Larger Multiples for Foundation Squaring

When squaring large deck ledgers or building foundations, measuring just 3 feet by 4 feet leaves room for massive layout errors, because a tiny 1/16-inch tape slippage over 5 feet compounds into a half-inch skew over 40 feet. Always scale the triple up to match your project span: use 9-12-15 ft for sheds, 15-20-25 ft for garages, and 24-32-40 ft for major home foundations.

Deduct Ridge Board Thickness and Add Overhang When Cutting Rafters

The raw hypotenuse calculated from a roof's horizontal run and vertical rise gives the theoretical centerline length from the wall plate to the center of the ridge. Before cutting timber, carpenters must subtract half the ridge board's actual thickness (typically 3/4 inch for a nominal 2x lumber ridge beam) and separately add the eaves tail overhang to determine the final timber cut length.

Use Difference of Squares When Solving a Missing Leg with Close Values

When calculating a missing leg where the hypotenuse and the known leg are nearly identical in length (such as a 100-foot guy wire anchored 99.8 feet away from a mast), directly calculating c² - b² introduces severe rounding inaccuracy. Factoring the problem as a = √((c - b)(c + b)) preserves exact mathematical precision and eliminates calculation drift.

Common Gotchas & Troubleshooting

⚠️Square Root of Negative Value Error When Solving for a Missing Leg

In any true right-angled triangle, the hypotenuse c must strictly be the longest side. If the known leg you enter is greater than or equal to the hypotenuse (a ≥ c), the formula c² - a² yields zero or a negative value, whose real square root cannot exist. Confirm that your diagonal hypotenuse is strictly longer than the side leg before calculating.

⚠️Opposite Diagonals Do Not Match When Squaring a Deck or Wall Frame

If opposing wall lengths are identical but the two corner-to-corner diagonal tape readings differ (d1 ≠ d2), your framing forms a slanted parallelogram rather than a true rectangle. Push or pull the opposite diagonal corners until both diagonal tape readings match each other and equal the exact calculated hypotenuse.

⚠️Decimal Output Does Not Match School Textbook Radical Answers

Standard handheld calculators return approximate rounded decimals like 8.485, whereas academic math curriculum demands exact simplified radicals like 6√2. Isolate the largest perfect square factor of your total sum (for 72, the largest perfect square factor is 36, giving √36 × √2 = 6√2) to write the exact radical answer.

⚠️Calculated Hypotenuse Length Fails on Non-Right (Oblique) Triangles

Applying a² + b² = c² directly to acute or obtuse triangles produces incorrect side lengths because it omits the corner angle adjustment. For triangles without an exact 90-degree corner, use the generalized Law of Cosines: c² = a² + b² - 2ab·cos(C). When angle C is under 90°, c² is smaller than a² + b²; when over 90°, c² is larger.

Frequently Asked Questions

How do you calculate the hypotenuse of a right triangle?▼

To calculate the hypotenuse, square the lengths of both known legs (a and b), add those two squares together, and take the square root of the sum: c = √(a² + b²). For example, if leg a = 6 inches and leg b = 8 inches, calculate 6² + 8² = 36 + 64 = 100, and √100 = 10 inches. The hypotenuse is exactly 10 inches.

How do you find a missing leg of a right triangle?▼

To find a missing leg when given the hypotenuse (c) and one known leg (b), square the hypotenuse, subtract the square of the known leg, and take the square root of the difference: a = √(c² - b²). For instance, if hypotenuse c = 13 feet and leg b = 12 feet, calculate 13² - 12² = 169 - 144 = 25, and √25 = 5 feet. The missing leg is exactly 5 feet.

What is the 3-4-5 rule for squaring a corner?▼

The 3-4-5 rule is a practical construction technique used to guarantee a perfect 90-degree corner: measure 3 units along one side of the corner and mark it, measure 4 units along the adjacent side and mark it, then measure the straight diagonal distance between the two marks. If the diagonal measures exactly 5 units, the corner is square because 3² + 4² = 9 + 16 = 25 = 5². Larger multiples such as 6-8-10, 9-12-15, and 12-16-20 work with identical precision.

What is the difference between a right triangle and an oblique triangle?▼

A right triangle contains exactly one 90-degree angle where the Pythagorean theorem (a² + b² = c²) applies directly, whereas an oblique triangle contains no 90-degree angles (being either acute with all angles under 90° or obtuse with one angle exceeding 90°). Calculating missing sides on oblique triangles requires the Law of Cosines (c² = a² + b² - 2ab·cos(C)) to account for the non-square corner.

How do you simplify square roots into exact radical form?▼

To simplify a square root into exact radical form (k√m), factor the number under the radical into its largest perfect square factor, extract that square root outside the radical symbol, and leave the remaining non-square factor inside. For example, to simplify √72, break 72 into 36 × 2; take the square root of 36 to get 6 outside, leaving 2 inside for an exact radical answer of 6√2 instead of the rounded decimal 8.485.

What ladder length is needed for a specific wall height?▼

To find the safe ladder length, use the OSHA 4-to-1 ladder placement rule: position the base 1 foot away from the wall for every 4 feet of vertical ladder rise. For a 16-foot roofline, place the base 4 feet out, creating legs of a = 4 ft and b = 16 ft; applying c = √(4² + 16²) = √(16 + 256) = √272 ≈ 16.5 feet of working diagonal span (add 3 extra feet extending above the roofline for safe stepping, requiring an extension ladder rated at 20 feet or longer).

Related Tools & Utilities

All Tools →