Triangle Calculator: Sides, Angles, Area and Radii
Choose what you know and enter it. You get all three sides and angles, the area, the heights, the inradius and circumradius, and whether the triangle is right, acute or obtuse.
Last reviewed
Area
6
a scalene right triangle with perimeter 12
| Corner | Side opposite | Angle | Height onto it |
|---|---|---|---|
| A | 3 | 36.86989765° | 4 |
| B | 4 | 53.13010235° | 3 |
| C | 5 | 90° | 2.4 |
- Semiperimeter
- 6
- Inradius
- 1
- Circumradius
- 2.5
Side a is opposite angle A, b opposite B and c opposite C. The area is from Heron's formula. The inradius is the radius of the largest circle inside, and the circumradius that of the circle through all three corners.
Solving a triangle
A triangle has six measurements, three sides and three angles, and three well-chosen ones are enough to find the rest. The calculator handles the three cases that always give a single triangle. Side a is opposite angle A, side b opposite B, and side c opposite C. The angles always add up to 180°.
Three sides (SSS). The law of cosines gives each angle: cos C = (a² + b² − c²) ÷ (2ab). Wolfram MathWorld states it as c² = a² + b² − 2ab cos C.
Two sides and the angle between them (SAS). The law of cosines gives the third side, c² = a² + b² − 2ab cos C, and then the angles follow.
Two angles and the side between them (ASA). The third angle is 180° − A − B. The law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C (which MathWorld also sets equal to 2R), gives the other two sides.
Area and the circles
- Area from Heron’s formula: with semiperimeter s = (a + b + c) ÷ 2, area = √[s(s − a)(s − b)(s − c)].
- Heights (altitudes): the height onto a side is 2 × area ÷ that side.
- Inradius, the radius of the largest circle inside: r = area ÷ s.
- Circumradius, the radius of the circle through all three corners: R = abc ÷ (4 × area), which is the form R = abc ÷ 4rs from MathWorld, since area = rs.
Types of triangle
By sides: equilateral (all three equal), isosceles (two equal) or scalene (none equal). By angles: right (one angle exactly 90°), obtuse (one over 90°) or acute (all under 90°).
Worked examples
Sides 3, 4, 5. s = 6 and the area is √(6 × 3 × 2 × 1) = 6. The angles are 36.8699°, 53.1301° and 90°, so it is a scalene right triangle. The inradius is 6 ÷ 6 = 1 and the circumradius is 60 ÷ 24 = 2.5. The heights are 4, 3 and 2.4.
Sides 2, 2, 2. An equilateral triangle: all angles 60°, area √3 = 1.73205080757, inradius 0.57735026919 and circumradius 1.15470053838.
Sides 7, 8, 9. s = 12 and the area is √(12 × 5 × 4 × 3) = √720 = 26.83281573. The angles are 48.1897°, 58.4119° and 73.3985°, all under 90°, so it is acute and scalene. The inradius is √5 = 2.2360679775.
Sides 5 and 7 with 60° between them (SAS). c² = 25 + 49 − 2 × 5 × 7 × cos 60° = 74 − 35 = 39, so c = 6.2449979984. The area is ½ × 5 × 7 × sin 60° = 15.1554445662 and the other angles are 43.8979° and 76.1021°.
Angles 40° and 60° with the side 10 between them (ASA). C = 80°. By the law of sines, a = 10 × sin 40° ÷ sin 80° = 6.52703644666 and b = 10 × sin 60° ÷ sin 80° = 8.79385241572.
Why some sides make no triangle
The longest side must be shorter than the other two added together. Sides 2, 3 and 6 cannot close up, since 2 + 3 is only 5. With sides 3, 4 and 7 the triangle is flat: the corners lie on a straight line. The calculator reports both as errors.
Common mistakes
- Using the wrong angle. In SAS the angle must be between the two sides.
- Using the side opposite instead of between in ASA.
- Mixing degrees and radians. The angles here are in degrees.
- Entering two angles that add to 180° or more. A triangle’s angles sum to exactly 180°.
- Expecting a unique answer from two sides and a non-included angle (SSA). That case can have two triangles, so it is not offered.
For a triangle with a right angle, see the right triangle calculator and the Pythagorean theorem calculator. To find areas of other shapes, use the area calculator, and for circles the circle calculator.
How it is calculated
All of the arithmetic, including the sines, cosines and inverse cosines, uses exact decimal arithmetic to 50 digits. Results are shown to 12 significant figures and the angles to 10.
Frequently asked questions
How do you find the area of a triangle from its three sides?
Use Heron's formula. Find the semiperimeter s = (a + b + c) ÷ 2, then the area is √(s(s − a)(s − b)(s − c)). For sides 3, 4 and 5, s = 6 and the area is √(6 × 3 × 2 × 1) = 6.
How do you find the angles when you know three sides?
Use the law of cosines in the form cos C = (a² + b² − c²) ÷ (2ab), then take the inverse cosine. Do it for two angles and subtract their sum from 180° for the third.
What if I know two angles and one side?
The third angle is 180° minus the two. Then the law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C, gives the other two sides. This calculator takes the side between the two angles (ASA).
What if I know two sides and the angle between them?
The law of cosines gives the third side: c² = a² + b² − 2ab cos C. Then the other angles follow from the sides. This case is called SAS.
What is the inradius and the circumradius?
The inradius is the radius of the largest circle that fits inside the triangle, r = area ÷ semiperimeter. The circumradius is the radius of the circle through all three corners, R = abc ÷ (4 × area).
Why does it say these sides cannot make a triangle?
The longest side must be shorter than the other two added together. Sides 2, 3 and 6 fail, because 2 + 3 is less than 6, so the two shorter sides cannot reach each other.
Related calculators
- Right Triangle CalculatorChoose what you know about the right triangle and enter it.
- Pythagorean Theorem CalculatorChoose what you want to find: the hypotenuse, a missing leg, or whether three sides form a right triangle.
- Area CalculatorPick a shape and enter its lengths.
- Circle CalculatorChoose what you know about the circle and enter it.
- Surface Area CalculatorPick a shape and enter its size.
- Quadratic Formula CalculatorEnter a, b and c to solve a quadratic equation.