SOHCAHTOA Solver

This SOHCAHTOA solver works out the missing sides and angles of any right triangle using the sine, cosine and tangent ratios. Right triangles have three sides, the hypotenuse (the longest, opposite the right angle), the opposite and the adjacent, named relative to one of the two acute angles, and if you know any two of these four values you can find the rest. Choose which two values you already know from the dropdown, angle and hypotenuse, angle and opposite, angle and adjacent, opposite and hypotenuse, adjacent and hypotenuse, or opposite and adjacent, then enter those figures. The solver instantly returns the angle theta, the opposite side, the adjacent side and the hypotenuse, plus a breakdown showing the complementary angle, the sine, cosine and tangent values used, which formula was applied, and a worked example that checks your answer against Pythagoras' theorem. A triangle diagram beside the inputs shows how each side and angle is labelled, so there is no confusion about which is which. It suits maths homework, trades, technical drawing, surveying, and any job needing a triangle's dimensions from limited information. Results are rounded to three decimal places, and the known angle must be between 0 and 90 degrees. If your inputs are impossible, such as an opposite side longer than the hypotenuse, the solver flags an error instead of a result.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Advertise on this page
Standard Formula  Standard trigonometric identities (sin, cos, tan and their inverses). Valid for all right triangles.

1. I Know These Two Values

°

2. Triangle Diagram

θ O A H

O = Opposite, A = Adjacent, H = Hypotenuse, θ = angle at bottom-right

Solved Triangle

Angle (θ)
30.000°
degrees
Opposite (O)
5.000
side length
Adjacent (A)
8.660
side length
Hypotenuse (H)
10.000
side length

All Angles

Angle θ30.000°
Complementary angle (90 − θ)60.000°
Right angle90.000°
Sum of angles180.000°

Ratios Used

sin(θ) = O/H0.500
cos(θ) = A/H0.866
tan(θ) = O/A0.577
Formula usedSOH: O = H×sin(θ) | CAH: A = H×cos(θ)
Worked example: With θ = 30.000°, O = 5.000, A = 8.660, H = 10.000. Check: O2 + A2 = 100.000, H2 = 100.000 (✓ Pythagoras confirmed).

What Is SOHCAHTOA?

SOHCAHTOA is a mnemonic used to remember the three fundamental trigonometric ratios for a right triangle. Every right triangle has one 90-degree angle and two acute angles. For any chosen acute angle (called theta, or θ), the three sides are named relative to that angle:

The three ratios are:

NameAbbreviationFormulaInverse (to find angle)
Sinesinsin(θ) = O / Hθ = arcsin(O / H)
Cosinecoscos(θ) = A / Hθ = arccos(A / H)
Tangenttantan(θ) = O / Aθ = arctan(O / A)

How to Use This Solver

Select which two values you already know from the dropdown. The possible combinations are:

  1. Angle + Hypotenuse: find O using SOH (O = H × sin(θ)) and A using CAH (A = H × cos(θ))
  2. Angle + Opposite: find H using SOH (H = O / sin(θ)) and A using TOA (A = O / tan(θ))
  3. Angle + Adjacent: find H using CAH (H = A / cos(θ)) and O using TOA (O = A × tan(θ))
  4. Opposite + Hypotenuse: find θ using arcsin(θ = arcsin(O / H)) and A using Pythagoras (A = √(H² − O²))
  5. Adjacent + Hypotenuse: find θ using arccos (θ = arccos(A / H)) and O using Pythagoras (O = √(H² − A²))
  6. Opposite + Adjacent: find θ using arctan (θ = arctan(O / A)) and H using Pythagoras (H = √(O² + A²))

Worked Example

Given: angle θ = 30° and hypotenuse H = 10.

This matches the default output of the calculator above.

Common Angle Values

Angle (θ)sin(θ)cos(θ)tan(θ)
0.0001.0000.000
30°0.5000.8660.577
45°0.7070.7071.000
60°0.8660.5001.732
90°1.0000.000undefined

Tips and Common Mistakes

Related Calculators

Method: Standard trigonometric ratios (SOH = sin(θ) = O/H, CAH = cos(θ) = A/H, TOA = tan(θ) = O/A) and their inverses (arcsin, arccos, arctan). The Pythagorean theorem (H² = O² + A²) is used as a cross-check. Implemented using JavaScript's built-in Math.sin, Math.cos, Math.tan, Math.asin, Math.acos, and Math.atan2 functions, which operate in radians internally with conversion to and from degrees.

This solver assumes a standard right triangle. All input angles must be between 0 and 90 degrees (exclusive). Side lengths must be positive. Rounding is to three decimal places. For ambiguous cases (for example, where a given opposite side is longer than the hypotenuse), the solver will display an error.