CalcSeed

Triangle Calculator

Enter the three side lengths of a triangle and get its area and perimeter instantly — or solve for a missing side from the area.

=
Quick answer: with the default inputs (3 units, 4 units, 5 units), the area is 6 units². At these inputs: perimeter = 12, semiperimeter = 6. Change any input to update the result.
Area
—

What this calculator does

Enter the three side lengths of any triangle and the calculator returns its area in units², its perimeter in units, and the semiperimeter that drives the area formula. At the defaults a = 3, b = 4, c = 5 it reports an area of 6, a perimeter of 12 and a semiperimeter of 6. No angles or heights are needed — three edges are enough to fix a triangle completely, and Heron’s formula converts them straight to area. You can also enter two sides plus the area and solve for the missing side.

Heron’s formula

A=s(s−a)(s−b)(s−c),s=a+b+c2A=\sqrt{s(s-a)(s-b)(s-c)},\ s=\frac{a+b+c}{2}

The quantity s is the semiperimeter, half the perimeter. Each factor (s − a), (s − b) and (s − c) measures the slack between one side and the other two, and it is exactly this slack that survives under the square root for a valid triangle. If the sides violate the triangle inequality — the largest side at least the sum of the other two — one factor turns zero or negative and the formula correctly reports a flat or impossible triangle.

Worked example at the defaults

For a = 3, b = 4, c = 5: the semiperimeter is (3 + 4 + 5) ÷ 2 = 6. The three slack factors are 6 − 3 = 3, 6 − 4 = 2 and 6 − 5 = 1, so A = √(6 × 3 × 2 × 1) = √36 = 6 units². The perimeter is 12 units. Because 3-4-5 is a right triangle, the shortcut ½ × base × height = ½ × 3 × 4 = 6 confirms it exactly — Heron agrees with the leg-based result without ever knowing an angle.

Heron at other triples

SidesSemiperimeter sArea (units²)Note
3, 4, 5 (default)66Right triangle, ½ × 3 × 4
2, 2, 231.73Equilateral: √3 ÷ 4 × s²
5, 5, 6812Isosceles, exact 12
7, 8, 91226.83Scalene, √720
13, 14, 152184The classic surveying triangle

The 13-14-15 classic

The 13-14-15 row is famous among surveyors because it lands on a whole-number area of 84 — √(21 × 8 × 7 × 6) = √7056 = 84 — and its sides pace out cleanly on the ground. Heron’s original audience, Alexandrian land measurers, worked precisely with triples like this one.

What the semiperimeter also gives you

The semiperimeter is more than a stepping stone. The inradius — the radius of the circle that fits snugly inside the triangle — is A ÷ s, which at the defaults is 6 ÷ 6 = 1 unit. The circumradius of the circle through the three corners is abc ÷ (4A) = 60 ÷ 24 = 2.5 units. Both fall out of quantities the calculator already reports, and both are used in layout and machining when a triangular part must seat against pins or pass through a bore.

Common mistakes

  • Entering an impossible triangle. Sides 1, 2 and 10 have s = 6.5, so s − c = −3.5 and the square root fails — the calculator flags it because no such triangle exists.
  • Accepting a degenerate flat triangle. Sides 1, 2 and 3 are technically legal input but give zero area; the sum of the two short sides must strictly exceed the long one.
  • Forgetting to halve the perimeter. Using P = 12 instead of s = 6 in the factors gives √(12 × 9 × 8 × 7) ≈ 82.8, wildly off from 6.
  • Measuring sloped land without projecting. Pacing along a hillside inflates each side; the horizontal projection is what the area formula wants.

Solving for a missing side

Clear one side, enter the other two plus the area, and the calculator inverts Heron’s formula. For instance, with b = 4, c = 5 and A = 6 it recovers a = 3 — the default triangle again. The reverse direction is genuinely useful in surveying: if a client needs a plot to contain exactly 6,000 ft² and two boundaries are fixed at 200 ft and 150 ft, the calculator finds the third boundary that closes the parcel at the target area. When your triangle is right-angled and you know the legs, the Pythagorean theorem calculator solves the third side faster; when all three corners are equilateral, the equilateral triangle calculator applies the √3 ÷ 4 shortcut. For any other case, Heron’s formula on this page is the general machine.

Frequently asked questions

How do I find the area of a triangle from three sides?

Compute the semiperimeter s = (a + b + c) ÷ 2, then take the square root of s × (s − a) × (s − b) × (s − c). For 3-4-5, A = √(6 × 3 × 2 × 1) = 6 square units.

What if I only know two sides?

Two sides alone do not fix a triangle — you need the third side, a height, or an included angle. Two sides plus the area also work: this calculator solves for the missing side from them.

Can I solve for a missing side?

Yes. Enter the other two sides and the area; with b = 4, c = 5 and A = 6, the calculator recovers a = 3.

How do I check that three sides form a valid triangle?

The longest side must be strictly less than the sum of the other two. Sides 2, 3 and 6 fail because 6 ≥ 5; sides 2, 3 and 4 pass with s = 4.5 and a valid, nonzero area.

Why does Heron’s formula need the semiperimeter?

Each factor (s − a), (s − b), (s − c) is the slack between one side and the other two. The semiperimeter makes those slacks meaningful, and their product under the square root is the area.

What is the area of a 13-14-15 triangle?

Exactly 84 square units: s = 21 and A = √(21 × 8 × 7 × 6) = √7056 = 84, which is why surveyors have favoured this triple for centuries.

What is the inradius of the default triangle?

The inradius is A ÷ s = 6 ÷ 6 = 1 unit. The circumradius is abc ÷ 4A = 60 ÷ 24 = 2.5 units.

Does Heron’s formula work for right triangles?

Yes, though the ½ × leg × leg shortcut is faster there. For 3-4-5 both give 6; Heron just never needs to know which angle is the right one.

What happens with sides 1, 2 and 3?

The triangle degenerates: the two short sides sum exactly to the long one, s − c = 0, and the area collapses to 0 — three collinear points, not a triangle.

What units should I enter?

Any consistent length unit: feet give ft² for area and feet for perimeter, metres give m² and metres. All three sides must share one unit.

Method and sources

Calculation basis

Formulas are the standard closed-form expressions of Euclidean geometry, exact for the given inputs.

Last updated: November 17, 2026
Formula & data sources
  • Heron’s formula: A = √(s(s−a)(s−b)(s−c)), s = (a+b+c)/2.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Triangle Calculator. https://calcseed.com/c/geometry/triangle-calculator/
MLA 9"Triangle Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/geometry/triangle-calculator/.
ChicagoCalcSeed. "Triangle Calculator." Last modified November 17, 2026. https://calcseed.com/c/geometry/triangle-calculator/

Related calculators

People also calculate