How this instrument works
A scalene triangle is one where all three sides carry different lengths, unlike an isosceles pair or an equilateral trio. Its area still comes from Heron's Formula: compute the semi-perimeter s = (a+b+c) ⁄ 2, then A = √(s(s−a)(s−b)(s−c)) — the same relation that works for any triangle regardless of shape, since it never assumes a particular angle or asks which side is the base.
What this sheet adds is a second figure that Heron's Formula alone can't give: a distinctness test, computed as (a−b)(b−c)(c−a). Its structure is the whole trick — each factor is the gap between one pair of sides, so if any two sides genuinely match, that one factor collapses to zero and drags the entire product to zero with it. A nonzero result therefore certifies that no pair of sides is equal, which is exactly what 'scalene' requires; a zero result means the input actually describes an isosceles or an equilateral shape instead, no matter how close the three numbers looked at a glance.
That's real added value beyond a plain area lookup. The Heron's Formula sheet elsewhere on this site returns area from three lengths and stops there, with no comment on whether the triangle it just measured happens to be scalene, isosceles, or equilateral — a user has to eyeball the inputs themselves. Here, the test settles the question with one arithmetic check rather than a visual guess, which matters most when the three lengths come from measurement and might carry a coincidental near-match that isn't obvious on sight.
One quirk worth flagging: swapping which side gets labeled a, b, or c can flip the test's sign, since reordering the subtraction changes which factor goes negative. The sign carries no meaning by itself — only whether the result lands on zero or somewhere off it. Feed the same three lengths in any order and a genuinely scalene figure stays nonzero every time, while a repeated length keeps landing on exactly zero regardless of how the labels get shuffled.
- Enter the three lengths into Side a, Side b, and Side c — any order, any consistent unit.
- Read Area: the sheet builds the semi-perimeter first, then applies Heron's Formula.
- Read Distinctness test (nonzero = genuinely scalene): a nonzero figure confirms no two sides match.
- A result of exactly zero flags an isosceles or equilateral input, even when the three numbers look different at first glance.
- The three lengths must satisfy the Triangle Inequality (any two must sum to more than the third), or the sheet flags the input as invalid.
Worked example — sides 5, 6, and 7
A triangle with sides 5, 6, and 7 has semi-perimeter s = (5+6+7) ⁄ 2 = 9, giving an area of √(9 × 4 × 3 × 2) = √216 ≈ 14.6969. The distinctness test runs (5−6)(6−7)(7−5) = (−1)(−1)(2) = 2 — clearly nonzero, so this shape is confirmed genuinely scalene: no two of its three lengths agree.
Compare that against sides 5, 5, and 7, which look almost the same task at a glance. The area still computes fine, about 12.4975, but the test comes back (5−5)(5−7)(7−5) = (0)(−2)(2) = 0 exactly — the repeated pair of 5s zeroes out the first factor and flags this second figure as isosceles rather than scalene, even though it still has one differing length and would otherwise pass a careless look.
Questions
What makes a triangle scalene rather than isosceles or equilateral?
A scalene triangle has three sides of three different lengths, with no pair matching at all. An isosceles triangle has exactly one matching pair, and an equilateral triangle has all three sides equal. This calculator's distinctness test, (a−b)(b−c)(c−a), tells the three cases apart automatically rather than requiring a visual comparison of the inputs.
How does the distinctness test actually confirm a shape is scalene?
Each of its three factors is the difference between one pair of sides. If any two sides are equal, that factor is exactly zero, and multiplying anything by zero gives zero — so a zero result always means at least one pair matches. A nonzero result is only possible when none of the three factors is zero, meaning every pair of sides genuinely differs.
How is this different from the plain Heron's Formula page on this site?
That page returns a triangle's area from three side lengths and stops there, with no statement about whether the shape happens to be scalene, isosceles, or equilateral. This page runs the identical area formula but adds the distinctness test as a second output, settling that classification question with one calculation instead of leaving a user to compare the input numbers by eye.
Does the sign of the distinctness test mean anything?
No — only whether the result is zero or not matters. Relabeling which length is a, b, or c can flip the test from positive to negative or back, because the order of subtraction changes which factor comes out negative. A genuinely scalene set of lengths stays nonzero under any relabeling, and a repeated length stays at exactly zero no matter how the three values are assigned to a, b, and c.
What if the three lengths I enter can't actually form a triangle?
Heron's Formula itself catches this: if one side is as long as or longer than the other two combined, one of the deficit terms under the square root turns negative, and no real area exists. This calculator flags that case as invalid rather than returning the distinctness test or a meaningless area for three lengths that could never close into an actual triangle.