Skip to content

Right Triangle Calculator

Solve a right triangle from two values: all sides, both angles, area, perimeter, altitude and radii.

Your details

Unit system

Results update as you type

Hypotenuse c

5 in

Angle α
36.8699 °
Angle β
53.1301 °
Area
6 in²
Perimeter
12 in
Altitude to the hypotenuse h
2.4 in
Inradius r (inscribed circle)
1 in
Circumradius R (circumscribed circle)
2.5 in

Step-by-step solution
  1. c = √(a² + b²) = √(3² + 4²) = 5 in
  2. tan α = a / b = 3 / 4 = 0.75 ⇒ α = arctan(0.75) = 36.8699°
  3. β = 90° − α = 90° − 36.8699° = 53.1301°
  4. A = a × b / 2 = 3 × 4 / 2 = 6 in²
  5. h = a × b / c = 2.4 in ; r = (a + b − c) / 2 = 1 in ; R = c / 2 = 2.5 in

A right triangle is completely determined by two independent values — two sides, or one side and one acute angle. Give this calculator any such pair and it returns everything else: the three sides, both acute angles, the area, the perimeter, the altitude to the hypotenuse, and the radii of the inscribed and circumscribed circles.

Pick the combination you know from the list (two legs, a leg and the hypotenuse, the hypotenuse and an angle, or a leg and an angle). The labels follow the usual convention: legs aa and bb, hypotenuse cc, angle α\alpha opposite aa and angle β\beta opposite bb; the right angle is at the third vertex. Every length has a unit switcher and the steps show the sine, cosine or tangent relation that was used.

It is handy for trigonometry homework, for working out a ramp or roof slope, the height reached by a ladder at a given angle, or the size of a triangular plot. To find only a missing side, the Pythagorean theorem calculator gives the exact radical form; for any non-right triangle use the triangle area calculator.

How to use this calculator

  1. Choose which values you know in Known values.
  2. Enter the lengths (with their units) and, where asked, the acute angle α\alpha in degrees.
  3. Read the missing side first, then the angles, area, perimeter, altitude and radii.
  4. Open the steps to see which trigonometric ratio was applied and the arithmetic behind each result.

Remember that aa is the leg opposite α\alpha and bb is the leg next to it. If your angle sits at the other acute corner, swap the names or enter 90°−α90° - \alpha.

The formula

The trigonometric ratios of an acute angle in a right triangle — remembered as SOH-CAH-TOA — are:

sin⁡α=accos⁡α=bctan⁡α=ab\sin\alpha = \frac{a}{c} \qquad \cos\alpha = \frac{b}{c} \qquad \tan\alpha = \frac{a}{b}

The sides also satisfy Pythagoras, a2+b2=c2a^2 + b^2 = c^2, and the two acute angles add up to 90°: β=90°−α\beta = 90° - \alpha.

The other measures follow:

A=ab2P=a+b+ch=abcr=a+b−c2R=c2A = \frac{ab}{2} \qquad P = a + b + c \qquad h = \frac{ab}{c} \qquad r = \frac{a + b - c}{2} \qquad R = \frac{c}{2}

hh is the altitude from the right angle to the hypotenuse, rr the radius of the inscribed circle and RR that of the circumscribed circle. R=c/2R = c/2 because, by Thales’ theorem, the hypotenuse is a diameter of the circumscribed circle. Angles are computed with arctan⁡(a/b)\arctan(a/b), which stays accurate even for very thin triangles.

Worked example

Two legs. With a=3a = 3 cm and b=4b = 4 cm: c=5c = 5 cm, tan⁡α=0.75\tan\alpha = 0.75 so α=36.8699°\alpha = 36.8699° and β=53.1301°\beta = 53.1301°. The area is 6 cm², the perimeter 12 cm, the altitude to the hypotenuse h=12/5=2.4h = 12 / 5 = 2.4 cm, the inradius 1 cm and the circumradius 2.5 cm.

Hypotenuse and angle. A 6 m ladder leans against a wall at 75° to the ground. Taking α=75°\alpha = 75°, the height reached is a=6sin⁡75°=5.8a = 6 \sin 75° = 5.8 m and the foot stands b=6cos⁡75°=1.55b = 6 \cos 75° = 1.55 m from the wall. The triangle under the ladder covers 4.5 m².

Area of a right triangle

The two legs are perpendicular, so one is the base and the other the height: the area is simply half the product of the legs, A=ab/2A = ab/2. If you know the hypotenuse and the altitude to it instead, A=ch/2A = ch/2 gives the same value. With a side and an angle, the calculator first finds the second leg (for example b=ccos⁡αb = c\cos\alpha) and then halves the product.

Special right triangles

Triangle Side ratios a:b:ca : b : c Angles
Isosceles right 1:1:21 : 1 : \sqrt{2} 45°, 45°, 90°
Half equilateral 1:3:21 : \sqrt{3} : 2 30°, 60°, 90°
3-4-5 3:4:53 : 4 : 5 ≈ 36.87°, 53.13°, 90°

These ratios are worth memorising: in a 30-60-90 triangle the side opposite 30° is exactly half the hypotenuse.

Frequently asked questions

How many values do I need to solve a right triangle?

Two, and at least one must be a length. Two angles are not enough: they fix the shape but not the size, so infinitely many similar triangles fit.

How do I find an angle of a right triangle from its sides?

Use the inverse ratios: α = arctan(a / b) from the two legs, or α = arcsin(a / c) from a leg and the hypotenuse. The other acute angle is 90° − α.

How do I find a side from an angle and a side?

Pick the ratio that links what you know to what you want. With the hypotenuse: a = c·sin α and b = c·cos α. With the adjacent leg: a = b·tan α. With the opposite leg: c = a / sin α.

What is the altitude to the hypotenuse?

It is the perpendicular from the right-angle vertex to the hypotenuse, h = ab / c. It splits the triangle into two smaller triangles similar to the original one.

Why must the angle be less than 90°?

A right triangle already has its 90° angle; the other two share the remaining 90°, so each is strictly between 0° and 90°.

Sources

Last updated:

More Math calculators

People also use