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
| Field | What to enter |
|---|---|
| What 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 a | Units: cm, m, mm, in, ft, yd … |
| Side b | Units: cm, m, mm, in, ft, yd … |
| Side c | Units: cm, m, mm, in, ft, yd … |
| Angle γ (between a and b) | Units: °, rad, π rad, grad, turn |
| Angle β (at one end of a) | Units: °, rad, π rad, grad, turn |
| Angle γ (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.5 | 13.7202 |
| 3.75 | 15 |
| 5 | 16.5678 |
| 6.25 | 18.3788 |
| 7.5 | 20.3739 |
| 10 | 24.7178 |
Formula
P = a + b + c
SAS: c = √(a² + b² − 2ab·cos γ) · ASA: b = a·sin β/sin(β + γ), c = a·sin γ/sin(β + γ)
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.
Frequently asked questions
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.