Triangle Calculator

Solve a triangle from three side lengths and calculate perimeter, area and angles

Your result will appear here.

About the Triangle Calculator

A triangle can be solved from different combinations of sides, angles, base and height. This calculator brings common triangle relationships together so area, perimeter and missing dimensions can be derived from the information available.

Not every set of three numbers can form a valid triangle. Side lengths must satisfy the triangle inequality, and angles must be consistent with a total of 180 degrees.

How to Use the Triangle Calculator

  1. Choose the triangle input mode that matches the measurements you know.
  2. Enter side lengths, angles or height using consistent units.
  3. Calculate the missing values, area and perimeter where the selected mode supports them.
  4. Check the diagram and units before applying the result to a real measurement.

How the Calculation Works

Basic area from base and perpendicular height is A = 1/2 × base × height. Perimeter is the sum of the three side lengths.

When different side-angle combinations are known, the calculator may use the Pythagorean theorem, law of sines, law of cosines or Heron’s formula according to the available inputs.

Worked examples

Triangle Calculator Worked Examples

Default

Sides 3, 4 and 5 give an area of 6 and a perimeter of 12. The angles are 36.87°, 53.13° and 90°.

Equilateral

Sides of 5, 5 and 5 give an area of 10.8253 and three 60° angles.

Scalene

Sides 7, 8 and 9 give an area of 26.8328, with angles of 48.19°, 58.41° and 73.40°.

Triangles from three sides

Area by Heron's formula. Angles by the law of cosines.

SidesAreaPerimeterABC
3, 4, 561236.87°53.13°90.00°
5, 5, 510.82531560.00°60.00°60.00°
5, 5, 8121836.87°36.87°106.26°
7, 8, 926.83282448.19°58.41°73.40°
6, 8, 10242436.87°53.13°90.00°
2, 3, 42.9047928.96°46.57°104.48°

How the calculator works

With three side lengths, the semi-perimeter s = (a + b + c) ÷ 2, and Heron's formula gives the area: √(s(s − a)(s − b)(s − c)). The law of cosines gives each angle, for example cos A = (b² + c² − a²) ÷ 2bc. Angle A is opposite side a, and so on. The three angles always add to 180°.

Checking a triangle is possible

Any two sides must add up to more than the third (the triangle inequality), or the sides cannot meet. If a² + b² equals c² for the longest side c, the triangle has a right angle. If a² + b² is less than c², the angle opposite c is obtuse. Builders use the 3-4-5 rule to check that corners are square.

Common Mistakes

  • Impossible sides. 1, 2 and 5 cannot form a triangle.
  • Mismatching sides and angles. Angle A is opposite side a.
  • Mixing units. Use the same unit for all three sides.

Result guide

Understanding Your Triangle Calculator Result

Area uses square units while perimeter and sides use linear units. A correct area does not by itself determine all side lengths or angles.

Before you rely on the answer

Assumptions and Limitations

  • Input measurements describe one valid triangle.
  • Angles use the selected degree or radian convention.
  • Height is perpendicular to the chosen base when using the base-height formula.

Practical tip

Using This Result in Practice

If you are given three sides, verify that the two shorter sides add to more than the longest side. Otherwise the measurements cannot form a non-degenerate triangle.

Common questions

Triangle Calculator FAQ

What is Heron's formula?

Area = √(s(s−a)(s−b)(s−c)), where s is half the perimeter.

Do the angles always add to 180°?

Yes, in a flat triangle.

How do I know if it is a right triangle?

Check whether a² + b² = c² for the longest side.

What is the triangle inequality?

Any two sides must total more than the third.

Can I solve with two sides and an angle?

Use the law of cosines to find the third side first.

About the author

Adupa Derrick

Adupa Derrick designs every calculator on Numi Calculator, uses AI tools to help draft code and explanations and checks each formula against worked examples and published references before it goes live.

About Numi Calculator Our methodology