Guide

THE TOOLBOX / GEOMETRY & FRAMING MATH

Pythagorean Theorem Calculator —
Right Triangle & 3-4-5 Square Solver.

Calculate hypotenuse c, leg a, or leg b instantly with exact simplified radicals, step-by-step algebra, a live scaled triangle diagram, acute angles, and a 3-4-5 framing square check.

Quick Examples:
a = 3b = 4c = 5β 53.1°α 36.9°
Hypotenuse cExact Pythagorean Triple
5 ftExact: 5 ft
Area
6 ft²
Perimeter
12 ft
Altitude (h)
2.4 ft
Angle α (opp a)
36.87°
Angle β (opp b)
53.13°
Slope (Rise/Run)
75%
Step-by-Step Solution
  1. Start with the Pythagorean theorem: a² + b² = c²
  2. Substitute legs: c = √(3² + 4²)
  3. Square and add: c = √(9 + 16) = √25
  4. Simplify: c = 5 ≈ 5 ft

FORMULAS & WORKED EXAMPLES

Pythagorean theorem formulas, triples, and carpentry framing.

1. Solving for the Hypotenuse (c)

Given legs a = 6 and b = 8, compute c = √(6² + 8²) = √(36 + 64) = √100 = 10. The hypotenuse is always opposite the 90° right angle.

2. Solving for a Missing Leg (a or b)

Given leg b = 7 and hypotenuse c = 25, compute a = √(25² − 7²) = √(625 − 49) = √576 = 24. Always subtract the leg squared from the hypotenuse squared.

3. Checking 90° Corners on Site (3-4-5 Rule)

Switch to the 3-4-5 Square Check tab, enter your two wall lengths (for example 12 ft and 16 ft), and type your tape-measure diagonal. The calculator tells you whether to push or pull the corner to hit a true 90°.

Common Pythagorean Triples Reference Table

Triple (a, b, c)TypeArea (½ab)Practical Framing / Math Use
3, 4, 5Primitive6Standard 3-4-5 carpentry square check
6, 8, 102× Multiple of 3-4-524Room framing, patio & tile layout
5, 12, 13Primitive30Steep roof pitches & geometry exams
8, 15, 17Primitive60Diagonal bracing & trigonometry
7, 24, 25Primitive84Long-span framing & surveying
12, 16, 204× Multiple of 3-4-596Deck & foundation corner squaring

Frequently Asked Questions

What is the Pythagorean theorem formula?

For any right triangle with legs a and b and hypotenuse c (the longest side opposite the 90° angle), a² + b² = c². Therefore c = √(a² + b²), a = √(c² − b²), and b = √(c² − a²).

How do carpenters use the 3-4-5 rule to square a corner?

Measure 3 units along one wall and 4 units along the adjoining wall from the corner. When the diagonal between those two marks equals exactly 5 units, the corner is a true 90° right angle. You can scale it up to 6-8-10 ft or 9-12-15 ft for decks and foundations.

Does this calculator show simplified radical answers as well as decimals?

Yes. Whenever the radicand is an integer, the calculator simplifies the square root into exact radical form (for example, √50 simplifies to 5√2) alongside the decimal approximation.

Why do I get an error when solving for leg a or b?

In a right triangle, the hypotenuse c must always be strictly longer than either leg. If c is less than or equal to the known leg, no real right triangle can exist.

How are the acute angles α and β calculated?

Once all three sides are known, angle α (opposite leg a) equals arctan(a / b) in degrees, and angle β (opposite leg b) equals 90° − α.

What are the most common Pythagorean triples?

The smallest primitive integer triples are 3-4-5, 5-12-13, 7-24-25, 8-15-17, and 9-40-41, plus any whole-number multiple such as 6-8-10 or 12-16-20.