CalcGallery

Right Triangle Calculator

Solve a right triangle from two legs, a leg and the hypotenuse, or one side and an angle: every side, both angles and the area.

Built by AbhiLast reviewed September 23, 2026

Units
Leg bHypotenuse cLeg aAngle A

Your numbers

Result

Area: 6 ft²

A measurement, not a material estimate. Nothing is added for waste.

Hypotenuse c
5 ft (60 in, 1.524 m)
Leg a
3 ft (36 in, 0.9144 m)
Leg b
4 ft (48 in, 1.2192 m)
Angle A
36.8699 °
Angle B
53.1301 °
Perimeter
12 ft (144 in, 3.6576 m)
Altitude to the hypotenuse
2.4 ft (28.8 in, 0.7315 m)
Inscribed circle radius
1 ft (12 in, 0.3048 m)
Report a problem with this calculator
Your entries are kept on this device only.

Results follow the mathematical operation and values shown. Check that you selected the intended operation, convention and dataset type before relying on the result. Read the full disclaimer

How to use the Right Triangle Calculator

  1. Choose what you know. Both legs, a leg and the hypotenuse, a leg and the angle opposite it, or the hypotenuse and an angle.
  2. Enter the two values. The legs are the two sides that meet at the right angle. The hypotenuse is the long side opposite it.
  3. Read the area, then both legs, the hypotenuse, both acute angles and the other measurements below it.

What makes a right triangle easier

A right triangle has one angle of exactly 90 degrees, so only two more parts are needed to solve it. Any two sides will do, or one side and one of the other angles. The two acute angles always add up to 90 degrees, so knowing one gives the other.

The four cases

You knowThe rest
Both legs, a and bc = √(a² + b²)
A leg a and the hypotenuse cb = √(c² − a²)
A leg a and its opposite angle Ac = a ÷ sin A, b = a ÷ tan A
The hypotenuse c and an angle Aa = c × sin A, b = c × cos A

In every case the page finds both legs first and calculates everything from them, so the outputs always agree with each other.

Sine, cosine and tangent

For the acute angle A, which is opposite leg a:

sin A = opposite ÷ hypotenuse = a ÷ ccos A = adjacent ÷ hypotenuse = b ÷ ctan A = opposite ÷ adjacent   = a ÷ b

That is all trigonometry means on a right triangle: the ratios between its sides, named by the angle they belong to.

Where it turns up

Building codes set limits for stairs, ramps and roofs, and they vary from place to place. This page does the geometry only, so check your local requirements.

With your numbers

  1. c = √(a² + b²) = √(3 ft² + 4 ft²) = 5 ft
  2. A = asin(a ÷ c) = 36.8699 °, B = 90° − A = 53.1301 °
  3. Area = ½ × 3 ft × 4 ft = 6 ft²

Quick reference

A measurement, not a material estimate. Nothing is added for waste.

Common math examples, worked out with this calculator's starting values.
ExampleArea
Legs 3 and 4 ft6 ft²
Legs 5 and 12 ft30 ft²
Legs 1 and 1 m0.5 m²
Leg 6 m, hypotenuse 10 m24 m²
Leg 6 m opposite 30°31.1769 m²
Hypotenuse 10 ft at 30°21.6506 ft²
Rise 4 ft over a 12 ft run24 ft²

Common questions about the Right Triangle Calculator

Which side is the hypotenuse?
The side opposite the right angle, which is always the longest side. On a roof it is the rafter, on a ladder against a wall it is the ladder, and on a staircase it is the stringer. If the number you have for it is not longer than both other sides, one of the measurements is wrong, and the page gives no result until it is fixed.
Can I solve a right triangle from two angles?
No. Two angles fix the shape but not the size: a 30-60-90 triangle can be any size at all. You need at least one side as well, and the page offers each side with an angle.
How do I check that a corner is square?
Use the 3-4-5 rule. Measure 3 units along one wall and 4 along the other, and the diagonal between the two marks should be exactly 5. Any multiple works, such as 6, 8 and 10 feet or 0.9, 1.2 and 1.5 m. A longer diagonal means the corner is wider than 90 degrees, and a shorter one means it is tighter.
What are the altitude and the inscribed circle radius?
The altitude is the shortest distance from the right angle to the hypotenuse, ab ÷ c. The inscribed circle is the largest circle that fits inside the triangle, touching all three sides; its radius is (a + b − c) ÷ 2. For a 3-4-5 triangle they are 2.4 and exactly 1.

Report a problem with this calculator