InfyCalculator
➗

Triangle Calculator (SSS, SAS, ASA, AAS, SSA)

Solve any triangle from three known parts — SSS, SAS, ASA, AAS or the ambiguous SSA case — and get every side and angle, area, perimeter, inradius, circumradius and triangle type.

What you know
Side a
Side b
Side c
Angle A (opposite side a)
Angle B (opposite side b)
Angle C (opposite side c)
Loading calculator…

How it works

Law of cosines: c² = a² + b² − 2ab·cos C · Law of sines: a/sin A = b/sin B = c/sin C = 2R · A + B + C = 180° · Area = ½ab·sin C · r = Area/s, s = (a + b + c)/2

Three independent parts fix a triangle, as long as one of them is a side. SSS and SAS are solved with the law of cosines, ASA and AAS with the angle sum and the law of sines. SSA is the ambiguous case: sin B = b·sin A / a can give no triangle, one triangle or two (an acute and an obtuse B), and the calculator shows both when they exist. Side a is always opposite angle A, b opposite B, c opposite C.

Worked example

SSS with a = 5, b = 7, c = 8: cos B = (5² + 8² − 7²)/(2·5·8) = 0.5, so B = 60°; cos A = (7² + 8² − 5²)/(2·7·8) = 0.7857, so A = 38.2132° and C = 81.7868°. Missing values: A = 38.2132°, B = 60°, C = 81.7868°. Area = √(10·5·3·2) = 17.3205, perimeter 20, a scalene acute triangle.

Sources: OpenStax Algebra and Trigonometry 2e — 10.1 Non-right Triangles: Law of Sines · OpenStax — 10.2 Non-right Triangles: Law of Cosines

Frequently asked questions

What do SSS, SAS, ASA, AAS and SSA mean?

They list what you know in order around the triangle: S = side, A = angle. SAS means two sides with the angle between them; AAS means two angles and a side that is not between them.

Why can SSA give two triangles?

Because sin B = sin(180° − B). If side a is longer than the height b·sin A but shorter than b, the side can swing to two positions, giving one acute and one obtuse angle B.

Can I solve a triangle from three angles?

No. AAA fixes the shape but not the size — infinitely many similar triangles share the same angles. You need at least one side.

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

Use Heron’s formula: s = (a + b + c)/2 and Area = √(s(s − a)(s − b)(s − c)). For 5, 7, 8 that is √300 ≈ 17.3205.

Which side is a?

Side a is the side opposite angle A (it does not touch vertex A); likewise b is opposite B and c is opposite C.

Related calculators

This calculator is for educational purposes. Double-check important results before acting on them.