Methods for Solving Unknown Triangle Sides

Three common scenarios require different approaches. When you have two sides and an included or opposite angle, the Law of Cosines works directly. If instead you know two angles and any side, the angle sum property and Law of Sines combine to find the rest. A third case involves two sides and the perimeter—here, subtraction gives the missing side immediately.

Each method leverages fundamental properties of triangles. The angle sum always equals 180°, and the ratios of sides to opposite angles remain proportional throughout any triangle. Recognizing which scenario matches your data determines which formula to apply.

Law of Cosines for Two Sides and an Angle

When two sides and the angle between them (or opposite one of them) are known, the Law of Cosines calculates the missing side. This formula is essential when the Law of Sines cannot be applied directly.

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

cos(α) = (b² + c² − a²) / (2bc)

cos(β) = (a² + c² − b²) / (2ac)

  • a, b, c — The three sides of the triangle
  • α, β, γ — Angles opposite sides a, b, c respectively

Law of Sines and Angle Sum Property

When two angles and one side are known, use the Law of Sines. First, find the third angle by subtracting the two known angles from 180°. Then apply the proportion to locate the remaining sides.

The Law of Sines states that the ratio of any side to the sine of its opposite angle is constant throughout the triangle:

a / sin(α) = b / sin(β) = c / sin(γ)

This relationship works because of how triangles scale: larger angles always face longer sides, and the ratio remains identical regardless of triangle size.

Common Pitfalls When Solving Triangle Sides

Avoid these frequent mistakes when calculating missing sides.

  1. Confusing included vs. opposite angles — The Law of Cosines requires the angle <em>between</em> the two known sides, not opposite one of them. Using the wrong angle inverts your answer. Always sketch the triangle and label which angle sits between your two known sides before plugging numbers in.
  2. Forgetting to check the angle sum — When given two angles, always compute the third before solving further. The sum must equal exactly 180°. If your input angles add to 180° or more, no valid triangle exists. This catches data-entry errors early.
  3. Perimeter trap with negative results — If two sides sum to more than the perimeter itself, the third side becomes negative—impossible. Verify that each side is less than the perimeter before trusting the result. This scenario indicates your inputs don't form a valid triangle.
  4. Rounding accumulated errors — When solving a triangle in multiple steps, rounding intermediate results compounds errors in final side lengths. Carry full precision through all calculations, then round only the final answer. A small error in the first step balloons significantly by step three.

Using Perimeter to Find the Missing Side

If you know two sides and the perimeter, the third side calculation is straightforward. Since perimeter equals the sum of all three sides:

c = P − (a + b)

This method bypasses trigonometry entirely. Simply add the two known sides, then subtract from the total perimeter. This approach is fastest for this specific scenario and provides exact answers when perimeter is known precisely.

Frequently Asked Questions

What's the difference between the Law of Sines and the Law of Cosines?

The Law of Sines relates sides to opposite angles: a/sin(α) = b/sin(β). It works best when you know two angles and a side, or two sides and a non-included angle. The Law of Cosines connects all three sides and one angle: c² = a² + b² − 2ab×cos(γ). Use it when you know two sides and the included angle, or all three sides but need an angle. Cosines handles the angle-between-sides case that Sines struggles with.

Can you find a triangle's sides if you only know one side and one angle?

No. A single side and single angle leave infinite triangle configurations possible. Imagine rotating that one side around the angle's vertex—countless triangles result. You need at least two pieces of independent information: either two sides, two angles, or (at minimum) one side and two angles. This constraint reflects the fundamental geometry of triangle uniqueness.

What happens if I enter angles that sum to more than 180°?

No valid triangle exists. The sum of all angles in any triangle must equal exactly 180°. If your two known angles already exceed that, the third angle would be negative or zero, which is geometrically impossible. The calculator will flag this and refuse to compute sides. Double-check your angle inputs if this occurs.

How accurate are the results from using the Law of Cosines?

The Law of Cosines is mathematically exact, so accuracy depends entirely on your input precision. If you measure sides or angles to one decimal place, expect results accurate to roughly one decimal place. Accumulated rounding during multi-step solutions can introduce small errors—this is why carrying full precision through calculations before rounding the final answer matters.

Is there a way to find sides if I only know the perimeter?

No. The perimeter alone is insufficient. A triangle with perimeter 30 could have sides (10, 10, 10), (5, 10, 15), or countless other combinations. You must know at least one actual side length or angle to narrow down which specific triangle you're solving. Perimeter becomes useful only when combined with at least two other pieces of information.

More math calculators (see all)