Triangle Side Length Calculator

Find the missing side length of a triangle using the Law of Cosines, Law of Sines, or perimeter subtraction. Multiple solving modes, preset triangles, reference table, and side proportion bars.

Planning notes, formulas, and examples

About the Triangle Side Length Calculator

Finding a missing side of a triangle is one of the most common problems in geometry and trigonometry. Depending on what information you already have, different formulas apply. If you know two sides and the included angle (SAS), the Law of Cosines gives the third side directly: c² = a² + b² − 2ab cos C. If you know two angles and one side (AAS or ASA), the Law of Sines lets you find any remaining side: a/sin A = b/sin B = c/sin C. And if you know the perimeter plus two sides, simple subtraction yields the third.

This calculator supports three solving modes so you always have the right formula path. In SAS mode, enter two sides and the angle between them. In AAS mode, enter two angles and any one side. In Perimeter mode, enter the total perimeter and two known sides. Each mode computes the missing side, then derives all remaining sides and angles, classifies the triangle, and reports area via Heron's formula.

Preset buttons load classic triangles — 3-4-5, 5-12-13, 30-60-90 scaled, equilateral, and more — so you can verify your understanding without manual entry. A reference table lists common right triangles and their side ratios, and proportion bars visually compare all three sides. Whether you are solving homework, designing structures, or navigating with triangulation, the page gives you the side relationships and derived measures together.

When This Page Helps

This calculator is useful because missing-side problems come from several different information patterns, and the right formula depends on the data you actually have. It lets you switch between SAS, AAS, and perimeter-based solving without reworking the whole triangle by hand, then follows through with the remaining angles, area, and classification. That makes it effective for trigonometry practice, engineering sketches, and quick validation of hand-derived dimensions.

How to Use the Inputs

  1. Select the solving mode: SAS (2 sides + included angle), AAS (2 angles + 1 side), or Perimeter (perimeter + 2 sides).
  2. Enter the known values in the corresponding input fields.
  3. The calculator computes the missing side and all remaining measurements.
  4. Review the output cards for side lengths, angles, perimeter, and area.
  5. Use preset buttons to load well-known triangle dimensions.
  6. Check the reference table for common right-triangle ratios.
  7. View proportion bars to compare relative side sizes.
Formula used
Law of Cosines: c² = a² + b² − 2ab cos C. Law of Sines: a/sin A = b/sin B = c/sin C. Perimeter: c = P − a − b. Area (Heron): √[s(s−a)(s−b)(s−c)] where s = (a+b+c)/2.

Example Calculation

Result: c ≈ 7.21, area ≈ 20.78, acute triangle

SAS: sides a = 8, b = 6, included angle C = 60°. c² = 64 + 36 − 2(8)(6)cos 60° = 100 − 48 = 52, so c ≈ 7.21. Area = ½ × 8 × 6 × sin 60° ≈ 20.78.

Tips & Best Practices

  • In SAS mode the angle must be the one between the two known sides (the included angle).
  • In AAS mode, if the two angles sum to ≥ 180° the triangle is impossible.
  • The Law of Cosines reduces to the Pythagorean theorem when the included angle is 90°.
  • Always verify your result satisfies the triangle inequality: each side must be less than the sum of the other two.
  • Use Heron's formula to cross-check area against the ½ab sin C result.

Matching the Formula to the Given Data

The hardest part of a missing-side problem is often deciding which relationship applies. Two sides and their included angle call for the Law of Cosines, two angles and one side call for the Law of Sines, and a known perimeter can turn the final side into simple subtraction. Organizing the problem by data pattern first is faster and more reliable than trying formulas at random.

Avoiding Ambiguous Triangle Inputs

Triangle side work can become confusing when the known information does not determine a unique figure. That is why this calculator focuses on SAS, AAS, and perimeter setups instead of the classic SSA ambiguous case. Each supported mode leads to one well-defined triangle, so the reported side lengths and derived angles are easier to trust and easier to explain in written work.

Using the Solved Side in Follow-Up Work

Once the missing side is known, many other properties become available immediately: perimeter, semi-perimeter, area, and angle classification. That is important because side-length questions are often just the first step in a larger problem involving trigonometry, structural dimensions, or navigation geometry. This calculator helps bridge that gap by continuing past the missing side instead of stopping at a single number.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use the Law of Cosines when you know two sides and the included angle (SAS) or all three sides (SSS). Use the Law of Sines when you know two angles and a side (AAS/ASA) or two sides and a non-included angle (SSA, with caution).