How To Find An Angle With 3 Sides

9 min read

You’ve got three sticks laid out on the table, and you wonder what angle sits between two of them. Maybe you’re building a frame, checking a piece of furniture, or just trying to solve a geometry puzzle. Whatever the reason, knowing how to find an angle with 3 sides turns a vague guess into a precise number.

It’s one of those tricks that feels like magic until you see the simple rule behind it. Once you have the lengths, the answer is just a few calculations away.

What Is Finding an Angle With Three Sides

When you only know the three side lengths of a triangle, the shape is locked in — there’s only one possible set of angles that fits those edges. The tool that pulls the angle out of those numbers is the law of cosines. It relates each side to the cosine of the angle opposite it, letting you work backward from side lengths to an angle measure.

Think of the triangle as a flexible hinge. Which means if you change one side, the angles shift. But with all three sides fixed, the hinge can’t move, and the law of cosines tells you exactly where it sits Small thing, real impact..

The Core Formula

For a triangle with sides a, b, and c, and the angle C opposite side c, the law of cosines says:

c² = a² + b² – 2ab·cos(C)

If you rearrange to solve for the cosine, you get:

cos(C) = (a² + b² – c²) / (2ab)

Once you have the cosine, the angle itself comes from the inverse cosine function (often written as arccos or cos⁻¹ on a calculator) Most people skip this — try not to..

Why It Matters / Why People Care

Getting the angle right isn’t just an academic exercise. Because of that, in navigation, triangulating a position relies on knowing the angles formed by known distances. Worth adding: in construction, a few degrees off can mean a beam doesn’t sit flush or a roof doesn’t shed water properly. Even in everyday hobbies — like setting up a camera tripod or aligning a picture frame — knowing the exact angle saves time and reduces frustration.

When people skip the proper method, they often eyeball it or rely on rough sketches. Also, that works for rough ideas, but when precision matters, the guesswork leads to re‑work, wasted material, or even safety issues. Understanding the reliable way to find an angle with three sides builds confidence that the numbers you’re using actually reflect the real world.

Some disagree here. Fair enough.

How It Works (Step by Step)

Below is a practical walkthrough you can follow with any three side lengths, as long as they can form a triangle.

Step 1: Label the Sides

First, decide which angle you want to find. Suppose you need the angle between sides a and b. Then the side opposite that angle is c. Write down the three lengths with those labels That's the whole idea..

Step 2: Write Down the Law of Cosines for That Angle

Plug the labels into the rearranged formula:

cos(angle) = (a² + b² – c²) / (2ab)

Step 3: Square the Sides

Calculate , , and . This step is where many slip — forgetting to square gives a wildly wrong result Not complicated — just consistent..

Step 4: Compute the Numerator and Denominator

Add the squares of the two known sides, subtract the square of the opposite side, then divide by twice the product of those two sides And that's really what it comes down to..

Step 5: Find the Inverse Cosine

Take the result from step 4 and apply the inverse cosine function. Most calculators have a “cos⁻¹” or “arccos” button. Make sure the calculator is set to the unit you need — degrees for most everyday work, radians if you’re doing calculus or physics.

This is where a lot of people lose the thread Easy to understand, harder to ignore..

Step 6: Interpret the Answer

The output is the measure of the angle between the two sides you started with. If you need the other two

Step 6 (continued): Finding the Remaining Angles

If the problem asks for all three interior angles, you have a couple of efficient routes:

  1. Apply the law of cosines twice more – treat each side as the “opposite” side for its corresponding angle Small thing, real impact..

    • For the angle opposite side a (let’s call it A):

      [ \cos(A)=\frac{b^{2}+c^{2}-a^{2}}{2bc} ]

    • For the angle opposite side b (call it B):

      [ \cos(B)=\frac{a^{2}+c^{2}-b^{2}}{2ac} ]

    Plug the squared lengths into each formula, then use the arccos function to obtain A and B.

  2. Use the triangle‑sum property – the interior angles of any triangle add to 180°.

    • If you already have one angle (say C), simply compute the sum of the other two as

      [ A + B = 180^\circ - C ]

    • When only one of the remaining angles is needed, you can solve for it directly with the law of cosines, then let the last angle fall out of the 180° total Easy to understand, harder to ignore. Less friction, more output..

    • When both remaining angles are required, the law‑of‑cosines approach is usually cleaner because it avoids dealing with ambiguous cases that can arise from the law of sines.

Quick Example

Suppose the side lengths are a = 7 units, b = 10 units, and c = 12 units. You want every interior angle.

Angle Formula Calculation Result
C (between a and b) (\displaystyle \cos C = \frac{a^{2}+b^{2}-c^{2}}{2ab}) (\frac{49+100-144}{2\cdot7\cdot10}= \frac{5}{140}=0.035714) (C = \arccos(0.But 035714) \approx 87. 95^\circ)
A (opposite a) (\displaystyle \cos A = \frac{b^{2}+c^{2}-a^{2}}{2bc}) (\frac{100+144-49}{2\cdot10\cdot12}= \frac{195}{240}=0.8125) (A = \arccos(0.8125) \approx 35.

Not the most exciting part, but easily the most useful No workaround needed..

| B (opposite b) | (\displaystyle \cos B = \frac{a^{2}+c^{2}-b^{2}}{2ac}) | (\frac{49+144-100}{2\cdot7\cdot12}= \frac{93}{168}=0.553571) | (B = \arccos(0.553571) \approx 56.

Verification:
(A + B + C = 35.9^\circ + 56.2^\circ + 87.95^\circ = 180.05^\circ), which is within rounding error of the expected 180°.


Step 7: Check Your Work

Before finalizing your answer, perform a quick sanity check:

  • Triangle inequality: The sum of any two sides must exceed the third.
  • Angle sum: All three angles should add up to 180° (or π radians).
  • Largest angle ↔ longest side: The largest angle should be opposite the longest side, and vice versa.

These checks help catch computational errors early, especially when working with decimal approximations Easy to understand, harder to ignore..


Conclusion

Finding the angles of a triangle using the Law of Cosines is a straightforward yet powerful technique. Day to day, remember to double-check your calculator settings and always validate your final answer against fundamental geometric principles. By following these steps — identifying the sides, applying the correct formula, computing the inverse cosine, and verifying your results — you can confidently determine any angle in a triangle, whether it's a simple classroom exercise or a real-world engineering problem. With practice, this method becomes second nature, giving you a reliable tool for solving triangles in both theoretical and applied contexts.

Extending the Technique to More Complex Scenarios

When the triangle you’re working with isn’t a simple classroom sketch but a piece of a larger design — such as a roof truss, a navigation bearing, or a 3‑D mesh — you’ll often encounter obtuse or nearly‑degenerate cases. In those situations the same cosine formulas apply, but a few extra precautions become valuable Most people skip this — try not to..

This is the bit that actually matters in practice Most people skip this — try not to..

Handling Obtuse Angles

If the computed cosine value comes out negative, the corresponding angle exceeds 90°. Because the inverse cosine function on most calculators returns an acute angle for positive inputs, you must interpret a negative result correctly:

  • Cosine negative → angle > 90°.
  • When you obtain a negative cosine, take the arccosine as usual; the calculator will still give you the acute supplement, so you simply subtract that value from 180° to retrieve the obtuse angle.
  • Example: a cosine of –0.35 yields an arccosine of ≈ 110.5°, which is already obtuse; no further adjustment is needed.

Avoiding Ambiguity with the Law of Sines

The law of sines can produce two possible angles (the “ambiguous case”) when you solve for an angle using a ratio of sides and sines. The law of cosines sidesteps this ambiguity entirely because it directly relates the three sides without invoking a ratio that could be satisfied by two different angles. This makes it the preferred choice when you need both remaining angles simultaneously Easy to understand, harder to ignore..

Leveraging Digital Tools

Modern calculators and computer algebra systems (CAS) can evaluate arccosines with high precision, but it’s still wise to:

  1. Set the mode to degrees (or radians, if you’re working in a mathematical context that expects radians).
  2. Round only at the final step; keep intermediate values full‑precision to prevent cumulative rounding errors.
  3. Validate the output by confirming that the sum of the three angles equals 180° within an acceptable tolerance (e.g., ±0.01°).

Real‑World Illustration: Determining a Roof Pitch

Imagine a gable roof where the rafters form a triangle with the ridge board as the base. Suppose the rafters are each 12 ft long and the horizontal span (the base) measures 10 ft. To find the pitch angle at the roof’s apex:

  1. Identify the sides: a = 12 ft, b = 12 ft, c = 10 ft.
  2. Apply the cosine rule to the apex angle C:
    [ \cos C = \frac{12^{2}+12^{2}-10^{2}}{2\cdot12\cdot12} = \frac{144+144-100}{288} = \frac{188}{288} \approx 0.6528. ]
  3. Compute C:
    [ C = \

\arccos(0.6528) \approx 49.3^\circ. ]

  1. Since the triangle is isosceles, the two base angles are equal:
    [ A = B = \frac{180^\circ - 49.3^\circ}{2} \approx 65.35^\circ. ]

The apex angle of roughly 49° tells the carpenter the ridge cut, while the base angles guide the birdsmouth notches where rafters meet the wall plates. 3° + 65.Because of that, a quick check — 49. Practically speaking, 35° + 65. 35° = 180° — confirms the arithmetic That's the part that actually makes a difference..

When the Triangle Is Nearly Degenerate

If two sides sum to just barely more than the third, the included angle approaches 0° or 180°. In such cases the cosine value hovers near +1 or –1, and floating‑point round‑off can push the argument slightly outside the legal [–1, 1] range. Clamp the value before calling arccos:

cos_val = max(-1.0, min(1.0, computed_cosine))
angle = math.degrees(math.acos(cos_val))

This guard prevents domain errors and yields a sensible limiting angle.

Summary Checklist

  • Use the law of cosines whenever three sides are known or two sides and their included angle are given.
  • Expect negative cosines for obtuse angles; the arccosine function returns the correct obtuse measure directly.
  • Prefer the law of cosines over the law of sines to avoid the ambiguous case.
  • Keep full precision until the final step, verify the angle sum, and clamp cosine values in near‑degenerate configurations.

With these habits, the law of cosines becomes a reliable workhorse for everything from surveying property lines to rigging 3‑D animation skeletons — wherever a triangle’s hidden angles need to be brought into the light.

Just Finished

Freshly Published

Fits Well With This

Familiar Territory, New Reads

Thank you for reading about How To Find An Angle With 3 Sides. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home