Triangle solver
Find the area, perimeter and angles of a triangle from its three sides.
Try it
Inputs
Result
The result appears here as you type.
About Triangle solver
A triangle solver takes the three sides of a triangle and works out its area, perimeter and all three angles. Enter sides a, b and c in the same units, and the tool confirms that they can form a triangle, then returns the results. It is useful in surveying, carpentry, drafting and for homework that asks you to find angles from measured sides.
Only some combinations of lengths make a triangle. The two shorter sides together must be longer than the third, and the tool checks this for every pair before it calculates anything. If a set fails, the message tells you which pair is too short.
How to use Triangle solver
- Measure the three sides in one unit, such as metres or inches.
- Enter sides a, b and c. The order does not matter.
- Read the area and perimeter.
- Read the angles. Angle A sits opposite side a, angle B opposite side b, and angle C opposite side c.
The formulas used
The area uses Heron's formula. Find the semi-perimeter, half the perimeter, then take the square root of the semi-perimeter times the differences between it and each side. This avoids needing the height of the triangle.
The angles come from the law of cosines. For angle A, the cosine equals (b squared plus c squared minus a squared) divided by twice b times c. The three angles always add up to 180 degrees, and the tool uses that to check the working.
Accuracy with real measurements
Angles are very sensitive to small errors in nearly flat triangles, where one side is almost as long as the other two combined. Check your measurements carefully, and measure each side more than once if the triangle is thin.
The result is only as good as the sides you enter. Rounding to the nearest millimetre on a metre-long side gives an angle that may be out by a fraction of a degree, which is usually fine for construction and not for precision engineering.
Choosing units and rounding
Keep all three sides in the same unit before you enter them. Mixing centimetres and metres gives an answer that looks plausible but is wrong. Round the final figures to the precision the job needs, rather than carrying every decimal place.
Check the angles add up to 180 degrees. The tool does this check automatically, but when you use the figures by hand, the same check confirms you have entered the sides correctly.
Use the solver to check drawings and measurements. Calculating the area and angles from the sides confirms whether a measured frame or plate is square and whether two parts will fit together, before you cut any material.
Frequently asked questions
Can I use the tool for a right-angled triangle?
Yes. A right-angled triangle with sides 3, 4 and 5 gives an angle of 90 degrees opposite the longest side, which confirms the result.
What if the three sides do not form a triangle?
The tool stops and explains that the sum of two sides must exceed the third. No area or angle is shown for impossible sides.
Do the angles come out in degrees?
Yes. The tool reports angles in degrees to two decimal places.
Related tools
Tools that pair well with this one.
General Calculators
Percentage Calculator
Work out percentages, increases and decreases.
General Calculators
Average Calculator
Find the mean of a list of numbers.
General Calculators
Ratio Calculator
Simplify and compare ratios.
General Calculators
Proportion Calculator
Solve for a missing value in a proportion.