ZU CALCULATOR
Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required.
Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required.
Home / Math & General / Pythagorean Theorem Calculator
Math & General

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.

Developed and maintained by Muhammad Zakria • Verified Formula & Worked Examples • Editorial Policy • Disclaimer

Pythagorean Theorem Calculator

Enter values Calculate
Result

|

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.

Frequently asked questions

How do I find a missing leg (a) if I already know the hypotenuse (c) and the other leg (b)?
Rearrange a² + b² = c² by subtracting b² from both sides: a = √(c² − b²). You can evaluate √(c^2 - b^2) directly in our Scientific Calculator.
Can the Pythagorean Theorem be used on non-right (acute or obtuse) triangles?
No. The equation a² + b² = c² holds if and only if the angle between legs a and b is exactly 90°. For triangles without a 90° angle, use our Triangle Calculator, which applies the generalized Law of Cosines: c² = a² + b² − 2ab·cos(C).
How do I calculate the diagonal of a rectangle, square, or TV screen?
A rectangle’s width and height meet at a 90° corner, forming two congruent right triangles split by the diagonal. Enter the rectangle’s width as Leg a and height as Leg b; the resulting Hypotenuse c is the exact corner-to-corner diagonal.
Why is the hypotenuse always longer than either leg?
Because a² and b² are both positive numbers for any real triangle, their sum c² = a² + b² is strictly greater than a² alone and b² alone—meaning c = √(a² + b²) is always longer than both a and b (and shorter than a + b).
Developed and maintained by Muhammad Zakria. Calculations are informational estimates based on standard formulas. Creator Profile • Editorial Policy • Disclaimer • Report an Issue