---
slug: triangle-calculator
title: "Triangle Calculator"
category: geometry
updated: 2026-11-17
canonical: https://calcseed.com/c/geometry/triangle-calculator/
html: /c/geometry/triangle-calculator/
---

# Triangle Calculator

Calculate the area and perimeter of any triangle from its three sides using Heron’s formula. Solve for a missing side or the area. Free and instant.

## Quick answer

**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.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Side a | 3 | units |
| Side b | 4 | units |
| Side c | 5 | units |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Area | 6 | units² |
| Perimeter | 12 |  |
| Semiperimeter | 6 |  |

## Formula

```text
A = &radic;(s(s−a)(s−b)(s−c)),    s = (a + b + c) ÷ 2
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Side a | number | units | 3 |
| Side b | number | units | 4 |
| Side c | number | units | 5 |
| Area | number | units² | 6 |

## Outputs

| Result | Format |
| --- | --- |
| Area | primary |
| Perimeter | number |
| Semiperimeter | number |

## How it works

### 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&rsquo;s formula converts them straight to area. You can also enter two sides plus the area and solve for the missing side.

### Heron&rsquo;s formula

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 = &radic;(6 × 3 × 2 × 1) = &radic;36 = **6 units²**. The perimeter is **12 units**. Because 3-4-5 is a right triangle, the shortcut &frac12; × base × height = &frac12; × 3 × 4 = 6 confirms it exactly — Heron agrees with the leg-based result without ever knowing an angle.

#### Heron at other triples

| Sides | Semiperimeter s | Area (units²) | Note |
| --- | --- | --- | --- |
| 3, 4, 5 (default) | 6 | 6 | Right triangle, &frac12; × 3 × 4 |
| 2, 2, 2 | 3 | 1.73 | Equilateral: &radic;3 ÷ 4 × s² |
| 5, 5, 6 | 8 | 12 | Isosceles, exact 12 |
| 7, 8, 9 | 12 | 26.83 | Scalene, &radic;720 |
| 13, 14, 15 | 21 | 84 | The 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 — &radic;(21 × 8 × 7 × 6) = &radic;7056 = 84 — and its sides pace out cleanly on the ground. Heron&rsquo;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 &radic;(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&rsquo;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 &radic;3 ÷ 4 shortcut. For any other case, Heron&rsquo;s formula on this page is the general machine.

## FAQ

### 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 = &radic;(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 &ge; 5; sides 2, 3 and 4 pass with s = 4.5 and a valid, nonzero area.

### Why does Heron&rsquo;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 = &radic;(21 × 8 × 7 × 6) = &radic;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&rsquo;s formula work for right triangles?

Yes, though the &frac12; × 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

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

Last updated: 2026-11-17.
- Heron’s formula: A = √(s(s−a)(s−b)(s−c)), s = (a+b+c)/2.
