Formula and Method for Triangle Ratio (Trigonometric Ratios)
The "triangle ratios" are the trigonometric ratios of a right triangle: sine, cosine, and tangent, defined as ratios between the two legs and the hypotenuse relative to a reference angle θ. Given the lengths of the side opposite θ and the side adjacent to θ, this calculator finds the hypotenuse, the angle θ itself, and all six trigonometric ratios (sine, cosine, tangent, and their reciprocals cosecant, secant, cotangent).
How the calculation works
First, the hypotenuse is found with the Pythagorean theorem: c = √(a² + b²), where a is the opposite side and b is the adjacent side. The reference angle is then θ = arctan(a / b) (the inverse tangent of opposite over adjacent). From there the three primary ratios follow directly: sin θ = a/c (SOH: opposite over hypotenuse), cos θ = b/c (CAH: adjacent over hypotenuse), and tan θ = a/b (TOA: opposite over adjacent). The three reciprocal ratios are csc θ = c/a, sec θ = c/b, and cot θ = b/a.
Common mistakes
- Mixing up opposite and adjacent: "opposite" and "adjacent" are always relative to the angle you're solving for — swapping them flips sine and cosine and changes the angle you compute.
- Degrees vs. radians: arctan() in most calculators and programming languages returns radians by default; convert to degrees by multiplying by 180/π before comparing to a protractor reading.
- Non-right triangles: these ratios only apply to right triangles. For a triangle with no 90° angle, use the Law of Sines or Law of Cosines instead.
Real-world applications
- Surveying and navigation use these ratios to find distances and heights that can't be measured directly (e.g., a building's height from a known distance and angle of elevation)
- Construction and carpentry use them to calculate roof pitch, stair rise/run angles, and ramp slopes
- Physics uses sine and cosine constantly to resolve vectors (forces, velocities) into perpendicular components
- Engineering and architecture use trigonometric ratios for structural load angles and design geometry