Triangle Calculator: Sides, Angles, Area
This triangle calculator solves any triangle when you know three values, such as three sides, two sides and the angle between them, or two angles and a side. It finds the missing sides and angles with the law of sines and law of cosines, plus the area and perimeter.
Triangle Calculator
-
-
-
-
This triangle calculator solves any triangle, not just right triangles, from three known values. Choose SSS, SAS, ASA, AAS or SSA, and it returns all three sides, all three angles, the area and the perimeter, with a sketch of the shape.
How to use the Triangle Calculator
- Choose a Solve Mode that matches what you know. The hint under the button tells you which fields to fill.
- Enter the values the hint asks for. Angles are in degrees, and each angle sits opposite the side with the same letter.
- Press Calculate Triangle to see the sides, angles, area and perimeter.
Formula
Law of sines: a/sin A = b/sin B = c/sin C
Area (Heron): √(s(s − a)(s − b)(s − c)), with s = (a + b + c) ÷ 2
The tool uses the law of cosines for SSS and SAS, and the law of sines for the other modes. In SSA mode two different triangles can fit the same data (the ambiguous case); the tool shows the acute solution and notes the alternative angle.
Example
Sides 5, 6 and 7 (SSS): angle A = cos⁻¹((6² + 7² − 5²) ÷ (2 × 6 × 7)) = cos⁻¹(60/84) ≈ 44.42°, B = cos⁻¹(38/70) ≈ 57.12°, and C = 180° − A − B ≈ 78.46°. With s = 9, area = √(9 × 4 × 3 × 2) = √216 ≈ 14.6969, and the perimeter is 18.
Frequently asked questions
What do SSS, SAS, ASA, AAS and SSA mean?
They describe which parts you know, where S is a side and A is an angle, in order around the triangle. SAS means two sides and the angle between them; AAS means two angles and a side that is not between them.
Why is SSA called the ambiguous case?
Two sides and an angle that isn't between them can match zero, one or two different triangles. When angle A is acute and side a is shorter than side b but longer than b × sin A, two triangles are possible.
How do I find the area of a triangle from three sides?
Use Heron's formula. Find s, half the perimeter, then area = √(s(s − a)(s − b)(s − c)). For sides 3, 4 and 5: s = 6, so the area is √(6 × 3 × 2 × 1) = 6.
What is the triangle inequality?
Any two sides must add up to more than the third side. Sides 2, 3 and 6 can't form a triangle because 2 + 3 is less than 6, and the tool reports an error for inputs like that.
For triangles with a 90° angle and trig ratios, use the Right Triangle Calculator.
Solve a triangle from three known values
How to use it
- Pick the solve mode that matches what you know, such as SSS or SAS.
- Enter the known sides and angles in degrees.
- Read every side, angle, the area and the perimeter.
- For right triangles only, the Right Triangle Calculator is faster.
More questions
What do I need to solve a triangle?
Three values, and at least one must be a side. Three angles alone set the shape but not the size.
What is the law of cosines?
c² = a² + b² − 2ab × cos(C). It finds a side from two sides and the angle between them.
Do the angles always add up to 180°?
Yes. The three inside angles of any flat triangle add up to 180 degrees.
Related tools: Right Triangle Calculator, Hypotenuse Calculator (Reverse Solve), Area Calculator.