Triangle Calculator
Solve any triangle from 3 known values. Compute all sides, angles, area, perimeter, and draw diagrams.
Triangle Calculator tool
Example
Input: Side a = 3, side b = 4, side c = 5 (three sides known)
Result: Angles A 36.8699, B 53.1301, C 90 degrees; area 6; perimeter 12; scalene, right
Law of cosines: cos(C) = (3^2 + 4^2 - 5^2) / (2 x 3 x 4) = 0, so C = 90 degrees; area = 0.5 x 3 x 4 = 6.
Which Rule Solves Which Triangle
| You know | Case | How it is solved | Solutions |
|---|---|---|---|
| 3 sides | SSS | Law of Cosines for the angles | 1, or none if a side is too long |
| 2 sides and the angle between them | SAS | Law of Cosines for the third side | 1 |
| 2 angles and the side between them | ASA | Angle sum, then Law of Sines | 1 |
| 2 angles and a side not between them | AAS | Angle sum, then Law of Sines | 1 |
| 2 sides and an angle not between them | SSA | Law of Sines | 0, 1 or 2 |
| 3 angles only | AAA | Cannot be solved (size unknown) | Infinite |
- Enter any three known values from the six triangle properties (three sides and three angles).
- The calculator detects the case type (SSS, SAS, ASA, AAS, or SSA) automatically.
- View all missing sides, angles, area, and perimeter computed instantly.
- For the ambiguous SSA case, both possible triangle solutions are shown.
- Review the visual triangle diagram that updates with your values.
- Click the copy button to copy any calculated value.
Solving a Triangle From Three Values
A triangle is fully fixed by three of its six measurements, as long as at least one of them is a side. Enter any three values, and this calculator finds the missing sides and angles, the area and the perimeter. For sides 3, 4 and 5, it returns angles of 36.87, 53.13 and 90 degrees and an area of 6.
The labels follow the usual convention. Side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. Angles are in degrees. If you have radians, convert them first with the Angle Converter. The calculator picks its method from what you enter. With three sides, it uses the Law of Cosines to find each angle. With two sides and the angle between them, the Law of Cosines gives the third side. With two angles and a side, it finds the last angle from the 180-degree sum and uses the Law of Sines for the rest. The area comes from half of a x b x sin(C). The table on this page sums this up.
Two sides and an angle that is not between them can be ambiguous. For example, angle A = 30 degrees with a = 6 and b = 10 fits two different triangles, one with angle B of about 56.4 degrees and one with about 123.6 degrees. The calculator shows both, each with its own diagram. When no triangle fits, it says so.
Results show up to four decimal places. You also get the side type (equilateral, isosceles or scalene), the angle type (acute, right or obtuse), and a scaled drawing with every side and angle labeled. For right triangles, the Pythagorean Theorem Calculator is quicker.
Formula / How It Works
Frequently Asked Questions
Related Tools
Pythagorean Theorem Calculator
Find the missing side of a right triangle or verify if three sides form a right triangle.
Math and NumbersAngle Converter
Convert between degrees, radians, gradians, and turns for any angle measurement quickly.
Unit ConvertersArea Converter
Convert between square feet, square meters, acres, hectares, square kilometers, and square miles.
Unit Converters