Herons Formula Calculator - Area, Perimeter, Semi-perimeter
Use this herons formula calculator to find the area, perimeter, and semi-perimeter of any triangle from its three side lengths, with inequality checks.
Herons Formula Calculator
Results
What Is a Herons Formula Calculator?
A herons formula calculator finds the area of a triangle when you know the three side lengths and nothing else. The formula builds the area out of the semi-perimeter s = (a + b + c) / 2 as Area = sqrt(s * (s - a) * (s - b) * (s - c)).
- • Geometry homework: Confirm a textbook problem where the three side lengths are given and you have to find the area.
- • Land, garden, or fence plots: Translate three boundary measurements into a usable area for sod, mulch, or seed coverage.
- • Roof, truss, and rafter checks: Recover a roof area from three measured rafter or edge lengths when no rise measurement is available.
- • Survey and triangulation: Compute the area of a triangle from three measured distances between survey points.
Heron's formula is the only triangle area rule that works from side lengths alone. The base-height method needs a perpendicular height and the SAS method needs an included angle.
Enter the three sides in any order. Mixing units (feet and meters, for example) is the most common cause of a surprising result, so keep the inputs in the same unit.
When the same job needs base-height or SAS as a fallback, the triangle area calculator keeps the three triangle-area methods in one place.
How Herons Formula Calculator Works
The calculator adds the three side lengths, splits the total in half to get the semi-perimeter s, and then multiplies four factors inside a square root. The same three sides also give the perimeter, so the three numbers in the result panel are tied together by the formula in plain sight.
- a, b, c: The three side lengths. Use the same length unit for all three.
- s: Semi-perimeter: half of the perimeter a + b + c.
- Area: Square units that match whatever length unit you entered (square feet, square meters, etc.).
The semi-perimeter s is the one piece of plumbing the formula needs. Once s is known, the four factors inside the square root are mechanical. The calculator shows s in the result panel so the user can verify the multiplication.
If any factor (s - a), (s - b), or (s - c) is zero, the area is zero. That happens only when the three sides form a degenerate triangle. A negative radicand is impossible for any real triangle.
Classic 3-4-5 right triangle
Side a = 3, side b = 4, side c = 5
Perimeter = 12, s = 6. Area = sqrt(6 * 3 * 2 * 1) = sqrt(36) = 6.
Area = 6.00 sq units, perimeter = 12.00 units, semi-perimeter = 6.00 units.
The 3-4-5 right triangle is a quick sanity check. The product inside the square root is exactly 36, so the area is the integer 6 with no rounding noise.
Equilateral triangle with side 6
Side a = 6, side b = 6, side c = 6
Perimeter = 18, s = 9. Area = sqrt(9 * 3 * 3 * 3) = sqrt(243) ≈ 15.5885.
Area = 15.59 sq units, perimeter = 18.00 units, semi-perimeter = 9.00 units.
The area matches the equilateral shortcut (sqrt(3)/4) * a^2 ≈ 15.5885, which is a useful cross-check for any equilateral case.
According to Wolfram MathWorld, the area of a triangle with side lengths a, b, c is given by Heron's formula Area = sqrt(s * (s - a) * (s - b) * (s - c)), where the semi-perimeter s = (a + b + c) / 2.
According to Khan Academy, Heron's formula computes the area of a triangle from three side lengths using the semi-perimeter s = (a + b + c) / 2, and the result is the square root of s(s - a)(s - b)(s - c).
The classic 3-4-5 example is a right triangle, and the right triangle calculator covers the Pythagorean side, angle, and perimeter relationships that apply to that case.
Key Concepts Behind Herons Formula
These four ideas cover the geometry that makes Heron's formula work and the input rules it depends on.
Semi-perimeter s
The semi-perimeter is half the perimeter. Every factor inside the square root is s minus one side, so once s is known the four factors are mechanical. The calculator returns s so the multiplication stays visible.
Triangle inequality
Three lengths form a real triangle only when the longest side is shorter than the sum of the other two. Heron's formula is exact for every triangle that satisfies the inequality and breaks down to a zero or negative radicand for anything else.
Apollonius and the metric origin
Heron's formula was re-derived from the cosine rule and from the incircle radius r = Area / s. The semi-perimeter shows up because the incircle touches all three sides at the same tangent length s - a, s - b, s - c.
Works for every triangle shape
The same expression works for acute, right, and obtuse triangles as long as the three sides satisfy the triangle inequality. No special case is needed.
Two of the four ideas (semi-perimeter and triangle inequality) are the user input stage. The other two (metric origin and all-shapes coverage) are useful background: the same formula you use on a 3-4-5 right triangle is the formula you use on a 5-5-8 obtuse triangle.
If the three sides do not satisfy the strict triangle inequality, the calculator rejects the input before any square root runs. The longest side must be strictly less than the sum of the other two.
For an equilateral triangle, Heron's formula reduces to the (sqrt(3)/4) * a^2 shortcut that the equilateral triangle area calculator uses directly.
How to Use This Calculator
Enter any three side lengths of a real triangle and read the area, perimeter, and semi-perimeter in one panel.
- 1 Enter side a: Type the first side length in any unit (inches, feet, centimeters, meters). Use the same unit for the other two sides.
- 2 Enter side b: Type the second side length. The order of a, b, and c does not affect the area or perimeter.
- 3 Enter side c: Type the third side length. As soon as the triangle inequality holds, the result panel updates.
- 4 Read the perimeter and semi-perimeter: Perimeter is the sum of the three sides. Semi-perimeter s is half the perimeter.
- 5 Read the area: Area is the primary result. The square-unit label follows the length unit you entered.
- 6 Fix any validation error: If the form shows an error, the most common cause is a triangle-inequality violation.
A backyard plot measures 30 ft, 40 ft, and 50 ft along its three sides. Enter a = 30, b = 40, c = 50. The form returns s = 60 and area = sqrt(60 * 30 * 20 * 10) = sqrt(360000) = 600. The plot covers 600 square feet and the 120 ft perimeter sets the fence length.
When the available data is two sides and the included angle, the area of an oblique triangle calculator runs the SAS area formula on the same kind of triangle.
Benefits of Using This Herons Formula Calculator
Heron's formula is short, but the four-factor multiplication and the square root are easy to mistype by hand. The calculator removes the arithmetic and validation risks at the same time.
- • Works from side lengths alone: No need for a height measurement or an included angle. The same three side lengths that the user already has feed the entire calculation.
- • Catches impossible side sets: The triangle inequality is checked before the square root runs, so a bad input returns a clear error message instead of NaN.
- • Returns the semi-perimeter too: Showing s in the result panel makes the four factors in Heron's formula visible. That is useful in a classroom or whenever a reviewer wants to confirm the multiplication.
- • Unit-agnostic: The same form handles inches, feet, centimeters, and meters. The square-unit label follows the input unit.
- • Real-time updates: Every keystroke updates the result panel, so it is easy to compare two different measurements or iterate toward a target area.
These benefits matter most when the data comes from a tape measure, a deed, or a survey plan rather than a textbook. The only data you have is three straight-line distances, and Heron's formula is the right tool for the job.
Showing the semi-perimeter alongside the area is the single biggest difference between a hand calculation and a calculator run. The four-factor form of Heron's formula is the version that explains the answer.
Heron's formula is the most natural fit for a scalene triangle where no two sides are equal, and the scalene triangle area calculator uses the same three-side workflow for that case.
Factors That Affect Herons Formula Results
The formula is exact for any real triangle. The main factors are the input rules and the precision of the side measurements.
Input unit consistency
The calculator does not know whether the user typed 3 in, 3 ft, or 3 m. All three sides must be in the same unit; mixing units silently produces a meaningless number.
Triangle inequality margin
Sides that just barely satisfy the inequality make the radicand very small, so a small change in any side moves the area by a large percentage.
Precision of the side measurements
Heron's formula is exact, but the side lengths you measure are not. A 1 percent error in the longest side can change the area by a few percent when the triangle is obtuse.
Floating-point rounding in the result panel
The result panel rounds area, perimeter, and semi-perimeter to two decimals. Hand calculations that round at each intermediate step can differ by a few hundredths on the same input.
- • Heron's formula needs a real triangle. Inputs that violate the triangle inequality produce a zero or negative radicand, and the calculator rejects them with an error.
- • Degenerate inputs (longest side exactly equal to the sum of the other two) collapse the triangle to a line, and the area is exactly zero. The form reports this as a separate error.
- • Heron's formula assumes a planar Euclidean triangle. It does not apply to spherical triangles, where the spherical excess formula takes its place.
If a result looks wrong, the most common cause is mixed units. The second most common is a measurement that violates the triangle inequality by a small margin.
For long, thin obtuse triangles the radicand becomes small and the displayed area is sensitive to small changes in the longest side. Re-measure the longest side if the area matters for a material order.
According to Wikipedia, Heron's formula gives the area of a triangle from the three side lengths and works for every Euclidean triangle, including obtuse and acute cases, as long as the three sides satisfy the triangle inequality.
When the plot is not a triangle, splitting it into triangles and running Heron's formula on each part is the same workflow the polygon area calculator uses for irregular polygons.
Frequently Asked Questions
Q: What is Heron's formula?
A: Heron's formula is the area rule that uses only the three side lengths of a triangle. The semi-perimeter is s = (a + b + c) / 2, and the area is the square root of s * (s - a) * (s - b) * (s - c). It works for every Euclidean triangle.
Q: How do you find the area of a triangle when you know all three sides?
A: Add the three sides and divide by two to get the semi-perimeter s. Plug s and the three side lengths into Area = sqrt(s * (s - a) * (s - b) * (s - c)). The three sides must satisfy the triangle inequality.
Q: What is the semi-perimeter in Heron's formula?
A: The semi-perimeter s is half of the perimeter a + b + c. The four factors inside the square root are s itself, and s minus each of the three side lengths.
Q: Does Heron's formula work for obtuse triangles?
A: Yes. Heron's formula does not require a right angle or an acute triangle. The same expression gives the correct area for acute, right, and obtuse triangles, as long as the three sides satisfy the triangle inequality.
Q: When does Heron's formula give a negative or zero result?
A: Heron's formula gives zero when the three sides form a degenerate triangle (the longest side is exactly equal to the sum of the other two). It gives a negative radicand when the triangle inequality is violated.
Q: Can Heron's formula be used to check the triangle inequality?
A: Yes. Compute the radicand s * (s - a) * (s - b) * (s - c); a positive value means the sides satisfy the strict triangle inequality, zero means a degenerate triangle, and a negative value means the sides cannot form a real triangle.