Pythagorean Theorem Calculator
Calculate the hypotenuse c = √(a² + b²) of any right-angled triangle, plus the sum of squares (a² + b²), right-triangle area, perimeter, and both acute angles.
Pythagorean Theorem Calculator
Enter values Calculate|
How the Pythagorean Theorem Solves Right-Angled Triangles
In Euclidean geometry, the Pythagorean Theorem states that in any right-angled triangle (a triangle containing a $90^\circ$ angle), the square of the length of the hypotenuse ($c$)—the longest side opposite the right angle—is equal to the sum of the squares of the two perpendicular legs ($a$ and $b$):
$$a^2 + b^2 = c^2 \implies c = \sqrt{a^2 + b^2}$$
In addition to solving for the hypotenuse $c$, the Pythagorean Theorem Calculator computes the intermediate sum of squares ($a^2 + b^2$), the right-triangle surface area, total perimeter, and both acute interior angles ($\angle A$ and $\angle B$):
$$\text{Area} = \frac{1}{2}ab, \qquad \text{Perimeter} = a + b + c, \qquad \angle A = \arctan\!\left(\frac{a}{b}\right), \qquad \angle B = 90^\circ - \angle A$$
Worked Example: Leg $a = 3$, Leg $b = 4$
- Sum of Squares ($a^2 + b^2$): $3^2 + 4^2 = 9 + 16 = \mathbf{25}$.
- Hypotenuse ($c$): $\sqrt{25} = \mathbf{5\text{ units}}$.
- Right-Triangle Area: $\frac{1}{2} \times 3 \times 4 = \mathbf{6\text{ units}^2}$ (Perimeter $= 3 + 4 + 5 = \mathbf{12\text{ units}}$).
- Acute Angles: $\angle A = \mathbf{36.87^\circ}$ and $\angle B = \mathbf{53.13^\circ}$.
Common Pythagorean Triples & Construction Layout Applications
A Pythagorean triple is a set of three positive integers $(a, b, c)$ that satisfy $a^2 + b^2 = c^2$ with zero decimal remainder:
- Primitive Triples: $(3, 4, 5)$, $(5, 12, 13)$, $(8, 15, 17)$, $(7, 24, 25)$, $(20, 21, 29)$, and $(9, 40, 41)$.
- The Carpenter’s 3–4–5 Squaring Rule: Contractors square foundation corners, deck ledgers, and floor tile lines by measuring $3\text{ ft}$ along one wall and $4\text{ ft}$ along the perpendicular wall (or $6\text{ ft}$ and $8\text{ ft}$); when the diagonal distance between the marks measures exactly $5\text{ ft}$ (or $10\text{ ft}$), the corner is a true $90.0^\circ$ right angle. See also our Stair Calculator, Roofing Calculator, and Triangle Calculator.
Using the 3-4-5 Pythagorean Rule to Square Framing and Foundations
Carpenters, masons, and landscape contractors use the Pythagorean Theorem (a² + b² = c²) every day on job sites without a transit level by applying the classic 3-4-5 right triangle integer triple (or its multiples: 6-8-10, 9-12-15, and 12-16-20). To verify that two foundation batter boards or deck rim joists meet at a true 90° corner, measure 3 feet along one wall from the corner, measure 4 feet along the perpendicular wall, and pull a tape measure diagonally between the two marks. If the diagonal hypotenuse reads exactly 5 feet (3² + 4² = 9 + 16 = 25 = 5²), the corner is perfectly square. Use this alongside our Roofing Calculator for sloped rafter lengths and our Stair Stringer Calculator.