Know a triangle’s perimeter and two side lengths? Subtract the two known sides from the perimeter to find the missing one. Then check that the three lengths really can make a triangle.
\(P\) is the perimeter. The lengths \(a\), \(b\), and \(c\) are the three sides. Use the same unit for every value.
Find the missing side
Enter the two known sides and the perimeter. The calculator checks the triangle inequality as well as the subtraction.
Positive lengths only, up to 1,000,000 with at most six decimal places. “Units” means whichever length unit you are using, such as cm or m.
Work out the missing side in three steps
- Check the units. Convert all measurements to the same length unit first.
- Subtract the known sides. Use \(c=P-a-b\).
- Check the triangle. The missing side must be positive, and the sum of any two sides must be greater than the third.
Example 1: a scalene triangle
The perimeter is 20 cm. Two sides measure 7 cm and 5 cm.
Check the result: \(7+5>8\), \(7+8>5\), and \(5+8>7\). All three inequalities hold, so a triangle with sides 7 cm, 5 cm, and 8 cm is possible.

Example 2: an isosceles triangle
The two equal sides are each 10 cm, and the perimeter is 26 cm. Find the base.
An isosceles triangle has at least two equal sides. Its base does not have to equal those sides. Here, the sides are 10 cm, 10 cm, and 6 cm.

Example 3: finding both equal sides
An isosceles triangle has perimeter 24 cm and base 10 cm. Subtract the base, then divide the remaining length equally between the two equal sides.
The result is 7 cm, 7 cm, and 10 cm. Check: \(7+7>10\).
When subtraction does not give a triangle
A positive result alone is not enough. With perimeter 12 cm and known sides 2 cm and 3 cm, subtraction gives \(c=7\) cm. But \(2+3<7\), so the lengths cannot join to form a triangle.
The inequalities are strict. If two sides add up exactly to the third, the points lie on a straight line; the triangle has no area.
What information do you need?
Two side lengths alone do not determine the third side. Many triangles can share those two lengths. This calculator needs the perimeter as well.
For a right triangle, a different method is available when two sides are known: the Pythagorean theorem, \(a^2+b^2=c^2\), where \(c\) is the hypotenuse. Use the right-triangle calculator when a right angle is part of the question. For a known set of three sides, see triangle perimeter.
Are all isosceles triangles equilateral?
No. An isosceles triangle has at least two equal sides; an equilateral triangle has three. For example, 10 cm, 10 cm, and 6 cm is isosceles but not equilateral.
Can I mix centimetres and metres?
Convert first. For example, \(1\,\mathrm{m}=100\,\mathrm{cm}\). A perimeter in metres cannot be subtracted directly from side lengths in centimetres.