Triangle Calculator

Solve all properties of a triangle (sides, angles, area, perimeter, heights) using Law of Sines and Law of Cosines.

Calculator Inputs

Length of side a.
Length of side b.
Length of side c.

Calculated Results

Triangle Area
6.000 sq units
Perimeter 12.000 units
Angles (A, B, C) 36.87°, 53.13°, 90.00°
Triangle Classification Right Scalene Triangle
Values calculate live as you adjust inputs.

About Triangle Calculator

Triangle Calculator – Calculate Area, Angles, Perimeter & Triangle Type

Three side measurements can tell you much more about a triangle than you might expect. They can reveal how much space the shape covers, the total distance around its boundary, the size of each interior angle, and even whether it is an acute, right, or obtuse triangle.

This Triangle Calculator uses the three side lengths you provide to work out these properties. Enter side A, side B, and side C to calculate the triangle’s area, perimeter, three interior angles, and classification.

It is useful when you have measured a triangular space, are checking a construction layout, or want to verify a geometry problem without manually working through several formulas. You do not need to know the triangle’s height or measure its angles separately. The three valid side lengths provide enough information to determine the results.

What three side lengths reveal about a triangle

A triangle is defined by three connected sides, but those sides determine several other properties. Two triangles can have the same perimeter and still cover different areas. Similarly, a triangle with three unequal sides can have either a right, acute, or obtuse angle depending on the measurements.

Consider a triangle with these side lengths:

  • Side A: 7 units

  • Side B: 8 units

  • Side C: 9 units

From these measurements, you can calculate:

  • Area: Approximately 26.83 square units.

  • Perimeter: 24 units.

  • Interior angles: Approximately 48.19°, 58.41°, and 73.80°.

  • Classification: Acute scalene triangle.

The side lengths determine the shape, while the calculated results describe different aspects of it. Area tells you how much space is enclosed, perimeter measures the outside boundary, and the angles show how wide or narrow the triangle’s corners are.

This is particularly useful when you have the three side measurements but do not have a perpendicular height or angle measurements available.

Understanding the results from the Triangle Calculator

The calculator provides four main results. Each one answers a different question about the triangle.

Triangle area: how much space is enclosed?

The area of a triangle measures the surface contained within its three sides. It is useful when estimating the amount of material or coverage needed for a triangular surface.

For example, imagine a triangular garden bed with sides measuring 7, 8, and 9 metres. Its area is approximately 26.83 square metres.

That tells you the size of the surface, not the length of its boundary. If you were buying soil or estimating ground coverage, the area would be the more relevant measurement.

Area is expressed in square units:

  • Centimetres produce square centimetres (cm²).

  • Metres produce square metres (m²).

  • Feet produce square feet (ft²).

The important point is that the units must be consistent. If one side is measured in metres and another in centimetres, convert them to the same unit before calculating.

Perimeter: the total distance around the triangle

The perimeter is the combined length of all three sides.

For a triangle with sides of 7 m, 8 m, and 9 m:

[
P=7+8+9=24\text{ m}
]

The perimeter is 24 metres.

This measurement is useful when estimating the length of fencing around a triangular garden, edging around a triangular patio, or material needed along the outside of a triangular sign.

Do not confuse perimeter with area. A triangle can have a relatively large perimeter without having a proportionally large surface area. The two measurements describe different things.

Interior angles: how wide are the triangle’s corners?

The three interior angles determine how the sides meet. Their combined measurement is always 180° for a flat triangle.

For the 7-8-9 triangle, the angles are approximately:

  • Angle A, opposite side 7: 48.19°.

  • Angle B, opposite side 8: 58.41°.

  • Angle C, opposite side 9: 73.80°.

The largest angle is opposite the longest side, while the smallest angle is opposite the shortest side.

This relationship is useful when checking a triangle’s geometry. If the longest side is opposite the largest angle, the measurements follow the expected relationship. The three calculated angles should also add up to approximately 180°, allowing for small rounding differences.

Triangle classification: identify the shape

The calculator also identifies the type of triangle based on its measurements. This classification can describe the triangle by its side lengths, its interior angles, or both.

For example, the 7-8-9 triangle has three unequal sides and three angles below 90°. It is therefore an acute scalene triangle.

Understanding this label helps you interpret the geometry rather than looking at four separate numerical results without knowing how they relate.

How the calculator identifies different types of triangles

Triangles can be classified in two ways: by comparing their side lengths and by examining their interior angles. These classifications describe different properties, so a triangle can belong to one category from each group.

Types of triangles based on side lengths

Equilateral triangle

An equilateral triangle has three equal sides. Because the sides are equal, all three interior angles are also equal, measuring 60° each.

Example: A triangle with side lengths 6, 6, and 6 units.

This is the most symmetrical type of triangle. Every side has the same length, and every corner has the same angle.

Isosceles triangle

An isosceles triangle has two equal sides. The angles opposite those sides are equal as well.

Example: A triangle with sides 5, 5, and 8 units.

The two sides measuring 5 units create two equal interior angles. The third side is different, so the triangle is not equilateral.

Scalene triangle

A scalene triangle has three different side lengths. Its three interior angles are also different.

Example: A triangle with sides 5, 6, and 7 units.

Scalene triangles can be acute, right, or obtuse. Having unequal sides does not automatically tell you whether the triangle contains a 90° angle.

Types of triangles based on interior angles

Acute triangle

An acute triangle has three interior angles smaller than 90°.

Example: A triangle with sides 5, 6, and 7 units. All three angles are below 90°, so it is an acute scalene triangle.

Right triangle

A right triangle has exactly one interior angle measuring 90°. The side opposite this angle is called the hypotenuse, and it is always the longest side.

Example: A triangle with sides 3, 4, and 5 units.

Its angles are approximately 36.87°, 53.13°, and 90°. This makes it a right scalene triangle.

Obtuse triangle

An obtuse triangle has one interior angle greater than 90°. The other two angles must be acute.

Example: A triangle with sides 3, 4, and 6 units.

The angle opposite the 6-unit side is approximately 163.6°, making the triangle obtuse scalene.

A useful detail is that these categories can be combined. A triangle might be acute isosceles, right scalene, or obtuse scalene. The side classification and angle classification are not competing descriptions; they tell you different things about the same shape.

Can any three measurements form a triangle?

No. Three positive side lengths do not automatically make a valid triangle. They must satisfy a mathematical condition called the triangle inequality theorem.

The rule is straightforward: the sum of any two sides must be greater than the remaining side.

For sides A, B, and C, all three conditions must be true:

[
A+B>C
]

[
A+C>B
]

[
B+C>A
]

Consider these examples:

Side A Side B Side C Can they form a triangle?
3 4 5 Yes
5 6 8 Yes
2 3 5 No
2 3 6 No

The difference becomes clear when you examine the two invalid examples.

With sides 2, 3, and 5, the first two sides add up to exactly 5. The measurements can form a straight line, but they cannot enclose a triangular area. This is called a degenerate triangle.

With sides 2, 3, and 6, the two shorter sides add up to only 5. They are not long enough to meet and close the shape.

A quick way to check your measurements is to add the two shortest sides. Their total must be greater than the longest side. If it is equal to or smaller than the longest side, the measurements cannot describe a valid triangle.

How Heron’s formula calculates triangle area without the height

Most people first learn the triangle area formula using a base and perpendicular height:

[
A=\frac{1}{2}\times b\times h
]

That method works well when the height is known. However, when you only have three side measurements, finding the perpendicular height may be inconvenient.

This is where Heron’s formula becomes useful. It calculates the area using all three side lengths, so you do not need to measure the height separately.

The first step is to find the semi-perimeter, which is half the triangle’s total perimeter:

[
s=\frac{a+b+c}{2}
]

Then use the semi-perimeter and three side lengths:

[
A=\sqrt{s(s-a)(s-b)(s-c)}
]

Here is an example using a triangle with sides 5, 6, and 7 units.

Step 1: Calculate the semi-perimeter.

[
s=\frac{5+6+7}{2}=9
]

Step 2: Substitute the values into Heron’s formula.

[
A=\sqrt{9(9-5)(9-6)(9-7)}
]

Step 3: Simplify the calculation.

[
A=\sqrt{9\times4\times3\times2}
]

[
A=\sqrt{216}\approx14.70
]

The triangle’s area is approximately 14.70 square units.

This method is particularly useful for irregular triangular spaces where the three boundary lengths are easier to measure than the perpendicular height.

How the Law of Cosines calculates the interior angles

Knowing the three side lengths also makes it possible to calculate all three interior angles. The Law of Cosines provides the relationship between a triangle’s sides and one of its angles.

For example, if side C is opposite angle C, the formula is:

[
\cos C=\frac{a^2+b^2-c^2}{2ab}
]

To find the angle itself, take the inverse cosine:

[
C=\cos^{-1}\left(\frac{a^2+b^2-c^2}{2ab}\right)
]

Let’s use the same 5-6-7 triangle.

The angle opposite the longest side, 7, can be calculated as:

[
\cos C=\frac{5^2+6^2-7^2}{2(5)(6)}
]

[
\cos C=\frac{25+36-49}{60}
]

[
\cos C=\frac{12}{60}=0.2
]

Taking the inverse cosine gives:

[
C=\cos^{-1}(0.2)\approx78.46^\circ
]

The other two angles can be calculated in the same way. They are approximately 44.42° and 57.12°.

Together, the three angles equal 180°.

The Law of Cosines is especially useful because it works for general triangles, not just right triangles. You can use it to find angles in acute, obtuse, and scalene triangles when all three sides are known.

How changing one side changes the triangle’s shape

A triangle’s side lengths are connected. Changing one side while keeping the other two fixed can change its area, perimeter, angles, and classification.

Consider a triangle where two sides remain at 5 and 6 units. Now change the third side:

Side A Side B Side C Result
5 6 7 Valid acute scalene triangle
5 6 8 Valid obtuse scalene triangle
5 6 10 Valid obtuse scalene triangle
5 6 11 Invalid triangle

When the third side increases from 7 to 8, the angle opposite that side becomes wider. The triangle changes from acute to obtuse.

When the third side reaches 11, the two shorter sides add up to exactly the longest side. The shape can no longer enclose a triangular area.

This relationship is useful when checking measurements or experimenting with triangle geometry. It also explains why the longest side is always opposite the largest angle.

You can explore another comparison by keeping all sides equal at first, then changing one measurement:

  • 6, 6, 6: equilateral triangle.

  • 6, 6, 9: isosceles triangle.

  • 6, 7, 9: scalene triangle.

Only a small change in the measurements can produce a different triangle classification.

Where triangle calculations are useful in real situations

Triangle geometry appears in more places than school mathematics. Whenever three connected boundaries form a triangular shape, knowing the area, perimeter, and angles can help with planning and measurement.

Planning a triangular garden or landscaped area

Suppose you are creating a triangular garden bed and have measured its three boundary lengths. The triangle calculator can estimate the enclosed area without requiring you to find the perpendicular height.

For a garden with sides of 5 m, 6 m, and 7 m, the area is approximately 14.70 m². That gives you a useful starting point for estimating soil or ground-cover requirements. You would still account for planting density, depth, and material wastage separately.

Checking roof sections and construction layouts

Triangular sections are common in roof frames, braces, and structural layouts. The side lengths help establish the geometry, while the calculated angles can help when checking how components meet.

For actual construction, the results should be checked against the project drawings and relevant building requirements rather than used as a substitute for structural design.

Estimating a triangular land section

If a triangular plot or land section has three known boundary lengths, Heron’s formula can estimate its area. This can help with an initial calculation or comparison.

For legal boundaries, property transactions, and official land records, use a qualified surveyor’s measurements rather than relying on a simple calculation alone.

Making triangular signs, panels, or fabric pieces

Someone producing a triangular sign or panel may need its area to estimate the material required. The perimeter is useful for estimating edge trim or finishing material.

For example, a fabric panel with sides of 5, 6, and 7 feet has an area of approximately 14.70 square feet and a perimeter of 18 feet.

Checking geometry homework

Students can use the calculator to verify exercises involving Heron’s formula, the Law of Cosines, triangle inequality, and the relationship between sides and angles. Comparing the calculated results with manual work can also help identify where a formula or substitution went wrong.

Common mistakes when calculating a triangle

Even when the formulas are correct, incorrect measurements or assumptions can produce misleading results. These are some of the mistakes worth checking before accepting a triangle calculation.

Entering side lengths that cannot form a triangle

The two shortest sides must add up to more than the longest side. If they do not, the measurements cannot form a valid triangle.

Mixing measurement units

Entering 2 metres, 150 centimetres, and 3 metres without converting the measurements first can lead to an incorrect result. Convert all three sides to one unit before using the triangle calculator.

Confusing area with perimeter

Perimeter is a length, so it is expressed in units such as metres or feet. Area measures a surface and uses square units such as m² or ft².

Pairing a side with the wrong angle

Each side is opposite its matching angle: side A is opposite angle A, side B is opposite angle B, and side C is opposite angle C. This matters when checking results from the Law of Cosines.

Assuming the longest side is always the hypotenuse

The hypotenuse exists only in a right triangle. In an acute or obtuse triangle, the longest side is not called a hypotenuse.

Rounding intermediate values too early

Rounding the semi-perimeter or intermediate calculations too aggressively can slightly change the final area and angle results. Keep sufficient decimal places during the calculation and round the final answer to the precision you need.

Triangle Calculator vs. Pythagorean Theorem Calculator

Both tools deal with triangle geometry, but they are designed for different types of calculations.

The Triangle Calculator uses three known side lengths to calculate the area, perimeter, interior angles, and classification. It works with general triangles, including acute, right, obtuse, scalene, and isosceles shapes.

A Pythagorean Theorem Calculator is specifically designed for right triangles. It uses the relationship between the two shorter sides and the hypotenuse to find a missing side when the other two are known.

Feature Triangle Calculator Pythagorean Theorem Calculator
Main inputs Three side lengths Two known sides of a right triangle
Triangle type General triangles Right triangles
Area Calculated using Heron’s formula Depends on the tool’s features
Interior angles Calculates all three May calculate angles depending on the tool
Missing side Not its current input method Designed to find a missing side
Main mathematical method Heron’s formula and Law of Cosines Pythagorean theorem

If you know all three side lengths and want to understand the triangle’s area, angles, or classification, use this Triangle Calculator. If you know two sides of a right triangle and need to calculate the third, the Pythagorean Theorem Calculator is the more suitable tool.

What is Triangle Calculator?

Computes unknown sides, interior angles, semi-perimeter, and area of any triangle from three known dimensions using Heron's formula and the Law of Cosines.

How to Use This Calculator

  1. Enter the lengths of side a, side b, and side c.
  2. Ensure triangle inequality holds (a + b > c).
  3. View computed area, perimeter, and internal angles.

The Mathematical Formula & Variables

Heron's Formula: Area = sqrt(s * (s - a) * (s - b) * (s - c)) where s = (a + b + c) / 2

Step-by-Step Worked Example

Scenario: Triangle with sides a = 3, b = 4, c = 5.

  1. Semi-perimeter s = (3 + 4 + 5) / 2 = 6.
  2. Area = sqrt(6 * (6-3) * (6-4) * (6-5)) = sqrt(6 * 3 * 2 * 1) = sqrt(36) = 6.

Result: 6.000 sq units

Frequently Asked Questions

What can you calculate from the three sides of a triangle?

When all three side lengths are known and form a valid triangle, you can calculate its area, perimeter, and all three interior angles. You can also classify the triangle by its side lengths and angle measurements.

Can three side lengths determine all three angles?

Yes. Three valid side lengths uniquely determine the shape of a triangle, including its three interior angles. The Law of Cosines can calculate each angle from the side measurements.

How do you know whether three measurements can form a triangle?

Use the triangle inequality theorem. The sum of any two side lengths must be greater than the remaining side. It is enough to check whether the two shortest sides add up to more than the longest side.

What is the difference between triangle area and perimeter?

Area measures the surface enclosed by the triangle, while perimeter measures the total length of its three sides. Area is expressed in square units, such as cm² or m², while perimeter uses ordinary length units, such as cm or m.

How does Heron's formula calculate triangle area?

Heron's formula uses the three side lengths and the semi-perimeter. First, calculate half the perimeter, then substitute that value and the three sides into the formula: [ A=sqrt{s(s-a)(s-b)(s-c)} ] It is useful when the three sides are known but the perpendicular height is not.

How can you identify a right triangle from its side lengths?

For a right triangle, the square of the longest side must equal the sum of the squares of the other two sides. This is the Pythagorean theorem. For example: [ 3^2+4^2=5^2 ] [ 9+16=25 ] Therefore, a triangle with sides 3, 4, and 5 is a right triangle.

Can a triangle have two equal sides and a right angle?

Yes. A triangle can be both isosceles and right-angled. For example, a triangle with two equal legs of length 1 has two 45° angles and one 90° angle. Its classification is a right isosceles triangle.

Why do the three interior angles of a triangle add up to 180 degrees?

In ordinary flat geometry, the three interior angles of every triangle add up to 180°. This is a fundamental property of Euclidean geometry and applies to equilateral, isosceles, scalene, acute, right, and obtuse triangles.

What is the relationship between the longest side and the largest angle?

The longest side is always opposite the largest interior angle. Likewise, the shortest side is opposite the smallest angle. This relationship holds for every valid triangle.

Can you calculate triangle area without knowing its height?

Yes. If you know all three side lengths, you can use Heron's formula to find the area without measuring the perpendicular height. This is particularly helpful when the height is difficult to measure directly.

What happens if two sides add up to exactly the third side?

The measurements form a degenerate triangle, which is essentially a straight line rather than a triangle with an enclosed area. The triangle inequality requires the sum of any two sides to be strictly greater than the third.

Does the Triangle Calculator work with decimal side lengths?

Triangle side lengths do not have to be whole numbers. Decimal measurements can also describe a valid triangle, provided all three sides are positive and satisfy the triangle inequality. For example, sides measuring 4.5, 5.5, and 6.5 units can form a triangle.