Skip to main content
CalcChef

Triangle Calculator

Enter any three sides or angles of a triangle, at least one a side. Solves SSS, SAS, ASA, AAS and both SSA triangles, with area, perimeter and heights. How it works

Use the Triangle Calculator

Angle unit

Enter any three of the six values, at least one of them a side. Angle A is opposite side a, B opposite b, C opposite c. Leave a field empty when it is not known; 0 is not a valid value. Sides use any one unit.

Area
6
Perimeter 12

Case detected: SSS

Given: all three sides.

Law of cosines, in its half-angle form, gives each angle from the three sides.

Right scalene triangle

Side a
3
Side b
4
Side c
5
Angle A
36.8699°
Angle B
53.1301°
Angle C
90°
Area
6
Perimeter
12
Height on a
4
Height on b
3
Height on c
2.4
Inradius
1
Circumradius
2.5

About the Triangle Calculator

A 3-4-5 triangle has angles of 36.8699°, 53.1301° and 90° and an area of 6. This triangle calculator solves any triangle from three known values, at least one of them a side: it finds the missing sides and angles, then the area, perimeter, three heights, inradius and circumradius.

The five cases and how each is solved

CaseWhat you knowHow it is solvedExample inputSolved triangle
SSSThree sidesLaw of cosines for each anglea = 7, b = 8, c = 9A = 48.1897°, B = 58.4119°, C = 73.3985°, area 26.8328
SASTwo sides and the angle between themLaw of cosines for the third sidea = 5, b = 7, C = 60°c = 6.245, A = 43.8979°, B = 76.1021°, area 15.1554
ASATwo angles and the side between themAngle sum, then law of sinesA = 50°, B = 60°, c = 10a = 8.15207, b = 9.21605, C = 70°, area 35.2995
AASTwo angles and a side not between themAngle sum, then law of sinesA = 40°, B = 75°, a = 8b = 12.0217, c = 11.2797, C = 65°, area 43.5815
SSATwo sides and an angle opposite one of themLaw of sines; 0, 1 or 2 trianglesa = 6, b = 10, A = 30°c = 11.9769, B = 56.4427°, C = 93.5573°, area 29.9422; or c = 5.34363, B = 123.557°, C = 26.4427°, area 13.3591

Angle A is opposite side a, B is opposite b and C is opposite c. Any lettering works: sides b and c with angle A is SAS just as a, b and C is.

SSA, the ambiguous case: triangles that fit A = 30° and b = 10

Side aTrianglesResult
40None: a would have to be at least b × sin A = 5
51B = 90°, C = 60°, c = 8.66025
62B = 56.4427°, C = 93.5573°, c = 11.9769; or B = 123.557°, C = 26.4427°, c = 5.34363
101B = 30°, C = 120°, c = 17.3205
121B = 24.6243°, C = 125.376°, c = 19.569

Two triangles appear only when a is longer than b × sin A and shorter than b.

Special triangles: sides, angles and area

TriangleSidesAnglesAreaHeight on the longest side
3-4-53, 4, 536.8699°, 53.1301°, 90°62.4
5-12-135, 12, 1322.6199°, 67.3801°, 90°304.61538
8-15-178, 15, 1728.0725°, 61.9275°, 90°607.05882
7-24-257, 24, 2516.2602°, 73.7398°, 90°846.72
45-45-90, legs of 11, 1, 1.4142145°, 45°, 90°0.50.707107
30-60-90, hypotenuse of 21, 1.73205, 230°, 60°, 90°0.8660250.866025
Equilateral, sides of 11, 1, 160°, 60°, 60°0.4330130.866025

Multiply every side by the same factor and the angles stay as they are, while the area grows by the square of the factor.

How to use this tool

  1. Choose degrees or radians for the angles.
  2. Type the three values you know and leave the other fields empty. Angle A is opposite side a, B is opposite b and C is opposite c.
  3. Read the case the tool detected (SSS, SAS, ASA, AAS or SSA) and the law it used, then the solved triangle. An SSA input with two solutions shows both.

Frequently asked questions

How do I find the angles of a triangle from its three sides?
Use the law of cosines: cos C = (a² + b² − c²) ÷ (2ab), and the same pattern for the other two angles. Sides 7, 8 and 9 give angles of 48.1897°, 58.4119° and 73.3985°. Type the three sides and leave the angle fields empty.
How do I solve a triangle with two sides and the angle between them (SAS)?
The law of cosines gives the third side: c² = a² + b² − 2ab × cos C. With a = 5, b = 7 and C = 60°, c is 6.245 and the other two angles are 43.8979° and 76.1021°.
What is the ambiguous case (SSA)?
Two sides and an angle that is not between them can fit zero, one or two triangles. With A = 30° and b = 10, a = 4 is too short to reach and gives no triangle, a = 5 gives one right triangle, a = 6 gives two (c = 11.9769 or c = 5.34363) and a = 12 gives one.
How do I find the area of a triangle from three sides?
Heron’s formula: with s = (a + b + c) ÷ 2, the area is √(s(s − a)(s − b)(s − c)). For sides 5, 6 and 7, s is 9 and the area is √216 = 14.6969.
Can I solve a triangle from three angles?
No. Three angles fix the shape but not the size, so the tool asks for at least one side. Angles of 30° and 60° with a hypotenuse of 2 give legs of 1 and 1.73205; with a hypotenuse of 4 the legs are 2 and 3.4641.
Why does it say my sides cannot form a triangle?
The two shorter sides have to add up to more than the longest. Sides 1, 2 and 4 fail because 1 + 2 is less than 4. Sides 1, 2 and 3 make only a flat line with area 0, which the tool reports as a degenerate triangle.

Related Tools

View all tools