Triangle formulas
A triangle has three sides and three interior angles. In this calculator, side a is opposite angle A, side b is opposite B, and side c is opposite C. The interior angles add to 180°. A valid, non-degenerate triangle also satisfies the triangle inequality: a + b > c, a + c > b, and b + c > a.
How to use the triangle calculator
- Choose a mode that matches your known information: SSS, SAS, ASA/AAS, or right-triangle legs.
- Enter positive side lengths in one shared unit. Enter angles in degrees.
- Select the display precision and press Solve triangle. The result appears directly below the input panel.
- Review the labeled diagram and steps, then copy the measurements if you need them elsewhere.
Worked example: a 3–4–5 right triangle
Let the perpendicular legs be 3 cm and 4 cm. By the Pythagorean theorem, the hypotenuse is c = √(3² + 4²) = √25 = 5 cm. The area is K = ½(3)(4) = 6 cm², and the perimeter is P = 3 + 4 + 5 = 12 cm. The angles opposite the 3 cm and 4 cm legs are approximately 36.87° and 53.13°; together with 90°, they total 180°.
Understanding SSS, SAS, and ASA
SSS means all three side lengths are known. The calculator checks the triangle inequality and uses the law of cosines to recover angles. SAS means two sides and their included angle are known; the law of cosines finds the third side. ASA/AAS uses two angles and a side; first find the remaining angle from the 180° angle sum, then use the law of sines to determine the missing lengths. The right-triangle mode treats the two supplied sides as perpendicular legs.
Common mistakes
- Forgetting that a side is paired with its opposite angle: a with A, b with B, and c with C.
- Using SAS with a non-included angle; that input is a different case and may need additional information.
- Mixing measurement units or entering angles as radians when this calculator expects degrees.
- Assuming any three positive lengths make a triangle. The sum of the two shorter sides must be greater than the longest.
- Rounding intermediate values too early. The calculator keeps full precision during its calculations and rounds only for display.
Frequently asked questions
How do I calculate the area of a triangle?
With a base and its perpendicular height, use K = ½bh. If only the three sides are known, use Heron’s formula: K = √[s(s − a)(s − b)(s − c)], where s = (a + b + c)/2.
What is the triangle inequality?
Each pair of side lengths must sum to more than the remaining side. Equality would make the triangle flat rather than a proper triangle.
Can I solve a triangle with two sides only?
Not in general. You need an additional measurement, such as the included angle, a right angle, or enough angle information to determine a unique triangle.
What do the inradius and circumradius mean?
The inradius is the radius of the circle tangent to all three sides inside the triangle. The circumradius is the radius of the circle passing through all three vertices.
Are the displayed answers exact?
The calculator uses full floating-point precision internally and displays rounded decimal values according to your selected precision. The steps show the formulas used.