🔺 Triangle Calculator

Solve any triangle from three values — SSS, SAS, ASA, AAS or the ambiguous SSA case — with angles, area, perimeter, heights, medians and a drawing.

✓ Free✓ No Signup Required✓ Browser-Based

Fill in any three values, including at least one side. Side a is opposite angle A.

Examples:
Scalene acute triangle
ABCabc
SideLengthOpposite angle
a5A = 43.8979°
b7B = 76.1021°
c6.245C = 60°
Area
15.1554
Perimeter
18.245
Semiperimeter
9.1225
Inradius (r)
1.6613
Circumradius (R)
3.6056
Heights hₐ · h_b · h_c
6.0622 · 4.3301 · 4.8536
Medians mₐ · m_b · m_c
6.1441 · 4.4441 · 5.2202

Computed values are in bold. Lengths use whatever unit you entered; area is in that unit squared.

What Triangle Calculator Does

This triangle calculator solves any triangle — not just right triangles. Enter any three of the six measurements (three sides and three angles), including at least one side, and it works out which case you have: three sides (SSS), two sides and the angle between them (SAS), two angles and a side (ASA or AAS), or two sides and an angle that is not between them (SSA).

It returns the missing sides and angles, then the area, perimeter, semiperimeter, all three heights and medians, the inradius and circumradius, and whether the triangle is acute, right or obtuse and scalene, isosceles or equilateral. A drawing to scale shows the shape, and when the SSA case allows two different triangles you can switch between them.

How to Use Triangle Calculator

  1. Enter any three known values, including at least one side
  2. Choose degrees or radians for the angles
  3. Read the missing sides and angles, highlighted in bold
  4. Check area, perimeter, heights, medians and the radii
  5. For the SSA case, switch between the two possible triangles

Formula Used by Triangle Calculator

Law of cosines (SSS and SAS)

c² = a² + b² − 2ab·cos C

Worked example

a = 5, b = 7 and the angle between them C = 60°.

  1. c² = 25 + 49 − 70 × 0.5 = 39
  2. c = √39 = 6.245
  3. A = 43.90°, B = 76.10° from the law of sines

Result: Area = ½ × 5 × 7 × sin 60° = 15.16.

Law of sines and the ambiguous case

a ÷ sin A = b ÷ sin B = c ÷ sin C

Worked example

a = 6, b = 8 and A = 35° (SSA).

  1. sin B = 8 × sin 35° ÷ 6 = 0.765
  2. B = 49.89° or 180° − 49.89° = 130.11°
  3. C = 95.11° with c = 10.42, or C = 14.89° with c = 2.69

Result: Two different triangles fit these measurements.

Which Rule to Use

You knowCaseStart with
Three sidesSSSLaw of cosines for an angle
Two sides and the angle between themSASLaw of cosines for the third side
Two angles and the side between themASAThird angle = 180° − the other two, then law of sines
Two angles and another sideAASSame as ASA
Two sides and an angle not between themSSALaw of sines — check for 0, 1 or 2 triangles
Three anglesAAANot solvable: the size is unknown

Heights, Medians and Radii

MeasureFormula
Height to side ahₐ = 2 × Area ÷ a
Median to side amₐ = ½√(2b² + 2c² − a²)
Inradius (inscribed circle)r = Area ÷ s, where s = (a + b + c) ÷ 2
Circumradius (circumscribed circle)R = a ÷ (2 sin A)
Area from three sides (Heron)√(s(s − a)(s − b)(s − c))

How to Read Your Result

How many SSA triangles?

With angle A, its opposite side a and another side b: if a is shorter than b·sin A, no triangle exists; if it equals b·sin A, there is one right triangle; if it falls between b·sin A and b, there are two; and if a is at least b, there is one. The calculator checks this and shows every valid answer.

Rounding and precision

The values you enter are used exactly and computed values are rounded only for display. If you copy rounded answers back in as inputs, small differences in the last decimal place are expected.

Right triangles

For a right triangle, the right triangle calculator is quicker: it needs only two values and also lists the trigonometric ratios. This page is for every triangle, including oblique ones with no right angle.

Limitations & Accuracy Notes

  • Enter exactly three values; extra values are not checked for consistency.
  • Angles must be strictly between 0° and 180° and sides greater than zero; flat (degenerate) triangles are rejected.
  • Plane triangles only — spherical triangles, as used in navigation and astronomy, follow different rules.

Frequently Asked Questions

How do you solve a triangle?
You need three values, including at least one side. Use the law of cosines when you know three sides (SSS) or two sides and the angle between them (SAS), and the law of sines for ASA, AAS and SSA. The three angles always add up to 180°.
What is the law of sines?
In any triangle, each side divided by the sine of its opposite angle gives the same number: a ÷ sin A = b ÷ sin B = c ÷ sin C. It finds a side from two angles and a side, or an angle from two sides and a non-included angle.
What is the law of cosines?
c² = a² + b² − 2ab·cos C. It extends the Pythagorean theorem to every triangle — when C is 90°, cos C is 0 and it reduces to c² = a² + b². Use it for SSS and SAS triangles.
What is the ambiguous case (SSA)?
Two sides and an angle that is not between them can fit no triangle, one, or two different triangles. With a = 6, b = 8 and A = 35°, angle B can be 49.9° or 130.1°, so there are two valid triangles; the calculator shows both.
How do I find the area of a triangle from three sides?
Use Heron’s formula: s = (a + b + c) ÷ 2, then area = √(s(s − a)(s − b)(s − c)). For sides 3, 4 and 5: s = 6 and area = √(6 × 3 × 2 × 1) = 6.
Can any three lengths form a triangle?
No. Each side must be shorter than the other two added together (the triangle inequality). Sides of 2, 3 and 6 cannot form a triangle because 2 + 3 is less than 6.
How can I tell if a triangle is acute, right or obtuse?
Compare the square of the longest side with the sum of the squares of the other two. Equal means a right triangle, smaller means acute and larger means obtuse. For 5, 7, 9: 81 > 25 + 49, so it is obtuse.
By OnlineToolHubs Team • September 2026