Triangle Perimeter Calculator

Calculate perimeter, area, and angles from three side lengths

Enter Triangle Sides

Results

Enter three sides to calculate triangle properties

Understanding Triangle Perimeter

The perimeter of a triangle is one of the most fundamental measurements in geometry. It represents the total distance around the triangle - simply the sum of all three side lengths. This calculator not only finds the perimeter but also validates your triangle and calculates important properties like area and angles. For a deeper understanding of perimeter formulas for all triangle types, explore how different triangle categories affect calculations. You can also review step-by-step perimeter examples to reinforce your understanding.

What is Triangle Perimeter?

The perimeter (P) of a triangle with sides a, b, and c is calculated using the simple formula:

P = a + b + c

While this formula is straightforward, not every combination of three lengths can form a valid triangle. This is where the Triangle Inequality Theorem becomes essential.

Triangle Inequality Theorem

For any triangle to exist, the sum of any two sides must be greater than the third side. This must be true for all three combinations:

  • a + b > c
  • b + c > a
  • a + c > b

Our calculator automatically validates these conditions. If your input violates the triangle inequality, you'll receive a clear error message explaining which condition failed. This prevents mathematical errors and helps you understand why certain side combinations don't work.

Semiperimeter and Heron's Formula

The semiperimeter (s) is half the perimeter and plays a crucial role in calculating the triangle's area:

s = P/2 = (a + b + c)/2

Using the semiperimeter, we can calculate the area using Heron's Formula, one of the most elegant formulas in geometry:

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

This remarkable formula allows us to find the area of any triangle knowing only the three side lengths - no angles or heights required. Our calculator uses Heron's formula automatically when you enter three sides.

Calculating Angles from Sides

When you know all three sides, you can determine all three angles using the Law of Cosines. For any angle, such as angle A opposite side a:

cos(A) = (b² + c² - a²) / (2bc)

Our calculator applies this formula to all three angles, giving you a complete picture of your triangle. This is particularly useful in applications like surveying, construction, and engineering where you can measure distances but need to know angles.

How to Find the Perimeter of a Triangle

The general method is the same regardless of triangle type: add up the three side lengths. What changes between problems is how you arrive at those three sides. You can be given them directly, or you may need to compute the missing one(s) using the Law of Cosines, the Law of Sines, the Pythagorean theorem, or the distance formula.

Perimeter with three known sides (SSS)

The simplest case. Just add the three lengths.

P = a + b + c

Perimeter with two sides and an angle (SAS — Law of Cosines)

If you know two sides (a, b) and the angle C between them, the third side comes from the Law of Cosines:

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

Then add: P = a + b + c. This is exactly how surveyors compute property perimeters when one side can't be measured directly.

Perimeter with two angles and a side (ASA — Law of Sines)

If you know two angles and the side between them, find the third angle (since A + B + C = 180°), then use the Law of Sines to compute the missing sides:

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

Perimeter Formulas for Every Triangle Type

Each triangle type has a shortcut formula worth memorizing:

Equilateral triangle (P = 3a)

All three sides are equal, so multiply one side by three. Try our dedicated equilateral triangle calculator for area and height too.

P = 3a

Isosceles triangle (P = 2a + b)

Two equal sides (a) plus the base (b). For full sides/angles/area, see the isosceles triangle calculator.

P = 2a + b

Right triangle (P = a + b + √(a² + b²))

Add the two legs and the hypotenuse. The hypotenuse comes from the Pythagorean theorem.

P = a + b + √(a² + b²)

Scalene triangle (P = a + b + c)

No two sides are equal — just add the three different side lengths. This is the most general case and the formula every other type reduces to.

Step-by-Step Examples

Example 1: Three known sides (basic SSS)

A triangle has sides 7, 10, and 12 cm. Find the perimeter.

P = a + b + c
P = 7 + 10 + 12
P = 29 cm

Verify with the calculator above by entering 7, 10, and 12.

Example 2: SAS perimeter for a fenced garden bed

You're fencing a triangular garden bed. Two sides measure 8 ft and 6 ft, meeting at a 60° angle. How much fencing do you need?

Find the third side using Law of Cosines:
c² = 8² + 6² − 2 × 8 × 6 × cos(60°)
c² = 64 + 36 − 96 × 0.5 = 100 − 48 = 52
c = √52 ≈ 7.21 ft

Perimeter = 8 + 6 + 7.21 ≈ 21.21 ft

Order about 22 ft of fencing to be safe.

Example 3: Coordinate-based perimeter

Find the perimeter of the triangle with vertices A(1, 2), B(5, 5), and C(6, 1).

AB = √[(5−1)² + (5−2)²] = √(16 + 9) = √25 = 5
BC = √[(6−5)² + (1−5)²] = √(1 + 16) = √17 ≈ 4.12
CA = √[(1−6)² + (2−1)²] = √(25 + 1) = √26 ≈ 5.10

Perimeter ≈ 5 + 4.12 + 5.10 ≈ 14.22 units

Practical Applications

Understanding triangle perimeter is essential in many real-world scenarios:

  • Construction and Architecture: Calculating material needs for triangular structures, trusses, or roof frameworks
  • Land Surveying: Determining property boundaries and plot perimeters for triangular parcels
  • Navigation: Planning routes and calculating distances in triangular paths
  • Engineering Design: Analyzing structural components and load distributions in triangular elements
  • Crafts and Manufacturing: Computing material requirements for triangular pieces in quilting, metalwork, or fabrication

Using This Calculator

To use our Triangle Perimeter Calculator effectively:

  1. Enter all three side lengths (a, b, and c) in any consistent unit of measurement
  2. Click "Calculate" to see the results
  3. Review the perimeter, semiperimeter, area, and all three angles
  4. Check the visual diagram to see your triangle drawn to scale
  5. Use "Clear" to reset all values and start a new calculation

The calculator provides instant validation, so you'll know immediately if your side lengths cannot form a valid triangle. All calculations use high-precision mathematics to ensure accurate results for educational, professional, or personal use.

Frequently Asked Questions

How do you calculate the perimeter of a triangle?

The perimeter of a triangle is calculated by adding all three side lengths together: P = a + b + c. This simple formula works for any type of triangle - whether it's equilateral, isosceles, scalene, right, acute, or obtuse. Just make sure all measurements are in the same units.

How do you find the perimeter of a triangle with only two sides?

You need a third piece of information. If the third side is opposite a known angle, use the Law of Sines or Law of Cosines to solve for it, then add all three. For a right triangle with two known legs, the hypotenuse comes from c = √(a² + b²) and the perimeter is a + b + c. You can't find perimeter from two sides alone without one more measurement.

What is the perimeter of an equilateral triangle?

Since all three sides are equal, the perimeter is simply P = 3 × a, where a is the side length. For example, an equilateral triangle with side 5 has a perimeter of 15. The same formula works in any unit — inches, meters, feet — as long as you stay consistent.

What is the formula for the perimeter of a right triangle?

P = a + b + √(a² + b²), where a and b are the two legs. The square root term is the hypotenuse, which the Pythagorean theorem gives you. If you already know all three sides, just add them: P = a + b + c.

How do you find perimeter of a triangle with coordinates?

Use the distance formula on each pair of vertices. For points A(x₁,y₁), B(x₂,y₂), C(x₃,y₃): side AB = √[(x₂−x₁)² + (y₂−y₁)²]. Compute all three side lengths the same way, then add them together for the perimeter.

How do you find a missing side given the perimeter?

Subtract the known sides from the perimeter. If P = 24 and two sides are 7 and 9, the third side is 24 − 7 − 9 = 8. Always verify the result satisfies the triangle inequality (the sum of any two sides must exceed the third).

What is the triangle inequality theorem?

The triangle inequality theorem states that the sum of the lengths of any two sides of a triangle must be greater than the length of the third side. This must be true for all three combinations of sides. If this condition isn't met, the three lengths cannot form a valid triangle. For example, sides of 2, 3, and 10 cannot form a triangle because 2 + 3 is not greater than 10.

What is semiperimeter and why is it important?

The semiperimeter is half of the perimeter (s = P/2). It's a crucial value in Heron's formula, which calculates a triangle's area from just the three side lengths. The semiperimeter also appears in formulas for the radius of the inscribed circle (incircle) and has applications in advanced geometry and trigonometry.

Can I find the area of a triangle knowing only the perimeter?

No, you cannot determine the area from perimeter alone. Many different triangles can have the same perimeter but different areas. However, if you know all three individual side lengths (not just their sum), you can calculate the area using Heron's formula: Area = √[s(s-a)(s-b)(s-c)], where s is the semiperimeter.

How do you find angles when you only know the three sides?

When you know all three sides, you can find each angle using the Law of Cosines. For angle A opposite side a, use: cos(A) = (b² + c² - a²) / (2bc), then take the inverse cosine (arccos) to find angle A. Repeat this process for the other two angles.

What units should I use for triangle measurements?

You can use any unit of length - inches, feet, meters, centimeters, etc. The key is to use the same unit for all three sides. The calculator will return the perimeter and area in the same unit system you use for input.

Learn More About Trigonometry

View all articles

Deepen your understanding of triangles and trigonometry with our guides and tutorials: