Triangle Calculator — Solve Sides, Angles & Area

Enter any 3 known values (at least one side) and instantly solve the whole triangle — every side, every angle, area, perimeter, heights and radii — with a to-scale diagram. 📐

📐

Triangle Solver

SSS • SAS • ASA • AAS • SSA

Fill in exactly 3 values (at least one side). Side a is opposite angle A, b opposite B, c opposite C.

°
°
°

Tip: two sides + the angle opposite one of them (SSA) can have two valid triangles — both are shown.

📐
Enter 3 values and press Solve

How to Solve a Triangle

  1. Enter any 3 known values — sides in any length unit, angles in degrees. At least one value must be a side.
  2. Click Solve Triangle. The calculator detects your case (SSS, SAS, ASA, AAS or SSA) automatically.
  3. Read the full solution — all sides and angles, area, perimeter, heights, inradius, circumradius and the triangle type, plus a diagram drawn to scale.
🧭

Any case, auto-detected

SSS, SAS, ASA, AAS and the tricky ambiguous SSA case — including both solutions when two triangles exist.

📏

Drawn to scale

A live diagram of your solved triangle with labeled vertices and sides, so you can sanity-check the shape instantly.

🎓

Complete answer

Beyond sides and angles: area by Heron’s formula, perimeter, all three heights, inradius and circumradius.

How the Triangle Calculator Works — Law of Sines, Law of Cosines & Heron’s Formula

Every triangle is fully determined by three independent measurements, as long as at least one of them is a side. Three angles alone fix only the shape, not the size — there are infinitely many similar triangles with angles 30°-60°-90°. This calculator takes whichever 3 values you know, classifies the case, and solves the rest using two classical tools taught in every US geometry and trigonometry course: the law of sines and the law of cosines.

The law of sines says the ratio of each side to the sine of its opposite angle is constant: a / sin A = b / sin B = c / sin C = 2R, where R is the circumradius. It is the natural tool when you know an angle and its opposite side (ASA, AAS, SSA). The law of cosines, c² = a² + b² − 2ab·cos C, generalizes the Pythagorean theorem and handles the cases the law of sines cannot start: three sides (SSS) or two sides with the included angle (SAS). When C = 90°, cos C = 0 and the formula collapses to the familiar c² = a² + b².

Once all three sides are known, the area comes from Heron’s formula: with semi-perimeter s = (a + b + c) / 2, Area = √(s(s−a)(s−b)(s−c)). For a 3-4-5 right triangle, s = 6 and Area = √(6·3·2·1) = 6. From the area, everything else follows: each height is h = 2·Area / base, the inradius is r = Area / s, and the circumradius is R = abc / (4·Area). The calculator also classifies the triangle — equilateral, isosceles or scalene by sides, and acute, right or obtuse by its largest angle.

CaseYou knowSolved withSolutions
SSS3 sidesLaw of cosines1 (if triangle inequality holds)
SAS2 sides + included angleLaw of cosines1
ASA / AAS2 angles + 1 sideAngle sum + law of sines1
SSA2 sides + non-included angleLaw of sines (ambiguous case)0, 1 or 2

The SSA “ambiguous case” deserves its reputation. Knowing two sides and an angle opposite one of them is like swinging a door of fixed length toward a wall: it can miss the wall entirely (no triangle), just touch it (one right triangle), or cross it in two places (two distinct triangles). Algebraically, sin B = b·sin A / a may exceed 1 (no solution), equal 1 (one solution) or be less than 1 — giving both an acute B and its supplement 180° − B as candidates. This calculator checks both and displays every valid triangle, which is exactly what trigonometry teachers expect on homework in 2026 — and what surveyors, carpenters and navigators rely on in the field.

Formula & Logic

Which triangle formula applies depends entirely on what you already know. Right triangles yield to Pythagoras and basic trigonometry, but general triangles need the law of cosines or the law of sines. The law of cosines is the generalisation of Pythagoras: when the included angle is 90°, its cosine is zero and the correction term vanishes, leaving a² + b² = c² exactly. The law of sines is simpler to apply but carries the ambiguous case — with two sides and a non-included angle, two different triangles can satisfy the same data, so the law of cosines is safer when you have a choice.

Law of cosines: c² = a² + b² − 2ab·cos(C)Law of sines: a/sin(A) = b/sin(B) = c/sin(C)Area (two sides + included angle) = ½ab·sin(C)Heron: Area = √[s(s−a)(s−b)(s−c)], where s = (a+b+c)/2

where:

a, b, c
side lengths
A, B, C
angles opposite the correspondingly-named sides
s
semi-perimeter, half the sum of the sides

Assumptions: Angles must be in the unit your calculator expects — degrees here, radians in most programming languages. A valid triangle requires each side to be shorter than the sum of the other two.

Step-by-Step Example: Two Sides of 7 and 9 With a 52° Included Angle

Find the third side and the area from side-angle-side data.

  • Side a7
  • Side b9
  • Included angle C52°
  1. Square the known sides: 7² = 49 and 9² = 81, summing to 130.
  2. Compute the correction: 2 × 7 × 9 = 126, and cos(52°) = 0.61566.
  3. Multiply: 126 × 0.61566 = 77.573.
  4. Apply the law of cosines: c² = 130 − 77.573 = 52.427.
  5. Take the root: c = √52.427 = 7.2406.
  6. Area from the same data: ½ × 7 × 9 × sin(52°) = 31.5 × 0.78801 = 24.822.

ResultThird side 7.241 — area 24.822

Notice the sanity check: with a 52° angle the opposite side (7.24) is shorter than the 9-side, as it must be, since larger angles face longer sides. Had the angle been 90°, the correction term would be zero and c would be √130 = 11.40.

Triangle Calculator FAQ

Any three values that include at least one side: three sides (SSS), two sides and the angle between them (SAS), two angles and any side (ASA or AAS), or two sides and a non-included angle (SSA). Three angles alone fix the shape but not the size, so no unique triangle exists.
With the Law of Cosines: each angle comes from cos(A) = (b² + c² − a²) / (2bc). Once two angles are known the third is 180° minus their sum, and the area follows from Heron's formula using the semi-perimeter.
The Law of Sines says a/sin(A) = b/sin(B) = c/sin(C). It solves ASA, AAS and SSA cases — whenever you know an angle and its opposite side, the ratio unlocks every remaining side and angle.
SSA is the "ambiguous case": when the known side opposite the given angle is shorter than the other known side but longer than the triangle's height, two different triangles satisfy the same three values — one with an acute and one with an obtuse angle. The calculator shows both solutions when they exist.
Three standard ways: ½ × base × height when the height is known, ½ab·sin(C) when two sides and the included angle are known, and Heron's formula √(s(s−a)(s−b)(s−c)) from three sides, where s is half the perimeter. All give the same result.
The triangle inequality must hold: every pair of sides must add to more than the third side. Sides of 3, 4 and 8 fail (3 + 4 < 8), so no triangle exists — the calculator flags this instead of returning numbers.
Yes. Enter the two legs as SAS with a 90° included angle, or any two sides plus the right angle, and the solver returns the hypotenuse, both acute angles, area and height — the Pythagorean theorem a² + b² = c² is the 90° special case of the Law of Cosines.

Related Calculators

✔ Written & reviewed by Dr Sam — 20+ yrs in management & research leadership📅 Last updated June 2026📑 How we build & check these