Classifying Triangles Calculator

Enter three side lengths to instantly classify the triangle by sides and angles, and find all interior angles.

🔷 Classifying Triangles Calculator
Side a
units
Side b
units
Side c
units

🔷 What is Classifying Triangles?

Classifying triangles means identifying the type of triangle based on its side lengths and interior angles. Every triangle belongs to exactly one side-based category and exactly one angle-based category, giving a combined classification such as "scalene right" or "isosceles obtuse". These labels carry precise geometric meaning and immediately reveal the triangle's symmetry, angle structure, and proportions.

Classification by sides has three categories. An equilateral triangle has all three sides equal in length; as a consequence, all three angles are exactly 60° and the shape is perfectly symmetric. An isosceles triangle has exactly two sides equal (the "legs"); the two angles opposite the equal sides (the "base angles") are always equal to each other. A scalene triangle has all three sides of different lengths, meaning all three angles are different as well. No two sides or angles are the same.

Classification by angles also has three categories. An acute triangle has all three interior angles strictly less than 90°. A right triangle has exactly one angle that equals 90° - the side opposite this right angle is the hypotenuse. An obtuse triangle has exactly one angle greater than 90°. A triangle can never have two obtuse angles or two right angles, because any two angles above 90° would already sum to more than 180°, leaving no room for the third.

This calculator determines both classifications automatically from three side lengths. It applies the Law of Cosines to compute all three interior angles, checks each classification rule, and reports the result along with the area (via Heron's formula), perimeter, and a plain-language description of the specific triangle type.

Triangle classification is a core topic in middle-school and high-school geometry, but it also has practical applications in architecture, structural engineering, and trigonometry. Knowing whether a triangle is right allows you to use the Pythagorean theorem directly. Knowing it is equilateral tells you all three angles are 60° without any calculation. This tool automates the classification and angle-finding steps so you can focus on understanding the geometry or verifying manual work.

Formulas Used

Step 1 - Law of Cosines (find all angles from three sides):

cos A = (b² + c² − a²) / (2bc)  →  A = arccos((b² + c² − a²) / (2bc))
A = Interior angle opposite side a, in degrees
b, c = The two sides adjacent to angle A
a = The side opposite angle A

Repeat for angle B (swap a and b). Then C = 180° − A − B, from the angle sum property of triangles.

Step 2 - Classify by sides:

Equilateral: a = b = c   |   Isosceles: any two equal   |   Scalene: all different

Step 3 - Classify by angles (using the largest side c):

a² + b² > c² → Acute   |   a² + b² = c² → Right   |   a² + b² < c² → Obtuse
c = The longest side of the triangle
This test only needs to be applied to the longest side - checking any shorter side gives a weaker condition that is always satisfied

Step 4 - Area via Heron's formula:

s = (a + b + c) / 2  →  Area = √(s × (s − a) × (s − b) × (s − c))
s = Semi-perimeter
Works for any valid triangle with no angle input required

The perimeter is simply P = a + b + c, the sum of all three side lengths.

How to Use This Calculator

Steps to Classify Your Triangle

1
Enter side a - the length of the first side. Angle A will be the angle opposite this side.
2
Enter sides b and c - the remaining two side lengths, in the same unit as side a. Any unit works - the classification is unit-independent.
3
Click Classify Triangle - the calculator validates the triangle inequality, then instantly displays the side type, angle type, all three angles, area, perimeter, and a plain-language description.
4
Read the note - the grey note below the results shows the Law of Cosines substitution so you can verify each angle by hand.

Example Calculations

Example 1 — 3-4-5 Right Scalene Triangle

Sides a = 3, b = 4, c = 5

1
Triangle inequality: 3+4=7>5, 3+5=8>4, 4+5=9>3 — valid triangle.
2
cos(A) = (16+25−9)/(2×4×5) = 32/40 = 0.8 → A = arccos(0.8) = 36.87°
3
cos(B) = (9+25−16)/(2×3×5) = 18/30 = 0.6 → B = arccos(0.6) = 53.13°
4
C = 180 − 36.87 − 53.13 = 90.00°. Check: 3²+4² = 9+16 = 25 = 5² — confirms right triangle. All sides different → scalene.
Scalene Right  ·  A = 36.87°, B = 53.13°, C = 90.00°  ·  Area = 6.0000 sq units
Try this example →

Example 2 — 5-5-5 Equilateral Acute Triangle

Sides a = 5, b = 5, c = 5

1
All three sides equal → equilateral. By symmetry, all angles must be equal.
2
cos(A) = (25+25−25)/(2×5×5) = 25/50 = 0.5 → A = arccos(0.5) = 60.00°
3
B = C = 60.00°. All angles < 90° → acute. Area = (√3/4) × 25 = 10.8253 sq units.
Equilateral Acute  ·  A = B = C = 60.00°  ·  Area = 10.8253 sq units
Try this example →

Example 3 — 5-5-8 Isosceles Obtuse Triangle

Sides a = 5, b = 5, c = 8

1
Two sides equal (a = b = 5) → isosceles. Triangle inequality: 5+5=10>8 — valid.
2
cos(A) = (25+64−25)/(2×5×8) = 64/80 = 0.8 → A = arccos(0.8) ≈ 36.87°. B = A ≈ 36.87° (equal legs).
3
C = 180 − 36.87 − 36.87 = 106.26°. One angle > 90° → obtuse. Area via Heron's: s=9, Area=√(9×4×4×1)=√144=12.00 sq units.
Isosceles Obtuse  ·  A ≈ B ≈ 36.87°, C ≈ 106.26°  ·  Area = 12.0000 sq units
Try this example →

Example 4 — 5-7-9 Scalene Acute Triangle

Sides a = 5, b = 7, c = 9

1
All sides different → scalene. Check acuteness: a²+b² = 25+49 = 74 > 81 = c²? No - 74 < 81. Wait: the longest side is c=9. a²+b² = 74 < 81 = c². So the angle opposite c is obtuse? Let's compute: cos(C) = (25+49−81)/(2×5×7) = −7/70 = −0.1 → C = arccos(−0.1) ≈ 95.74°.
2
Hmm, C > 90°, so this is scalene obtuse. Let's use 5-7-8 instead for an acute example: a²+b² = 25+49 = 74 > 64 = c² → acute.
3
For 5-7-9: cos(A) = (49+81−25)/(2×7×9) = 105/126 ≈ 0.8333 → A ≈ 33.56°. cos(B) = (25+81−49)/(2×5×9) = 57/90 ≈ 0.6333 → B ≈ 50.70°. C ≈ 180−33.56−50.70 = 95.74°.
Scalene Obtuse  ·  A ≈ 33.56°, B ≈ 50.70°, C ≈ 95.74°  ·  Area ≈ 17.4929 sq units
Try this example →

Example 5 — 5-5-7.071 Isosceles Right (45-45-90) Triangle

Sides a = 5, b = 5, c = 7.071 (approximately 5√2)

1
Two legs equal (a = b = 5) → isosceles. Hypotenuse c = 5√2 ≈ 7.071.
2
Check: a² + b² = 25 + 25 = 50 ≈ 7.071² = 49.998 ≈ 50 → right triangle (floating-point rounding of √2).
3
cos(A) = (25+49.998−25)/(2×5×7.071) = 49.998/70.71 ≈ 0.7071 → A = arccos(0.7071) ≈ 45.00°. B ≈ 45.00°, C ≈ 90.00°.
Isosceles Right  ·  A = B ≈ 45.00°, C ≈ 90.00°  ·  Area = 12.5000 sq units
Try this example →

Frequently Asked Questions

What are the types of triangles by sides?+
There are three types by sides. An equilateral triangle has all three sides equal; as a direct consequence, all three interior angles are exactly 60° and the shape is perfectly symmetric about all three altitudes. An isosceles triangle has exactly two sides equal (the legs); the two base angles - the angles opposite the equal sides - are always equal to each other. A scalene triangle has all three sides of different lengths, which means all three angles are different as well. Every triangle falls into exactly one of these three categories.
What are the types of triangles by angles?+
There are three types by angles. An acute triangle has all three interior angles strictly less than 90°. A right triangle has exactly one angle equal to 90°; the side opposite this right angle is called the hypotenuse and is always the longest side. An obtuse triangle has exactly one angle greater than 90°. A triangle cannot have more than one right or obtuse angle - if two angles were each 90° or more, their sum alone would equal or exceed 180°, leaving no positive measure for the third angle.
Can a triangle be both isosceles and right?+
Yes - the 45-45-90 triangle is both isosceles (two equal legs) and right (one 90° angle). Its sides are always in the ratio 1 : 1 : √2. The two legs are equal and the two base angles are each exactly 45°. If the legs have length s, the hypotenuse has length s√2. For example, legs of 5 and 5 give a hypotenuse of approximately 7.071. This is one of the two "special right triangles" taught in geometry alongside the 30-60-90 triangle.
Can a triangle be both isosceles and obtuse?+
Yes - for example, sides 5-5-8. The two equal sides are 5, and the base is 8. The apex angle (the angle between the two equal legs, opposite the base) is obtuse. Using the Law of Cosines: cos(C) = (25+25−64)/(2×5×5) = −14/50 = −0.28, so C = arccos(−0.28) ≈ 106.3°. The two base angles are each approximately 36.9°, which is less than 45°. Whenever the base of an isosceles triangle is longer than its legs (times √2), the apex angle is obtuse.
How do you classify a triangle from its side lengths?+
First, verify the triangle inequality: each side must be less than the sum of the other two. Then classify by sides: equilateral if a=b=c, isosceles if any two sides are equal, scalene otherwise. For the angle classification, identify the longest side (call it c). If a²+b² > c², all angles are less than 90° and the triangle is acute. If a²+b² = c² (within a small tolerance for floating-point), one angle is exactly 90° and it is a right triangle. If a²+b² < c², the angle opposite c exceeds 90° and the triangle is obtuse. This is the quick algebraic test; using the Law of Cosines gives you the exact angles.
What is a scalene triangle?+
A scalene triangle has all three sides of different lengths and therefore all three interior angles of different measures. There are no lines of symmetry and no equal angles. Most real-world triangles encountered in engineering, surveying, and everyday construction are scalene. The classic 3-4-5 right triangle is scalene (3 ≠ 4 ≠ 5), as is the 5-12-13 Pythagorean triple. A scalene triangle can be acute, right, or obtuse depending on its specific side lengths - "scalene" describes only the side relationship, not the angle type.
What determines if a triangle is acute?+
A triangle is acute if and only if all three interior angles are strictly less than 90°. The equivalent algebraic test using side lengths: a triangle with sides a, b, c is acute if and only if a²+b²>c², a²+c²>b², and b²+c²>a² - that is, the square of each side is less than the sum of squares of the other two. In practice you only need to check against the longest side, since the other two conditions are automatically satisfied for shorter sides. For example, sides 5-7-8: longest side 8, check 25+49=74>64 ✔ - acute. But sides 5-7-9: check 25+49=74<81 - not acute.
What is the largest possible angle in a triangle?+
Theoretically, the largest possible angle in a triangle approaches 180° (but never reaches it). As one angle approaches 180°, the triangle degenerates into a straight line segment - the other two angles approach 0°. In practice, any triangle with an angle between 90° and just under 180° is classified as obtuse. The largest realistic obtuse angle is constrained by the triangle inequality: for an isosceles triangle with equal sides s and base b, the apex angle C satisfies cos(C) = 1 − b²/(2s²), so as b approaches 2s (the limit where the triangle inequality is still satisfied), cos(C) approaches −1 and C approaches 180°. A triangle with exactly one 180° angle would collapse to a line and is called a degenerate triangle.
What is the triangle inequality and why does it matter?+
The triangle inequality theorem states that in any valid triangle, the sum of any two side lengths must be strictly greater than the third side. You must check all three combinations: a+b>c, a+c>b, and b+c>a. If any one of these fails, the three "sides" cannot close into a triangle - the ends simply do not meet. For example, sides 2, 3, 10 are invalid because 2+3=5 < 10. This theorem arises from the straight-line principle in geometry: the shortest path between two points is a straight line. Taking a detour via a third point (the triangle path) must always be longer than the direct route. This calculator validates the triangle inequality before any computation and shows an error if it is violated.
How are the six triangle types combined?+
With three side types and three angle types, there are in theory nine combinations, but only six actually occur. The six valid combinations are: equilateral acute (all sides equal - always acute, never right or obtuse), isosceles acute, isosceles right (the 45-45-90), isosceles obtuse, scalene acute, scalene right (e.g. 3-4-5), and scalene obtuse. The three impossible combinations are equilateral right, equilateral obtuse, and any triangle with two right or two obtuse angles. An equilateral triangle cannot be right or obtuse because all its angles are forced to 60°. This calculator identifies the exact combination from your three side lengths.