Triangle Calculator: Area by Heron's Formula, Angles, Type and Scale Diagram

Enter three sides of a triangle, or two sides with the angle between them, or two angles with one side. The calculator finds the missing sides and angles, the area by Heron's formula with every step, the perimeter, the three heights and the type of triangle. It also draws the triangle to scale. It is useful for NCERT Class 9 Heron's Formula questions and for checking geometry homework in Classes 9 to 11.

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

How the calculator works

Heron's formula for the area

When all three sides a, b and c are known, first find the semi-perimeter (half of the perimeter):

s = (a + b + c) ÷ 2

Then the area is

Area = √[s (s − a) (s − b) (s − c)]

This formula, studied in NCERT Class 9 (Heron's Formula chapter), does not need the height of the triangle, so it works for any triangle, including scalene triangles where the height is hard to measure.

Finding the angles: the cosine rule

If the three sides are known, each angle comes from the cosine rule:

cos A = (b2 + c2 − a2) ÷ 2bc, and in the same way for B. The third angle is C = 180° − A − B, because the angles of a triangle add up to 180° (angle sum property).

If two sides and the included angle are given, the third side comes from c2 = a2 + b2 − 2ab cos C. If two angles and a side are given, the calculator uses the sine rule a ÷ sin A = b ÷ sin B = c ÷ sin C. These rules are explained in higher classes; in Class 9 you only need Heron's formula and the angle sum property.

Type of triangle

  • By sides: equilateral (all three sides equal), isosceles (two sides equal) or scalene (all sides different).
  • By angles: acute-angled (all angles less than 90°), right-angled (one angle equal to 90°) or obtuse-angled (one angle more than 90°).

Heights

Since area = ½ × base × height, the height to any side is height = 2 × Area ÷ side.

Worked example

Question: Find the area of a triangle whose sides are 13 cm, 14 cm and 15 cm. Also find the height to the side of 14 cm.

Step 1: s = (13 + 14 + 15) ÷ 2 = 42 ÷ 2 = 21 cm.

Step 2: s − a = 21 − 13 = 8, s − b = 21 − 14 = 7, s − c = 21 − 15 = 6.

Step 3: Area = √(21 × 8 × 7 × 6) = √7056 = 84 cm2.

Step 4: Height to the 14 cm side = 2 × 84 ÷ 14 = 12 cm.

The angles are A = 53.13°, B = 59.49° and C = 67.38°. All are less than 90° and no two sides are equal, so it is a scalene, acute-angled triangle. This is the example already filled in above, and the calculator shows the same answers.

Tip: When the numbers under the square root are large, split them into prime factors before taking the root: 21 × 8 × 7 × 6 = (3 × 7) × (2 × 2 × 2) × 7 × (2 × 3) = 24 × 32 × 72, so the root is 22 × 3 × 7 = 84.

Common mistakes

  • Using the perimeter instead of the semi-perimeter for s. Always divide a + b + c by 2.
  • Not checking that the sides can form a triangle. The sum of any two sides must be greater than the third side, so 3 cm, 4 cm and 8 cm cannot make a triangle.
  • Mixing units, such as one side in metres and another in centimetres. Convert all sides to the same unit first.
  • Writing the area in cm instead of cm2. Area is always in square units.
  • Rounding s − a, s − b and s − c too early. Keep full values until the last step.

Practise with

Answers are rounded to 4 decimal places and angles to 2 decimal places. Use the rounding asked for in your question.