Triangle Calculator

Enter any three known values, sides or angles, and this triangle solver finds everything else: the missing sides and angles, area, perimeter, all three heights, the inradius, circumradius and medians, and whether the triangle is acute, right or obtuse. It works for SSS, SAS, ASA, AAS and the tricky ambiguous SSA case (where two triangles can fit), and draws your triangle to scale.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile
Examples:

Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

How the Triangle Calculator Works

Every triangle has six measurements: three sides (a, b, c) and three angles (A, B, C). By convention, side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. Know any three of them, including at least one side, and the other three can almost always be found. This triangle solver uses the law of cosines, the law of sines and the fact that the angles of every triangle add up to 180°. It then calculates the area, perimeter, heights, inscribed and circumscribed circle radii and medians, and draws the triangle to scale.

It's useful for trigonometry homework, geometry exams, surveying and land measurement, carpentry and roof framing, navigation, engineering drawings and game development: anywhere you need the missing measurements of a triangle.

How to Use the Triangle Solver

  1. Enter any three known values in the side and angle boxes. Angles are in degrees.
  2. Leave the unknown boxes empty. At least one of your three values must be a side, because three angles alone only fix the shape, not the size.
  3. Read the solution: calculated values are highlighted in the table next to the drawing.
  4. Check the extras: area, perimeter, type, heights, inradius, circumradius and medians.
  5. If two answers appear, you've hit the ambiguous SSA case, and both triangles are valid.

Which Rule Solves Which Case?

CaseYou knowMethod
SSSThree sidesLaw of cosines for each angle
SASTwo sides and the angle between themLaw of cosines for the third side, then SSS
ASATwo angles and the side between themThird angle = 180° − the others, then law of sines
AASTwo angles and a side not between themThird angle, then law of sines
SSATwo sides and an angle not between themLaw of sines: may give 0, 1 or 2 triangles
AAAThree anglesNot solvable: infinitely many similar triangles

Triangle Formulas

  • Law of cosines: c² = a² + b² − 2ab·cos(C). It's the Pythagorean theorem generalised to any triangle.
  • Law of sines: a / sin(A) = b / sin(B) = c / sin(C) = 2R, where R is the circumradius.
  • Angle sum: A + B + C = 180°.
  • Heron's formula (area): Area = √[s(s−a)(s−b)(s−c)], where s = (a+b+c)/2 is the semi-perimeter.
  • Area from two sides and the included angle: Area = ½ab·sin(C).
  • Height to side a: ha = 2 × Area / a.
  • Inradius: r = Area / s. Circumradius: R = a / (2 sin A).
  • Median to side a: ma = ½√(2b² + 2c² − a²).

The Ambiguous Case (SSA)

When you know two sides and an angle that is not between them, the side opposite the known angle can "swing" to meet the base in two places. Depending on the lengths, there may be no triangle (the side is too short to reach), exactly one (it just touches, making a right angle, or it's long enough that only one position works), or two different triangles, one acute and one obtuse. For example, a = 6, b = 8 and A = 40° gives two valid triangles, with B ≈ 59° or B ≈ 121°. The calculator detects this and shows both solutions.

Types of Triangles

  • By sides: equilateral (all three equal), isosceles (two equal), scalene (all different).
  • By angles: acute (all angles below 90°), right (one angle exactly 90°), obtuse (one angle above 90°).

The classic 3-4-5 triangle is a scalene right triangle, since 3² + 4² = 5². Builders use it to set out perfectly square corners.

Features

  • Every caseSSS, SAS, ASA, AAS and ambiguous SSA.
  • Complete resultsSides, angles in degrees and radians.
  • Area and perimeterUsing Heron's formula.
  • Advanced measuresHeights, medians, inradius and circumradius.
  • Scaled drawingSee the triangle's true shape.
  • Error checksTriangle inequality and angle sums.

Frequently Asked Questions

Can I solve a triangle with only angles?

No. Three angles define the shape but not the size, so you need at least one side length.

How do I solve a right triangle?

Enter 90 for the right angle (e.g. C = 90) and any two other values, such as two sides or one side and one angle.

What is the triangle inequality?

The sum of any two sides must be greater than the third side. Otherwise the sides can't meet to form a triangle.

What units should I use?

Any length unit (cm, m, inches, feet), as long as all sides use the same one. The area will be in that unit squared.

Why do I get two answers?

You entered the ambiguous SSA case, where two different triangles match your values. Both are mathematically correct; use extra context to pick one.