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.
Calculator
Adjust values & calculateAltitudes and Medians
Formula
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.
Last reviewed: December 2025
Worked Examples
Example 1: Area of a Scalene Triangle
Example 2: Verifying with a Right Triangle
Background & Theory
The Herons Formula Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Herons Formula Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
Sources & References
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\ns - a = 21 - 13 = 8\ns - b = 21 - 14 = 7\ns - c = 21 - 15 = 6\nArea = sqrt(21 x 8 x 7 x 6) = sqrt(7056) = 84\nInradius = 84 / 21 = 4\nCircumradius = (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\nHerons formula: s = (5 + 12 + 13) / 2 = 15\ns - a = 10, s - b = 3, s - c = 2\nArea = sqrt(15 x 10 x 3 x 2) = sqrt(900) = 30\nBoth methods give Area = 30 sq units\nInradius = 30 / 15 = 2\nCircumradius = (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
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.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy