Skip to the calculator
Rule Calculator

Triangle Calculator

With side a 5, side b 6, side c 7, triangle comes to 14.696938 — area. It is reached in 8 steps, the last of which is sqrt(max(0, 9 * (9 - 5) * (9 - 6) * (9 - 7))), and each one is printed on the page with its numbers filled in. The formula is the one published by Wolfram MathWorld, not an approximation fitted to it.

Every angle, the area, the perimeter and the height of any triangle from its three sides, using the law of cosines.

Formula and sources checked · How we check

Side a 5, Side b 6, Side c 7

14.696938

Area for the example below. Editing a field recomputes the calculator below; this figure holds the answer the page was loaded with.

It is written into the HTML rather than drawn by a script, so a search engine reading this page without running JavaScript still finds an answer.

Area
14.696938
Perimeter
5 + 6 + 718
Area
sqrt(max(0, 9 * (9 - 5) * (9 - 6) * (9 - 7)))14.697
Angle A, opposite side a
acos((pow(6, 2) + pow(7, 2) - pow(5, 2)) / (2 * 6 * 7)) * 180 / pi44.415 °
Angle B, opposite side b
acos((pow(5, 2) + pow(7, 2) - pow(6, 2)) / (2 * 5 * 7)) * 180 / pi57.122 °
Angle C, opposite side c
180 - 44.415309 - 57.1216578.463 °
Height onto side a
2 * 14.696938 / 55.879
Inradius
14.696938 / 91.633
Circumradius
5 * 6 * 7 / (4 * 14.696938)3.572

Ask about this in the chat

Worked example

Sides 5, 6 and 7 close into a triangle with an area of 14.7 by Heron’s formula, and angles of 44.4, 57.1 and 78.5 degrees. They add to 180, which is the check worth doing on any answer of this kind.

How to work it out yourself

  1. 1.Enter the three sides in any order. The labels follow: angle A is always opposite side a.
  2. 2.Check the triangle inequality first if the answer looks wrong — any two sides must add to more than the third, or no triangle exists at all.
  3. 3.Use the height line when you need the altitude for a construction drawing: it is twice the area divided by the side you are measuring onto.

The formula

  1. Perimeter5 + 6 + 7
  2. Areasqrt(max(0, 9 * (9 - 5) * (9 - 6) * (9 - 7)))
  3. Angle A, opposite side aacos((pow(6, 2) + pow(7, 2) - pow(5, 2)) / (2 * 6 * 7)) * 180 / pi
  4. Angle B, opposite side bacos((pow(5, 2) + pow(7, 2) - pow(6, 2)) / (2 * 5 * 7)) * 180 / pi
  5. Angle C, opposite side c180 - 44.415309 - 57.12165
  6. Height onto side a2 * 14.696938 / 5
  7. Inradius14.696938 / 9
  8. Circumradius5 * 6 * 7 / (4 * 14.696938)

Source: Wolfram MathWorld — triangle, Wolfram MathWorld — law of cosines

Questions people actually ask

Can any three lengths make a triangle?
No. Each side has to be shorter than the other two added together — the triangle inequality. Sides of 2, 3 and 9 cannot close: the short pair cannot reach across the long one. This calculator detects that rather than printing angles from an impossible cosine.
How do you find an angle from three sides?
The law of cosines, rearranged: cos A = (b² + c² − a²) ÷ 2bc. Take the inverse cosine and you have the angle. For a right triangle the term with the longest side vanishes and it reduces to Pythagoras, which is the check that the formula is the same one you already know.
What is Heron’s formula?
Area from the three sides alone, with no angle and no height: take half the perimeter, subtract each side from it in turn, multiply the four numbers together and take the square root. It is what makes a field measurable with a tape and nothing else.
What are the inradius and circumradius for?
The inradius is the radius of the largest circle that fits inside the triangle, touching all three sides; the circumradius is the circle through all three corners. They matter in layout work — the inradius is the biggest round thing that fits in a triangular space.

Related

Put this calculator on your site

Free, no attribution required beyond the link.

<iframe src="https://rulecalculators.com/embed/triangle" width="100%" height="420" style="border:1px solid #e7e4de;border-radius:12px" title="Triangle Calculator"></iframe>
Did this answer your question?