Explore all tools
FREE ONLINE TOOLNo visitor account required

Triangle Calculator

Solve any triangle from three known facts — sides or angles — with a labelled diagram drawn to scale, plus area, perimeter, inradius, circumradius and heights.

—

Area

—

Side a—
Side b—
Side c—
Angle A—
Angle B—
Angle C—
Perimeter—
Semiperimeter—
Inradius—
Circumradius—
Height to side c—

Note: Angles must be entered in the unit selected above. In SAS mode the angle is the one between sides a and b (angle C); in ASA mode the side is c, the side between angles A and B.

Report a problem with this tool

How This Triangle Calculator Works

Give the calculator any three facts about a triangle — three sides, two sides with the angle between them, two angles with a side, or the two legs of a right triangle — and it works out everything else. Three sides are solved with the law of cosines, c2 = a2 + b2 − 2ab·cos(C), run once per angle. Two angles fix the third because the angles of every triangle add to 180°, and the law of sines, a / sin(A) = b / sin(B) = c / sin(C), then scales the known side into the other two. The area comes from Heron's formula once all three sides are known: with s = (a + b + c) / 2, area = √(s(s − a)(s − b)(s − c)). The diagram is drawn to scale from your numbers, with side a opposite angle A, side b opposite angle B and side c opposite angle C — the labelling convention used everywhere in trigonometry.

cabABC
Acute — every angle under 90°
cabABC = 90°
Right — one angle exactly 90°
cabABC
Obtuse — one angle over 90°

Worked Example

Sides a = 3, b = 4 and c = 5. The law of cosines gives cos(C) = (32 + 42 − 52) / (2 × 3 × 4) = 0, so angle C is exactly 90° — this is a right triangle. The other angles are A = 36.87° and B = 53.13°. Heron's formula: s = 6, area = √(6 × 3 × 2 × 1) = 6. The inradius is (a + b − c) / 2 = 1 and the circumradius is c / 2 = 2.5, two shortcuts that only hold because the angle at C is right. By sides it is scalene (all different); by angles it is right — the calculator reports both classifications.

Inradius, Circumradius and Heights

The inradius r = area / s is the radius of the largest circle that fits inside the triangle, touching all three sides. The circumradius R = a / (2 sin A) is the radius of the circle passing through all three corners. Each height (altitude) is 2 × area ÷ the side it lands on, so the height to side c in the example is 2 × 6 / 5 = 2.4. These are not trivia: circumradius governs how a triangular brace or plot of land fits inside a circular boundary, and inradius is the biggest round object — a pipe, a tree canopy, a pizza — that fits inside a triangular space.

Frequently Asked Questions

What three facts do I need to solve a triangle?

Any three of the six facts (three sides, three angles) that include at least one side: three sides, two sides with the included angle, or two angles with a side. Three angles alone fix the shape but not the size.

What is the difference between SSS, SAS and ASA?

SSS means three known sides, SAS two sides with the angle between them, and ASA two angles with the side between them. Each combination has a unique solution, which is why three facts are enough.

How is the area calculated?

By Herons formula once all sides are known: with s = (a + b + c) / 2, area = sqrt(s(s - a)(s - b)(s - c)). For a right triangle it reduces to half the product of the legs.

Can the calculator work in radians?

Yes. Switch the angle unit to radians and inputs and outputs both use radians; pi radians equals 180 degrees.