Skip to main content

Calcu.fit

Triangle Calculator: Solve Sides, Angles, and Area

Use this free triangle calculator to find the missing sides and angles of any triangle. Enter three known values (at least one must be a side), and the calculator finds the rest, along with the area, perimeter, heights, inradius, and circumradius. It shows the steps and tells you the type of triangle. No signup needed.

Triangle calculator

Known values

Enter any three values, and at least one must be a side. Angle A is opposite side a, B is opposite b, and C is opposite c.

Sides
Angles

How to Use This Triangle Calculator

  1. Label your triangle: sides a, b, c, and the angles A, B, C opposite them (angle A is opposite side a).
  2. Enter any three known values, as long as at least one is a side.
  3. Choose the unit of length and angle (degrees or radians).
  4. Click Calculate.

The calculator finds the case automatically:

Known valuesNameWhat you need
Three sidesSSSa, b, c
Two sides and the angle between themSASa, b, and C
Two angles and the side between themASAA, B, and c
Two angles and a side not between themAASA, B, and a
Two sides and an angle not between themSSAa, b, and A

Three angles alone (AAA) are not enough, because many triangles of different sizes share the same angles.

What You’ll See in Your Results

  • All three sides and all three angles
  • The area and the perimeter
  • The semi-perimeter and the three heights (altitudes)
  • The inradius (inscribed circle) and the circumradius (circumscribed circle)
  • The type of triangle, by sides and by angles
  • Step-by-step working
  • A warning if the values cannot form a triangle, and both solutions in the ambiguous SSA case

Triangle Basics

  • The three angles of a triangle always add up to 180° (π radians).
  • The triangle inequality: the sum of any two sides must be greater than the third side.
  • The largest angle is opposite the longest side.

Types of Triangles

By sidesDescription
EquilateralAll three sides are equal, and all angles are 60°
IsoscelesTwo sides are equal, and the two angles opposite them are equal
ScaleneAll sides are different
By anglesDescription
AcuteAll angles are less than 90°
RightOne angle is exactly 90°
ObtuseOne angle is greater than 90°

Triangle Formulas

Angle sum: A + B + C = 180°

Pythagorean theorem (right triangle with legs a, b and hypotenuse c): a² + b² = c²

Law of Cosines:

  • c² = a² + b² − 2ab cos C
  • cos C = (a² + b² − c²) ÷ (2ab)

Law of Sines: a ÷ sin A = b ÷ sin B = c ÷ sin C

Area:

  • Base and height: Area = ½ × base × height
  • Two sides and the angle between: Area = ½ × a × b × sin C
  • Heron’s formula (three sides): Area = √[s(s − a)(s − b)(s − c)], where s = (a + b + c) ÷ 2

Perimeter: P = a + b + c

Height to side a: h_a = 2 × Area ÷ a

Inradius: r = Area ÷ s

Circumradius: R = abc ÷ (4 × Area)

Triangle Calculator Examples

All numbers are rounded for display.

Example 1: SSS (3, 4, 5)

  • Angles: A = 36.87°, B = 53.13°, C = 90°
  • Type: right triangle
  • Perimeter: 12
  • Area: 6
  • Inradius: 6 ÷ 6 = 1
  • Circumradius: 3 × 4 × 5 ÷ (4 × 6) = 2.5

Example 2: SSS (7, 8, 9) with Heron’s Formula

  • Semi-perimeter: s = (7 + 8 + 9) ÷ 2 = 12
  • Area = √[12 × 5 × 4 × 3] = √720 = 26.83
  • Angles: A = 48.19°, B = 58.41°, C = 73.40°
  • Type: scalene, acute

Example 3: SAS (a = 5, b = 7, C = 60°)

  • Third side: c² = 25 + 49 − 2 × 5 × 7 × cos 60° = 74 − 35 = 39, so c = 6.245
  • Angles: A = 43.90°, B = 76.10°
  • Area = ½ × 5 × 7 × sin 60° = 15.16

Example 4: ASA (A = 40°, B = 60°, c = 10)

  • Third angle: C = 180° − 40° − 60° = 80°
  • Law of Sines: a = 10 × sin 40° ÷ sin 80° = 6.527
  • b = 10 × sin 60° ÷ sin 80° = 8.794
  • Area = 28.26

Example 5: Law of Sines with AAS (a = 7, A = 35°, B = 70°)

  • C = 180° − 35° − 70° = 75°
  • b = 7 × sin 70° ÷ sin 35° = 11.47
  • c = 7 × sin 75° ÷ sin 35° = 11.79

Example 6: SSA with Two Solutions (A = 30°, a = 5, b = 8)

This is the ambiguous case. The height from the vertex is h = b × sin A = 8 × 0.5 = 4. Since h < a < b, there are two triangles.

 Solution 1Solution 2
Angle B53.13°126.87°
Angle C96.87°23.13°
Side c9.933.93
Area19.867.86

Example 7: Equilateral Triangle (side 6)

  • All angles: 60°
  • Height: 6 × √3 ÷ 2 = 5.196
  • Area: √3 ÷ 4 × 6² = 15.59
  • Perimeter: 18

Example 8: Isosceles Triangle (5, 5, 6)

  • Angles: 53.13°, 53.13°, 73.74°
  • Height to the base (6): √(5² − 3²) = 4
  • Area: ½ × 6 × 4 = 12

Example 9: Right Triangle with Two Legs (6 and 8)

  • Hypotenuse: √(6² + 8²) = 10
  • Angles: 36.87° (opposite the 6) and 53.13° (opposite the 8)
  • Area: ½ × 6 × 8 = 24
  • Perimeter: 6 + 8 + 10 = 24

Example 10: Right Triangle with a Leg and the Hypotenuse (5 and 13)

  • Other leg: √(13² − 5²) = √144 = 12
  • This is the well-known 5-12-13 triangle. Area = 30.

Example 11: Right Triangle with Hypotenuse and an Angle (13, 30°)

  • Opposite leg: 13 × sin 30° = 6.5
  • Adjacent leg: 13 × cos 30° = 11.26

Example 12: Base and Height

A triangle has a base of 10 and a height of 6. Area = ½ × 10 × 6 = 30.

Example 13: Finding the Third Angle

Two angles are 50° and 60°. The third is 180° − 50° − 60° = 70°.

Example 14: Classify by Angles

  • 5, 6, 7: the largest side squared is 49, and the other two squared add to 25 + 36 = 61. Since 49 < 61, the triangle is acute.
  • 5, 12, 13: 25 + 144 = 169, so it is a right triangle.
  • 4, 5, 8: 16 + 25 = 41 < 64, so it is obtuse (the largest angle is about 125.1°).

Example 15: Can These Sides Form a Triangle?

  • 2, 3, 6: 2 + 3 = 5, which is not greater than 6, so no.
  • 3, 4, 7: 3 + 4 = 7, which is not greater than 7, so no (it would be a flat line).
  • 4, 5, 8: 4 + 5 = 9, which is greater than 8, so yes.

The SSA (Ambiguous) Case

When you know two sides and an angle that is not between them (a, b, and A), there may be 0, 1, or 2 triangles. Compare side a with h = b × sin A (the height):

Condition (A acute)Number of triangles
a < h0 (side a is too short to reach)
a = h1 (a right triangle)
h < a < b2
a ≥ b1

If angle A is 90° or more (obtuse), there is one triangle when a > b and none otherwise.

This calculator shows both triangles when there are two, so you can choose the one that fits your problem.

Which Method Should You Use?

  • You know all three sides: use the Law of Cosines for the angles, or Heron’s formula for the area.
  • You know two sides and the angle between them: use the Law of Cosines for the third side.
  • You know two angles: find the third angle by subtracting from 180°, then use the Law of Sines.
  • It is a right triangle: use the Pythagorean theorem and basic trigonometry (sin, cos, tan).

Where Triangles Are Used

  • Construction and carpentry: roof slopes, braces, and stair design
  • Surveying and land: finding the area of a triangular plot
  • Navigation and mapping: finding distances and bearings
  • Engineering and physics: forces, vectors, and structures
  • School geometry and trigonometry

Tips for Using a Triangle Calculator

  • Draw a quick sketch and label sides and angles. Angle A is opposite side a.
  • Check the units (all lengths must use the same unit) and the angle mode (degrees or radians).
  • Check the triangle inequality before you start with three sides.
  • For SSA, expect that there may be two answers.
  • Do not round in the middle of a long calculation. Round at the end.
  • Use a right triangle shortcut when you see a 90° angle.
  • Check your answer: the angles should add up to 180°, and the longest side should face the largest angle.

Triangle Calculator vs. Other Tools

  • Scientific Calculator: trig functions, powers, roots, and logs.
  • Fraction Calculator: add, subtract, multiply, and divide fractions.
  • Pythagorean Theorem Calculator: the right triangle formula alone.
  • Area Calculator: area of other shapes.
  • Percentage Calculator: percent of a number and percent change.

Frequently Asked Questions (FAQ)

How do I find the missing side of a triangle?

It depends on what you know. With two sides and the angle between them (SAS), use the Law of Cosines. With two angles and a side, use the Law of Sines. For a right triangle, use the Pythagorean theorem.

Use ½ × base × height. If you only know the sides, use Heron’s formula: √[s(s − a)(s − b)(s − c)], where s is half the perimeter. For a 3-4-5 triangle, the area is 6.

It gives the area from the three sides alone. With s = (a + b + c) ÷ 2, the area is √[s(s − a)(s − b)(s − c)]. For sides 7, 8, and 9, s = 12 and the area is √720 ≈ 26.83.

Use the Law of Cosines: cos A = (b² + c² − a²) ÷ (2bc). For a 3-4-5 triangle, the angles are 36.87°, 53.13°, and 90°.

It says that a ÷ sin A = b ÷ sin B = c ÷ sin C. You can use it when you know two angles and a side, or in the SSA case

It says that c² = a² + b² − 2ab cos C. It works for any triangle and becomes the Pythagorean theorem when C = 90°.

No. Many triangles of different sizes have the same angles, so you need at least one side.

When you know two sides and an angle that is not between them, there may be no triangle, one, or two. The calculator shows both when there are two.

The sum of any two sides must be greater than the third. For example, 2, 3, and 6 cannot make a triangle, since 2 + 3 is not greater than 6.

Compare the square of the longest side with the sum of the squares of the other two. If they are equal, it is right. If the longest side squared is smaller, it is acute. If it is larger, it is obtuse.

180 degrees, or π radians.

The inradius is the radius of the largest circle inside the triangle (Area ÷ s). The circumradius is the radius of the circle that passes through all three corners (abc ÷ 4 × Area).

Yes. It is free, with no registration and no limits.

It uses standard formulas and the numbers you enter. Results are rounded for display, and tiny rounding differences can appear in angles and lengths.

Disclaimer

This calculator is for general and educational use. Results are rounded for display and may differ slightly from exact values. For construction, surveying, engineering, or land measurement, check the results with a qualified professional and use proper measuring tools. Follow your teacher’s instructions on the form of the answer.