331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Triangle Calculator

Every triangle has six measurements — three sides and three angles — and three of them (including at least one side) determine the other three, through the law of cosines, c² = a² + b² − 2ab·cos C, and the law of sines, a/sin A = b/sin B = c/sin C. Solve any triangle from just three measurements. Pick the case that matches what you know — three sides (SSS), two sides and the angle between them (SAS), or two angles and a side (ASA / AAS) — and the calculator finds the rest: every side, every angle, the area, the perimeter and the triangle type.

Sides are labelled a, b and c; angle A is opposite side a, angle B opposite side b, and angle C opposite side c. All angles are in degrees.

Solved triangle

Save to Pinterest
Note: Three angles alone cannot solve a triangle — they fix the shape but not the size, so every case here includes at least one side. The SSA case (two sides and a non-included angle) is deliberately not offered: it can have zero, one or two valid triangles, and a single answer would be misleading.

How It Works

Every triangle has six measurements — three sides and three angles — and three of them (including at least one side) determine the other three. This calculator solves each case with the two workhorse rules of trigonometry: the law of cosines, c² = a² + b² − 2ab·cos C, which relates three sides and one angle, and the law of sines, a/sin A = b/sin B = c/sin C, which relates each side to its opposite angle. For the area, perimeter and volume formulas of every shape, see our geometry formulas guide.

With three sides (SSS), the angles come from the law of cosines rearranged: cos A = (b² + c² − a²) / 2bc, and likewise for B, with C = 180° − A − B. With two sides and the included angle (SAS), the third side comes from the law of cosines directly, then the angles follow. With two angles and a side (ASA or AAS), the third angle is 180° minus the two known angles, and the remaining sides come from the law of sines. In right-triangle mode the Pythagorean theorem, a² + b² = c², does most of the work.

The area always comes from Heron's formula: with semi-perimeter s = (a + b + c) / 2, area = √(s(s − a)(s − b)(s − c)). The perimeter is simply a + b + c. The triangle type is classified two ways: by sides — equilateral (all equal), isosceles (two equal) or scalene (all different) — and by angles — acute (all under 90°), right (one exactly 90°) or obtuse (one over 90°).

Before solving, the calculator checks that the measurements describe a real triangle. Three sides must satisfy the triangle inequality — each side shorter than the other two added together — and the angles must add up to less than 180° where two are given. If a check fails, it says which rule is broken instead of showing a wrong answer.

Worked Example

Take sides a = 3, b = 4, c = 5 (SSS). First the triangle inequality: 3 + 4 = 7 > 5, 3 + 5 > 4 and 4 + 5 > 3, so the triangle exists. The angle opposite side a comes from the law of cosines: cos A = (4² + 5² − 3²) / (2 × 4 × 5) = (16 + 25 − 9) / 40 = 32/40 = 0.8, so A = cos⁻¹(0.8) = 36.87°. Similarly cos B = (3² + 5² − 4²) / (2 × 3 × 5) = 18/30 = 0.6, so B = 53.13°, and C = 180 − 36.87 − 53.13 = 90° — a right triangle, as expected from 3² + 4² = 5². The semi-perimeter is s = 12/2 = 6, so Heron's formula gives area = √(6 × 3 × 2 × 1) = √36 = 6, and the perimeter is 12.

A second example, SAS: sides a = 5 and b = 7 with included angle C = 60°. The third side is c = √(5² + 7² − 2 × 5 × 7 × cos 60°) = √(25 + 49 − 35) = √39 ≈ 6.245. The area is ½ × 5 × 7 × sin 60° ≈ 15.155, and the remaining angles are A ≈ 43.90° and B ≈ 76.10°.

Assumptions

Sources: No external data is used on this page — every figure is calculated from the measurements you enter. Last reviewed: 15 November 2026.

Built and tested by SumKitTool — see how we check our numbers.

How to Use This Calculator

Choose the case that matches what you know from the menu, then fill in the three boxes. The results update as you type: all three sides, all three angles, the area, the perimeter and the triangle type. Switch cases any time — each case remembers its own inputs, so you can compare solutions.

For a right triangle, pick Right triangle mode and tell it what you know: two legs, a leg and the hypotenuse, or a leg and an acute angle. If your numbers cannot form a triangle — for example sides 2, 3 and 10 — the calculator explains the problem instead of guessing.

Tips and Practical Advice

A triangle solver is a shortcut, but a quick sanity check keeps it honest.

Frequently Asked Questions

What do SSS, SAS, ASA and AAS mean?

They describe which three measurements you know. SSS is three sides; SAS is two sides and the angle between them; ASA is two angles and the side between them; AAS is two angles and a side that is not between them. Any three measurements that include at least one side are enough to solve the whole triangle — three angles alone are not, because they fix only the shape, not the size.

Why does my triangle show an error?

The three measurements have to describe a real triangle. Three sides must satisfy the triangle inequality — the two shorter sides added together must be longer than the longest side — and the three angles must add up to exactly 180°. This calculator checks both and explains which rule your numbers break, instead of showing a wrong answer.

How is the area calculated?

From the three sides, using Heron's formula: first find the semi-perimeter s = (a + b + c) / 2, then area = √(s(s − a)(s − b)(s − c)). For a 3-4-5 triangle, s = 6 and the area is √(6 × 3 × 2 × 1) = √36 = 6. The worked example on this page walks through the full calculation.

Does it solve right triangles?

Yes — pick Right triangle mode. Give it any two sides (two legs, or a leg and the hypotenuse) or one side and one acute angle, and it finds the rest using the Pythagorean theorem and basic trigonometry. The right angle is always angle C, at 90°.

Last updated: