Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Classifying Triangles Calculator

Name a triangle from its three side lengths: equilateral, isosceles or scalene, and acute, right or obtuse by comparing a² + b² with c². Gives the perimeter.

Classifying Triangles Calculator

Triangle classification
scalene right triangle
The triangle's name by sides (equilateral, isosceles or scalene) and by its largest angle (acute, right or obtuse).
Perimeter
12

Background.

Three lengths settle a triangle completely. Once the sides are known every angle is fixed, so both of the ways geometry names triangles, by how many sides are equal and by the size of the largest angle, can be read straight off the side lengths without a protractor.

The side test is a matter of matching: three equal sides make an equilateral triangle, exactly two an isosceles one, and none a scalene one. The angle test is where some arithmetic comes in. The largest angle always sits opposite the longest side, so it is the only angle worth checking. Square the two shorter sides and add them, then compare the total with the square of the longest. Equal means the angle is exactly 90° and the triangle is right-angled, the converse of Pythagoras' theorem. More means the largest angle is under 90°, so every angle is, and the triangle is acute. Less means the largest angle is over 90° and the triangle is obtuse.

Builders use the right-angle case every day. Mark 3 units along one wall and 4 along the other; when the diagonal between the marks measures exactly 5, the corner is square. Scaled to 0.9 m, 1.2 m and 1.5 m, the same check sets out a floor slab.

Before any of that, the three lengths must form a triangle at all. The two shorter sides together have to be longer than the longest; if they only equal it, the shape collapses into a straight line, and the page refuses it.

All the comparisons are exact. That suits whole numbers and terminating decimals, but it has a consequence for shapes whose sides involve square roots, explained in the questions below.

What is classifying triangles calculator?

Classifying a triangle means naming it in two independent ways. By its sides it is equilateral (all three equal), isosceles (exactly two equal) or scalene (all different). By its angles it is acute (every angle under 90°), right (one angle of exactly 90°) or obtuse (one angle over 90°). The full name puts the two together, as in 'isosceles obtuse triangle'. Not every pairing is possible: an equilateral triangle has three angles of 60°, so it is always acute.

How to use this calculator.

  1. Enter the three side lengths in any order. The page sorts them itself, so side c does not need to be the longest.
  2. Use one unit for all three. Mixing centimetres with metres still produces a classification, but of a different triangle.
  3. Type the lengths as precisely as you know them. Equality is tested exactly, so 5 and 5.0 count as equal while 5 and 5.001 do not.
  4. Read the classification, side type first and angle type second, and the perimeter, which is in the same unit as the sides.

The formula.

Compare a²+b² with c² after sorting sides; compare side equalities

Sort the sides so that a ≤ b ≤ c. First comes the triangle inequality: a + b must be greater than c, or no triangle exists. Then a² + b² is compared with c². The law of cosines shows why this works. It says c² = a² + b² − 2ab·cos C, where C is the angle opposite the longest side, so a² + b² − c² equals 2ab·cos C. That is positive when C is under 90°, zero when C is exactly 90° and negative when C is over 90°. Because 2ab is always positive, the sign of a² + b² − c² alone decides acute, right or obtuse, with no need to calculate any angle. The side label comes from separate equality checks between the three lengths and does not affect the angle test. The perimeter is a + b + c.

A worked example.

Example

Take sides of 3, 4 and 5. Sorted, the longest is 5, and a triangle exists because 3 + 4 = 7 is more than 5. Squaring the two shorter sides gives 3² + 4² = 9 + 16 = 25, and the longest squared is 5² = 25. The totals match, so the angle opposite the side of 5 is exactly 90°. No two sides are equal, so the page reports a scalene right triangle with a perimeter of 3 + 4 + 5 = 12. Lengthen the longest side to 6 and the answer flips: 9 + 16 = 25 is less than 6² = 36, so 3, 4, 6 is a scalene obtuse triangle. The sides 4, 5 and 6 go the other way, since 16 + 25 = 41 is more than 36, which makes a scalene acute triangle.

side C5
side B4
side A3

Frequently asked questions.

Why does a triangle with sides 1, 1 and 1.414 come out acute instead of right?
The true hypotenuse of that shape is √2, which has no exact decimal form. With 1.414 the longest side squared is 1.999396, just under 1 + 1 = 2, so the test says acute; with 1.4143 it is 2.00024 and the test says obtuse. Exact comparison cannot recognise a right angle from a rounded square root.
Why are three equal sides reported as equilateral and not also isosceles?
Textbooks disagree. Under the inclusive definition used in many geometry courses, an equilateral triangle is also isosceles because it has at least two equal sides. Other texts reserve isosceles for exactly two. The page follows the second convention, so each triangle gets exactly one side label.
Can a triangle have two right angles or be both right and obtuse?
No. The three angles of a triangle add up to 180°, so once one angle is 90° or more, the other two must share what is left and both are acute. That is why only the angle opposite the longest side needs checking.
How do I use the 3-4-5 rule to check a corner is square?
Measure 3 units along one edge from the corner and 4 along the other, then measure the diagonal between the two marks. If it is exactly 5, the corner is 90°. Any multiple works, such as 600, 800 and 1,000 mm, and larger multiples make small errors easier to see.
Why are lengths such as 2, 3 and 5 rejected?
Because 2 + 3 equals 5, the two shorter sides can only reach the ends of the longest one by lying flat along it, which gives a line rather than a triangle. Any set where the two shorter sides add up to the longest or less fails the triangle inequality.
Which angle is the right or obtuse one?
Always the angle opposite the longest side. In a 3, 4, 5 triangle the right angle is the one between the sides of 3 and 4. A triangle can have at most one angle of 90° or more, and it faces the longest side.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Compare a²+b² with c² after sorting sides; compare side equalities
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon