---
title: "SOH CAH TOA: Trigonometry for Beginners with Examples"
description: "Learn SOH CAH TOA step by step: labelling sides, choosing sin, cos or tan, finding sides and angles, and the calculator mode mistake."
slug: sohcahtoa-trigonometry-for-beginners
canonical: https://learn.modernagecoders.com/blog/sohcahtoa-trigonometry-for-beginners/
date: 2026-09-28
dateModified: 2026-09-28
category: "Mathematics"
tags: ["Trigonometry", "GCSE", "Geometry", "Python"]
keywords: ["sohcahtoa", "soh cah toa", "trigonometry for beginners", "how to find a missing side trigonometry", "how to find an angle using trigonometry", "sin cos tan", "angle of elevation"]
readTime: "8 min read"
author: "Modern Age Coders Team"
---
# SOH CAH TOA: Trigonometry for Beginners with Examples

> How to label a triangle, what sin, cos and tan mean, how to choose between them, and how to find missing sides and angles, with every answer checked in Python.

![SOH CAH TOA: sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, tangent is opposite over adjacent](/images/blog/sohcahtoa-trigonometry-for-beginners/00-hero.png)

*By Modern Age Coders Team · 2026-09-28 · 8 min read*

**Quick answer:** SOH CAH TOA is a memory aid for right-angled triangles: sin = opposite / hypotenuse, cos = adjacent / hypotenuse, tan = opposite / adjacent. First mark your angle, then label the sides from it (the hypotenuse is always opposite the right angle; opposite and adjacent depend on your angle). Choose the ratio that uses the two sides in the question. To find a side, multiply or divide; to find an angle, use the inverse function. If you get a negative sine in a triangle question, your calculator is in radian mode.

Trigonometry sounds intimidating, but at the beginner level it comes down to one idea: in a right-angled triangle, the angles and the side lengths are linked, so if you know enough of one you can work out the other. SOH CAH TOA is the memory aid that tells you exactly how.

This guide explains how to label a triangle correctly (the step most mistakes come from), what sin, cos and tan actually mean, how to choose the right one, and how to find a missing side or a missing angle. Every calculation is also run in Python, which is a quick way to check your answers and a good warning about the calculator mistake that catches almost everyone.

## Step 1: label the sides

Trigonometry at this level only works in right-angled triangles. Pick the angle you are working with, usually called θ (theta). Then name the three sides:

- **Hypotenuse:** the longest side, opposite the right angle. It never changes.
- **Opposite:** the side directly across from your angle θ. It does not touch θ.
- **Adjacent:** the side next to θ that is not the hypotenuse.

![Two copies of the same right-angled triangle: with the angle at the bottom left, the vertical side is opposite and the base is adjacent; with the angle at the top, they swap](/images/blog/sohcahtoa-trigonometry-for-beginners/01-labels.png)

*Opposite and adjacent depend on which angle you use. The hypotenuse never changes.*

> **The most common mistake**

> Opposite and adjacent are not fixed sides of the triangle. They depend on which angle you are using. Always mark your angle first, then label the sides from it.

## Step 2: what SOH CAH TOA means

| Mnemonic | Ratio | Meaning |
| --- | --- | --- |
| SOH | sin θ = opposite / hypotenuse | Sine is opposite over hypotenuse |
| CAH | cos θ = adjacent / hypotenuse | Cosine is adjacent over hypotenuse |
| TOA | tan θ = opposite / adjacent | Tangent is opposite over adjacent |

These ratios depend only on the angle, not on the size of the triangle. Every right-angled triangle with a 30° angle has the side opposite it exactly half the length of the hypotenuse, whether the triangle is drawn on paper or measured across a field. That is why sin 30° is always 0.5. Here are the ratios for the famous 3-4-5 triangle:

**ratios.py**

```python
import math

# A 3-4-5 right-angled triangle. The angle A is opposite the side of length 3.
opposite, adjacent, hypotenuse = 3, 4, 5

sin_a = opposite / hypotenuse
cos_a = adjacent / hypotenuse
tan_a = opposite / adjacent
print(f"sin A = {sin_a}, cos A = {cos_a}, tan A = {tan_a}")

angle = math.degrees(math.atan(tan_a))
print(f"A = {angle:.2f} degrees")
print(f"sin A squared + cos A squared = {sin_a**2 + cos_a**2}")
```

**Output**

```text
sin A = 0.6, cos A = 0.8, tan A = 0.75
A = 36.87 degrees
sin A squared + cos A squared = 1.0
```

The angle opposite the side of length 3 is about 36.87°. The last line shows a neat fact: sin² + cos² always equals 1, because it is really [Pythagoras' theorem](/blog/pythagoras-theorem-explained) in disguise (divide a² + b² = c² by c²).

## Step 3: choose the right ratio

Look at the two sides involved in the question: the one you know and the one you want to find. If you want an angle, use the two sides you know. Then pick the ratio that uses exactly those two.

![Choosing the ratio: if you know or want the opposite and hypotenuse use sin (SOH), adjacent and hypotenuse use cos (CAH), opposite and adjacent use tan (TOA)](/images/blog/sohcahtoa-trigonometry-for-beginners/02-choose.png)

*The two sides in the question decide the ratio.*

## Finding a missing side

Two worked examples:

- **A ladder:** a 6 m ladder leans against a wall at 70° to the ground. How high up the wall does it reach? You know the hypotenuse (6) and want the opposite side. That is SOH: opposite = sin 70° × 6 = 5.64 m.
- **A tree:** standing 20 m from a tree, you look up at its top at an angle of 35°, called the *angle of elevation*. You know the adjacent side (20) and want the opposite (the height). That is TOA: height = tan 35° × 20 = 14.00 m.

![Finding a tree's height: 20 metres away with a 35 degree angle of elevation, height = 20 times tan 35 degrees = 14.00 metres](/images/blog/sohcahtoa-trigonometry-for-beginners/03-tree.png)

*Surveyors, builders and game developers use exactly this calculation.*

When the unknown side is on the bottom of the ratio, rearrange before calculating. For example, if cos 40° = 8 / h, then h = 8 / cos 40°. A quick check: the hypotenuse must always be the longest side, so if your answer for the hypotenuse is shorter than another side, something has gone wrong.

## Finding a missing angle

To find an angle, use the **inverse** functions, written sin⁻¹, cos⁻¹ and tan⁻¹ (or arcsin, arccos, arctan). They take a ratio and give back the angle. A ramp rises 1.2 m over 10 m of ground: you know the opposite and adjacent sides, so use TOA, and the angle is tan⁻¹(1.2 / 10) = 6.84°. Here are all three examples in code:

**sides.py**

```python
import math

# A 6 m ladder leans against a wall at 70 degrees to the ground. How high does it reach?
# We know the hypotenuse and want the opposite side: SOH, so opposite = sin(angle) x hypotenuse
height = 6 * math.sin(math.radians(70))
print(f"ladder reaches {height:.2f} m up the wall")

# From 20 m away, the top of a tree is 35 degrees above the ground. How tall is it?
# We know the adjacent side and want the opposite: TOA, so opposite = tan(angle) x adjacent
tree = 20 * math.tan(math.radians(35))
print(f"tree is {tree:.2f} m tall")

# A ramp rises 1.2 m over 10 m of ground. What angle is it?
# Opposite and adjacent are known: TOA, so angle = inverse tan(opposite / adjacent)
ramp = math.degrees(math.atan(1.2 / 10))
print(f"ramp angle is {ramp:.2f} degrees")
```

**Output**

```text
ladder reaches 5.64 m up the wall
tree is 14.00 m tall
ramp angle is 6.84 degrees
```

## The calculator mistake: degrees and radians

Angles can be measured in degrees or in **radians**, a unit used in higher maths where a full turn is 2π instead of 360. Calculators have a mode for each, and Python's `math` functions always use radians. Get the mode wrong and your answers are nonsense:

**radians.py**

```python
import math

print("math.sin(30)               =", round(math.sin(30), 4))
print("math.sin(math.radians(30)) =", round(math.sin(math.radians(30)), 4))
print("30 degrees in radians      =", round(math.radians(30), 4))
```

**Output**

```text
math.sin(30)               = -0.988
math.sin(math.radians(30)) = 0.5
30 degrees in radians      = 0.5236
```

![sin 30 in radian mode gives -0.988 because 30 is treated as radians; in degree mode sin 30 degrees gives 0.5, and 30 degrees is 0.5236 radians](/images/blog/sohcahtoa-trigonometry-for-beginners/04-radians.png)

*If a sine comes out negative in a triangle question, check the mode first.*

`math.sin(30)` gave -0.988, because Python read 30 as 30 radians, well over four full turns. Converting first with `math.radians(30)` gives the expected 0.5. On a school calculator, look for a small D or DEG on the screen before any triangle question.

## Exact values worth knowing

| Angle | sin | cos | tan |
| --- | --- | --- | --- |
| 30° | 1/2 = 0.5 | √3/2 ≈ 0.866 | 1/√3 ≈ 0.577 |
| 45° | √2/2 ≈ 0.707 | √2/2 ≈ 0.707 | 1 |
| 60° | √3/2 ≈ 0.866 | 1/2 = 0.5 | √3 ≈ 1.732 |

These come from two simple triangles: half of a square (giving 45°) and half of an equilateral triangle (giving 30° and 60°). Many exams, including non-calculator GCSE papers, expect you to know them. Notice sin 30° = cos 60°: the sine of an angle equals the cosine of the angle that makes it up to 90°.

## Where trigonometry is used

- **Building and surveying:** heights of buildings, slopes of roofs and ramps, distances across rivers.
- **Navigation:** working out bearings and distances for ships, planes and GPS.
- **Games and animation:** moving a character at an angle, rotating objects and aiming. Every 2D game with rotation uses sin and cos.
- **Physics and engineering:** forces on slopes, waves, sound and electricity.

GPS itself works mostly with distances rather than angles: your phone times signals from several satellites and finds the one point that fits them all. Our guide to [how GPS works](/blog/how-does-gps-work) explains the method, called trilateration.

If you are learning to code games, trigonometry stops being abstract very quickly. Moving a sprite 5 steps at 30° means moving 5 × cos 30° across and 5 × sin 30° up.

> Label the angle, name the sides, pick the ratio. Almost every trigonometry question follows those three steps.

## How we teach it

Trigonometry is a good fit for a principle on our [how we teach](/how-we-teach) page: students derive the rule themselves before they ever see it written down. Measure the sides of a few right-angled triangles with the same angle, and the ratios turn out to be the same every time, which is what sin, cos and tan are. Students also explain their thinking, including why they chose a ratio. Our [GCSE maths tuition](/gcse-maths-tuition-online) runs one to one or in small groups of 5 to 10.

[Book a free class](/book-demo) [Book a priority demo](/book-demo)

## Frequently asked questions

**What does SOH CAH TOA stand for?**

It is a memory aid for the three trigonometric ratios: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, and Tangent = Opposite / Adjacent. It applies to right-angled triangles.

**How do I know whether to use sin, cos or tan?**

Label the sides from your angle, then look at the two sides in the question: the one you know and the one you want. Opposite and hypotenuse means sin, adjacent and hypotenuse means cos, and opposite and adjacent means tan.

**How do you find a missing angle with trigonometry?**

Use the two sides you know to form the ratio, then apply the inverse function: sin to the power minus 1, cos to the power minus 1 or tan to the power minus 1 on a calculator. For example, if tan of the angle is 0.12, the angle is inverse tan of 0.12, about 6.84 degrees.

**Why does my calculator give the wrong answer for sin 30?**

It is probably in radian mode. In degree mode, sin 30 degrees is 0.5. In radian mode, the calculator treats 30 as 30 radians and gives about minus 0.988. Look for D or DEG on the screen.

**What is the hypotenuse?**

The hypotenuse is the longest side of a right-angled triangle, the side opposite the right angle. Unlike the opposite and adjacent sides, it does not depend on which angle you use.

**Does SOH CAH TOA work for all triangles?**

No, only for right-angled triangles. For other triangles you use the sine rule and the cosine rule, which are usually taught after SOH CAH TOA.

**When do students learn trigonometry?**

Right-angled trigonometry is usually taught around ages 13 to 15: in Key Stage 3 and GCSE in the UK, Class 10 in CBSE, and geometry courses in the US.

---

*Source: https://learn.modernagecoders.com/blog/sohcahtoa-trigonometry-for-beginners/*
