Methods for Solving Triangles

Four fundamental techniques underpin triangle calculations:

  • Law of Cosines: Relates any angle to all three sides, allowing you to find missing sides or angles when you know mixed data.
  • Law of Sines: Establishes proportionality between side lengths and the sines of their opposite angles, particularly useful for ambiguous cases.
  • Angle Sum Property: The three interior angles of any triangle always total 180°, so knowing two angles immediately gives the third.
  • Pythagorean Theorem: A special case of the law of cosines applied when one angle equals 90°.

Your approach depends on what information you start with: all three sides, a mix of sides and angles, or just two angles.

Law of Cosines for Finding Angles

When you know all three sides of a triangle, use the law of cosines to recover each angle. The formula is rearranged to isolate the cosine of each angle, which you then invert using the inverse cosine function (arccos).

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

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

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

  • a, b, c — The three side lengths of the triangle.
  • α, β, γ — The angles opposite to sides a, b, and c respectively.

Law of Cosines for Finding Sides

When you know two sides and the included angle between them, the law of cosines directly solves for the third side. This formula applies regardless of whether the triangle is acute, obtuse, or right-angled.

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

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

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

  • a, b, c — The three side lengths of the triangle.
  • α, β, γ — The angles opposite to sides a, b, and c respectively.

How to Use This Calculator

The calculator offers multiple input pathways depending on your available data:

  • Three sides known: Enter a, b, and c to retrieve all three angles.
  • One angle and two adjacent sides: Provide the included angle (e.g., α) and the sides that form it (b and c) to find side a and the remaining angles β and γ.
  • Two angles known: Input any two angles; the third is computed automatically from the angle sum property (180°).

For example, if you input angle α = 30°, side a = 4, and side b = 6, the calculator returns side c ≈ 7.84, angle β ≈ 48.59°, and angle γ ≈ 101.4°.

Common Pitfalls and Considerations

Avoid these mistakes when solving triangles.

  1. Angle Units Matter — Ensure your calculator is set to degrees or radians consistently. Inputting 30 degrees when the tool expects radians will produce wildly incorrect results. Always double-check the unit setting before solving.
  2. Triangle Inequality Constraint — The sum of any two sides must exceed the third side. If your sides are 3, 4, and 8, no triangle exists. The calculator will flag this, but verify your measurements are realistic before entering them.
  3. Ambiguous Case (SSA) — When you know two sides and a non-included angle (SSA), two valid triangles may exist. The law of sines can produce two possible values for a missing angle. Be aware that your result might have an alternative solution.
  4. Rounding Errors in Cascading Calculations — If solving step-by-step manually, avoid rounding intermediate results. Accumulated rounding error can distort the final answer. Use full precision throughout, then round only the final output.

Frequently Asked Questions

How do I calculate the third angle if I know two angles of a triangle?

Add the two known angles, then subtract their sum from 180°. For instance, if α = 50° and β = 60°, then γ = 180° − 50° − 60° = 70°. This exploits the angle sum property, which guarantees that the three interior angles of any triangle sum to exactly 180°.

What angles result from a triangle with sides 4, 5, and 6?

Using the law of cosines: α = arccos[(5² + 6² − 4²) ÷ (2 × 5 × 6)] = arccos(0.75) ≈ 41.41°. Similarly, β ≈ 55.77° and γ ≈ 82.82°. The largest angle (82.82°) is opposite the longest side (6), which is always true in any triangle.

Can I find a missing side if I only know one side and one angle?

No. You need either two other sides or another angle. Knowing only one side and one angle leaves infinite possible triangles. You must have at least three independent pieces of information (sides or angles) to uniquely define a triangle.

What is the difference between the law of sines and the law of cosines?

The law of sines compares side lengths to the sines of opposite angles: a ÷ sin(α) = b ÷ sin(β) = c ÷ sin(γ). It works well when you know at least one side-angle pair. The law of cosines directly relates one angle to all three sides and works best when you know all sides or two sides and an included angle.

How do I identify whether a triangle is acute, right, or obtuse?

Compare each angle to 90°. If all three angles are less than 90°, the triangle is acute. If one angle equals 90° exactly, it is right-angled. If one angle exceeds 90°, it is obtuse. Alternatively, check the longest side: if c² < a² + b², it is acute; if c² = a² + b², it is right; if c² > a² + b², it is obtuse.

Why does the calculator sometimes show two possible answers for SSA input?

The ambiguous case arises when you provide two sides and a non-included angle (SSA). Depending on the side lengths and angle magnitude, two distinct triangles may satisfy your constraints. The calculator typically returns both solutions or warns you of the ambiguity so you can choose the one matching your real-world context.

More math calculators (see all)