Skip to content

Triangle Calculator (SSS & SAS)

Area, angles and missing side of any triangle.

Inputs

Example: Area
6

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Triangle input means

What do you know?
Three sides (SSS) when you know every length; two sides and the angle between them (SAS) when one side is missing. Two angles and a side is not offered — see the FAQ for the Law of Sines route.
Side a
Side a, in any length unit — inches, metres, feet — as long as all the sides use the same one. The area comes out in that unit squared.
Side b
Side b, in the same unit. In SAS mode, a and b are the two sides that meet at angle C.
Side c
Side c, used only in SSS mode. It faces angle C. The two shorter sides must add up to more than the longest, or there is no triangle.
Angle C, between sides a and b
Angle C in degrees, between sides a and b, used only in SAS mode. It must be between 0° and 180°; 90° makes a right triangle with c as the hypotenuse.

Triangle formula

Law of Cosines: c² = a² + b² − 2ab·cos C. Heron's formula: Area = √(s(s − a)(s − b)(s − c)), with s = (a + b + c) ÷ 2

c2=a2+b2−2abcos⁡CA=s(s−a)(s−b)(s−c)c^2 = a^2 + b^2 - 2ab\cos C \qquad A = \sqrt{s(s-a)(s-b)(s-c)}

Two sets of facts fix a triangle completely: its three sides (SSS), or two sides and the angle between them (SAS). With three sides, the Law of Cosines rearranged gives each angle — cos C = (a² + b² − c²) ÷ 2ab — and Heron's formula gives the area from the sides alone, with no height needed. With two sides and the included angle, the Law of Cosines gives the third side, c² = a² + b² − 2ab cos C, and the area is ½ab sin C. Each angle is named after the side opposite it, so angle C sits between sides a and b and faces side c. OpenStax Precalculus works both cases this way. The page also classifies the triangle by its sides (equilateral, isosceles or scalene) and by its largest angle (acute, right or obtuse).

Formula last checked against OpenStax Precalculus 2e, §8.2 'Non-right Triangles: Law of Cosines' (Law of Cosines for SSS and SAS; Heron's formula) and §8.1 (Law of Sines) on 2 October 2026. Built and maintained by Suman Kumar · How we check

Triangle worked example

For sides 3, 4 and 5 the semi-perimeter is 6, so the area is √(6 × 3 × 2 × 1) = 6. The Law of Cosines gives angles of 36.87°, 53.13° and exactly 90°: a right, scalene triangle with perimeter 12.

More Triangle examples

Two sides of 5 and 7 meeting at 60°: c² = 25 + 49 − 2 × 5 × 7 × cos 60° = 74 − 35 = 39, so c = 6.245. The area is ½ × 5 × 7 × sin 60° = 15.1554, and the other two angles are 43.9° and 76.1°.

Sides of 7, 8 and 9: the semi-perimeter is 12, so Heron's formula gives √(12 × 5 × 4 × 3) = √720 = 26.8328. The largest angle, opposite the 9, is 73.4°, so the triangle is acute.

An equilateral triangle with sides of 6: every angle is 60°, and the area is √3 ÷ 4 × 6² = 15.5885.

Where the Triangle calculator can give the wrong answer

  • Three lengths only make a triangle if the two shorter ones add up to more than the longest. 1, 2 and 3 lie flat in a line, and the page says so rather than returning an area of 0.
  • Only one box is ignored at a time: side c is calculated in SAS mode, and angle C is calculated in SSS mode. Whatever is typed in the ignored box has no effect.
  • Two sides and an angle that is not between them (SSA) can describe two different triangles, one, or none. That ambiguous case is deliberately not offered here.
  • Angles are in degrees and shown to two decimals, so three rounded angles can add to 179.99° or 180.01°.

Spotted a mistake? Tell us

Triangle reference table

Special triangles: sides, angles and areas
TriangleSidesAnglesArea
3-4-5 right3, 4, 536.87°, 53.13°, 90°6
5-12-13 right5, 12, 1322.62°, 67.38°, 90°30
45-45-901, 1, √2 ≈ 1.414245°, 45°, 90°0.5
30-60-901, √3 ≈ 1.7321, 230°, 60°, 90°√3 ÷ 2 ≈ 0.866
Isosceles 5-5-65, 5, 653.13°, 53.13°, 73.74°12
Equilateral, side ss, s, s60°, 60°, 60°√3 ÷ 4 × s² ≈ 0.433s²
Source: Worked out with the Law of Cosines and Heron's formula (OpenStax Precalculus 2e, §8.2)

Triangle FAQ

C is the angle between sides a and b, and it faces side c. The same pairing holds all round: each angle is named after the side opposite it.