Plane geometry · Calculation notebook

Triangle Calculator: Area, Perimeter & Side/Angle Types: Worked Examples

Derive area from Heron's formula and compare side squares for triangle type. Check two examples, strict triangle inequalities and near-right tolerances.

Why the calculation is structured this way

Heron’s formula uses semiperimeter s, not full perimeter. For angle classification, sort sides so c is longest and compare c² with a² + b²: equality is right, smaller is acute and larger is obtuse, within numerical tolerance. Side classification and angle classification answer separate questions.

A second scenario you can verify

For sides 7, 8 and 9, s = 12 and area is √(12 × 5 × 4 × 3) = √720 = 26.8328… square units. Perimeter is 24. Since 9² = 81 is less than 7² + 8² = 113, the triangle is acute; all sides differ, so it is scalene. Multiplying the lengths by two quadruples area.

What changes the interpretation

An equality such as 2 + 3 = 5 is degenerate, not a proper triangle. Floating-point tolerance for classification is a numerical convention, not proof that a measured shape has an exact angle. Sloping or curved boundaries may need another geometry model.

Separate shape classification from measured certainty

Three sides determine a mathematical triangle only when their shorter pair exceeds the longest. Sort sides for this check so every equivalent ordering is handled consistently. The equation does not depend on whether the first input happens to be the base. A measurement that barely satisfies the condition deserves a sensitivity check because its height can be very small.

For sides four, five and six, semiperimeter is 7.5 and area is √(7.5 × 3.5 × 2.5 × 1.5) = √98.4375, about 9.921567. The longest-side square 36 is smaller than 16 + 25 = 41, so the triangle is acute. For sides two, three and four, the longest square sixteen exceeds four plus nine, so the valid triangle is obtuse. A 3–4–5 triangle is right because twenty-five equals nine plus sixteen.

Side type is a separate classification. Equal three sides are equilateral, equal two sides is isosceles and all different is scalene. An isosceles triangle need not be acute. For sides five, five and eight, the largest square sixty-four exceeds twenty-five plus twenty-five, giving an obtuse isosceles triangle. This counterexample prevents conflating the two labels.

Near-right measured sides may differ by a tiny numerical amount after squaring. The implementation’s tolerance is a computational classification rule, not a survey certificate. Report the entered units and measurement precision, and do not treat a printed “right” label as proof of exact perpendicularity in a physical structure. Coverage, slope and ordering allowances remain separate from flat-triangle area.

Input reference and units

These values reproduce the model’s demonstration. Replace them with your own records or measurements; they are not recommended targets.

On a small screen, swipe horizontally to see all columns. With a keyboard, focus the table and use the arrow keys.

Parameters used by this calculator
ParameterDemonstration valueHow to enter it
First side3 Enter first side without adding a unit suffix. Scope: Sides must be positive, use one length unit and satisfy the strict triangle inequality.
Second side4 Enter second side without adding a unit suffix. Scope: Sides must be positive, use one length unit and satisfy the strict triangle inequality.
Third side5 Enter third side without adding a unit suffix. Scope: Sides must be positive, use one length unit and satisfy the strict triangle inequality.

Triangle Calculator: calculation relationships

Find a triangle’s area, perimeter, angle type and equilateral, isosceles or scalene side type. Angle comparisons are scaled; side equality uses the entered lengths exactly. Sides must be positive, use one length unit and satisfy the strict triangle inequality. Angle classification uses a stated binary64 tolerance; a nearly right measured triangle may be reported as right. Side equality is exact for parsed input lengths, without a measurement-error tolerance. Nearly equal measurements are not automatically equilateral or isosceles.

Heron’s formula uses the semi-perimeter. For sides 5, 5 and 6, s=8 and area=√(8×3×3×2)=12 square units; perimeter is 16 length units. An independent check drops the altitude onto half the base: height=√(25−9)=4, and 6×4/2=12. Side feasibility must be checked before taking the square root. Angle type uses the largest side: compare its square with the sum of the other two squares. Greater means obtuse, smaller acute and equal within floating-point tolerance right; the calculation first scales all sides.

s = (a+b+c)/2; area = √(s(s−a)(s−b)(s−c)); angle type compares largest² with other₁² + other₂²; side type compares entered lengths
  • a: First side. Enter first side without adding a unit suffix. Scope: Sides must be positive, use one length unit and satisfy the strict triangle inequality.
  • b: Second side. Enter second side without adding a unit suffix. Scope: Sides must be positive, use one length unit and satisfy the strict triangle inequality.
  • c: Third side. Enter third side without adding a unit suffix. Scope: Sides must be positive, use one length unit and satisfy the strict triangle inequality.
  • Result units: stated beside each output
  • Calculation relationship: s = (a+b+c)/2; area = √(s(s−a)(s−b)(s−c)); angle type compares largest² with other₁² + other₂²; side type compares entered lengths
  • Supported domain: see the limits below

Worked example

Triangle Calculator baseline input: First side: 3; Second side: 4; Third side: 5. Output: Area (Heron) = 6; Perimeter = 12; Angle type (within floating-point tolerance) = Right; Side type (exact equality of entered lengths) = Scalene. Substitute these values into the displayed equation to reproduce the result.

Reproduce the default scenario

This reproduces the default inputs in the reference table above; it is not an additional independent example. Displayed rounding may differ from intermediate precision.

Area (Heron)
6
Perimeter
12
Angle type (within floating-point tolerance)
Right
Side type (exact equality of entered lengths)
Scalene

Common questions and boundary checks

Do any three positive lengths form a triangle?

No. The shorter two must sum to more than the longest.

Why is semiperimeter used?

Heron’s expression is s(s − a)(s − b)(s − c), with s equal to half the perimeter.

How is an obtuse triangle identified?

The longest-side square exceeds the sum of the other two squares.

Does an isosceles triangle have to be acute?

No. Side equality and angle type are independent classifications.

Can measurement precision justify all output digits?

No. Report precision supported by the original measurements.

Sources and content notes

Toolify describes the implemented algorithm and its assumptions. Sources below support the topic or applicable rules; they do not endorse this calculator. Examples are illustrative, and published rules take precedence over simplified estimates.

Report a formula, example or translation issue through our contact page. Include the tool name, inputs and expected result so it can be reproduced. Contact Toolify

From question to result

Continue with a related question

Explore all Plane geometry tools and guides