SOHCAHTOA Solver

Enter any two known values of a right triangle and this solver will calculate the remaining sides and angles. Choose which two values you know, enter them, and the results update instantly.

SOHCAHTOA stands for: Sine = Opposite / Hypotenuse • Cosine = Adjacent / Hypotenuse • Tangent = Opposite / Adjacent

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
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 (θ)
-
degrees
Opposite (O)
-
side length
Adjacent (A)
-
side length
Hypotenuse (H)
-
side length

All Angles

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

Ratios Used

sin(θ) = O/H-
cos(θ) = A/H-
tan(θ) = O/A-
Formula used-
Worked example:

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.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.