Area of a Triangle (Heron's Formula) Calculator

This calculator finds the area of any triangle using only its three side lengths, so you never need to measure a height or an angle. It uses Heron's formula, which is useful whenever you can measure the sides of a triangle but the perpendicular height is awkward to find, such as with an irregular block of land, a workshop cut-out, or a scalene triangle in a maths problem. You enter the three side lengths, labelled a, b and c, in any consistent unit, and choose a unit label such as cm, m or ft purely for how the results are displayed. The calculator returns the area in square units, along with the semi-perimeter and the full perimeter. It also tells you the triangle type by side length, scalene, isosceles or equilateral, and a full working panel shows the step-by-step calculation: the semi-perimeter, each of s minus a, b and c, the product under the square root, and the final area. A second panel lists the longest side, confirms the triangle inequality, and classifies the triangle as acute, right-angled or obtuse based on its angles. Before calculating, the tool checks that each side is shorter than the sum of the other two; if your three lengths cannot physically form a triangle, it will flag this rather than return a meaningless result.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Standard Formula  Heron's formula is an exact result from Euclidean geometry. No expiry.

Triangle Side Lengths

units
units
units

Formula Reference

Heron's formula requires only the three side lengths:

s = (a + b + c) / 2
Area = √[s × (s − a) × (s − b) × (s − c)]

where s is the semi-perimeter. The result is in square units of your side lengths.

The three sides must satisfy the triangle inequality: each side must be less than the sum of the other two.

Results

Area
14.6969
sq units
Semi-perimeter (s)
9.0000
units
Perimeter
18.0000
units
Triangle Type
Scalene
by sides

Step-by-Step Working

Side a5.0000 units
Side b6.0000 units
Side c7.0000 units
s = (a + b + c) / 29.0000 units
s − a4.0000 units
s − b3.0000 units
s − c2.0000 units
s(s-a)(s-b)(s-c)216.000000 sq units2
Area = √(product)14.6969 sq units

Triangle Properties

Perimeter (a + b + c)18.0000 units
Semi-perimeter9.0000 units
Longest side7.0000 units
Triangle inequalityValid triangle
Triangle type (sides)Scalene
Angle typeAcute
Area14.6969 sq units
Result: Enter three positive side lengths above.

How Heron's Formula Works

Heron's formula (named after Hero of Alexandria, c. 60 AD) gives the area of any triangle directly from its three side lengths. The first step is to find the semi-perimeter, which is half the triangle's total perimeter:

s = (a + b + c) / 2

The area is then:

Area = √[s × (s − a) × (s − b) × (s − c)]

If all three sides are equal (an equilateral triangle), the formula simplifies to Area = (√3 / 4) × a², but Heron's formula handles every triangle type equally well.

Worked Example

Using the default values: a = 5, b = 6, c = 7.

StepCalculationResult
Semi-perimeter s(5 + 6 + 7) / 29
s − a9 − 54
s − b9 − 63
s − c9 − 72
Product9 × 4 × 3 × 2216
Area√21614.6969 square units

The perimeter is 5 + 6 + 7 = 18 units. Because all three sides are different lengths, the triangle is scalene.

Triangle Types by Side Length

TypeConditionExample
Equilaterala = b = c3, 3, 3
IsoscelesExactly two sides equal5, 5, 8
ScaleneAll three sides different5, 6, 7

Triangle Inequality

Three lengths can only form a triangle if each side is strictly less than the sum of the other two. For sides a, b, c:

If any condition fails, the three lengths cannot close into a triangle. In Heron's formula this appears as a negative value under the square root, which has no real solution.

Angle Type from Side Lengths

You can determine whether a triangle is acute, right-angled, or obtuse by comparing the square of the longest side to the sum of squares of the other two. Let c be the longest side:

Related Calculators

Sources and method: Heron of Alexandria, Metrica (c. 60 AD). The formula is a standard result of Euclidean plane geometry and appears in all major mathematics references including the NZQA Level 2 Mathematics curriculum (AS91259).

This calculator applies Heron's formula exactly. Results are accurate to the precision of your inputs. The tool checks the triangle inequality before computing and will show an error if the three sides cannot form a valid triangle.