Toolbox
Triangle: calculating sides, angles and area
Find the dimensions of a plane triangle from three sides (SSS), two sides and their included angle (SAS), or angles A and B with side a. The calculation completes the given data and provides area and perimeter.
Triangle: calculating sides, angles and area
Strictly positive length of the side opposite angle A.
Strictly positive length of the side opposite B; it forms angle C with a in SAS mode.
Third side in SSS mode, opposite C; it must be less than a + b.
Initial values are examples.
Results
Substitution in SI units
Nondegenerate plane triangles only.
Side and angle convention
Estimated reading time : 6 min · 1088 words
Calculation details
Identify each side by its opposite angle: a opposite A, b opposite B, c opposite C. In SAS mode, the given angle is C, between a and b.
02 · Angle B, opposite b
03 · Angle C, opposite c
04 · Triangle area
05 · Perimeter
Identify the sides and choose the known values
The vertices are labeled A, B and C; side a is opposite vertex A, and likewise for b and c. In SAS mode, enter a and b and the angle C included between them. In the two-angle mode, enter A, B and side a opposite A. The entered lengths remain visible among the data; only missing quantities are added to the results.
Formulas and symbols
The following relationships use the symbols defined below.
Angle A, opposite side a.
Angle B, opposite side b.
Angle C, opposite side c.
(triangle area)
(perimeter)
(side c)
Angle A, opposite side a.
Angle B, opposite side b.
(triangle area)
(perimeter)
(side b)
(side c)
Angle C, opposite side c.
(triangle area)
(perimeter)
- a, b, c: lengths of the sides opposite angles A, B, C.
- S: area.
- P: perimeter. Angles entered in degrees or radians are converted before trigonometric functions. The law of cosines gives the angles in SSS mode and the missing side in SAS mode; the law of sines gives b and c when A, B and a are known. In the formulas, alpha denotes A, beta denotes B and gamma denotes C.
Sufficient data and method
| Mode | Data to enter | Main method |
|---|---|---|
| SSS | a, b, c | Law of cosines |
| SAS | a, b, included C | Cosines, then angles |
| Two angles and one side | A, B, a opposite A | Angle sum and sines |
| Three angles only | A, B, C | Scale undetermined; unsupported |
| Two sides, nonincluded angle | SSA | Potentially ambiguous; unsupported |
OpenStax — law of cosines and area ; OpenStax — law of sines.
Worked examples
Example 1: Triangle with sides 5, 7 and 8 cm
The perimeter is 20 cm. The semiperimeter is 10 cm; Heron’s formula gives , or 10, approximately . The angles are approximately 38,21°, 60° and 81,79°.
Example 2: Two perpendicular sides
For , and , c is 5 cm. The area is and the perimeter is 12 cm. Angles A and B are approximately 36,87° and 53,13°.
Example 3: 30°–60°–90° triangle
With , and , C is 90°, b is 5 and c is 10 cm. The area is approximately and the perimeter 23,66 cm.
Assumptions and limitations
Nondegenerate plane triangles only. Every side must be strictly positive and, in SSS, less than the sum of the other two. Angles must lie strictly between 0° and 180°; in two-angle mode, their sum must be less than 180°. Ambiguous SSA cases and three angles without a side are not handled. Near a flattened triangle, results become sensitive to rounding.
Common mistakes
In SAS, C is the angle between a and b, not the angle opposite either side. Do not apply Pythagoras without a right angle. A side of 8 cm cannot complete sides of 3 and 4 cm. Use consistent units or explicitly select the unit of each length.
Frequently asked questions
Why are three angles insufficient?
They define a shape but not its scale. All triangles obtained by multiplying the sides by the same factor have the same angles.
Which angle should be entered with two sides?
In the offered SAS mode, angle C must lie between sides a and b. A non-included angle is a different problem that may have two solutions.
How can triangle results be checked?
Angles sum to a straight angle and the largest side faces the largest angle. Check perimeter by summing sides and area using an independent height.
Why is a nearly flat triangle sensitive?
Height and area become small when two sides nearly sum to the third. Small measurement errors can then cause large relative changes.