Triangle calculator: solve sides, angles and area (SSS, SAS, ASA, AAS)
Give three sides, two sides and the angle between them, or two angles and a side, and get every side and angle, the area, the perimeter and whether the triangle is acute, right or obtuse.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Give this solver any three facts that pin a triangle down, and it finds the other three: three sides, two sides and the angle between them, or two angles and one side. It returns every side and angle, the area, the perimeter and the type of triangle. That covers geometry homework, checking a roof truss or deck corner, and laying out a garden bed with a measuring tape.
How to use it
- Choose what you know: SSS (three sides), SAS (sides a and b with angle C between them), ASA (angles A and B with side c between them) or AAS (angles A and B with side a opposite A).
- Fill in only the fields that mode uses. The rest are ignored, so you do not need to clear them.
- Enter angles in degrees and all sides in the same unit.
- Run it to see all sides, all angles, the area, the perimeter and whether the triangle is acute, right or obtuse.
How the calculation works
Labels follow the usual convention: side a is opposite angle A, b opposite B and c opposite C. With three sides, the law of cosines gives each angle, for example cos A = (b² + c² − a²) ÷ 2bc. With SAS, the law of cosines gives the third side first. With ASA or AAS, the third angle is 180° minus the other two, and the law of sines (a ÷ sin A = b ÷ sin B = c ÷ sin C) gives the missing sides. The area uses Heron’s formula on the three sides.
law of cosines c² = a² + b² − 2ab cos C; law of sines a/sin A = b/sin B = c/sin C; Heron’s areaWorked example
Two straight fences meet at a corner: one is 8 m long, the other 11 m, and the angle between them is 40°. Closing the triangle needs a third fence of about 7.0835 m, the enclosed area is 28.2827 m² and the angle opposite the 11 m side is 93.45°, so the plot is obtuse.
Sample input and result
Sides 5, 6, 7: angles 44.42°, 57.12°, 78.46°, area 14.6969
Limitations
- Plane triangles only; very large triangles on the Earth’s surface need spherical trigonometry.
- Angles must be entered in degrees. Convert radians first with the angle converter.
- Results are rounded to four decimal places for sides and area and two for angles.
Last updated:
Frequently asked questions
Which side is opposite which angle?
Side a is opposite angle A, side b opposite angle B and side c opposite angle C. In SAS, C is the angle between sides a and b.
Why do I get an error with sides 2, 3 and 6?
Any two sides must add up to more than the third. 2 + 3 is less than 6, so those lengths cannot close into a triangle.
Why is there no SSA option?
Two sides and an angle that is not between them can describe zero, one or two different triangles. Rather than guess, the tool asks for a combination with exactly one answer.
How do I check a right angle on site?
Measure 3, 4 and 5 units along the sides and the diagonal. In SSS mode, 3, 4 and 5 give an angle C of exactly 90°. The Pythagorean theorem calculator does the same for any right triangle.
What unit is the area in?
The square of whatever unit you used for the sides: metres give square metres, feet give square feet.
Troubleshooting
It says the values cannot form a triangle.
In SSS mode any two sides must add up to more than the third. In the angle modes, the two angles must be positive and add up to less than 180°.
The angles do not add up to exactly 180°.
They do before rounding; the displayed values are rounded to two decimals.
I know three angles but no side.
Angles alone fix the shape but not the size. Add one side length and use ASA or AAS.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Scientific calculator
Evaluate arithmetic, powers and trigonometric functions in radians without eval.
Maths & educationFraction calculator
Add, subtract, multiply or divide rational numbers exactly.
Maths & educationEquation solver
Solve real linear and quadratic equations ax² + bx + c = 0.
Maths & education