Geometry

Triangle Calculator

Enter three side lengths to find area, angles, perimeter, and triangle type.

Area

6.00 sq units

Scalene, right

Perimeter12.00
Angle A36.87°
Angle B53.13°
Angle C90.00°

A valid triangle requires: each side greater than zero, and the sum of any two sides greater than the third.

What is the Triangle Calculator?

A triangle is a three-sided polygon. When you know the lengths of all three sides (a, b, c), you can compute its area, the three interior angles, and its type (equilateral, isosceles, or scalene) and shape (right, acute, or obtuse). This calculator does all that automatically.

How it works

Enter the three side lengths a, b, and c. The calculator first checks the triangle inequality—the sum of any two sides must be greater than the third, otherwise no triangle exists. If valid, it computes the area using Heron's formula, then finds each angle using the law of cosines, and finally classifies the triangle by type and shape.

Area = √[s(s−a)(s−b)(s−c)], where s = (a+b+c)/2. Angles: cos(A) = (b²+c²−a²)/(2bc), then A = arccos(result) in degrees.

Heron's formula computes area from just the three sides without needing height. The law of cosines relates the sides to each angle, letting us find all three angles. Sides are labeled a, b, c and their opposite angles are A, B, C respectively.

Examples

InputResultNotes
a=3, b=4, c=56A 3-4-5 right triangle: area is exactly 6 sq units (sides form 90°).
a=5, b=5, c=612An isosceles triangle with two equal sides of 5: area is about 12 sq units.
a=7, b=7, c=721.22An equilateral triangle with all sides 7: area is about 21.22 sq units.

How to use the Triangle Calculator

  1. Enter the lengths of all three sides (a, b, c) into the input fields
  2. The calculator instantly checks if the sides form a valid triangle
  3. If valid, it computes and displays the area, perimeter, all three angles, and triangle type
  4. If invalid (triangle inequality violated), an error message explains why

Benefits

  • Instant calculation — no need for manual area or angle computations
  • Validates triangle existence — catches invalid side combinations before wasting time
  • Classifies the triangle — tells you if it's equilateral, isosceles, scalene, right, acute, or obtuse
  • Precise angles — law of cosines gives exact degree measurements
  • Educational — helps students verify homework and understand triangle geometry
  • Free and no sign-up — 100% client-side, no data sent anywhere

Tips & common mistakes

Common mistakes

  • Entering sides that violate the triangle inequality — the sum of any two sides must exceed the third
  • Using zero or negative side lengths — all sides must be positive numbers
  • Mixing units — ensure all three sides are measured in the same units
  • Confusing angle A with side a — angle A is opposite side a

Tips

  • The 3-4-5 triangle is a classic right triangle; use it to verify the calculator's outputs
  • For an equilateral triangle, all sides are equal and all angles are 60°
  • In a right triangle, one angle is exactly 90°; the other two sum to 90°
  • Double-check geometry homework with this tool before final submission

Frequently asked questions

What is the triangle inequality?

The triangle inequality states that the sum of any two sides must be greater than the third side. If this fails for any pair, the three lengths cannot form a triangle. For example, sides 1, 2, and 10 cannot form a triangle because 1 + 2 = 3, which is not greater than 10.

What is Heron's formula?

Heron's formula computes a triangle's area from only the three side lengths, without needing the height. It uses a semi-perimeter s = (a+b+c)/2, then area = √[s(s−a)(s−b)(s−c)]. It's elegant and avoids the need to draw altitudes.

What is the law of cosines?

The law of cosines relates a triangle's sides to its angles: c² = a² + b² − 2ab·cos(C). Rearranged to cos(C) = (a² + b² − c²)/(2ab), it lets you find any angle given the three sides. It's the generalization of the Pythagorean theorem.

What's the difference between equilateral, isosceles, and scalene?

Equilateral: all three sides equal (all angles 60°). Isosceles: exactly two sides equal. Scalene: all three sides different. The calculator tells you which type your triangle is.

What are right, acute, and obtuse triangles?

Right: one angle is exactly 90°. Acute: all three angles are less than 90°. Obtuse: one angle is greater than 90°. The sum of all three angles is always 180°.

Can I use decimals or non-integer side lengths?

Yes. The calculator accepts any positive decimal numbers. For example, sides of 2.5, 3.7, and 4.2 are perfectly valid as long as they satisfy the triangle inequality.

Related tools

FreeToolz Editorial Team · Last reviewed July 2026

Reviewed for accuracy. Results are estimates for general information and are not professional (medical, financial or legal) advice.