CalcTypes
Guide / Article

How to Find Sides of a Triangle – Pythagoras, Trig, Sine & Cosine Laws

Open Triangle Calculator β†’
Guide / ArticleΒ·Last updated: Β·SourcesΒ·Methodology
Triangle geometry guide

How to Find Missing Sides of a Triangle – Which Formula to Use

Finding a missing triangle side is easier when you identify the known-data pattern before choosing a formula.

Quick answerRight triangle + two sides β†’ Pythagoras. Right triangle + angle β†’ sin/cos/tan. Known opposite side-angle pair β†’ Law of Sines. Two sides + included angle β†’ Law of Cosines.
On this page
  1. Choose the method
  2. Pythagoras
  3. Right-triangle trigonometry
  4. Law of Sines
  5. Law of Cosines
  6. Worked examples
  7. Common mistakes
  8. Practice

Right Triangle Missing Side Calculator

For a right triangle, aΒ² + bΒ² = cΒ². The hypotenuse is c = √(aΒ² + bΒ²), and a missing leg is a = √(cΒ² βˆ’ bΒ²). For example, legs 3 and 4 give a hypotenuse of 5.

Fill in any two sides and leave the missing one blank. For other triangles, use the triangle calculator.

Start by Classifying the Triangle

The correct side formula depends on what you know. Before calculating, ask two questions: Is the triangle right-angled? and which sides/angles are known?

KnownUse
Two sides of a right trianglePythagorean theorem
One side + acute angle in a right trianglesin, cos or tan
SASLaw of Cosines
ASA/AAS or known opposite pairLaw of Sines
SSSNo side is missing; use Law of Cosines to find angles

Pythagorean Theorem β€” Right Triangles

aΒ²+bΒ²=cΒ²

c is the hypotenuse, always opposite the right angle.

Example: legs 9 and 12:

c=√(9²+12²)=√225=15

If c and one leg are known, rearrange: a=√(cΒ²βˆ’bΒ²).

Trigonometry β€” Right Triangle with an Angle

sinΞΈopposite / hypotenuse
cosΞΈadjacent / hypotenuse
tanΞΈopposite / adjacent

Example: hypotenuse 20 m and angle 35Β°; find opposite side:

opposite=20sin35Β°β‰ˆ11.47 m

Law of Sines

a/sinA = b/sinB = c/sinC

Use this when you know at least one complete opposite side-angle pair.

Example: A=40Β°, B=70Β°, a=8:

b=8Β·sin70Β°/sin40Β°β‰ˆ11.70

Keep each side paired with its opposite angle.

Law of Cosines

cΒ²=aΒ²+bΒ²βˆ’2ab cosC

Use this for SAS when two sides and their included angle are known.

Example: a=6, b=9, C=50Β°:

c=√(6Β²+9Β²βˆ’2Β·6Β·9Β·cos50Β°)β‰ˆ6.898
c b a C

Worked Examples

Find hypotenuse: legs 7 and 24
c=√(49+576)=√625=25
Find a leg: c=17, b=8
a=√(17Β²βˆ’8Β²)=√225=15
AAS: A=50Β°, C=60Β°, a=10

B=70Β°. Then c=10Β·sin60Β°/sin50Β°β‰ˆ11.305.

SAS: sides 10 and 13 with included angle 42Β°
c=√(10Β²+13Β²βˆ’2Β·10Β·13Β·cos42Β°)β‰ˆ8.705

Common Mistakes

Wrong hypotenuseThe hypotenuse is opposite 90Β° and is the longest side.
Wrong sine pairingEach side must be paired with its opposite angle.
Using Pythagoras on a non-right triangleUse the Law of Cosines instead.
Calculator angle modeGeometry problems usually use degrees; check DEG vs RAD.

Practice Questions

Right triangle: c=10, one leg=6

Answer: missing leg = √(100βˆ’36)=8.

SAS: a=5, b=8, C=90Β°

Answer: Law of Cosines reduces to Pythagoras: c=√89β‰ˆ9.434.

Questions People Ask

Open any question for a detailed explanation, not just a one-line answer.

How do I find a missing side in a right triangle?

Use Pythagoras if two sides are known. If one side and an acute angle are known, use sine, cosine or tangent depending on the side relationship.

Which side is the hypotenuse?

The hypotenuse is the side opposite the 90Β° angle. It is always the longest side in a right triangle.

How do I find a side if the triangle is not right-angled?

Use the Law of Sines when an opposite side-angle pair is known, or the Law of Cosines for SAS/SSS situations.

When should I use the Law of Cosines?

Use it when two sides and the included angle are known (SAS), or when all three sides are known and you need an angle.

When should I use the Law of Sines?

Use it when you know a side and its opposite angle, plus another angle or side you want to relate.

Why can’t I always use Pythagoras?

Pythagoras depends on a 90Β° angle.

Without that right angle, the missing cosine term in the more general Law of Cosines is no longer zero.

How do I check the missing side?

Verify the triangle inequality and confirm the longest side lies opposite the largest angle.

For right triangles, substitute back into aΒ²+bΒ²=cΒ².

Can the Triangle Calculator choose the method for me?

Yes. The Triangle Calculator lets you choose what information is known and provides method-specific working.

Assumptions and Limitations

Assumptions

  • Shapes are ideal geometric figures (perfectly straight sides, true right angles, perfect circles).
  • All measurements use the same unit before calculating.
  • Ο€ is used at full calculator precision unless 3.14 is stated.
  • The triangle is drawn on a flat plane, with angles summing to 180Β°.

Limitations

  • Real rooms, plots and objects are rarely perfect shapes, so measure carefully and add a margin when buying materials.
  • Rounding in early steps can change the final answer; round only at the end.
  • Courses may require different rounding or notation.

Related CalcTypes Resources

Methodology

This guide maps side-solving formulas to known-data patterns and includes validation rules so formula selection is based on geometry rather than letter matching.

Sources