Math calculator

Free triangle calculator

Calculate triangle area, perimeter, and angles — enter any combination of sides and angles, updated live, as you type.

InputsLive
Side a
Side b
Side c
Result
Area
6
Sides 3, 4, 5 → area 6
Area6
Perimeter12
Semi-Perimeter6
Valid TriangleValid

Area via Heron's formula. Triangle inequality: each side must be less than the sum of the other two. Source: Heron of Alexandria.

Results are estimates. Consult a professional.

How it's calculated

How the triangle calculator works

A triangle's area, perimeter, and angles are linked by several exact formulas. The basic area formula requires a base and height; Heron's formula computes area from all three sides alone, without needing to know the height. All interior angles always sum to 180°.

Area (base & height): A = ½ × b × h
Perimeter: P = a + b + c
Angle sum: A + B + C = 180°
Heron's formula: s = (a+b+c)/2 → A = √(s(sa)(sb)(sc))
Weisstein, E. W. Triangle. MathWorld.
Example

Worked example: triangle with sides 5, 7, 8

Example: sides a=5, b=7, c=8

Given a triangle with sides a = 5, b = 7, c = 8, find the perimeter and area using Heron's formula.

Perimeter P = 5 + 7 + 8 = 20
Semi-perimeter s = 20 / 2 = 10
A = √(s(sa)(sb)(sc))
A = √(10 × 5 × 3 × 2) = √300 ≈ 17.32
≈ 17.32 sq units
The triangle has a perimeter of 20 and an area of approximately 17.32 square units.
Quick reference

Triangle types and properties

Triangles are classified by their sides (equilateral, isosceles, scalene) and by their angles (acute, right, obtuse). Each type has distinctive properties.

TypeSides / AnglesKey property
EquilateralAll 3 sides equalAll angles = 60°
Isosceles2 sides equalBase angles are equal
ScaleneAll 3 sides differentAll 3 angles different
RightOne angle = 90°Pythagorean theorem: a²+b²=c²
AcuteAll angles < 90°Longest side² < sum of other two sides²
ObtuseOne angle > 90°Longest side² > sum of other two sides²

A triangle can belong to both a side-based and an angle-based category (e.g. right isosceles).

Practical tips

Tips for triangle calculations

Keep these principles in mind to avoid common triangle errors.

  • Verify the triangle inequality — a valid triangle requires that any two sides sum to more than the third: a+b > c, a+c > b, b+c > a. If violated, no triangle exists.
  • Use Heron's formula when height is unknown — if you know all three sides but not the height, Heron's formula gives exact area without needing to calculate height first.
  • Remember the angle sum — interior angles always sum to 180°; use this to find a missing angle when two are known.
  • Apply the Pythagorean theorem for right triangles — if one angle is exactly 90°, c² = a²+b² where c is the hypotenuse (the longest side, opposite the right angle).
  • Scale area correctly — doubling all side lengths multiplies the area by 4, not 2. Area scales with the square of the linear scale factor.
Accuracy & limits

Accuracy and limitations

Results are computed to standard double-precision floating-point accuracy (≈15 significant digits). Heron's formula can lose accuracy for very flat triangles (where one side is nearly equal to the sum of the other two) due to catastrophic cancellation; a numerically stable variant uses sorted sides. This calculator assumes Euclidean (flat) geometry. Spherical triangles — such as those on a globe — follow different rules where the angle sum exceeds 180°.

Glossary

Key terms

Any chosen side of the triangle used as the reference for height measurement.
The perpendicular distance from the base to the opposite vertex.
Half the perimeter: s = (a+b+c)/2; used in Heron's formula.
The longest side of a right triangle, located opposite the right angle.
The rule that every pair of sides must sum to more than the third side for a valid triangle.
A = √(s(s−a)(s−b)(s−c)), which gives the area of a triangle from its three side lengths alone.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free triangle calculator

A triangle calculator is a free online tool that helps you find the area of any triangle from its three sides using Heron's formula. Heron's formula gives the area of a triangle from its three sides alone — no angle measurement needed. The three sides must satisfy the triangle inequality. It runs entirely in your browser with instant results and no sign-up.
Each side must be strictly less than the sum of the other two. If a + b ≤ c (or any cyclic permutation), no real triangle can form — the 'sides' won't close into a shape. The calculator checks this and reports invalid input.
When you don't have a height. If you only know the three side lengths (no perpendicular distance from base to apex), Heron's formula gives you the area directly — no extra construction or trig required.
Yes — Heron's formula works for any valid triangle, including equilateral (1-1-1 has area √3/4), isoceles, and scalene.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.