# Triangle Perimeter Calculator

URL: https://speedycalculator.com/calculators/math/triangle-perimeter/
Last updated: 2026-11-08

> The triangle perimeter calculator finds the perimeter of a triangle from three sides, from two sides and the included angle (law of cosines), or from two angles and the side between them (law of sines).

## Inputs

- What do you know?
- Side a (cm, m, mm, in, ft, yd, km, mi)
- Side b (cm, m, mm, in, ft, yd, km, mi)
- Side c (cm, m, mm, in, ft, yd, km, mi)
- Angle γ (between a and b) (°, rad, π rad, grad, turn)
- Angle β (at one end of a) (°, rad, π rad, grad, turn)
- Angle γ (at the other end of a) (°, rad, π rad, grad, turn)

## Results

- Side b
- Side c
- Perimeter
- Area
- Angle α (opposite a)
- Angle β (opposite b)
- Angle γ (opposite c)

## Formula

```
P = a + b + c
SAS: c = √(a² + b² − 2ab·cos γ) · ASA: b = a·sin β/sin(β + γ), c = a·sin γ/sin(β + γ)
```

## Explanation

The perimeter is the total length of the triangle's sides, such as the length of fencing for a triangular field or trim for a triangular window. When you cannot measure every side, the laws of cosines and sines fill the gap.

### How to use the Triangle Perimeter Calculator

- **What do you know?**
- **Side a**
- **Side b**
- **Side c**
- **Angle γ (between a and b)**
- **Angle β (at one end of a)**
- **Angle γ (at the other end of a)**

Results update as you type, and everything is calculated in your browser.

### How it works

Choose what you know; missing sides are computed first and then added together.

### Inputs explained

FieldWhat to enterWhat do you know?Choose one: Three sides (SSS), Two sides and the angle between them (SAS), Two angles and the side between them (ASA)Side aUnits: cm, m, mm, in, ft, yd …Side bUnits: cm, m, mm, in, ft, yd …Side cUnits: cm, m, mm, in, ft, yd …Angle γ (between a and b)Units: °, rad, π rad, grad, turnAngle β (at one end of a)Units: °, rad, π rad, grad, turnAngle γ (at the other end of a)Units: °, rad, π rad, grad, turn

### What each result means

- **Perimeter** = [Side a] + [Side b] + [Side c]
- **Area** = sqrt(([Side a] + [Side b] + [Side c])×(-[Side a] + [Side b] + [Side c])×([Side a] - [Side b] + [Side c])×([Side a] + [Side b] - [Side c]))÷4
- **Angle α (opposite a)** = deg(acos(([Side b]^2 + [Side c]^2 - [Side a]^2)÷(2×[Side b]×[Side c])))
- **Angle β (opposite b)** = deg(acos(([Side a]^2 + [Side c]^2 - [Side b]^2)÷(2×[Side a]×[Side c])))
- **Angle γ (opposite c)** = 180 - [Angle α (opposite a)] - [Angle β (opposite b)]

### Example values

How the main result changes when **Side a** changes and everything else stays at the example values above:

Side a (cm)Perimeter (cm)2.513.72023.7515516.56786.2518.37887.520.37391024.7178

## Worked example

Inputs: What do you know?: Two sides and the angle between them (SAS); Side a: 5 cm; Side b: 6 cm; Angle γ (between a and b): 60 °.

Results: Side b = 6 cm; Side c = 5.567764 cm; **Perimeter = 16.567764 cm**; Area = 12.990381 cm²; Angle α (opposite a) = 51.051724 °; Angle β (opposite b) = 68.948276 °; Angle γ (opposite c) = 60 °.

## Key terms

- **Perimeter**: The sum of the side lengths.

## FAQ

**How do I find the perimeter of a triangle?**
Add the three side lengths.

**What if I only know two sides?**
You also need the angle between them, then use the law of cosines.

**What is the semi-perimeter?**
Half the perimeter, used in Heron's formula.

**Can two angles alone give the perimeter?**
No. You need at least one side for the size.


## Sources

- [OpenStax: Algebra and Trigonometry 2e](https://openstax.org/details/books/algebra-and-trigonometry-2e)
- [OpenStax: Prealgebra 2e](https://openstax.org/details/books/prealgebra-2e)
