Math
Triangle Calculator
Enter any 3 known values — including at least one side — to solve for every side, angle, area, and perimeter.
Sides
Angles (degrees)
Angle A is opposite side a, angle B is opposite side b, angle C is opposite side c.
Sides
a
—
b
—
c
—
Angles
A
—
B
—
C
—
Area & Perimeter
Area
—
Perimeter
—
Method used
Formulas
Law of Cosines
c² = a² + b² − 2ab·cos(C)
Solves SSS (all sides) and SAS (2 sides + included angle)
Law of Sines
a/sin(A) = b/sin(B) = c/sin(C)
Solves ASA and AAS (2 angles + 1 side)
Angle Sum
A + B + C = 180°
The third angle is always 180° minus the other two
Area (Heron's)
√(s(s−a)(s−b)(s−c)), s=(a+b+c)/2
Used when all three sides are known
Area (SAS)
(1/2)·a·b·sin(C)
Used when two sides and the included angle are known
Perimeter
a + b + c
Sum of all three side lengths
Which Case Applies?
SSS — 3 sides
All three sides known. Law of Cosines finds all three angles.
SAS — 2 sides + included angle
Law of Cosines finds the third side, then the Law of Sines finds the remaining angles.
ASA / AAS — 2 angles + 1 side
The third angle is 180° minus the other two, then the Law of Sines finds the remaining sides.
Three angles alone (AAA) can't be solved — infinitely many triangle sizes share the same angles.
Tips
Triangle inequality: for any valid triangle, each side must be shorter than the sum of the other two (a+b>c, a+c>b, b+c>a).
Angle labeling: angle A is always opposite side a, angle B opposite side b, and angle C opposite side c.
Exactly 3 values: enter precisely three of the six fields, with at least one side, for a unique solution.
FAQ
Frequently asked questions.
How do I solve a triangle if I only know 3 values?
To solve a triangle, you need exactly three known measurements, and at least one of them must be a side length (three angles alone describe infinite similar triangles, not one unique triangle). Depending on which three values you know — three sides (SSS), two sides and the included angle (SAS), or two angles and a side (ASA/AAS) — you apply either the Law of Cosines or the Law of Sines to find the remaining three unknowns. This calculator detects which case applies automatically and solves for all sides, angles, area, and perimeter.
When do I use the Law of Sines vs the Law of Cosines?
Use the Law of Cosines when you know all three sides (SSS) or two sides and the angle between them (SAS), since it directly relates a side length to the opposite angle: c² = a² + b² − 2ab·cos(C). Use the Law of Sines when you know two angles and any side (ASA or AAS), or after finding one angle from the Law of Cosines, since it states a/sin(A) = b/sin(B) = c/sin(C). In practice, the Law of Cosines solves for missing sides or the first angle, and the Law of Sines is often faster for the remaining angles once one angle is known.
How do you find the area of a triangle?
If you know the base and height, Area = (1/2) × base × height. If you know all three sides but not the height, use Heron's Formula: calculate the semi-perimeter s = (a+b+c)/2, then Area = √(s(s−a)(s−b)(s−c)). If you know two sides and the included angle, Area = (1/2)ab·sin(C), which is often the fastest method once the triangle has been solved. This calculator applies whichever formula fits the values you entered.
What do SSS, SAS, ASA, and AAS mean?
These abbreviations describe which three parts of a triangle you know. SSS means all three sides are known. SAS means two sides and the angle between them (the included angle) are known. ASA means two angles and the side between them are known, while AAS means two angles and a non-included side are known. Each case determines whether you start with the Law of Cosines or the Law of Sines to solve the rest of the triangle.
Why doesn't every combination of three sides make a valid triangle?
The Triangle Inequality Theorem states that the sum of any two sides of a triangle must be strictly greater than the third side (a+b > c, a+c > b, and b+c > a). If this condition fails — for example sides 2, 3, and 10 — the three lengths simply cannot close into a triangle, since the two shorter sides can't reach far enough to meet. This calculator checks the inequality automatically and flags an error if the sides you entered are impossible.
Can I find a missing side of a triangle with this calculator?
Yes. Enter any three known values across the six fields (three sides and three angles), including at least one side, and the calculator finds the missing sides and angles automatically. For example, entering two sides and the included angle (SAS) lets the calculator compute the third side using the Law of Cosines, or entering two angles and one side (ASA/AAS) lets it compute the other two sides using the Law of Sines.
Last updated: August 17, 2026