Right Triangle Calculator

Solve a right triangle from two sides, getting the third side, both acute angles, area and the altitude to the hypotenuse.

Hypotenuse 5
c = √(a² + b²) · A = ½ab · altitude = ab/c
Angle opposite a 36.8699 °
c = √(a² + b²) · A = ½ab · altitude = ab/c
Angle opposite b 53.1301 °
Area 6
c = √(a² + b²) · A = ½ab · altitude = ab/c
Perimeter 12
Altitude to the hypotenuse 2.4
Inscribed circle radius 1

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Right Triangle Calculator does

This right triangle calculator will solve a right triangle from two sides, getting the third side, both acute angles, area and the altitude to the hypotenuse. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for finding a diagonal or brace length. Next to this one sits our law of sines calculator.

How to use it

  1. Identify the two legs — the sides that meet at the right angle.
  2. Enter them in either order; the calculation is symmetric.
  3. Read the hypotenuse, which is always the longest side.
  4. Both acute angles, the area and the altitude to the hypotenuse follow.

How it works

The altitude to the hypotenuse divides the triangle into two smaller triangles, each similar to the original. That similarity is the source of the geometric mean relations: the altitude is the geometric mean of the two hypotenuse segments it creates.

The inradius of a right triangle has an unusually tidy form: (a + b − c) / 2. For the 3-4-5 triangle it is exactly 1.

The 3-4-5 triangle is the smallest Pythagorean triple and has been used to set out right angles on building sites for several thousand years. Any multiple works — 6-8-10, 9-12-15 — and larger multiples give a more accurate angle over a longer run.

When to use it

  • Finding a diagonal or brace length.
  • Setting out a right angle on site using a 3-4-5 triangle.
  • Working out a roof pitch angle from rise and run.
  • Solving a trigonometry problem.

Common mistakes to avoid

  • Treating one of the given sides as the hypotenuse. The hypotenuse is always the longest side.
  • Mixing up which angle is opposite which side.
  • Using the two legs in a formula that needs the hypotenuse.

Frequently asked questions

How do I find the hypotenuse?

Square both legs, add them, take the square root. Legs of 3 and 4 give a hypotenuse of 5.

What is a 3-4-5 triangle used for?

Setting out right angles. Measure 3 units along one line and 4 along the other; if the diagonal between them is exactly 5, the angle is a true right angle.

How do I find an angle from two sides?

Use the inverse tangent of opposite over adjacent. For legs 3 and 4, the angle opposite the 3 is arctan(3/4) = 36.87 degrees.

Related tools

See all math & statistics calculators →