Skip to content

Math

Right Triangle

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Fill in any two values. The other six and the measures below are worked out as you type.

Sides
Angles
Other
Angle unit

Given a=6 and b=8,

abcαβ
c
10
∠α
36.87° = 36°52'12" = 0.6435 rad
∠β
53.13° = 53°7'48" = 0.9273 rad
h
4.8
area
24
perimeter
24
inradius
2
circumradius
5

How to use

  1. Fill in any two of the eight boxes: the sides a, b and c, the angles α and β, the height h to the longest side, the area or the perimeter. Two angles alone are not enough.
  2. Choose degrees or radians. In radians you can type pi/6 or pi/3.
  3. Read the full triangle: all sides (as exact roots when they are one), both angles, height, area, perimeter, inradius and circumradius.
  4. Some pairs fit two triangles that are mirror images of each other (a and b swapped); both are shown.

Formula

c² = a² + b². α = arctan(a ÷ b) and β = 90° − α. a = c sin α, b = c cos α. Height to the hypotenuse h = ab ÷ c. Area = ab ÷ 2. Inradius = (a + b − c) ÷ 2. Circumradius = c ÷ 2.

Example

Sides a = 3 and c = 5 give b = 4, angles 36.87° and 53.13°, height 2.4, area 6, perimeter 12, inradius 1 and circumradius 2.5. Side a = 3 with α = 30° gives b = 3√3 = 5.19615 and c = 6.

The height to the longest side is never more than half of it. The area can be at most c² ÷ 4. Angles must be above 0 and below 90°.