Herons Formula Calculator
Free Herons formula Calculator for triangle. Enter values to get step-by-step solutions with formulas and graphs. Free to use with no signup required.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Herons Formula Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Area = sqrt(s(s-a)(s-b)(s-c)), where s = (a+b+c)/2
Worked example โ Area = 84 sq units | Inradius = 4 | Circumradius = 8.125
Formula
Area = sqrt(s(s-a)(s-b)(s-c)), where s = (a+b+c)/2
Herons formula calculates triangle area from three side lengths a, b, c. First compute the semi-perimeter s = (a+b+c)/2, then Area = sqrt(s(s-a)(s-b)(s-c)). No height or angle measurement is needed.
Worked Examples
Example 1: Area of a Scalene Triangle
Problem:Find the area of a triangle with sides 13, 14, and 15 using Herons formula.
Solution:Semi-perimeter s = (13 + 14 + 15) / 2 = 21 s - a = 21 - 13 = 8 s - b = 21 - 14 = 7 s - c = 21 - 15 = 6 Area = sqrt(21 x 8 x 7 x 6) = sqrt(7056) = 84 Inradius = 84 / 21 = 4 Circumradius = (13 x 14 x 15) / (4 x 84) = 2730 / 336 = 8.125
Result:Area = 84 sq units | Inradius = 4 | Circumradius = 8.125
Example 2: Verifying with a Right Triangle
Problem:Verify Herons formula for a 5-12-13 right triangle.
Solution:Standard formula: Area = (1/2) x 5 x 12 = 30 Herons formula: s = (5 + 12 + 13) / 2 = 15 s - a = 10, s - b = 3, s - c = 2 Area = sqrt(15 x 10 x 3 x 2) = sqrt(900) = 30 Both methods give Area = 30 sq units Inradius = 30 / 15 = 2 Circumradius = (5 x 12 x 13) / (4 x 30) = 780 / 120 = 6.5
Result:Area = 30 sq units (verified) | Inradius = 2 | Circumradius = 6.5
Frequently Asked Questions
What is Herons formula and how does it work?
Herons formula (also written as Heros formula) calculates the area of a triangle when you know all three side lengths, without needing to find the height first. The formula is: Area = sqrt(s(s-a)(s-b)(s-c)), where s is the semi-perimeter (half the perimeter) = (a+b+c)/2, and a, b, c are the side lengths. The formula was attributed to Heron of Alexandria (c. 10-70 AD) in his work Metrica, though it may have been known earlier by Archimedes. It is particularly useful because it avoids trigonometric functions and works for any valid triangle shape.
How do you calculate the semi-perimeter for Herons formula?
The semi-perimeter s is simply half the perimeter of the triangle. If the three sides are a, b, and c, then s = (a + b + c) / 2. For example, a triangle with sides 7, 8, and 9 has perimeter 24 and semi-perimeter 12. The semi-perimeter is a convenient intermediate value that simplifies several triangle formulas beyond just Herons formula. It appears in the inradius formula (r = Area/s), in angle bisector calculations, and in Eulers formula relating the circumradius and inradius. Computing the semi-perimeter first makes the main area calculation much cleaner.
Can Herons formula be used for any type of triangle?
Yes, Herons formula works for any valid triangle, including acute, right, obtuse, equilateral, isosceles, and scalene triangles. The only requirement is that the three side lengths satisfy the triangle inequality: the sum of any two sides must be greater than the third side. If the triangle inequality is violated, the expression under the square root becomes negative, indicating that no triangle with those side lengths exists. For degenerate triangles (where three points are collinear and the area is zero), Herons formula correctly returns zero since one of the factors (s-a), (s-b), or (s-c) equals zero.
How does Herons formula compare to the standard base-height area formula?
The standard area formula (Area = 1/2 times base times height) requires knowing a base and its corresponding perpendicular height. If the height is not given, you must calculate it, often using trigonometry or the Pythagorean theorem. Herons formula only requires the three side lengths, making it more direct in many situations. However, the base-height formula is computationally simpler and may be preferred when the height is known. For right triangles, the two legs serve as base and height, making the standard formula trivial. Herons formula is most valuable for oblique triangles where the height is unknown.
How do you derive Herons formula?
Herons formula can be derived from the cosine rule and the standard area formula. Start with Area = (1/2)ab sin(C). From the law of cosines, cos(C) = (a^2 + b^2 - c^2)/(2ab). Using the identity sin^2(C) = 1 - cos^2(C), substitute and simplify: Area^2 = (1/4)a^2 b^2 sin^2(C) = (1/4)a^2 b^2(1 - cos^2(C)). After algebraic manipulation using the difference of squares, this becomes Area^2 = s(s-a)(s-b)(s-c). The derivation involves factoring a quartic polynomial into the product of four linear terms, which is why the semi-perimeter appears naturally.
What is the numerical stability of Herons formula?
The standard form of Herons formula can suffer from numerical precision issues when the triangle is very flat (nearly degenerate) because it involves subtracting nearly equal numbers. A more numerically stable version, attributed to William Kahan, first sorts the sides so a >= b >= c, then computes Area = (1/4)sqrt((a+(b+c))(c-(a-b))(c+(a-b))(a+(b-c))). This rearrangement uses careful parenthesization to minimize floating-point errors. For most practical applications with reasonable triangle shapes, the standard formula works fine, but the Kahan version is recommended for high-precision computational geometry.
How is Herons formula related to the inradius and circumradius?
Herons formula connects elegantly to both the inradius and circumradius. The inradius r = Area / s, where s is the semi-perimeter. Substituting Herons formula: r = sqrt(s(s-a)(s-b)(s-c)) / s = sqrt((s-a)(s-b)(s-c)/s). The circumradius R = (abc) / (4 times Area) = (abc) / (4 sqrt(s(s-a)(s-b)(s-c))). These relationships show that once you compute the area via Herons formula, finding the inradius and circumradius requires only simple arithmetic. The area acts as the bridge connecting side lengths to circle measurements.
Can Herons formula be extended to quadrilaterals?
Yes, Herons formula has been generalized to cyclic quadrilaterals (quadrilaterals inscribable in a circle) through Brahmaguptas formula. For a cyclic quadrilateral with sides a, b, c, d and semi-perimeter s = (a+b+c+d)/2, the area equals sqrt((s-a)(s-b)(s-c)(s-d)). For general (non-cyclic) quadrilaterals, the formula becomes Area = sqrt((s-a)(s-b)(s-c)(s-d) - abcd cos^2((A+C)/2)), where A and C are opposite angles. If the quadrilateral is a triangle (d = 0), Brahmaguptas formula reduces exactly to Herons formula.
What are practical applications of Herons formula?
Herons formula is widely used in surveying, land measurement, and geographic information systems (GIS) where triangle areas must be computed from measured side lengths. Surveyors measure distances between boundary markers and use Herons formula to calculate plot areas without needing angle measurements. In computer graphics and finite element analysis, mesh triangulation algorithms use Herons formula to compute triangle areas from vertex coordinates (converting coordinates to distances first). Civil engineers use it for earthwork volume calculations. Navigation systems use it for triangulation-based position calculations.
How do you verify that Herons formula gives the correct result?
You can verify Herons formula results using alternative area methods. For a right triangle with legs 3 and 4 and hypotenuse 5: standard formula gives Area = (1/2)(3)(4) = 6. Using Herons formula: s = (3+4+5)/2 = 6, Area = sqrt(6(6-3)(6-4)(6-5)) = sqrt(6 times 3 times 2 times 1) = sqrt(36) = 6. Both methods agree. Another verification is the coordinate geometry formula: place one vertex at the origin, use the cross product to find area. For equilateral triangle with side s: standard gives s^2 sqrt(3)/4, and Herons formula with s=3s/2 gives the same result.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎShoelace Formula Polygon Area Calculator
Calculate shoelace formula polygon area with inputs, formulas, and instant results.
๐งฎDistance Formula Calculator
Calculate distance formula with inputs, formulas, and instant results.
๐งฎChange of Base Formula Calculator
Calculate change of base formula with inputs, formulas, and instant results.
๐งฎDouble Angle Formula Calculator
Calculate double angle formula with inputs, formulas, and instant results.
๐งฎCoordinate Distance Calculator
Calculate distance between two points using the distance formula with step-by-step work.
๐งฎAnnulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
๐งฎArea Calculator
Calculate area with inputs, formulas, and instant results.
๐งฎArea of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.