Triangle Calculator
The triangle calculator finds area, perimeter, angles and triangle type from three sides, two sides and their included angle, or the two legs of a right triangle. Select centimeters or inches so lengths and area carry consistent units.
By Dr. Hassan Khames EliwaLast updated
Result
- Perimeter
- 12 cm
- Side c
- 5 cm
- Angle A
- 36.869898°
- Angle B
- 53.130102°
- Angle C
- 90°
- Type
- Scalene, right
How it works
Match the mode to the measurements you actually have
In SSS mode, all three side lengths are known. A valid triangle requires the sum of any two sides to exceed the third. Equality gives a straight, zero-area figure, not a triangle. The calculator rejects this degenerate case instead of presenting misleading angles.
With SAS, the entered angle C lies between sides a and b. The cosine rule gives c² = a² + b² − 2ab cos C. The calculation uses an equivalent half-angle form for better behavior when sides are similar and the included angle is small. Angle inputs are degrees and must lie strictly between 0 and 180.
In right-triangle mode, a and b are the perpendicular legs, so c = √(a² + b²). Both leg fields require perpendicular sides, not the hypotenuse. For any supported mode, perimeter is a + b + c. Area follows Heron’s formula, √(s(s − a)(s − b)(s − c)), where s is half the perimeter; a rearranged form reduces cancellation in the arithmetic.
Angle A is opposite side a, B is opposite b, and C is opposite c. Side classification is equilateral, isosceles or scalene. Angle classification is acute, right or obtuse. A small numerical tolerance handles floating-point roundoff around equal sides and right angles.
Separate geometry from measurement uncertainty
A mathematically valid triangle is not proof that three field measurements were taken accurately. If the sides almost form a straight line, small measurement errors can have a large effect on the calculated area and narrow angles. Recheck endpoints and measurement technique before relying on those results for a layout or material estimate.
Lengths and perimeter use the selected length unit; area uses its square. Converting a finished area therefore requires the squared length conversion, not the length conversion alone. Keep units attached when transferring the result to a drawing, estimate, or specification so that a correct number is not used at the wrong scale.
Worked example
Checking a small triangular template
Choose SSS and centimeters, then enter a = 3, b = 4 and c = 5. The semiperimeter is (3 + 4 + 5) ÷ 2 = 6. Heron’s formula gives √(6 × 3 × 2 × 1) = 6 cm², and the perimeter is 12 cm.
The angles are 36.869898°, 53.130102° and 90° for A, B and C respectively. The type is Scalene, right. All sides differ, while the longest side satisfies 3² + 4² = 5².
Switch to right-triangle legs and retain a = 3 and b = 4: side c is 5 cm, with the same area, perimeter and angles. SAS with those sides and included angle C = 90° also describes the same triangle. These equivalent inputs provide a useful cross-check of both measurements and mode selection.
Expert tips
Common mistakes
- SAS requires the angle between the entered sides. A different angle creates an SSA problem, which can have zero, one or two solutions and needs a different solving approach.
- The hypotenuse lies opposite the right angle. Right-triangle mode calculates that side from the legs, so entering a hypotenuse as a leg describes a different triangle.
- Area and side length use different units. An area of 6 cm² is not 6 cm; converting area requires squaring the length conversion factor.
Frequently asked questions
What does SSS mean?
SSS means side-side-side: all three side lengths are supplied. If the triangle inequality holds, these lengths determine the triangle’s angles and area, apart from its position or mirror orientation.
Are angle inputs in radians?
No. The included angle in SAS mode uses degrees. Enter 90 for a right angle, not π/2. The scientific calculator can help convert or evaluate trigonometric expressions separately.
Does switching units convert my numbers?
No. The selector labels the entered lengths as centimeters or inches and the area as their squared unit. To represent the same physical triangle after switching, convert each side yourself.
Why are some positive sides rejected?
Positive lengths alone do not guarantee a triangle. The two shorter sides must add to more than the longest side. Extremely large or numerically unresolvable combinations may also exceed the supported calculation range.
Can this solve a triangle from three angles?
No. Angles determine shape but not scale. Many different-sized triangles share the same angles. At least one length is needed, and this calculator supports only the three specified measurement modes.
Related calculators
Related guides
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min read
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee