Skip to content
CalcTide logo
Education & Math

Right Triangle Calculator

A right triangle with legs of 3 and 4 has a hypotenuse of 5. This right triangle calculator solves a triangle from its two legs. Enter the two shorter sides and it returns the hypotenuse using the Pythagorean theorem, plus the area, the perimeter, and both acute angles in degrees. It is built for right triangles, where one angle is exactly 90 degrees.

Education & MathBy

Quick answer

A right triangle has one 90-degree angle, and the side opposite it is the hypotenuse.

What this tells you

  • A right triangle has one 90-degree angle, and the side opposite it is the hypotenuse.
  • The two legs are the sides that form the right angle.
  • The hypotenuse comes from the Pythagorean theorem, a squared plus b squared equals c squared.
  • The two acute angles always add up to 90 degrees.

How to Use

  1. 1Enter the length of the first leg (side a).
  2. 2Enter the length of the second leg (side b) in the same units.
  3. 3Click Calculate to get the hypotenuse, area, perimeter, and both acute angles.

How It Works

Formula

c = sqrt(a^2 + b^2), area = (a x b) / 2, perimeter = a + b + c

The hypotenuse uses the Pythagorean theorem: square both legs, add them, and take the square root. The area of a right triangle is half the product of the two legs. The acute angles come from the inverse tangent of the leg ratio. For legs of 3 and 4, the hypotenuse is 5, the area is 6, and the angles are about 36.87 and 53.13 degrees.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

The 3-4-5 right triangle

Leg A3
Leg B4
ResultHypotenuse 5, area 6, perimeter 12

Square the legs (9 and 16), add to get 25, and take the square root for a hypotenuse of 5. The area is 3 x 4 / 2 = 6, and the angles are about 36.87 and 53.13 degrees.

Equal legs of 1 (a 45-45-90 triangle)

Leg A1
Leg B1
ResultHypotenuse 1.4142, both angles 45 degrees

When both legs are equal, the hypotenuse is the square root of 2, about 1.4142, and the two acute angles are each 45 degrees.

Common Right Triangles

Leg pairs and the resulting hypotenuse, area, and angles.

Legs (a, b)HypotenuseAreaAcute Angles
3, 45636.87 and 53.13
6, 8102436.87 and 53.13
5, 12133022.62 and 67.38
1, 11.41420.545 and 45

Common mistakes

  • Using the hypotenuse as one of the legs. Enter the two shorter sides that form the right angle, not the long side opposite it.
  • Forgetting to square the legs before adding. The Pythagorean theorem adds the squares of the legs, not the legs themselves.
  • Mixing units. Both legs must be in the same unit, so convert before calculating if one is in feet and one is in inches.

Frequently Asked Questions

Use the Pythagorean theorem: square both legs, add them, and take the square root. For legs of 3 and 4, the hypotenuse is the square root of 25, which is 5.
The area is half the product of the two legs, or (a x b) / 2. For legs of 3 and 4, the area is 3 x 4 / 2 = 6 square units.
The hypotenuse of a 3-4-5 right triangle is 5. It is the most common Pythagorean triple, where 3 squared plus 4 squared equals 5 squared.
Use the inverse tangent of the leg ratio. The two acute angles always add up to 90 degrees, so for legs of 3 and 4 they are about 36.87 and 53.13 degrees.
The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs, written as a squared plus b squared equals c squared.
No, this tool solves right triangles only, where one angle is exactly 90 degrees. General triangles need the law of sines or the law of cosines.
It estimates right triangle calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Education & Math