Triangle Calculator
Solve any triangle from sides and angles using SSS, SAS, ASA, AAS, or SSA methods.
Triangle Solution
About the Triangle Calculator
This free triangle calculator solves any triangle from three known measurements — sides, angles, or a mix of both. It returns the missing sides and angles along with the area, perimeter, and triangle type, computed locally in your browser using the Law of Sines, the Law of Cosines, and Heron's formula.
What is a Triangle Calculator?
A triangle calculator solves for the unknown sides and angles of a triangle when you supply enough information to define it. Three measurements are generally sufficient, provided at least one is a side — the three angles alone leave the triangle's size undetermined.
How to Use
Select the tab that matches the data you have, enter the known values, and click Calculate. Angles are entered in degrees.
- SSS: enter all three side lengths.
- SAS: enter two sides and the angle between them.
- ASA: enter two angles and the side between them.
- AAS: enter two angles and any one side.
- SSA: enter two sides and a non-included angle — the ambiguous case, where two solutions may exist.
Essential Triangle Formulas
Perimeter
P = a + b + c
a,b,c— the three side lengths
The perimeter is the total distance around the triangle. For sides of 3, 4, and 5, P = 3 + 4 + 5 = 12 units.
Area from Base and Height
Area = ½ × base × height
base— any side of the triangleheight— the perpendicular distance from that base to the opposite vertex
Use it whenever the height is known — it also powers our area calculator. When only the three sides are known, Heron's formula below is the practical choice.
Heron's Formula (Three Sides Only)
s = (a + b + c) / 2
Area = √(s(s − a)(s − b)(s − c))
s— the semi-perimeter (half the perimeter)a,b,c— the three side lengths
Worked example — the 3-4-5 triangle. With sides a = 3, b = 4, c = 5:
- Semi-perimeter: s = (3 + 4 + 5) / 2 = 6
- Substitute: Area = √(6 × (6 − 3) × (6 − 4) × (6 − 5)) = √(6 × 3 × 2 × 1) = √36
- Area = 6 square units
Cross-check with ½ × base × height: ½ × 4 × 3 = 6, the same answer — the 3-4-5 triangle is right-angled, so its legs serve as base and height. The SSS tab above confirms this: area 6.0000, perimeter 12.0000, angles 36.87°, 53.13°, 90.00°.
Angle Sum
A + B + C = 180°
The three interior angles of every triangle total exactly 180 degrees, so two known angles always reveal the third. Worked example: if two angles measure 90° and 35°, the third is 180° − 90° − 35° = 55°.
Types of Triangles
Triangles are classified independently by side lengths and by angles; every triangle gets one label from each group — the 3-4-5 triangle is both scalene and right.
| Classified by | Type | Defining property | Example |
|---|---|---|---|
| Sides | Equilateral | All three sides equal; all three angles 60° | 5, 5, 5 |
| Isosceles | Two equal sides; the angles opposite them are equal | 5, 5, 8 | |
| Scalene | All three sides different; all angles different | 3, 4, 5 | |
| Angles | Acute | All three angles less than 90° | 50°, 60°, 70° |
| Right | One angle exactly 90° | 30°, 60°, 90° | |
| Obtuse | One angle greater than 90° | 40°, 40°, 100° |
The Triangle Inequality Rule
Not every set of three lengths can form a triangle. The triangle inequality theorem states that the sum of any two sides must be greater than the third side:
a + b > c a + c > b b + c > a
Valid: 3, 4, and 5 work because 3 + 4 = 7 > 5, 3 + 5 = 8 > 4, and 4 + 5 = 9 > 3. Invalid: 2, 3, and 6 fail because 2 + 3 = 5, which is less than 6 — the two short sides cannot meet. The SSS tab alerts you when this rule is violated.
Law of Sines and Law of Cosines
Right triangles yield to the Pythagorean theorem — try our Pythagorean theorem calculator — but non-right triangles need two more general tools. The Law of Sines relates each side to the sine of its opposite angle:
a / sin(A) = b / sin(B) = c / sin(C)
It solves ASA, AAS, and SSA cases — for example, with A = 30°, B = 70°, and included side c = 10, the ASA tab finds C = 80°, a ≈ 5.0771, and b ≈ 9.5419. The Law of Cosines generalizes the Pythagorean theorem to any angle:
c² = a² + b² − 2ab × cos(C)
It solves SSS and SAS cases; when C = 90°, cos(C) = 0 and the formula collapses to the familiar c² = a² + b². For shapes beyond triangles, see the area calculator.
Frequently Asked Questions
What is the ambiguous case (SSA)?
Given two sides and a non-included angle, there may be zero, one, or two valid triangles. This calculator reports when no solution or two solutions exist.
How is triangle type determined?
By the largest angle: acute (all angles < 90°), right (one angle = 90°), or obtuse (one angle > 90°).
How do I find the area of a triangle from its three sides?
Use Heron's formula. Compute the semi-perimeter s = (a + b + c) / 2, then Area = √(s(s − a)(s − b)(s − c)). For sides 3, 4, and 5: s = 6 and Area = √(6 × 3 × 2 × 1) = 6 square units.
What is the triangle inequality theorem?
It states that the sum of any two sides must be greater than the third side. For example, 3, 4, and 5 form a valid triangle, but 2, 3, and 6 do not because 2 + 3 = 5 is less than 6.
Do the angles of a triangle always add up to 180°?
Yes. In standard (Euclidean) geometry the three interior angles always total exactly 180°. If two angles measure 90° and 35°, the third must be 180° − 90° − 35° = 55°.
What do SSS, SAS, ASA, AAS, and SSA mean?
They name which three measurements you know — S for a side, A for an angle. SAS means the angle lies between the two sides; ASA means the side lies between the two angles; AAS and SSA use non-included measurements.
Can I enter angles in radians?
Currently, all angles must be entered in degrees. The calculator converts and displays results in degrees.
Is this calculator free?
Yes, BestCalc's triangle calculator is completely free with no ads or registration required.