△ Triangle Calculator
Triangle Calculator
Give this calculator any three side lengths and it returns the area using Heron's formula — the elegant method that needs no height measurement — plus the perimeter and whether the triangle is equilateral, isosceles or scalene.
It also checks the triangle inequality first: if the sides cannot physically form a triangle, it tells you instead of producing nonsense.
How to use this calculator
Type the lengths of the three sides and it checks they can form a triangle, then returns the area, perimeter and triangle type.
- Enter the length of Side a.
- Enter the length of Side b.
- Enter the length of Side c.
- Press Calculate to see the area, the perimeter, the triangle type (equilateral, isosceles or scalene) and whether it is right-angled.
Worked example: the triangle with sides 3, 4 and 5
This is exactly the working the calculator shows for your own numbers:
Step 1 — is it a triangle at all? The two shorter sides must beat the third: 3 + 4 = 7 > 5 ✓.
Step 2 — semiperimeter: s = (3 + 4 + 5) ⁄ 2 = 6.
Step 3 — area by Heron: √(s(s − a)(s − b)(s − c)) = √(6 × 3 × 2 × 1) = √36 = 6.
Step 4 — the angles by the cosine rule: opposite the side of 3: cos⁻¹((4² + 5² − 3²) ⁄ (2 × 4 × 5)) = cos⁻¹(0.8) ≈ 36.87°. Opposite the side of 4: cos⁻¹((3² + 5² − 4²) ⁄ (2 × 3 × 5)) = cos⁻¹(0.6) ≈ 53.13°. Opposite the side of 5: cos⁻¹(0) = 90°. Check: 36.87 + 53.13 + 90 = 180 ✓.
Step 5 — the extras: perimeter 12; the altitude to the base of 5 is 2 × 6 ⁄ 5 = 2.4; the inradius (the largest circle that fits inside) is area ⁄ s = 6 ⁄ 6 = 1; the circumradius (the circle through all three corners) is (3 × 4 × 5) ⁄ (4 × 6) = 2.5. Type: scalene and right-angled.
What does this triangle calculator compute?
It computes the area, perimeter and classification of a triangle from its three side lengths: whether it is equilateral, isosceles or scalene, plus a check for a right triangle. All three sides must be positive lengths.
Three sides are only one way to pin a triangle down
A triangle is fully determined by three pieces of information — as long as they include at least one side. Three sides (SSS) is the case this calculator started with, but a builder who knows two sides and the angle between them (SAS), or a surveyor who knows one side and the angles at its ends (ASA), holds exactly the same power. Each combination has its own solving route: Heron's formula turns three sides into an area directly, the cosine rule manufactures the missing side when an angle is trapped between two known sides, and the sine rule pairs sides with their opposite angles once one pair is complete.
| Case | You enter | The route the solver takes |
|---|---|---|
| SSS | Three sides | Cosine rule for the angles, Heron for the area |
| SAS | Two sides + the angle between them | Cosine rule for the third side, then sine rule |
| ASA / AAS | One side + two angles | Third angle from 180°, then sine rule |
| SSA | Two sides + a non-included angle | Sine rule — may give two valid triangles |
Worked example: two sides and the angle between them (SAS)
Sides of 5 and 7 with a 60° angle trapped between them:
Step 1 — area directly: ½ × 5 × 7 × sin 60° = 17.5 × 0.866 ≈ 15.16.
Step 2 — the third side by the cosine rule: √(5² + 7² − 2 × 5 × 7 × cos 60°) = √(74 − 35) = √39 ≈ 6.24.
From there the solver finishes the angles with the sine rule, exactly as in the SSS example.
The two circles every triangle owns
Every triangle, however lopsided, has an incircle that kisses all three sides from inside and a circumcircle that passes through all three corners. Their radii are not decorative: the inradius governs how large a fitting can be machined inside a triangular plate, and the circumradius is the sweep a triangular frame needs to rotate without striking anything. Both fall straight out of the area you already computed, which is why the calculator reports them with every result.
Frequently asked questions
What is the area of a triangle with sides 5, 5 and 6?
Use Heron's formula. The semiperimeter is (5 + 5 + 6)/2 = 8, so the area is √(8 × 3 × 3 × 2) = √144 = 12 square units. Its angles are about 53.13°, 53.13° and 73.74°, and its perimeter is 16.
Can I solve a triangle if I only know two sides and an angle?
Yes, if the angle sits between the two sides (SAS): the cosine rule gives the third side and the area comes from ½ab·sin C. Two sides of 5 and 7 around a 60° angle give a third side of √39 ≈ 6.24 and an area of about 15.16. If the angle is not between the sides (SSA), the calculator checks whether two different triangles fit your numbers and shows both.
What are the inradius and circumradius?
The inradius is the radius of the largest circle that fits inside the triangle — area divided by semiperimeter (12/8 = 1.5 in the example above). The circumradius is the radius of the circle passing through all three corners — (a × b × c)/(4 × area) = 3.125 in the same example.
Why does the calculator ask whether my triangle is acute, right or obtuse?
The classification comes free from the longest side: if the square of the longest side is less than the sum of the squares of the other two, the triangle is acute; equal means right-angled; greater means obtuse. It also tells you at a glance whether the Pythagorean theorem can be applied directly.
My three sides give an error — what went wrong?
Almost certainly the triangle inequality: any two sides added together must exceed the third side. Sides of 2, 3 and 6 cannot form a triangle — the two short sides cannot meet. The solver names the failing pair rather than returning zero.







































