Right-triangle trigonometry

The word trigonometry derives from the Greek for "triangle measure", and that's a pretty good description of the nuts and bolts of it. Still, that's not all there is to trigonometry. Learning trig (we call it "trig") will crack the door open to a wide variety of other fields,

including doing math on the complex plane, many applications in calculus and other fields.

My advice to you: Learn the basics of the trigonometry of right triangles. They'll help you immensely as you move through the next few courses in math.

Pro tip

If you're thinking about more advanced courses in math and science, in high school or in college, learn the basics of right-triangle trigonometry well. You won't regret it.


Shhhhh... mathematicians don't like this too much, but for most of you, about 80% of all you'll ever need to know about trig. is in that mnemonic: SOH-CAH-TOA.

Most of the trigonometry you'll ever need to do involves right triangles, though we'll generalize this to any triangle, and do a lot of other interesting things later. Take a look at the right triangles on the right so we can be on the same page with our terms.

Right triangles have a right angle, of course, and a hypotenuse across from that. We'll define an angle, θ (the Greek letter "theta"), and our choice of θ will determine the labels of the other two sides. The opposite side (o) is opposite angle θ, and the side that is a part of theta will be called the adjacent side (a).

If you study trigonometry or you move ahead in math or science, you'll need to be familiar with some Greek letters, mainly because we run out of letters with which to designate things. Take a look at the box (Greek to me). We'll use those letters a lot.

The three major trigonometric functions are functions of the angle θ, and are ratios of the lengths of the sides of right triangles:

  • Sine = Opposite over Hypotenuse (SOH),

  • Cosine = Adjacent over Hypotenuse (CAH),

  • Tangent = Opposite over Adjacent (TOA).


The Greek alphabet


Trigonometric functions are just ratios of the lengths of sides of right triangles.

Example 1

The three trig. functions allow us to determine everything there is to know about a right triangle starting with very little initial information. In the triangle on the right, only one side and one angle (and the right angle) are known. Using the definitions of the trig. functions, we have:

o = h·sin(θ) = 10·sin(25˚) = 4.26 cm

a = h·cos(θ) = 10·cos(25˚) = 9.06 cm

and the third angle is 180˚- 90˚- 25˚ = 65˚

Finally, we can use the two sides, o and a, to calculate tan(θ) = 4.26/9.06 = 0.47

The angle (θ = 25˚) opens onto the opposite side and the adjacent side is part of that angle. The hypotenuse is the unique side of a right triangle; it is not a part of the right angle.

Trig. functions & your calculator

Almost any calculator or calculator application will be able to calculate sine, cosine and tangent functions, and a few other trig. functions that we'll cover in due time. Calculators make the trig. functions act like "black boxes" – you just key in your angle and you get its sine, cosine or tangent.

You'll need to be careful about the units. Your calculator can use two units of angle measure: Degrees and Radians. Make sure you're working with the right units.

Calculator: TI-84 Plus


Try to find all angle and side measurements of the three triangles below using SOH-CAH-TOA trig. Roll over the problems to see the answers.

Example 2: Angles & sides of a right triangle

Calculate all of the missing angles and sides of this triangle

Solution: We begin by writing down one of the trigonometric functions. The 18 cm side of this triangle is the side adjacent to the 34˚ angle, so let's use cosine. Here we'll write out the definition of cosine and plug in the side and angle we have, then multiply both sides by h and divide both by cos(34˚).

We can find the length of the opposite side, o, using the tangent function in a similar way:

So we have sides of 18 cm, 12.1 cm and 21.7 cm. We can easily check whether these are correct using the Pythagorean theorem:

The small amount of error, 0.48 cm, is just due to rounding off the earlier answers. Finally, the missing angle is just the complement of the 34˚ angle (the right angle accounts for the other 90˚ of a right triangle):

So we know everything there is to know about that triangle, even though we originally only knew the measures of two angles and one side.

Example 3: Angle of elevation & distance

In the scenario below, a surveyor can calculate the height of a building by measuring the angle of elevation from his/her position to the top of the building, as long as the distance to the building (100 ft.) is known. Calculate the height of the building.

Solution: The surveyor's lines-of-sight (dashed red lines) form a right triangle: The straight-line distance to the building, the height of the building (minus the 5 ft. from the ground to the surveyor's instrument) and the hypotenuse. To find the length of the opposite side, which we'll call o, we use the tangent function:

Here I'm calling o the height of the building above our 5 ft. mark. We'll have to add that 5 ft. to the total before we finish. We can rearrange to solve for o, multiplying by 100 ft. on both sides:

So the height of the building is that 35 ft. plus the 5 ft. height of the instrument, or 40 ft.

Interesting fact: The tangent function is approximately equal to the line y = x between, say, ±π/6. Here are overlapping graphs to show this:

This means that tan(π/6) is approximately π/6. Now π/6 is about 15˚, so for angles of elevation between about ±15˚, we can make a pretty good estimate of the height of objects without even calculating the tangent ... But ... this only works if we use radians instead of degrees. In this problem, the approximation would have yielded a building height of just under 39 ft. Not too bad.

The unit circle – the fundamental basis for trigonometry

Click/tap on the image to download a copy.

Units of Angle Measure

In trigonometry and many subfields of math, we use the unit radians for angle measure. The radian arises more or less naturally from the geometry of the circle. There are 2π (yes, 6.283 ..., but we usually just say 2π) radians in a circle, so 180˚ = π radians. The figure on the left shows the most frequently-used radian measures. They are generally multiples of π/6 (30˚) and π/4 (45˚).

You should memorize this unit circle, including the radian measurements. It will grease the wheels for what's ahead. The tool below might help. It reduces the task to simple counting by multiples of 30˚ and 45˚. If you come back to it once in a while, a little more will sink in each time and soon you'll have it.

Radians and degrees

There are 2π (= 6.28) radians and 360˚ in a circle, π radians and 180˚ in a half circle.

Usually, we don't multiply the π when reporting radian measurements. We just say 1.1π radians, and so forth.

Unit circle learning tool

Press the green forward arrow as many times as you want to advance the arrow and find the angle, in degrees and radians, on the unit circle.

The circle is "counted around" in 180˚ increments, then in 90˚, 45˚ and 30˚ increments. Go around the circle enough times that you can correctly anticipate the next angle, both in degrees and radians.

Press the back button at any time to reset the circle and start over.

I can't emphasize enough how important it is that you know your way around the unit circle. Now that that's (hopefully) done, we can take a deeper look at the trigonometric functions.

Key triangles you should memorize (really)


We construct the 45-45-90 triangle as if it was on the unit circle, so that the hypotenuse has (the radius of the circle) has a length of 1. We can easily solve for the lengths of the sides relative to that hypotenuse, they're the same length and we solve the Pythagorean relationship x2 + x2 = 1, which gives sides of length x = √2/2


The 30-60-90 triangle is constructed in a similar way; we just have to use a little trig. to get the lengths of the sides, but they're easy to memorize, and you should do so.

You should memorize both of these triangles, including angles – both in degrees and radians – and side lengths. We'll work with these angles so much that doing so will really help you to figure out more difficult problems.

Trigonometry → trigonometric functions

Now we want to use the unit circle to create the three major trigonometric functions,

  • f(x) = sin(x)
  • f(x) = cos(x)
  • f(x) = tan(x)

We'll do that by drawing a series of triangles, both 45-45-90 and 30-60-90, inside of the unit circle, and calculating the trig function values.

Let's start at 30˚ = θ/6. Notice that we can use that triangle to calculate all three trig functions. We'll set those aside as we work around the circle with triangles, and look at all of the values together at the end of the trip.

Now we really should work our way around the circle in increments of 30˚, but I'm going to skip around a bit and hope you'll get the idea. Next is a 135˚ angle, or 45˚ past 90˚, working counterclockwise (as usual) around the unit circle.

One quirk of the unit circle is that the length of the radius (the hypotenuses of all of our triangles) is always 1, but the other triangle sides can have negative or positive values. That's how certain sine, cosine or tangent values end up negative.

You might have noticed that the 90˚ (which we passed up) angle doesn't really define a triangle. The key to understanding what happens there is to consider an 89˚ angle, in which the opposite side is very small and the adjacent side is nearly equal to the hypotenuse, making the sine function small (close to zero) and the cosine function close to one. Well, at 90˚, those values are zero and one, respectively, and we make similar arguments at all of the multiples of 90˚ around the circle.

Now let's do a 240˚ = 4θ/3 angle. Notice that because the x-and y-coordinates of the tip of the radius are negative, we treat the sides of our triangle as negative, and that affects the values of the trig functions.

Finally, let's look at an angle in the 4th quadrant, 315˚ = 7θ/4, which is seven increments of 45˚ around the unit circle, and produces a 45-45-90 triangle, just with some "negative" sides.

Notice that all of this would just repeat as we moved our radius vector around the unit circle again and again. Next we'll gather all of this data in a table and determine some patterns in the sine, cosine and tangent functions.

Trig functions are periodic

Here's a table of trig function values at key angles in one round trip of the unit circle.

The trigonometric functions are repetitive, or cyclic, and we usually refer to them as periodic, meaning that they repeat the same basic pattern predictably.

Forget about the gray columns for now. You can pick up a bunch of patterns as we walk around the circle and look at sin(θ), cos(θ) and tan(θ). Notice that the tangent function is a different beast, and we'll get to that later. Notice also that both the sine and cosine functions oscillate between ±1 and pass periodically through y = 0.

The gray columns are just re-expressions of the sine and cosine values to the left. Each is just re-stated with a square root in the numerator so that the increasing-decreasing pattern is more obvious.

The signs of the trig functions change according to which quadrant the tip of radius vector is in (UL = upper left, LR = lower right, and so on). This table shows how the sign of each function depends on the quadrant of the angle:

Signs of the Trig. Functions
Quadrant sin(θ) cos(θ) tan(θ)

Graphs of the trig functions

Graphs of the sine (black) and cosine (magenta) functions are drawn below as f(θ) vs. θ, for θ between 0 and 4π - twice around the unit circle. Notice that these are periodic functions. Every 2π radians, they repeat, and that goes on infinitely in both positive and negative directions.

All of the points in the table above are plotted on this graph. Be sure to think about these graphs for a while.

Notice a few patterns: They oscillate between ±1; they cross or are farthest apart (vertically) at multiples of π/4 and sin(θ) is the same as cos(θ), but shifted to the right by π/2.

These curves are also referred to as "sine waves". We usually don't say "cosine waves" because the cosine function is the same as the sine, just shifted by π/2. It is common to represent many periodic natural phenomena using sine and cosine curves: Waves, the motion of a pendulum, the motion of a bouncing spring, for example.

Transformations of the trig functions

In order to model periodic behavior using sines and cosines, we need, as usual, some transformations to translate and scale our function at will. In our typical way (see functions section), the transformations of f(x) = sin(x) are shown on the right.

When we use trig. functions to model real data later, we'll make a slight modification of this prototype equation in order to keep the units straight.

The transformations of the other trig. functions are analogous.

Horizontal stretching

Move the slider to change c in the function f(x) = sin(f/c) to get an idea of the effect of horizontal stretching on a periodic function. The function is written both as f(x) = sin(x/c) and as f(x) = sin[(1/c)·x].

If this function represented a wave (e.g. a sound, light or water wave) then the horizontal stretching parameter, c, would change the wavelength, the domain distance between successive peaks or troughs. The parameter f = 1/c is called the frequency factor.

Notice that for small c, the frequency (number of cycles on the graph) is large, and for small c, it's large. Because the sine function is odd, when c is negative, the sine curve is inverted across the x-axis.

(Notice also that the graph disappears when we try to divide by zero!)

Vertical stretching

Move the slider to see the effect of the vertical-stretching parameter, A, on our sine function.

If this function represented a wave like a sound or light wave, the vertical distance between f(x) = 0 and the maximum (or minimum) value of the sine function would be the amplitude, which would be proportional to volume (loudness) of sound or brightness (intensity) of light.

Notice that when A < 0, the function is reflected across the x-axis, as we would expect for any function.

Vertical and horizontal translation

Vertical translation of a periodic function is performed just like on any other function: Simply add a constant number (k) to the value of the function for each point in the domain. Vertical translation is used in modeling to move the average value of the function up or down. For example, to model a tide that fluctuates by ± 3 feet from an average depth of 10 feet, we'd want a sine or cosine function (turns out it doesn't matter which), that oscillates between 7 and 13 feet. The function would read f(some stuff) + 10.

Horizontal translation is very important when we model waves because it represents a property called phase. In our tide example, we might need to shift our model wave over to the right a bit to get the timing of the tides just right (and we'd also have to adjust the wavelength, which would represent the time between high or low tides). Phase is extremely important in many areas of science like x-ray crystallography (used to study molecular structure) and medical imaging.

Reciprocal trig functions: The tangent function

The tangent of an angle (θ) is the ratio of the sine of that angle to its cosine: tan(θ) = sin(θ)/cos(θ). Because cos(θ) can be zero, the graph of the tangent function will have vertical asymptotes, as shown on the right. The tangent of odd multiples of π/2 is infinite because cos(π/2) (and odd multiples of π/2) is zero.

This has an interesting consequence if you are a rock climber or a linesman (person who strings cable, e.g. electric wires, from pole to pole. You'll find an explanation here.

There are three other trigonometric functions left to explore, and like the tangent, all are ratios of other trig. functions, so we can expect asymptotic behavior there, too.

All six trigonometric functions

Finally, let's define the three other trig. functions. The reciprocal of the sine function (not to be confused with the inverse) is called the cosecant (csc) function. The reciprocal of the cosine is (paradoxically, I know) the secant (sec) and the reciprocal of the tangent is the cotangent (cot). csc(θ), sec(θ) and cot(θ) are defined below.

Remembering sec, csc and tan

It should be easier to remember which of the main trig. functions are connected to sec, csc and tan, but due to an accident of history, it's not. Sine should go with secant, and cosine should go with cosecant. Unfortunately, those are reversed, and you'll have to remember that. Tangent goes with cotangent, though!

Graphs of the Trigonometric Functions

Several cycles of each of the six trig functions are plotted below. Note that the sin(x) and cos(x) graphs are vertically expanded by a factor of ten compared to the other graphs. This means that the sine graph would fit in between the U-shaped graphs (they are not parabolas!) in the csc(x) graph, same for the cos(x) and sec(x) graphs. Except for sine and cosine,

all of the trig functions are ratios of other trig functions, thus the vertical asymptotes. Study the figure for a while and note the similarities. These graphs have more in common than they have differences. There is no need to memorize them if you know how they're related and why the have the shapes they have.

There is much more to trigonometry ...

There is much more to trigonometry than is reasonable to fit into one section like this. You'll need to know how to use inverse trig. functions, how to relate trig functions to one another (analytic trig), and how to use trigonometry on non-right triangles. Use the left-hand menu at the top of the page or these buttons to navigate to your next section. Have fun!

Practice problems

Calculate the degree measures of all missing angles and the lengths of all missing sides of these right triangles. Make sure to include units.

  1. A surveyor knows the depth of the canyon and can measure the angle shown. Calculate the distance from one side of the canyon to the other.

Video examples

1. Counting around the unit circle

You should know how to label the most-frequently-used angles around the unit circle (circle of radius r = 1), both in degrees and radians. It's not that difficult if you just think of it as counting around the circle in different increments.

Minutes of your life: 3:25

2. The special triangles: 45-45-90 and 30-60-90

You'll make your journey through trigonometry much easier if you memorize everything needed to derive the trig functions of 30˚, 45˚ and 60˚ angles. Here's how to do it.

Minutes of your life: 3:42

3. Using basic right-triangle trigonometry

Here are two examples of how we use SOH-CAH-TOA trig. to solve for the missing sides of a right triangle. This is a basic skill in trigonometry that you should master.

Minutes of your life: 4:48 (two examples)

Creative Commons License   optimized for firefox
xaktly.com by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.