Skip to content

Triangle Calculator

Give the three sides of a triangle, or two sides and the angle between them, and get the area by Heron's formula, the perimeter, the three angles in degrees, the three heights, the inscribed and circumscribed circle radii, and whether the triangle is equilateral, isosceles or scalene and acute, right or obtuse. The page checks the triangle inequality first and tells you when the sides cannot close into a triangle. Any unit works, as long as every side uses the same one.

Use the same unit for every side; the area is in that unit squared.

Area

6

Perimeter 12.
Angle A (opposite a)
36.87°
Angle B (opposite b)
53.13°
Angle C (opposite c)
90°
Type by sides
Scalene (no equal sides)
Type by angles
Right (one angle of 90°)
Heights on a, b, c
4, 3, 2.4
Inscribed circle radius
1
Circumscribed circle radius
2.5

Heron: area = √(s(s − a)(s − b)(s − c)) with s = (a + b + c) ÷ 2. Angles by the half-angle formula; in SAS mode c² = a² + b² − 2ab cos C. A triangle needs each side shorter than the sum of the other two.

How it works

  1. Choose three sides (SSS) or two sides and the angle between them (SAS).
  2. Enter the sides in one common unit; for SAS enter the angle in degrees, strictly between 0 and 180.
  3. Read the area, perimeter, angles, heights and type of the triangle; for SAS the third side is computed first.
  4. Change a value to compare, for example 3, 4, 5 against 5, 5, 5, and copy the summary.

What people use it for

  • Checking a plot, a roof or a sail

    Find the area and the angles of a triangular piece from the three lengths you measured.

  • Homework and revision

    Verify Heron's formula, the law of cosines and the angle sum on a triangle of your own.

  • Testing whether three lengths close into a triangle

    See at once whether the sides satisfy the triangle inequality, and which one fails when they do not.

Questions

How are the area and the angles computed from three sides?
With s = (a + b + c) ÷ 2, Heron's formula gives area = √(s(s − a)(s − b)(s − c)); the page uses an equivalent form that loses less precision when the triangle is very flat. Each angle comes from the half-angle formula tan(A ÷ 2) = √((s − b)(s − c) ÷ (s(s − a))), and the three angles add up to 180 degrees. For 3, 4, 5 the area is 6 and the angles are 36.87, 53.13 and 90 degrees; for 5, 5, 5 the area is 10.825 and all angles are 60.
How does the two sides and an angle mode work?
With sides a and b and the angle C between them, the third side comes from the law of cosines, c² = a² + b² − 2ab cos C, written here as c² = (a − b)² + 4ab sin²(C ÷ 2) which is steadier for small angles. With 3, 4 and 90 degrees, c = 5. The three sides are then handled exactly as in the first mode. The angle must be above 0 and below 180 degrees, because at 0 or 180 the triangle is flat.
How are the types and the other figures decided?
By sides: equilateral if all three are equal, isosceles if two are, scalene otherwise, with a relative tolerance of one part in a billion for typed decimals. By angles, the longest side c is compared with the other two: c² = a² + b² is right, c² < a² + b² is acute, c² > a² + b² is obtuse. The height on a side is 2 × area ÷ that side, the inscribed circle radius is area ÷ s, and the circumscribed circle radius is abc ÷ (4 × area).
What is refused?
Sides must be numbers above 0 and up to 1,000,000,000,000. Each side must be shorter than the sum of the other two; when one side equals that sum, the triangle is flat with an area of 0 and the page says so. The page does not draw the triangle and does not convert units, so use the same unit for everything and read the area in that unit squared.