Triangle Calculator

Triangle Calculator

This triangle calculator solves any triangle from three known values and gives every side, angle, the area and more.

Side a is opposite angle A, side b opposite B and side c opposite C.
Area
0
MeasureValueSecond triangle

Uses the law of cosines, the law of sines and Heron's formula. Results are rounded to 4 decimal places; angles always add up to 180 degrees (π radians).

This triangle calculator solves any triangle from three known values, for students, DIY builders, surveyors and anyone checking a drawing in metric or imperial units. Enter three sides, two sides and an angle, or two angles and a side, and it finds every missing side and angle with the law of cosines and the law of sines, then adds area, perimeter, heights, medians and both radii with a drawing to scale.

Quick answer: To solve a triangle you need three values including at least one side. Use the law of cosines for three sides or two sides with the angle between, and the law of sines otherwise. With sides 5, 6 and 7, this triangle calculator gives angles of 44.42°, 57.12° and 78.46° and an area of 14.70.

Triangle calculator solving a triangle with sides 5, 6 and 7 cm and an area of 14.6969 cm²
How the Triangle Calculator works: any three sides or angles in, the whole triangle solved.

What Is a Triangle Calculator?

A triangle calculator is a solver that takes any three valid measurements of a triangle and works out the other three, plus its area and other properties. Three angles alone are not enough, because similar triangles share angles but come in every size.

It relies on three rules. The angles always add up to 180°. The law of cosines, c² = a² + b² − 2ab cos C, links three sides and one angle. The law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C, links each side with the angle opposite it. Area then comes from Heron's formula or from ½ab sin C.

How to Use the Triangle Calculator

Step 1: Choose What You Know

Pick the case that matches your measurements: three sides (SSS), two sides and the angle between them (SAS), two angles and the side between them (ASA), two angles and another side (AAS), or two sides and an angle not between them (SSA).

Step 1: choose what you know, such as three sides or two angles and a side

Step 2: Pick Your Units

Choose degrees or radians for angles, and a length unit such as cm, m, inches or feet. Lengths can be in any unit as long as all sides use the same one; area is shown in that unit squared.

Step 2: pick degrees or radians and a length unit

Step 3: Enter the Three Values

Type your measurements. Side a is always opposite angle A, side b opposite B and side c opposite C, so label your sketch the same way before you start.

Step 3: enter the three known values

Step 4: Read the Solved Triangle

The triangle calculator shows the area, the triangle type, a drawing to scale and a table of all sides, angles, heights, the median, inradius and circumradius. If two triangles fit, both are shown side by side.

Step 4: read the area, drawing and every side and angle

Which Formula Solves Each Type of Triangle?

The formula depends on which three values you know: cosines when you have sides around an angle, sines when you have an angle opposite a known side. The triangle calculator picks the right rule for you, and the table shows the first step for each case.

You knowFirst stepUnique answer?
SSS: three sidesLaw of cosines for each angleYes, if any two sides add to more than the third
SAS: two sides, angle betweenLaw of cosines for the third sideYes
ASA: two angles, side betweenThird angle = 180° minus the two, then law of sinesYes
AAS: two angles, another sideThird angle, then law of sinesYes
SSA: two sides, angle not betweenLaw of sines for the second angleZero, one or two triangles
AAA: three anglesCannot be solvedNo, size is unknown

For right angled triangles the law of cosines reduces to a² + b² = c², because cos 90° = 0. If you only need that case, the Pythagorean theorem calculator finds the missing side in one step.

How Do You Find the Area of a Triangle?

The area of a triangle is half the base times the perpendicular height, but when you only know the sides you use Heron's formula instead. Work out the semi perimeter s = (a + b + c) ÷ 2, then area = √(s(s − a)(s − b)(s − c)). The triangle area calculator output above does this automatically.

Worked example: Ellie is planning a triangular raised bed with sides of 3 m, 4 m and 6 m. The semi perimeter is 6.5 m, so the area is √(6.5 × 3.5 × 2.5 × 0.5) = √28.4375 = 5.33 m². The largest angle, opposite the 6 m side, is 117.28°, so the bed is obtuse, and the other angles are 26.38° and 36.34°. Heron's formula needs no angles at all, which makes it ideal for measuring plots on the ground with a tape. Enter 3, 4 and 6 in the SSS mode of the triangle area calculator to check Ellie's figures.

What Is the Ambiguous Case of a Triangle?

The ambiguous case happens when you know two sides and an angle that is not between them (SSA), because the unknown angle can be acute or obtuse and still fit. With a = 6, b = 8 and A = 40°, angle B can be 58.99° or 121.01°, giving two different triangles.

If side a is too short to reach the base, no triangle exists, and if it is long enough only one fits. This triangle angle calculator checks every possibility and lists both solutions when there are two. For angles and sides in right angled problems, the trigonometry calculator gives sine, cosine and tangent values directly. Figures on this page were checked October 2026.

Key Triangle Calculator Terms Explained

These terms explain the rules the triangle calculator uses to turn three known values into every side, angle and area measurement.

Law of cosines
The law of cosines states that c² = a² + b² minus 2ab cos C. It finds a third side from two sides and the angle between them, or any angle from three sides, and becomes Pythagoras when C is 90°.
Law of sines
The law of sines states that each side divided by the sine of its opposite angle gives the same value. It solves ASA, AAS and SSA triangles once one side and its opposite angle are known.
Heron's formula
Heron's formula finds area from three sides alone: area equals the square root of s(s minus a)(s minus b)(s minus c), where s is the semi perimeter. Sides of 3, 4 and 6 m give about 5.33 m².
Ambiguous case
The ambiguous case arises with two sides and an angle that is not between them. With a = 6, b = 8 and A = 40°, angle B can be 58.99° or 121.01°, so two triangles fit.
Circumradius
The circumradius R is the radius of the circle that passes through all three corners. It equals side a divided by twice the sine of angle A, and the calculator lists it with the inradius.
</>Embed this calculator on your website

Add the free Triangle Calculator to your own site or blog. Copy the code below and paste it into an HTML block. It resizes itself and works on phones.

How we checked this tool: Zahid Awais built this tool, checked it against the official rules or published standards where they apply, and tested it against worked examples. Results are estimates for planning, not personal financial or tax advice. Read our editorial policy and disclaimer, or report an error.

Frequently Asked Questions

How many values do I need to solve a triangle?

You need three values, and at least one of them must be a side. Three angles alone fix the shape but not the size, so any number of similar triangles would fit and the calculator cannot choose one.

How do I find the missing angle of a triangle?

If you know two angles, subtract them from 180°. For example, 50° and 60° leave 70°. If you only know sides, use the law of cosines: cos A = (b² + c² − a²) ÷ 2bc.

How do I know if three sides make a triangle?

Any two sides must add up to more than the third side. Sides of 3, 4 and 6 work because 3 + 4 = 7 is more than 6, but 2, 3 and 6 fail because 2 + 3 = 5 is less than 6.

What is the area of a triangle with sides 5, 6 and 7?

The area is about 14.70 square units. The semi perimeter is 9, so Heron's formula gives √(9 × 4 × 3 × 2) = √216 = 14.6969. In centimetres that is 14.70 cm².

How can I tell if a triangle is right angled?

Square the two shorter sides and add them. If the total equals the square of the longest side, the triangle is right angled. Sides 3, 4 and 5 qualify because 9 + 16 = 25.

Can I use radians instead of degrees?

Yes. Switch the angle unit to radians and the inputs convert automatically. One radian is about 57.2958°, a right angle is π ÷ 2, about 1.5708 radians, and the angles of every triangle add up to π.