Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Triangle Calculators
  4. /Heron's Formula Calculator

Heron's Formula Calculator

Last updated: March 15, 2026

Calculator

Results

Triangle validity margin

4

Perimeter

18

Semi-perimeter

9

Area squared

216

Area

14.696938

Height to side a

5.878775

Height to side b

4.898979

Height to side c

4.199125

Inradius

1.632993

Results

Triangle validity margin

4

Perimeter

18

Semi-perimeter

9

Area squared

216

Area

14.696938

Height to side a

5.878775

Height to side b

4.898979

Height to side c

4.199125

Inradius

1.632993

Heron's Formula Calculator computes the area of any triangle directly from its three side lengths, without requiring any angle measurement. Named after Heron of Alexandria (c. 10-70 CE), this elegant formula is one of the most celebrated results in classical geometry. Given sides $$a$$, $$b$$, and $$c$$, the formula first calculates the semi-perimeter $$s = \frac{a+b+c}{2}$$, then determines the area as $$A = \sqrt{s(s-a)(s-b)(s-c)}$$.

The beauty of Heron's formula lies in its simplicity and universality. Unlike the standard area formula $$A = \frac{1}{2}bh$$, which requires knowing a height, or the trigonometric formula $$A = \frac{1}{2}ab\sin(C)$$, which requires an angle, Heron's formula works with side lengths alone. This makes it invaluable in situations where only distances can be measured, such as land surveying, satellite positioning, and structural analysis.

This calculator provides a comprehensive set of derived quantities beyond just the area. It computes all three altitudes (heights) using $$h_a = \frac{2A}{a}$$, and the inradius using $$r = \frac{A}{s}$$. The inradius is the radius of the largest circle that fits inside the triangle (the inscribed circle or incircle), touching all three sides. These additional outputs transform a simple area calculation into a complete triangle analysis tool.

In practical applications, surveyors use Heron's formula to calculate land areas when they can measure all boundary lengths but cannot easily determine heights or angles. Structural engineers apply it to compute cross-sectional areas of triangular members. Computer graphics programmers use it extensively for mesh processing, collision detection, and determining whether a point lies inside a triangle.

The formula also has elegant mathematical properties. The expression under the square root, $$s(s-a)(s-b)(s-c)$$, is a symmetric polynomial in the side lengths. It is non-negative exactly when the three sides satisfy the triangle inequality, providing a built-in validity check. When the sides violate the triangle inequality, the expression becomes negative and the square root is undefined, signaling that no valid triangle exists.

Heron's formula connects to many other areas of mathematics. It can be derived from the Law of Cosines, from Brahmagupta's formula for cyclic quadrilaterals (by setting one side to zero), and from the Cayley-Menger determinant in distance geometry. It also generalizes to higher dimensions through the theory of simplices.

Visual Analysis

How It Works

Step 1: Compute the semi-perimeter:

$$s = \frac{a + b + c}{2}$$

Step 2: Apply Heron's formula:

$$A = \sqrt{s(s-a)(s-b)(s-c)}$$

Derived quantities:

Heights (altitudes) from $$A = \frac{1}{2} \cdot \text{base} \cdot \text{height}$$:

$$h_a = \frac{2A}{a}, \quad h_b = \frac{2A}{b}, \quad h_c = \frac{2A}{c}$$

Inradius (radius of the inscribed circle):

$$r = \frac{A}{s}$$

Understanding Your Results

The semi-perimeter is half the total boundary length. The area is measured in square units corresponding to the input units. The three heights represent the perpendicular distance from each vertex to the opposite side. The inradius is the radius of the incircle, the circle tangent to all three sides. If the area is 0, the triangle is degenerate (collinear points). If the output shows NaN, the sides violate the triangle inequality.

Worked Examples

Scalene Triangle (5-6-7)

Inputs

a5
b6
c7

Results

semi perimeter9
area14.6969
perimeter18
height a5.8788
height b4.899
height c4.199
inradius1.633

s = 9. Area = sqrt(9·4·3·2) = sqrt(216) ≈ 14.70. Inradius r = 14.70/9 ≈ 1.633.

Right Triangle (3-4-5)

Inputs

a3
b4
c5

Results

semi perimeter6
area6
perimeter12
height a4
height b3
height c2.4
inradius1

s = 6. Area = sqrt(6·3·2·1) = sqrt(36) = 6. For a 3-4-5 right triangle, the inradius is exactly 1.

Frequently Asked Questions

Heron's formula calculates the area of a triangle from its three side lengths: A = sqrt(s(s-a)(s-b)(s-c)), where s = (a+b+c)/2 is the semi-perimeter. It requires no angle or height measurements, only the three sides.

Heron of Alexandria (c. 10-70 CE) was a Greek mathematician and engineer. He described this formula in his work Metrica, though some historians believe the formula was known to Archimedes (c. 287-212 BCE) even earlier.

The inradius (r) is the radius of the incircle — the largest circle that fits inside the triangle, tangent to all three sides. It is calculated as r = Area/s, where s is the semi-perimeter. The incircle's center is called the incenter, equidistant from all three sides.

NaN occurs when the expression under the square root is negative, meaning s(s-a)(s-b)(s-c) < 0. This happens when the three side lengths violate the triangle inequality (the sum of any two sides must exceed the third), making it impossible to form a valid triangle.

Yes. For an equilateral triangle with side length a, s = 3a/2, and the formula gives A = (sqrt(3)/4)·a², which matches the standard equilateral triangle area formula perfectly.

For a right triangle with legs a, b and hypotenuse c, Heron's formula always yields A = ab/2, matching the simple right-triangle area formula. This can be verified algebraically: with c² = a² + b², the Heron expression simplifies to (ab/2)².

Sources & Methodology

Heron of Alexandria, Metrica (c. 60 CE); Heath, T.L., A History of Greek Mathematics, Vol. 2; Weisstein, Eric W., "Heron's Formula," MathWorld; Coxeter, H.S.M., Introduction to Geometry, 2nd Edition
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Triangle Calculator

Triangle Calculators

Right Triangle Calculator

Triangle Calculators

Equilateral Triangle Calculator

Triangle Calculators

Isosceles Triangle Calculator

Triangle Calculators

Old 30 60 90 Triangle Calculator

Triangle Calculators

Triangle Area Calculator

Triangle Calculators