Triangle Calculator

All free toolsGeometry Calculators
Geometry CalculatorsFree online tool

Triangle Calculator

Calculate triangle area, perimeter, angles and type from three side lengths.

Uses Heron’s formula for area and the cosine rule for angles. The three sides must satisfy the triangle inequality.

Free online tool by SOCE. Check inputs and results before using them for important decisions.

Triangle Calculator – Free Online Triangle Geometry Guide

The SOCE Triangle Calculator page helps students, teachers, engineers, architects, surveyors, and mathematics learners understand triangle geometry through essential formulas, step-by-step calculations, and practical examples.

A triangle is a two-dimensional polygon with three sides, three vertices, and three interior angles. Triangles are fundamental to geometry, trigonometry, surveying, structural analysis, and engineering design.

Important triangle properties include area, perimeter, side lengths, interior angles, altitude, and semiperimeter. Different mathematical formulas can be applied depending on which dimensions are known.

This Triangle Calculator guide explains how to solve common triangle problems using the area formula, Heron’s formula, the Pythagorean theorem, the Law of Sines, and the Law of Cosines.

What Is a Triangle Calculator?

A Triangle Calculator is a mathematical tool used to determine geometric properties of triangles from known dimensions.

Triangle calculations may involve:

  • Area.
  • Perimeter.
  • Side lengths.
  • Interior angles.
  • Perpendicular height.
  • Semiperimeter.
  • Right-triangle relationships.
  • Trigonometric relationships.

For example, if a triangle has a base of 10 cm and a perpendicular height of 6 cm, its area is:

A = ½ × 10 × 6

Area = 30 cm²

If the three side lengths are 6 cm, 8 cm, and 10 cm, its perimeter is:

P = 6 + 8 + 10

Perimeter = 24 cm

The mathematical method depends on the available information.

Understanding Triangle Geometry

A triangle has three sides and three interior angles.

The interior angles are commonly represented by:

A, B, and C.

Their opposite side lengths are represented by:

a, b, and c.

The interior angles of a triangle in Euclidean geometry satisfy:

A + B + C = 180°

For example:

A = 50°

B = 60°

Then:

C = 180° − 50° − 60°

C = 70°

Triangle Inequality

For three positive side lengths to form a non-degenerate triangle:

a + b > c

a + c > b

b + c > a

These conditions must all be satisfied.

For example, side lengths 3 cm, 4 cm, and 5 cm form a valid triangle.

However, lengths 2 cm, 3 cm, and 6 cm cannot form a triangle because:

2 + 3 < 6

How to Use the Triangle Calculator

The general process for solving a triangle problem is:

  1. Identify the known measurements.
  2. Determine whether the triangle is right, equilateral, isosceles, or scalene.
  3. Confirm that the supplied dimensions describe a valid triangle.
  4. Select the required output, such as area, perimeter, side length, or angle.
  5. Choose the appropriate mathematical formula.
  6. Convert dimensions into consistent units.
  7. Substitute the known values.
  8. Calculate the result.
  9. Verify the result using geometric relationships.

For example, suppose a right triangle has perpendicular legs measuring 6 cm and 8 cm.

The hypotenuse is:

c = √(6² + 8²)

c = √100

c = 10 cm

The area is:

A = ½ × 6 × 8

A = 24 cm²

The perimeter is:

P = 6 + 8 + 10

P = 24 cm

Triangle Calculator Formulas

The following formulas are commonly used in triangle geometry.

Quantity Formula
Perimeter P = a + b + c
Semiperimeter s = (a + b + c)/2
Area using base and height K = ½bh
Heron’s formula K = √[s(s−a)(s−b)(s−c)]
Right-triangle hypotenuse c = √(a² + b²)
Equilateral triangle area K = (√3/4)a²
Equilateral triangle perimeter P = 3a
Area using two sides and included angle K = ½ab sin C
Law of Sines a/sin A = b/sin B = c/sin C
Law of Cosines c² = a² + b² − 2ab cos C
Third interior angle C = 180° − A − B

Here, K denotes triangle area to avoid confusion with angle A.

Triangle Area Calculator

The area of a triangle is the size of its enclosed two-dimensional region.

Triangle Area Formula

K = ½bh

Where:

b = base length.

h = corresponding perpendicular height.

Worked Example

A triangle has:

Base = 12 m

Height = 7 m

Calculate its area.

K = ½ × 12 × 7

K = 42

Answer: 42 m²

The height must be perpendicular to the selected base or its extension.

Finding Height from Area

Rearranging:

K = ½bh

h = 2K/b

For example:

Area = 48 cm²

Base = 12 cm

h = (2 × 48)/12

Answer: 8 cm

Triangle Perimeter Calculator

The perimeter is the total length of a triangle’s boundary.

Perimeter Formula

P = a + b + c

Worked Example

A triangle has side lengths:

a = 7 cm

b = 9 cm

c = 12 cm

P = 7 + 9 + 12

Answer: 28 cm

Perimeter is measured in linear units such as metres, centimetres, or feet.

Triangle Area Using Heron’s Formula

Heron’s formula calculates the area of a triangle when all three side lengths are known.

Step 1: Calculate the Semiperimeter

s = (a + b + c)/2

Step 2: Apply Heron’s Formula

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

Worked Example

A triangle has side lengths:

a = 13 cm

b = 14 cm

c = 15 cm

Semiperimeter:

s = (13 + 14 + 15)/2

s = 21 cm

Area:

K = √[21(21 − 13)(21 − 14)(21 − 15)]

K = √(21 × 8 × 7 × 6)

K = √7056

Answer: 84 cm²

Heron’s formula is particularly useful when the triangle’s altitude is unknown.

Right Triangle Calculator

A right triangle contains one interior angle equal to 90°.

The side opposite the right angle is called the hypotenuse.

Pythagorean Theorem

c² = a² + b²

Where:

a and b = perpendicular legs.

c = hypotenuse.

Worked Example

Given:

a = 5 cm

b = 12 cm

c = √(5² + 12²)

c = √169

Answer: 13 cm

Right Triangle Area

For a right triangle:

K = ½ab

Using the same dimensions:

K = ½ × 5 × 12

Area = 30 cm²

Right Triangle Perimeter

P = 5 + 12 + 13

Perimeter = 30 cm

Equilateral Triangle Calculator

An equilateral triangle has three equal sides and three equal interior angles.

Each interior angle is:

60°

Equilateral Triangle Perimeter

P = 3a

Equilateral Triangle Height

h = (√3/2)a

Equilateral Triangle Area

K = (√3/4)a²

Worked Example

Side length = 8 cm

Perimeter:

P = 3 × 8

P = 24 cm

Height:

h = 4√3

h ≈ 6.93 cm

Area:

K = (√3/4) × 8²

K = 16√3

K ≈ 27.71 cm²

Isosceles Triangle Calculator

An isosceles triangle has at least two equal sides.

Suppose the equal sides each have length a and the base has length b.

Perimeter Formula

P = 2a + b

Height Formula

The altitude from the apex to the base bisects the base.

Using the Pythagorean theorem:

h = √[a² − (b/2)²]

Area Formula

K = (b/2)√[a² − (b/2)²]

Worked Example

Equal sides = 10 cm

Base = 12 cm

Height:

h = √(10² − 6²)

h = √64

h = 8 cm

Area:

K = ½ × 12 × 8

Area = 48 cm²

Perimeter:

P = 10 + 10 + 12

Perimeter = 32 cm

Scalene Triangle Calculator

A scalene triangle has three unequal side lengths.

Its area can be calculated using Heron’s formula when all three sides are known.

Worked Example

Side lengths:

a = 5 cm

b = 6 cm

c = 7 cm

Semiperimeter:

s = (5 + 6 + 7)/2

s = 9 cm

Area:

K = √[9(9 − 5)(9 − 6)(9 − 7)]

K = √(9 × 4 × 3 × 2)

K = √216

Area ≈ 14.70 cm²

Perimeter:

P = 5 + 6 + 7

Perimeter = 18 cm

Triangle Angle Calculator

The three interior angles of a Euclidean triangle always sum to 180°.

Formula

A + B + C = 180°

Worked Example

Given:

A = 45°

B = 65°

Find C.

C = 180° − 45° − 65°

Answer: 70°

Classifying Triangles by Angles

Acute triangle: All interior angles are less than 90°.

Right triangle: One interior angle equals 90°.

Obtuse triangle: One interior angle is greater than 90°.

A non-degenerate triangle cannot have more than one right or obtuse interior angle.

Triangle Calculator Using the Law of Sines

The Law of Sines relates each side length to the sine of its opposite angle.

Formula

a/sin A = b/sin B = c/sin C

Worked Example

Given:

A = 30°

B = 45°

a = 10 cm

Find b.

Using the Law of Sines:

b/sin 45° = 10/sin 30°

Therefore:

b = 10 × sin 45°/sin 30°

b = 10 × (√2/2)/(1/2)

b = 10√2

Answer ≈ 14.14 cm

Important Limitation

When two sides and a non-included angle are given, the Law of Sines may produce two possible triangles, one triangle, or no triangle.

This is known as the ambiguous SSA case.

The appropriate solution must satisfy all supplied geometric conditions.

Triangle Calculator Using the Law of Cosines

The Law of Cosines is useful when two sides and the included angle are known or when all three side lengths are available.

Formula

c² = a² + b² − 2ab cos C

Where C is the angle between sides a and b.

Worked Example

Given:

a = 7 cm

b = 9 cm

C = 60°

Find c.

c² = 7² + 9² − 2 × 7 × 9 × cos 60°

c² = 49 + 81 − 63

c² = 67

c = √67

Answer ≈ 8.19 cm

Finding an Angle from Three Sides

Rearranging:

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

Therefore:

C = arccos[(a² + b² − c²)/(2ab)]

This relationship is useful for solving triangles from three known side lengths.

Triangle Area Using Two Sides and an Included Angle

When two sides and their included angle are known:

K = ½ab sin C

Worked Example

Given:

a = 8 cm

b = 10 cm

C = 30°

K = ½ × 8 × 10 × sin 30°

K = 40 × 0.5

Answer: 20 cm²

This method avoids the need to calculate the perpendicular height separately.

Triangle Calculator Using Coordinates

When the coordinates of the three vertices are known, triangle area can be calculated directly.

Let the vertices be:

A(x₁, y₁)

B(x₂, y₂)

C(x₃, y₃)

Coordinate Area Formula

K = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|

Worked Example

Given:

A(0, 0)

B(6, 0)

C(0, 4)

Substitute:

K = ½ |0(0 − 4) + 6(4 − 0) + 0(0 − 0)|

K = ½ × 24

Answer: 12 square units

This formula is useful in coordinate geometry and geometric computations.

Triangle Inradius and Circumradius

Two important circles associated with a triangle are the incircle and circumcircle.

Inradius

The inradius is the radius of the circle tangent to all three sides of the triangle.

If K is the area and s is the semiperimeter:

r = K/s

Circumradius

The circumradius is the radius of the circle passing through all three vertices.

R = abc/(4K)

Where:

a, b, c = side lengths.

K = triangle area.

Worked Example: 3-4-5 Triangle

For a triangle with sides 3 cm, 4 cm, and 5 cm:

Area:

K = ½ × 3 × 4 = 6 cm²

Semiperimeter:

s = (3 + 4 + 5)/2 = 6 cm

Inradius:

r = K/s = 6/6

r = 1 cm

Circumradius:

R = (3 × 4 × 5)/(4 × 6)

R = 2.5 cm

Triangle Calculator Unit Conversion

Triangle side lengths, altitudes, and perimeters use linear units.

Examples include:

  • Millimetres (mm).
  • Centimetres (cm).
  • Metres (m).
  • Inches (in).
  • Feet (ft).

Triangle area uses square units:

  • mm².
  • cm².
  • m².
  • in².
  • ft².

Important Conversion Factors

1 m = 100 cm

1 m² = 10,000 cm²

1 ft = 0.3048 m exactly

1 in = 2.54 cm exactly

Worked Example

A triangle has:

Base = 200 cm

Height = 150 cm

Convert to metres:

Base = 2 m

Height = 1.5 m

Area:

K = ½ × 2 × 1.5

Answer: 1.5 m²

Triangle Calculator for Civil Engineering

Triangle geometry has important applications in engineering, architecture, surveying, and computational analysis.

Structural Trusses

Triangles are fundamental geometric components of many truss systems.

Triangulation helps establish geometric stability under appropriate support and connection conditions.

However, structural stability and strength must be evaluated using mechanics and design principles, not geometry alone.

Roof Geometry

Right-triangle relationships can help calculate ideal roof slopes, horizontal spans, rises, and rafter lengths.

Surveying

Triangle geometry is used in triangulation and coordinate-based measurement methods.

Finite Element Analysis

Triangular elements are widely used in two-dimensional finite element meshes.

Element geometry, nodal coordinates, and area calculations are important in finite element formulations.

Land Measurement

Triangular subdivisions can be used to estimate the area of irregular polygonal regions.

Structural Cross-Sections

The area and centroid of triangular regions are relevant to section-property calculations.

For a uniform triangular area with base b and perpendicular height h:

K = ½bh

The centroid lies one-third of the perpendicular height from the base toward the opposite vertex.

Common Mistakes in Triangle Calculations

  1. Ignoring triangle inequality: Three positive lengths do not always form a triangle.
  2. Confusing base and sloping side: The altitude must be perpendicular to the selected base.
  3. Using the Pythagorean theorem for non-right triangles: It applies directly only to right triangles.
  4. Confusing degrees and radians: Trigonometric calculations must use the correct angle unit.
  5. Ignoring the ambiguous SSA case: Some side-angle combinations have multiple solutions.
  6. Applying Heron’s formula to invalid side lengths: Triangle validity must be checked first.
  7. Confusing area and perimeter: Area uses square units; perimeter uses linear units.
  8. Rounding too early: Maintain adequate precision throughout calculations.
  9. Using inconsistent measurement units: Convert all dimensions before calculation.
  10. Incorrectly matching sides and opposite angles: The Law of Sines requires corresponding pairs.
  11. Using a non-included angle in the Law of Cosines without adjusting the formula: The included-angle relationship must be correct.
  12. Assuming three angles uniquely determine a triangle’s size: Three angles determine shape but not absolute scale.

Frequently Asked Questions About Triangle Calculator

1. What is a Triangle Calculator?

A Triangle Calculator is a mathematical tool used to determine triangle properties such as area, perimeter, side lengths, and interior angles.

2. What is the formula for triangle area?

K = ½bh, where b is the base and h is the corresponding perpendicular height.

3. What is the formula for triangle perimeter?

P = a + b + c.

4. What is Heron’s formula?

K = √[s(s − a)(s − b)(s − c)], where s is the semiperimeter.

5. What is the Pythagorean theorem?

For a right triangle:

c² = a² + b².

6. What is the sum of triangle interior angles?

180° in Euclidean geometry.

7. How do you calculate an unknown triangle angle?

Depending on the known information, use the angle-sum property, Law of Sines, or Law of Cosines.

8. How do you calculate the area of an equilateral triangle?

K = (√3/4)a².

9. How do you calculate a triangle from three sides?

Use Heron’s formula for area and the Law of Cosines for angles, provided the side lengths form a valid triangle.

10. Can a triangle have two right angles?

No. A non-degenerate Euclidean triangle cannot have two right interior angles.

11. What is the difference between an isosceles and scalene triangle?

An isosceles triangle has at least two equal sides, while a scalene triangle has three unequal sides.

12. What is the Law of Sines?

a/sin A = b/sin B = c/sin C.

13. What is the Law of Cosines?

c² = a² + b² − 2ab cos C.

14. Can triangle area be calculated from coordinates?

Yes. The coordinate area formula uses the coordinates of the three vertices.

15. Why is triangle geometry important in engineering?

Triangle geometry is used in trusses, surveying, roof design, geometric modelling, structural section calculations, and finite element analysis.

Learn Triangle Geometry with SOCE

The SOCE Triangle Calculator page provides clear formulas, worked examples, and practical explanations for understanding triangle geometry.

Use this Triangle Calculator resource to study triangle area, perimeter, side lengths, interior angles, right triangles, Heron’s formula, and trigonometric relationships.

Explore additional free mathematics and engineering resources through the SOCE Geometry Calculators collection.