Everyday tool

Triangle Calculator from Three Sides

Enter side lengths a, b and c in the same unit. The tool checks the triangle inequality.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Triangle Calculator from Three Sides made simple.

This mode solves only the three-sides-known case, avoiding ambiguous side-angle configurations. Angles are reported in degrees.

Guide

Using Triangle Calculator from Three Sides

The Triangle Calculator from Three Sides starts from the lengths of sides a, b and c and returns the three angles in degrees, the area and the perimeter. It first tests that the three lengths can close into a triangle. It cannot start from angles, or from one angle and two sides, and it has no unit menu, so the three sides must already be in the same unit.

How to use it

  1. Type the three side lengths into the boxes for side a, side b and side c. Use the same unit for all three, such as centimetres, and use numbers above zero.
  2. Press Calculate. The result box lists Angle A, Angle B, Angle C, the area and the perimeter, one per line.
  3. Remember that Angle A sits opposite side a, Angle B opposite side b and Angle C opposite side c. The area is in square units of whatever unit you used.
  4. Press Copy result to take the text with you, or Clear to start over with empty boxes.

Worked examples

The 3-4-5 right triangle

You enter
A
3
B
4
C
5
You get
Angle a
36.8699°
Angle b
53.1301°
Angle c
90°
Area
6 square units
Perimeter
12

Because 3 squared plus 4 squared equals 5 squared, the angle opposite the longest side is exactly 90 degrees. The area is half of 3 times 4, which is 6.

Run through the tool’s own code.

A scalene triangle

You enter
A
7
B
8
C
9
You get
Angle a
48.1897°
Angle b
58.4119°
Angle c
73.3985°
Area
26.832816 square units
Perimeter
24

All three sides differ, so all three angles differ and the largest angle faces the longest side. The area comes from the semi-perimeter 12 and the product 12 times 5 times 4 times 3.

Run through the tool’s own code.

Sides that cannot close

You enter
A
2
B
3
C
6
You get
Message
The entered side lengths do not form a triangle.

Two sides must add up to more than the third. Here 2 plus 3 is only 5, which is shorter than 6, so the two short sides can never meet. The same message appears when the sum is exactly equal, such as 1, 2 and 3.

Run through the tool’s own code.

When it helps

  • Find the angles of a triangular piece you measured with a tape, such as a corner brace, a plot of land or a roof gable.
  • Check homework on solving a triangle when only the three sides are given.
  • Get the area of a triangle when you know the sides but not the height.
  • Test whether three lengths of timber, pipe or cable can form a closed triangle before you cut them.

Limits to keep in mind

  • It solves only the case where all three sides are known. It will not take an angle as input, and it does not handle the side-angle cases that can have two answers.
  • Each side must be a number above zero. Zero, negative numbers and empty boxes show a short message instead of a result.
  • Angles are rounded to four decimals and the area to six, so the three angles shown may differ from 180 by a tiny amount.
  • Extremely large numbers, such as 1e200, go beyond what the calculation can hold and the result may read NaN or Infinity. Use realistic measurements.

Tips

  • Measure the three sides twice and in one unit before you type them. A small mistake in one side moves every angle.
  • Treat the angles as rounded values. For a tight fit in a workshop, try a template or a test cut before you commit to the real material.
  • To find the height on side c, divide twice the area by c.

Sources

Common questions

About Triangle Calculator from Three Sides.

How do I find the angles of a triangle from its three sides?

Enter the lengths of a, b and c. The tool applies the law of cosines to each corner to get its angle, so you do not need a protractor or a height. The three angles are listed in degrees.

How is the area worked out?

The tool uses Heron's formula. It adds the three sides, halves the total to get the semi-perimeter s, and takes the square root of s times (s minus a) times (s minus b) times (s minus c).

Why does it say the sides do not form a triangle?

The two shorter sides must together be longer than the longest side. If they are shorter, or exactly equal, the sides lie flat or cannot meet. Check each length and try again.

Which unit does the answer use?

There is no unit setting. The perimeter is in whatever unit you typed, and the area is in the square of that unit. Angles are always in degrees.

Can I enter two sides and an angle instead?

No. This tool only starts from three sides. A side-angle start can lead to two different triangles in some cases, which is why this tool leaves it out.

Does the tool tell me the triangle type?

It does not print a label. You can read it from the numbers: three equal angles mean an equilateral triangle, one angle of exactly 90 degrees means a right triangle, and two equal angles mean an isosceles one.

How do I use Triangle calculator?

Enter side lengths a, b and c in the same unit. The tool checks the triangle inequality.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.