Enter any combination of sides and angles that defines a triangle (SSS, SAS, ASA, or AAS) to find all missing values. The calculator shows which rule it applied, then computes area by Heron's formula and perimeter.
Sides a, b, c are opposite to angles A, B, C respectively. Angles are in degrees. Leave unknowns blank. At least one side is required.
A general triangle has three sides (a, b, c) and three angles (A, B, C), and unlike a right triangle none of them has to be 90 degrees. Surveyors triangulate land boundaries this way, measuring two known points and an angle to a third. Navigators use the same math to fix a ship's position from two shore landmarks. Engineers rely on it to check truss geometry where none of the supporting beams meet at a right angle. Three independent values are enough to determine the whole triangle, provided at least one of them is a side, and the calculator above picks the correct method automatically based on which three you enter.
Use it to find a missing side when two sides and the included angle are known (SAS), or to find any angle when all three sides are known (SSS). Rearranged for angle: cos C = (a squared + b squared - c squared) / (2ab).
Use it when a side and its opposite angle are both known. Given ASA (two angles and the side between them) or AAS (two angles and a non-included side), the law of sines resolves the triangle in one step.
Once all three sides are found, s is the semi-perimeter and the area follows without needing a height.
The most common error is trying to apply the law of sines to an SAS or SSS setup, where it cannot be used first; those two cases need the law of cosines to get started, and the law of sines only takes over once one angle is known. With SSA (two sides and a non-included angle), watch for the ambiguous case: two different triangles can satisfy the same three values, and the calculator flags it when that happens rather than silently picking one. Also double-check the triangle inequality before trusting an SSS result; three lengths that do not satisfy a + b greater than c cannot form a triangle at all.
If your triangle has a right angle, the right triangle calculator is faster since it skips the law of cosines entirely.
For a formal treatment of the laws of sines and cosines, see Wolfram MathWorld's page on the law of cosines.
Right angle in play, or need to check the spread of a data set instead?
Use the law of cosines. For angle A: cos A = (b squared + c squared minus a squared) / (2bc). Repeat for a second angle, then get the third by subtracting both from 180. The calculator does this automatically for SSS inputs.
Use Heron's formula. Compute s = (a + b + c) / 2, then area = sqrt(s times (s minus a) times (s minus b) times (s minus c)). No height is required, just the three side lengths.
a / sin A = b / sin B = c / sin C. All three ratios are equal. This resolves the triangle when a side and its opposite angle are both known alongside one other value (ASA, AAS, or SSA cases).
c squared = a squared + b squared minus 2ab cos C. It is the general form of the Pythagorean theorem that applies to any triangle. Use it for SSS (finding an angle) and SAS (finding the third side).
No. Angles alone fix shape but not size. An unlimited number of similar triangles share the same angles. You need at least one side length to lock in a scale and return numeric answers.
Each side must be less than the sum of the other two: a + b greater than c, a + c greater than b, b + c greater than a. If any of these fails, the three values cannot form a real triangle.