Triangle Calculator

Enter any three sides or angles, including at least one side, to find the rest of the triangle along with its area and perimeter.

Updated

ABCabc

Enter any three values, at least one of them a side, and leave the rest blank.

Obtuse Scalene Triangle

Side a
5
Side b
7
Side c
9
Angle A
33.5573°33°33′26″ = 0.585686 rad
Angle B
50.7035°50°42′13″ = 0.884943 rad
Angle C
95.7392°95°44′21″ = 1.67096 rad
A = 33.5573°B = 50.7035°C = 95.7392°a = 5b = 7c = 9
Area
17.4123
Perimeter
21
Semiperimeter
10.5
Height to side a
6.96491
Height to side b
4.97494
Height to side c
3.8694
Median to side a
7.66485
Median to side b
6.38357
Median to side c
4.09268
Inradius
1.65831
Circumradius
4.52267

Coordinates, with A at the origin and B on the x-axis

Vertex A
(0, 0)
Vertex B
(9, 0)
Vertex C
(5.83333, 3.8694)
Centroid
(4.94444, 1.2898)
Incenter
(5.5, 1.65831)
Circumcenter
(4.5, -0.452267)
Show calculation steps
  1. All three sides are given.
  2. ∠A = arccos((b² + c² − a²) ÷ 2bc) = 33.5573°
  3. ∠B = arccos((a² + c² − b²) ÷ 2ac) = 50.7035°
  4. ∠C = arccos((a² + b² − c²) ÷ 2ab) = 95.7392°
  5. area = bc × sin A ÷ 2 = 17.4123
  6. perimeter = a + b + c = 21
  7. semiperimeter s = perimeter ÷ 2 = 10.5
  8. height to a = 2 × area ÷ a = 6.96491
  9. height to b = 2 × area ÷ b = 4.97494
  10. height to c = 2 × area ÷ c = 3.8694
  11. median to a = √(2b² + 2c² − a²) ÷ 2 = 7.66485
  12. median to b = √(2a² + 2c² − b²) ÷ 2 = 6.38357
  13. median to c = √(2a² + 2b² − c²) ÷ 2 = 4.09268
  14. inradius = area ÷ s = 1.65831
  15. circumradius = a ÷ (2 × sin A) = 4.52267

Was this tool helpful?

Leave a rating to help us build a better tool.

Average 0.0 / 5 · 0 reviews


How this triangle calculator works

A triangle has three sides and three angles. Here, side a sits across from angle A, side b across from angle B, and side c across from angle C. Enter any three of those six values, including at least one side, and this triangle solver finds the rest.

It works as a triangle side calculator, a triangle angle calculator, and a triangle area calculator at once. The result also names the triangle type and lists the perimeter, semiperimeter, heights, medians, inradius, circumradius, and the coordinates of its key points, along with a scale drawing and the calculation steps.

For example, sides of 5, 7, and 9 give angles of about 33.56°, 50.70°, and 95.74°, an area of about 17.41, and a perimeter of 21.

Which three values can you enter?

  • Three sides (SSS). The law of cosines gives each angle. The two shorter sides must add up to more than the longest side, so this is also a quick sss triangle calculator.
  • Two sides and the angle between them (SAS). The law of cosines gives the third side.
  • Two sides and an angle not between them (SSA). The law of sines gives the second angle. This can produce one triangle, two, or none.
  • One side and two angles (ASA or AAS). The third angle is 180° minus the other two, and the law of sines gives the remaining sides.

Three angles alone are not enough, because they fix the shape of a triangle but not its size.

The law of cosines and the law of sines

c² = a² + b² − 2ab × cos C

a ÷ sin A = b ÷ sin B = c ÷ sin C

The law of cosines relates all three sides to one angle, and the law of sines relates each side to the angle across from it. Between them, they solve any triangle.

How to find the area of a triangle

With a base and its height, multiply them and divide by 2. With two sides and the angle between them, use half their product times the sine of the angle. This calculator first solves every side and angle, then uses that second formula. With three sides, Heron's formula gives the same area directly, where s is half the perimeter.

area = base × height ÷ 2 = bc × sin A ÷ 2 = √(s(s − a)(s − b)(s − c))

For sides of 5, 7, and 9, angle A ≈ 33.56°, so the area is 7 × 9 × sin 33.56° ÷ 2 ≈ 17.41. Heron's formula agrees: s = 10.5, and √(10.5 × 5.5 × 3.5 × 1.5) ≈ 17.41. The inradius is the area divided by s, about 1.66.

Types of triangles

By sides, a triangle is equilateral (all three equal), isosceles (two equal), or scalene (none equal). By angles, it is acute (all under 90°), right (one exactly 90°), or obtuse (one over 90°). An equilateral triangle always has three 60° angles. If you know one angle is 90°, the right triangle calculator takes other inputs too, such as the area and the perimeter.

Frequently asked questions

How do you find a missing side of a triangle?

Use the law of cosines if you know two sides and the angle between them, and the law of sines if you know an angle and the side across from it. Enter what you know above and the calculator picks the right method.

How do you find a missing angle of a triangle?

If you know the other two angles, subtract them from 180°. If you know all three sides, use the law of cosines: A = arccos((b² + c² − a²) ÷ 2bc).

Why does the calculator show two triangles?

Two sides and an angle not between them can fit two different triangles, because an acute angle and its supplement have the same sine. This is known as the ambiguous case. Both solutions are valid, so pick the one that matches your drawing.

Why do I get an error with three sides?

The two shorter sides must add up to more than the longest side, or they can't meet. Sides of 2, 3, and 6 don't form a triangle because 2 + 3 is less than 6.

What is the difference between the centroid, incenter, and circumcenter?

The centroid is where the medians cross, the incenter is the center of the largest circle that fits inside, and the circumcenter is the center of the circle through all three vertices. The circumcenter is inside an acute triangle, at the midpoint of the hypotenuse of a right triangle, and outside an obtuse triangle.

What's changed
  • Launched.

References