Math Last updated: July 2026

Heron's Formula Calculator

Heron's Formula Calculator computes the area of any triangle when you know all three side lengths. Enter sides a, b, and c to instantly find the semi-perimeter, area, and verify the triangle inequality. Works for scalene, isosceles, and equilateral triangles.

How to Use the Heron's Formula Calculator

Interactive calculator available after JavaScript loads.

Loading calculator...

Written by Calculator Archive Team

Math & Finance Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis

Looking for a deeper explanation?

Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.

Read Blog Guide ›

Mathematical Formula & Logic

Area = √[s(s-a)(s-b)(s-c)], where s = (a+b+c)/2 is the semi-perimeter
Variable Glossary
A Area of the triangle
s Semi-perimeter (half the perimeter)
a First side length
b Second side length
c Third side length

Step-by-Step Worked Calculation

Scenario: Example: Triangle with Sides 5, 12, 13

Find the area of a triangle with sides a = 5, b = 12, c = 13.

1

Step 1: Calculate semi-perimeter: s = (5 + 12 + 13) / 2 = 15.

2

Step 2: Calculate s - a = 15 - 5 = 10.

3

Step 3: Calculate s - b = 15 - 12 = 3.

4

Step 4: Calculate s - c = 15 - 13 = 2.

5

Step 5: Apply Heron's formula: A = √(15 × 10 × 3 × 2) = √900 = 30.

6

Step 6: The area of the triangle is 30 square units.

How to Use the Heron's Formula Calculator

  1. 1. Enter the three side lengths of the triangle (a, b, and c).
  2. 2. Click "Calculate" to find the semi-perimeter and area.
  3. 3. Review the step-by-step derivation using Heron's formula.
  4. 4. Check if the three sides form a valid triangle (triangle inequality).

Frequently Asked Questions

Complete indexable directory of answers (23 questions)

What is Heron's formula?

Heron's formula calculates the area of a triangle given all three side lengths: A = √[s(s-a)(s-b)(s-c)], where s = (a+b+c)/2 is the semi-perimeter. It was discovered by Heron of Alexandria around 60 AD.

What is the semi-perimeter?

The semi-perimeter is half the perimeter of the triangle: s = (a+b+c)/2. It simplifies the area formula and is used in many geometric calculations. For sides 3, 4, 5, the semi-perimeter is (3+4+5)/2 = 6.

When should I use Heron's formula?

Use Heron's formula when you know all three side lengths but not the height. It works for any triangle — scalene, isosceles, or equilateral. It is particularly useful when the height is difficult to measure directly.

What is the triangle inequality theorem?

The triangle inequality states that the sum of any two sides must be greater than the third side: a + b > c, a + c > b, and b + c > a. If this fails, the three lengths cannot form a valid triangle.

Can Heron's formula give a negative result?

No. If the three sides form a valid triangle, the expression under the square root is always positive. If it is zero or negative, the sides do not form a valid triangle.

How is Heron's formula different from the base-height formula?

The base-height formula A = (1/2) × base × height requires knowing the height, which is perpendicular distance from a vertex to the opposite side. Heron's formula only requires the three side lengths, making it more versatile.

Is Heron's formula accurate?

Yes, Heron's formula is exact for any valid triangle. However, in computational applications, numerical precision issues can arise with very thin triangles (where one side is much longer than the others).

Can I use Heron's formula for a right triangle?

Yes, but the Pythagorean theorem and base-height formula are simpler for right triangles. For example, a 3-4-5 triangle has area (1/2) × 3 × 4 = 6, which matches Heron's formula: s = 6, A = √(6×3×2×1) = 6.

What if two sides are equal (isosceles)?

Heron's formula still works. For an isosceles triangle with sides a, a, b, the semi-perimeter is s = (2a+b)/2, and the formula simplifies but still gives the correct area.

What is the relationship between Heron's formula and the Pythagorean theorem?

For a right triangle with legs a, b and hypotenuse c, Heron's formula reduces to A = (1/2)ab. This can be proven by substituting c² = a² + b² into Heron's formula.

Who was Heron of Alexandria?

Heron of Alexandria was a Greek mathematician and engineer who lived around 10-70 AD. He made contributions to geometry, mechanics, and pneumatics. The formula for triangle area is attributed to his work 'Metrica'.

Can I find the height from Heron's formula?

Yes. Once you have the area A from Heron's formula, you can find any height using h = 2A/base. For example, if A = 30 and base = 10, then h = 60/10 = 6.

How do I verify the result using the base-height formula?

Calculate the height using trigonometry: h = b × sin(C), where C is the angle between sides a and b. Then verify A = (1/2) × a × h equals the Heron's formula result.

What is the maximum area for a given perimeter?

For a fixed perimeter, the equilateral triangle has the maximum area. This is a consequence of the isoperimetric inequality for triangles. Among all triangles with perimeter P, the equilateral triangle (P/3 each side) has the largest area.

Can Heron's formula be extended to higher dimensions?

Yes, there are generalizations for tetrahedra (3D) using the Cayley-Menger determinant. However, the simple square root form does not directly extend; the formula becomes more complex.

What are common mistakes when using Heron's formula?

Common mistakes include: (1) forgetting to divide the perimeter by 2 for the semi-perimeter, (2) not checking the triangle inequality first, (3) arithmetic errors in the subtraction steps, and (4) taking the square root of a negative number (invalid triangle).

How is Heron's formula used in surveying?

Surveyors use Heron's formula to calculate land areas by measuring boundary lengths. It is particularly useful for irregularly shaped plots where measuring heights directly is impractical.

What is the formula in terms of the perimeter P?

Using P = 2s, Heron's formula becomes A = √[(P/2)(P/2-a)(P/2-b)(P/2-c)]. This form is sometimes more convenient when the perimeter is known.

How does Heron's formula relate to the law of cosines?

Heron's formula can be derived using the law of cosines. First, find angle C using cos(C) = (a² + b² - c²)/(2ab), then use A = (1/2)ab sin(C), and simplify to get Heron's formula.

Can I use Heron's formula for a degenerate triangle?

A degenerate triangle has three collinear points (area = 0). Heron's formula gives A = 0 when s(s-a)(s-b)(s-c) = 0, which happens when the triangle inequality becomes an equality (a + b = c or similar).

What mathematical formula does the Heron's Formula Calculator use?

The Heron's Formula Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.

How can I verify the Heron's Formula Calculator results manually?

Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.

What types of inputs does the Heron's Formula Calculator accept?

The Heron's Formula Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.