Triangle Area (Heron's Formula)

Last updated: 2026-09-01

Triangle Area (Heron's Formula) — Triangle Area (Heron's Formula). Free online calculator with formula, examples and step-by-step guide.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
BaseHeightLado c
Triangulo 3m lado 22.42.8
Cuadrado 5m lado 3.54.24.9
Pentagono 6m lado 567
Hexagono 8m lado 7.5910.5
Octogono 10m lado 12.51517.5

TL;DR: To calculate the area of a triangle using Heron's Formula, you first need the lengths of all three sides, and the area is calculated as √(s × (s – side_a) × (s – side_b) × (s – side_c)), where s is the semiperimeter (half of the total perimeter).

What Is the Triangle Area (Heron's Formula)?

Heron's Formula is a mathematical theorem that lets you calculate the area of any triangle when you know the lengths of all three sides, without needing to know the height or any angles. This is incredibly useful because in many real-world situations, measuring the height of a triangle is impractical—think of a large plot of land, a triangular roof, or a geodesic dome panel—where you can easily measure the boundary sides with a tape measure but cannot drop a perpendicular line to measure the height.

This calculator is designed for students, engineers, architects, surveyors, and DIY enthusiasts. It saves you from the tedious manual calculation of the semiperimeter and the square root involved in Heron's formula. Instead of risking arithmetic errors, you input the three side lengths, and the calculator instantly provides the area, semiperimeter, and perimeter, giving you a complete geometric profile of the triangle.

Understanding this formula is fundamental in geometry and trigonometry, and it often appears in standardized tests (like the SAT or ACT) and in advanced coursework in physics and engineering. The formula is notably robust because it works for all triangle types—acute, obtuse, and even right triangles—as long as the triangle inequality theorem is satisfied (the sum of any two sides must be greater than the third side).

How to Use the Calculator

Using this tool is straightforward. Follow these steps to get accurate results instantly:

  1. Locate the Input Fields: On the calculator interface, you will see three labeled input boxes. They are marked as 'base', 'height', and 'lado_c'. Note: The labels are a bit misleading in this legacy interface; 'base' and 'height' here actually refer to the lengths of two specific sides of the triangle (side_a and side_b). 'Lado_c' is Spanish for 'side c'.
  2. Enter Side Length 'a' (Base): In the field labeled 'base', enter the length of your first side. For example, if you have a triangle with sides measuring 5 units, type 5.
  3. Enter Side Length 'b' (Height): In the field labeled 'height', enter the length of your second side. Even though it says "height," this is actually a side length for Heron's formula. In our example, type 6.
  4. Enter Side Length 'c' (lado_c): In the field labeled 'lado_c', enter the length of your third side. For our example, type 7.
  5. Review Your Inputs: Double-check that you have entered positive numbers. The formula requires strictly positive values, and the triangle inequality must be satisfied (the sum of any two sides must be greater than the third).
  6. Calculate: Click the 'Calculate' or 'Submit' button. The tool will compute the semiperimeter (s), the perimeter (P), and the area (A) using Heron's formula.

Formula and Calculation Method

Heron's Formula is elegant because it relies solely on side lengths. The core of the method involves two distinct steps: first, finding the semiperimeter, and second, applying it to the area formula.

Let a, b, and c represent the lengths of the three sides of the triangle. The perimeter (P) is the sum of these sides. The semiperimeter (s) is exactly half of that perimeter. The formula for the semiperimeter is: s = (a + b + c) / 2. The area (A) is then calculated using: A = √(s × (s – a) × (s – b) × (s – c)).

Worked Example: Let's walk through the exact scenario from the calculator's description: base = 5, height = 6, and lado_c = 7. So, we have a = 5, b = 6, and c = 7.

Step 1: Calculate the Perimeter. Perimeter (P) = a + b + c = 5 + 6 + 7 = 18 units.

Step 2: Calculate the Semiperimeter. Semiperimeter (s) = P / 2 = 18 / 2 = 9 units.

Step 3: Apply Heron's Formula. Now we substitute into the area formula:

A = √(s × (s – a) × (s – b) × (s – c))
A = √(9 × (9 – 5) × (9 – 6) × (9 – 7))
A = √(9 × 4 × 3 × 2)
A = √(216)
A ≈ 14.6969 square units.

This result—14.70 square units (rounded to two decimal places)—is the area of the triangle. The calculator will show you this value along with the semiperimeter (9) and the perimeter (18).

Practical Examples

Heron's formula is used in various professional and everyday scenarios. Here are three examples to illustrate how the calculator applies to different situations.

ScenarioSide a (base)Side b (height)Side c (lado_c)Semiperimeter (s)Area ResultContext
Small Garden Plot12 m15 m20 m23.5 m~89.9 m²A landscaper needs to calculate the amount of sod needed for a triangular flower bed. The result tells them exactly how much grass to purchase.
Structural Support Frame3 ft4 ft5 ft6 ft6 ft²An engineer verifies the area of a right triangle support bracket. Note that 3-4-5 is a classic Pythagorean triple, and the area here is simply (3*4)/2=6, confirming Heron's formula works for right triangles too.
Remote Land Survey50 m60 m75 m92.5 m~1467.6 m²A surveyor uses GPS distance measurements between three boundary markers to calculate the area of an irregular land parcel, avoiding the need to traverse the interior for a height measurement.

Tips for Accurate Results

  • Verify the Triangle Inequality: Before hitting calculate, mentally check that the sum of any two sides is greater than the third. For instance, with sides 2, 3, and 6, the sum of 2+3=5, which is less than 6. This is not a valid triangle, and Heron's formula will return a negative value under the square root (or an error in many calculators). Your calculator will likely show an error or an "invalid triangle" message. Always ensure a + b > c, a + c > b, and b + c > a.
  • Use Positive Numbers Only: Side lengths cannot be zero or negative. A zero length means you have a line segment, not a triangle. Entering negative values will produce nonsensical results, as areas cannot be negative.
  • Unit Consistency is Critical: All three side lengths must be in the same unit system. If you mix meters and centimeters, your result will be wildly incorrect. For example, if side a is 5 meters, side b must be 6 meters (not 600 centimeters) for a simple calculation. Convert all measurements to the same unit before entering them.
  • Understanding the 'Height' Label: Do not confuse the 'height' input field with the actual perpendicular height of the triangle. This calculator does not use perpendicular height for Heron's formula; it requires the length of the third side. Inserting the perpendicular height here will give you a completely wrong answer.
  • Check Your Values for Scale: If you are calculating the area of a swimming pool (e.g., sides of 10, 12, 15 meters), ensure you haven't accidentally typed a decimal point in the wrong place, turning 12 into 1.2. A quick sanity check on the magnitude of the result helps catch typos.

Frequently Asked Questions

What is the difference between using Heron's formula and the standard base-times-height formula?

The standard formula for a triangle's area is (base × height) / 2. This is efficient, but it requires you to know the perpendicular height from the base to the opposite vertex. In many real-world scenarios, this height is difficult to measure because the vertex is not directly above the base. Heron's formula eliminates this need. If you only have three tape measurements of the outer edges (sides a, b, and c), you can find the area without ever knowing the height. Heron's formula is a universal fallback for when height data is unavailable.

Why am I getting an error or an imaginary number when I input my side lengths?

The most common reason for an error is violating the triangle inequality theorem. If you input lengths such as 2, 3, 9, these lengths cannot physically form a triangle. The short sides cannot span the distance of the longest side. When this occurs, the term (s – a), (s – b), or (s – c) inside the square root becomes negative, leading to a calculation error or an "invalid" result. Double-check your measurements, or reassess whether you are actually measuring a triangle shape. The largest side must be less than the sum of the other two.

Can I use Heron's formula for a right triangle or an equilateral triangle?

Yes, absolutely. Heron's formula is universally applicable to all triangles. For a right triangle, it will give the same result as the (base × height)/2 formula using the legs. For an equilateral triangle (e.g., all sides are 6), the formula works perfectly. For example, with sides 6, 6, and 6: s = 9, and the area is √(9 × 3 × 3 × 3) = √(243) ≈ 15.59 square units. This specific case can be simplified, but the calculator handles it without issue, proving its versatility across all triangle types.

FAQ

What is Heron's formula and how does it calculate the area of a triangle?

Heron's formula calculates the area of a triangle using only the lengths of its three sides, without needing the height or any angles. It works by first computing the semi-perimeter (s) as half the sum of the sides, then applying the formula: area = √(s × (s-a) × (s-b) × (s-c)), where a, b, and c are the side lengths.

Can I use any three positive numbers for the sides, or are there restrictions?

No, you cannot use any three numbers—the sides must satisfy the triangle inequality theorem, meaning the sum of any two sides must be greater than the third side. If this condition is not met, the formula will return a negative or invalid result (or an error), because a real triangle cannot exist with those measurements.

What units does the calculator output use for the area?

The calculator outputs the area in square units that correspond to the units you input for the side lengths. For example, if you enter side lengths in centimeters, the area will be in square centimeters; if you enter meters, the area will be in square meters. The calculator does not perform unit conversions, so ensure all three sides are in the same unit before entering them.

Is this calculator accurate for very large or very small triangles?

Yes, the calculator uses double-precision floating-point arithmetic, which provides high accuracy for most practical purposes, including very small or very large triangles. However, for extreme values (like sides near zero or over a billion), floating-point rounding errors can occur, so it is recommended to use standard, realistic measurements for best results.