Geometry & Trig

SOH CAH TOA Solver

Pick any two known parts of a right triangle — an acute angle and a side, or two sides — and the solver finds every other side and angle, naming the SOH, CAH or TOA ratio it used.

Try an example:
Answer θ = 30°
  • Opposite 5
  • Adjacent 8.660254
  • Hypotenuse 10
  • Other angle 60°
Step-by-step working 5 steps
  1. 1
    Label the right triangle

    θ is an acute angle. Opposite is across from θ, adjacent touches θ (not the hypotenuse), and the hypotenuse is opposite the right angle.

  2. 2
    Opposite: use SOH
    sin θ = opposite/hypotenuse
    opposite = hypotenuse × sin θ = 10 × sin(30°) = 5
  3. 3
    Adjacent: use CAH
    cos θ = adjacent/hypotenuse
    adjacent = hypotenuse × cos θ = 10 × cos(30°) = 8.660254
  4. 4
    The other acute angle
    90° − 30° = 60°

    The angles of a triangle add to 180°, and one is the 90° right angle.

  5. 5
    Check
    opposite² + adjacent² = 100
    hypotenuse² = 100

    The two lines should match (Pythagorean theorem).

How to use the soh cah toa solver

  1. Label the triangle from the point of view of angle θ.
  2. Choose the two things you know and enter their values.
  3. Follow the ratio chosen for each unknown.
  4. Check with the Pythagorean theorem at the end.

SOH CAH TOA

SOH: sin θ = opposite ÷ hypotenuse
CAH: cos θ = adjacent ÷ hypotenuse
TOA: tan θ = opposite ÷ adjacent
a² + b² = c² (Pythagorean theorem)

θ is one of the two acute angles; the other is 90° − θ.

Worked examples

Each example below is generated by the same calculator you used above, so the working always matches the answer.

30° and hypotenuse 10
Answer θ = 30°
  • Opposite 5
  • Adjacent 8.660254
  • Hypotenuse 10
  • Other angle 60°
Step-by-step working 5 steps
  1. 1
    Label the right triangle

    θ is an acute angle. Opposite is across from θ, adjacent touches θ (not the hypotenuse), and the hypotenuse is opposite the right angle.

  2. 2
    Opposite: use SOH
    sin θ = opposite/hypotenuse
    opposite = hypotenuse × sin θ = 10 × sin(30°) = 5
  3. 3
    Adjacent: use CAH
    cos θ = adjacent/hypotenuse
    adjacent = hypotenuse × cos θ = 10 × cos(30°) = 8.660254
  4. 4
    The other acute angle
    90° − 30° = 60°

    The angles of a triangle add to 180°, and one is the 90° right angle.

  5. 5
    Check
    opposite² + adjacent² = 100
    hypotenuse² = 100

    The two lines should match (Pythagorean theorem).

Legs 3 and 4
Answer θ = 36.8699°
  • Opposite 3
  • Adjacent 4
  • Hypotenuse 5
  • Other angle 53.1301°
Step-by-step working 5 steps
  1. 1
    Label the right triangle

    θ is an acute angle. Opposite is across from θ, adjacent touches θ (not the hypotenuse), and the hypotenuse is opposite the right angle.

  2. 2
    Angle: use TOA
    tan θ = opposite/adjacent = 3/4 = 0.75
    θ = tan⁻¹(0.75) = 36.8699°
  3. 3
    Hypotenuse: Pythagorean theorem
    hypotenuse = √(opposite² + adjacent²) = √(3² + 4²) = 5
  4. 4
    The other acute angle
    90° − 36.8699° = 53.1301°

    The angles of a triangle add to 180°, and one is the 90° right angle.

  5. 5
    Check
    opposite² + adjacent² = 25
    hypotenuse² = 25

    The two lines should match (Pythagorean theorem).

Hypotenuse 13, opposite 5
Answer θ = 22.6199°
  • Opposite 5
  • Adjacent 12
  • Hypotenuse 13
  • Other angle 67.3801°
Step-by-step working 5 steps
  1. 1
    Label the right triangle

    θ is an acute angle. Opposite is across from θ, adjacent touches θ (not the hypotenuse), and the hypotenuse is opposite the right angle.

  2. 2
    Angle: use SOH
    sin θ = opposite/hypotenuse = 5/13 = 0.384615
    θ = sin⁻¹(0.384615) = 22.6199°
  3. 3
    Adjacent: Pythagorean theorem
    adjacent = √(hypotenuse² − opposite²) = √(13² − 5²) = 12
  4. 4
    The other acute angle
    90° − 22.6199° = 67.3801°

    The angles of a triangle add to 180°, and one is the 90° right angle.

  5. 5
    Check
    opposite² + adjacent² = 169
    hypotenuse² = 169

    The two lines should match (Pythagorean theorem).

45° and adjacent 6
Answer θ = 45°
  • Opposite 6
  • Adjacent 6
  • Hypotenuse 8.485281
  • Other angle 45°
Step-by-step working 5 steps
  1. 1
    Label the right triangle

    θ is an acute angle. Opposite is across from θ, adjacent touches θ (not the hypotenuse), and the hypotenuse is opposite the right angle.

  2. 2
    Hypotenuse: use CAH
    cos θ = adjacent/hypotenuse
    hypotenuse = adjacent ÷ cos θ = 6 ÷ cos(45°) = 8.485281
  3. 3
    Opposite: use TOA
    tan θ = opposite/adjacent
    opposite = adjacent × tan θ = 6 × tan(45°) = 6
  4. 4
    The other acute angle
    90° − 45° = 45°

    The angles of a triangle add to 180°, and one is the 90° right angle.

  5. 5
    Check
    opposite² + adjacent² = 72
    hypotenuse² = 72

    The two lines should match (Pythagorean theorem).

Where you will use this

  • Finding a ladder’s height or a ramp’s length
  • Geometry and trigonometry right-triangle homework
  • Surveying and navigation basics

Common mistakes to avoid

Mislabeling opposite and adjacent

Opposite and adjacent depend on which angle θ you stand at. The hypotenuse is always across from the right angle.

Calculator in the wrong mode

Use degrees for degree angles. The solver works in degrees and says so.

Using a ratio for the wrong sides

Pick the ratio that contains the two sides involved: SOH for opposite/hypotenuse, CAH for adjacent/hypotenuse, TOA for opposite/adjacent.

Frequently asked questions

What does SOH CAH TOA stand for?

Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent.

How do you solve a right triangle with an angle and a side?

Choose the ratio that links the angle, the side you know and the side you want, then rearrange. For example opposite = hypotenuse × sin θ.

How do you find an angle from two sides?

Use the inverse trig function: θ = tan⁻¹(opposite/adjacent), sin⁻¹(opposite/hypotenuse) or cos⁻¹(adjacent/hypotenuse).

Related calculators

Browse everything in Geometry & Trig or the full calculator list.