Triangle Calculator
Enter three parts of a plane triangle — SSS, SAS, ASA, AAS, or SSA — to find the remaining sides and angles, plus the area and perimeter. Calculations stay in this browser. Angles are in degrees.
Given parts
Limits
- Plane (Euclidean) triangles only; not spherical trigonometry.
- Angles are in degrees; A + B + C = 180°.
- Side lengths must use one consistent unit.
See the full list under Limits and how it works below.
Solved triangle
How to use Triangle Calculator
- Choose the given partsPick SSS, SAS, ASA, AAS, or SSA. The fields change to match that combination. Angles are in degrees.
- Enter the known sides and anglesSide lengths can use any consistent unit. For SAS, angle C is between sides a and b. For ASA, side c is between angles A and B. For AAS and SSA, side a is opposite angle A.
- Read the solved triangleThe remaining sides and angles are shown with the perimeter and area. In the SSA case there may be two triangles, one triangle, or none.
Limits and how it works
- Plane (Euclidean) triangles only; not spherical trigonometry.
- Angles are in degrees; A + B + C = 180°.
- Side lengths must use one consistent unit.
- SSA can have zero, one, or two solutions; this page shows both when they exist.
How this triangle calculator solves SSS, SAS, ASA, AAS, and SSA
Sides a, b, and c are opposite angles A, B, and C. In the Euclidean plane, A + B + C = 180°. Side lengths may use any unit, as long as all three sides use the same one; the area is then in that unit squared. Angles are entered and reported in degrees. The identities below are for a plane triangle, not a spherical triangle.
The law of sines is a / sin A = b / sin B = c / sin C. The law of cosines is c² = a² + b² − 2ab cos C, and likewise for the other sides. The area is (1/2)ab sin C. The same area is given by Heron's formula Δ = √[s(s − a)(s − b)(s − c)], where s = (a + b + c) / 2 is the semi-perimeter. See Weisstein, Eric W. “Law of Sines,” “Law of Cosines,” and “Heron's Formula,” MathWorld—A Wolfram Web Resource.
SSS uses the law of cosines to find each angle from the three sides. SAS uses the law of cosines to find the third side from two sides and the included angle. ASA and AAS first find the third angle from A + B + C = 180°, then use the law of sines for the remaining sides. SSA (two sides and a non-included angle opposite one of them) is the ambiguous case: depending on the height h = b sin A, there may be no triangle, one triangle (including a right triangle when a = h), or two triangles.
Frequently asked questions
What is the ambiguous SSA case?
When you know two sides and a non-included angle opposite one of those sides (angle A, side a, and side b), two different triangles can sometimes fit the same parts. If A is acute and the height h = b sin A is less than a, and a is also less than b, there are two solutions. This page shows both when they exist.
Why did I get no triangle?
The three sides must satisfy the triangle inequality (the sum of any two sides is greater than the third). Each angle must be greater than 0° and less than 180°, and the three angles must sum to 180°. In the SSA case, the given side opposite the angle may also be too short to meet the other side (when a < b sin A).
Are these the same as the scientific or graphing calculator?
No. The scientific calculator evaluates expressions, and the graphing calculator plots functions. This page solves a plane triangle from a standard congruence case (SSS, SAS, ASA, AAS, or SSA). Use the angle converter if you need to change degrees to radians or another angle unit.
Which unit should I use for the sides?
Any length unit is fine, as long as every side uses the same unit. The solved sides come back in that unit, and the area is in that unit squared. Angles are always in degrees.