Pythagoras Triangle Calculator

Pythagoras Triangle Calculator

Growing AI Skill PRO
Right triangle
Right triangleRight trianglea = 3b = 4c = 5CBAA = 6
Worked stepsStep 2 of 2

Hypotenuse c=a2+b2c = \sqrt{a^2 + b^2}, area A=12abA = \tfrac{1}{2}ab

Download figure
Figure data
Leg a3
Leg b4
Hypotenuse5
Area6
Perimeter12
Right triangle in the Library: formulas and every calculator

Enter Calculation

Formula

c=Side a2+Side b2c = \sqrt{\text{Side a}^{2} + \text{Side b}^{2}}

Example

c=32+42=5c = \sqrt{3^{2} + 4^{2}} = 5
Show calculation steps (2)
  1. Triangle Area

    Area=12·Side a·Side b\text{Area} = \tfrac{1}{2} \cdot \text{Side a} \cdot \text{Side b}

    area of the right triangle from its two legs

  2. Triangle Perimeter

    Perimeter=Side a+Side b+Side a2+Side b2\text{Perimeter} = \text{Side a} + \text{Side b} + \sqrt{\text{Side a}^{2} + \text{Side b}^{2}}

    perimeter = a + b + hypotenuse c

Usage stats

Advertisement

Results

Hypotenuse (c)
5
Area 6
Perimeter 12

Report an error on this page

What is the Pythagoras Triangle Calculator?

This calculator applies the Pythagorean theorem to a right-angled triangle. Given the lengths of the two shorter sides (the legs, a and b), it instantly computes the hypotenuse c — the side opposite the right angle. It also reports the triangle's area and perimeter. The tool is universal: it works for any unit (cm, m, inches) as long as both sides use the same unit.

How to use it

Enter the length of side a and side b, then read the result. The two inputs are the legs adjacent to the 90° corner. The output hypotenuse is always the longest side of the triangle.

Squares drawn on each side of a right triangle illustrating a squared plus b squared equals c squared
Geometric meaning: the square on the hypotenuse equals the sum of the squares on the two legs.

The formula explained

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: \(a^2 + b^2 = c^2\). Solving for the hypotenuse gives \(c = \sqrt{a^2 + b^2}\). The area uses \(A = \tfrac{1}{2} \cdot a \cdot b\) because the two legs are perpendicular, and the perimeter is simply \(a + b + c\).

Advertisement

Worked example

For a triangle with legs a = 3 and b = 4:

$$c = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5$$

This is the classic 3-4-5 right triangle. Its area is \(\tfrac{1}{2} \times 3 \times 4 = 6\) and its perimeter is \(3 + 4 + 5 = 12\).

Right triangle with legs a and b and hypotenuse c, showing the right angle
A right triangle with legs a and b and hypotenuse c, related by \(c = \sqrt{a^2 + b^2}\).

FAQ

Which sides do I enter? Enter the two legs that meet at the right angle. The calculator finds the hypotenuse for you.

Does it work in feet or inches? Yes — any unit works, just keep both inputs in the same unit. The result will be in that same unit.

What if I know the hypotenuse and one leg? This tool solves for the hypotenuse. To find a missing leg instead, use the rearranged formula \(a = \sqrt{c^2 - b^2}\).

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators