Skip to content
OEWER Tools

Math Calculators

Triangle Calculator

Find the sides, angles, perimeter, area and type of a triangle from three sides, two sides and an angle, or two angles and a side.

  • Free
  • No sign-up
  • Runs in your browser

Share this tool:WhatsApp (opens in a new tab)Telegram (opens in a new tab)X (opens in a new tab)

Side a is opposite angle A, side b opposite B, and side c opposite C. Lengths can be in any unit, as long as you use the same one for every side.

Area · Scalene, right
6
Perimeter
12
Side a
3
Side b
4
Side c
5
Angle A
36.8699°
Angle B
53.1301°
Angle C
90°

How this is calculated

cos A = (b² + c² − a²) ÷ (2bc)

cos B = (a² + c² − b²) ÷ (2ac)

C = 180° − A − B

area = √( s (s − a)(s − b)(s − c) ), where s is half the perimeter

  1. Angle A: cos A = (4² + 5² − 3²) ÷ (2 × 4 × 5) = 0.8, so A = 36.8699°.
  2. Angle B: cos B = (3² + 5² − 4²) ÷ (2 × 3 × 5) = 0.6, so B = 53.1301°.
  3. Angle C = 180° − 36.8699° − 53.1301° = 90°.
  4. Perimeter = 3 + 4 + 5 = 12, so s = 6.
  5. Area (Heron's formula) = √(6 × 3 × 2 × 1) = 6.

The three angles of a triangle always add up to 180°. Lengths are in whatever unit you used, and the area is in that unit squared.

How to use Triangle Calculator

How to use this calculator:

  • Choose what you know: three sides, two sides and the angle between them, or two angles and a side.
  • Enter the values. Angles are in degrees.
  • Read the missing sides and angles, the perimeter, the area and the type of triangle.

Open How this is calculated under the result to see the formula and each step with your own numbers.

The formulas. Law of cosines: c² = a² + b² − 2ab cos C. Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C. Heron's formula: area = √( s(s−a)(s−b)(s−c) ).

Examples

  • Sides 3, 4 and 5

    Angles 36.87°, 53.13° and 90°. The area is 6 and the perimeter 12. A right triangle.

  • Sides 7 and 9, angle 40° between

    The third side is 5.786, the other angles 51.05° and 88.95°, and the area 20.25.

  • Angles 40° and 65°, side 10

    The third angle is 75°. The other sides are 14.10 and 15.03.

Frequently asked questions

Which side goes with which angle?

Side a is opposite angle A, side b opposite angle B, and side c opposite angle C.

Why does it say my sides cannot make a triangle?

Each side must be shorter than the other two added together. Sides 1, 2 and 5 cannot meet.

What about two sides and an angle that is not between them?

That case can have two answers, or none, so it is not included. Use the other options, or find the missing angle first.

What unit is the area in?

The square of the unit you used for the sides, such as square centimetres.

Guides about Triangle Calculator