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

Solve any triangle from any three elements. Law of Sines, Law of Cosines, and the ambiguous SSA case.

MATH

Solve any triangle from any three known elements using Law of Sines and Law of Cosines. Supports SSS (three sides), SAS (two sides and the included angle), ASA (two angles and the side between them), AAS (two angles and a non-included side), and the ambiguous SSA case (two sides and a non-included angle - can have 0, 1, or 2 valid solutions).

Law of Sines: a/sin(A) = b/sin(B) = c/sin(C). Law of Cosines: c² = a² + b² - 2ab·cos(C). SSS and SAS resolve uniquely. ASA and AAS resolve once you find the third angle from A+B+C = 180°. SSA is the ambiguous case - it returns two solutions when sin(B) = b·sin(A)/a allows both an acute B and its supplement 180-B to satisfy the constraints. Output includes all six elements, area (½·a·b·sin(C)), perimeter, and triangle type (equilateral, isosceles, right, acute, obtuse, scalene).

Disclaimer: Assumes Euclidean (flat-plane) geometry. Spherical and hyperbolic triangles use different formulas.
Loading calculator…
Advertisement

Frequently Asked Questions

What is the difference between SSS, SAS, ASA, AAS, and SSA?
These are the five ways three known elements determine a triangle. SSS = three sides. SAS = two sides and the angle between them. ASA = two angles and the side between them. AAS = two angles and a non-included side. SSA = two sides and a non-included angle (the ambiguous case - can have 0, 1, or 2 valid solutions). Three angles alone (AAA) determines shape but not size, so it cannot uniquely solve a triangle.
When does SSA have two solutions?
When the given angle A is acute AND the side opposite that angle (a) is shorter than the side b but longer than b·sin(A) (the perpendicular height from B). Geometrically, side a can swing to two different positions that both meet the side b. The two solutions are supplementary: B₁ + B₂ = 180°. If a > b, there is exactly one solution. If a < b·sin(A), there is no triangle.
What is the Law of Sines vs the Law of Cosines?
Law of Sines: a/sin(A) = b/sin(B) = c/sin(C). Used when you know any angle and its opposite side (the "matched pair"). Law of Cosines: c² = a² + b² - 2ab·cos(C). Used when you have all three sides (SSS) or two sides plus the included angle (SAS). Law of Cosines is also the generalization of the Pythagorean Theorem: when C = 90°, cos(C) = 0 and the formula reduces to c² = a² + b².
How do I find the area of a triangle from its sides?
Heron's formula: area = √(s(s-a)(s-b)(s-c)), where s = (a+b+c)/2 is the semi-perimeter. For a 3-4-5 triangle, s = 6 and area = √(6·3·2·1) = √36 = 6 square units. Alternative when you know two sides and the included angle: area = ½·a·b·sin(C). When you know base and height: area = ½·base·height. All give the same answer; pick whichever fits your known data.
Sponsored