Home Math Right Triangle Calculator

Right Triangle Calculator

Hypotenuse, area and perimeter from the two legs of a right triangle.

Advertisement

How it works

Enter the two legs, the sides that form the right angle. The hypotenuse follows from Pythagoras, the area is half the product of the legs, and the perimeter is the sum of all three sides. Any positive lengths work, in any unit, as long as both legs share it.

Advertisement

Formula

Hypotenuse = sqrt(a ^ 2 + b ^ 2).
Area = a x b / 2.
Perimeter = a + b + hypotenuse.

Example

Example in plain words. Legs 3 and 4.

Hypotenuse: sqrt(9 + 16) = 5.

Area: 3 x 4 / 2 = 6.

Perimeter: 3 + 4 + 5 = 12.

Frequently asked questions

Does the order of the legs matter?

No. Swapping a and b changes nothing, the right angle sits between them either way.

Can I get the angles too?

They come from the same numbers: the angle facing leg a is arctan(a/b). For 3 and 4 that is 36.87 degrees and 53.13 degrees.

Advertisement

Related calculators

Percentage Calculator

Find a percent of a number, what percent one number is of another, and percent change, all at once.

Fraction Calculator

Add, subtract, multiply and divide fractions, with the answer simplified.

Scientific Calculator

Online scientific calculator with trig, logs, powers, roots, factorial and degree or radian mode.

Quadratic Formula Calculator

Solve ax² + bx + c = 0, with the discriminant and the vertex.