Heron's Formula Calculator
Area from three sides by Heron's formula, with the semiperimeter, inradius and circumradius.
Heron's Formula Calculator
Area from three sides by Heron's formula, with the semiperimeter, inradius and circumradius.
What the page prints, and what it refuses
Every figure is printed with the rule or formula that produced it, and any numerical tolerance is stated on the result rather than implied. The page refuses an input the formula does not define and names the value it read; it prints no answer it cannot support.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page computes a triangle's area from its three sides alone. The 3–4–5 triangle has area 6, semiperimeter 6, inradius 1 and circumradius 2.5.
The formula is √(s(s − a)(s − b)(s − c)). Before evaluating it the page checks the triangle inequality, because three lengths that cannot close would make the radicand negative and the answer imaginary.
What each quantity means
The semiperimeter s is half the perimeter. Each factor s − a is the distance from a vertex to the incircle's touch point, which is why the product under the root is the area squared.
The inradius is area ÷ s and the circumradius is abc ÷ 4·area. Both follow from the same area, so the page prints them as consequences rather than as separate formulas to trust.
How to use Heron's Formula Calculator
Enter the three side lengths, then press Run.
The result prints the area, the semiperimeter, the perimeter, the inradius and the circumradius.
What to Expect
Best for
- Finding a triangle's area from its sides
- Checking a Heron calculation
- Getting the inradius or circumradius
Not ideal for
- A triangle given by two sides and an angle, which is the triangle solver
- A degenerate triangle
- A quadrilateral, where Brahmagupta's formula is the analogue
What this tool keeps
- The three sides exactly as typed
What may need cleanup
- Nothing: the figures are final doubles
Common errors
- A failing triangle inequality is refused with the side named
- A non-positive side is refused by name
Example use cases
- Compute the 3–4–5 area
- Check a scalene triangle
- Find the inradius of a triangle
Sample input
a = 3, b = 4, c = 5
Sample output
area = 6, s = 6, inradius = 1, circumradius = 2.5
Who this is for
- Geometry students
- Readers checking a triangle's area
Frequently asked questions
Why does the page refuse some triples?
If the two shorter sides do not exceed the longest, the three lengths cannot form a triangle and the radicand is negative. The page names the failing comparison.
Is Heron's formula numerically stable?
For ordinary triangles it is accurate to the printed decimals. For a very thin triangle the product loses precision, and the page prints six decimals rather than claiming more.
What are the two radii?
The incircle touches all three sides and its radius is area ÷ s. The circumcircle passes through all three vertices and its radius is abc ÷ 4·area.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.