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
O = Opposite, A = Adjacent, H = Hypotenuse, θ = angle at bottom-right
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:
| Name | Abbreviation | Formula | Inverse (to find angle) |
|---|---|---|---|
| Sine | sin | sin(θ) = O / H | θ = arcsin(O / H) |
| Cosine | cos | cos(θ) = A / H | θ = arccos(A / H) |
| Tangent | tan | tan(θ) = O / A | θ = arctan(O / A) |
Select which two values you already know from the dropdown. The possible combinations are:
Given: angle θ = 30° and hypotenuse H = 10.
This matches the default output of the calculator above.
| Angle (θ) | sin(θ) | cos(θ) | tan(θ) |
|---|---|---|---|
| 0° | 0.000 | 1.000 | 0.000 |
| 30° | 0.500 | 0.866 | 0.577 |
| 45° | 0.707 | 0.707 | 1.000 |
| 60° | 0.866 | 0.500 | 1.732 |
| 90° | 1.000 | 0.000 | undefined |
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.